mirror of https://github.com/sveltejs/svelte
Changing tutorial/example order from script-style-html to script-html-style (#6213)
Also change button style in one tutorialpull/6229/head
parent
697d4c7f51
commit
ec2540787a
@ -1,9 +1,9 @@
|
|||||||
|
<p>Styled!</p>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
p {
|
p {
|
||||||
color: purple;
|
color: purple;
|
||||||
font-family: 'Comic Sans MS', cursive;
|
font-family: 'Comic Sans MS', cursive;
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<p>Styled!</p>
|
|
@ -1,5 +1,7 @@
|
|||||||
<style>
|
<strong>Blue thing</strong>
|
||||||
strong { color: blue; }
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<strong>blue thing</strong>
|
<style>
|
||||||
|
strong {
|
||||||
|
color: blue;
|
||||||
|
}
|
||||||
|
</style>
|
@ -1,5 +1,7 @@
|
|||||||
<style>
|
<strong>Green thing</strong>
|
||||||
strong { color: green; }
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<strong>green thing</strong>
|
<style>
|
||||||
|
strong {
|
||||||
|
color: green;
|
||||||
|
}
|
||||||
|
</style>
|
@ -1,5 +1,7 @@
|
|||||||
<style>
|
<strong>Red thing</strong>
|
||||||
strong { color: red; }
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<strong>red thing</strong>
|
<style>
|
||||||
|
strong {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
</style>
|
@ -1 +1 @@
|
|||||||
<p>This is another paragraph.</p>
|
<p>This is another paragraph.</p>
|
||||||
|
@ -1 +1 @@
|
|||||||
<p>This is another paragraph.</p>
|
<p>This is another paragraph.</p>
|
||||||
|
@ -1,22 +1,22 @@
|
|||||||
|
<button>
|
||||||
|
Click me
|
||||||
|
</button>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
button {
|
button {
|
||||||
height: 4rem;
|
background: #E2E8F0;
|
||||||
width: 8rem;
|
color: #64748B;
|
||||||
background-color: #ddd;
|
border: unset;
|
||||||
border-color: #ff3e00;
|
border-radius: 6px;
|
||||||
color: #ff3e00;
|
padding: .75rem 1.5rem;
|
||||||
font-size: 1.25rem;
|
cursor: pointer;
|
||||||
background-image: linear-gradient(45deg, #ff3e00 50%, transparent 50%);
|
|
||||||
background-position: 100%;
|
|
||||||
background-size: 400%;
|
|
||||||
transition: background 300ms ease-in-out;
|
|
||||||
}
|
}
|
||||||
button:hover {
|
button:hover {
|
||||||
background-position: 0;
|
background: #CBD5E1;
|
||||||
color: #ddd;
|
color: #475569;
|
||||||
}
|
}
|
||||||
</style>
|
button:focus {
|
||||||
|
background: #94A3B8;
|
||||||
<button>
|
color: #F1F5F9;
|
||||||
Click me
|
}
|
||||||
</button>
|
</style>
|
@ -1,22 +1,22 @@
|
|||||||
|
<button on:click>
|
||||||
|
Click me
|
||||||
|
</button>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
button {
|
button {
|
||||||
height: 4rem;
|
background: #E2E8F0;
|
||||||
width: 8rem;
|
color: #64748B;
|
||||||
background-color: #ddd;
|
border: unset;
|
||||||
border-color: #ff3e00;
|
border-radius: 6px;
|
||||||
color: #ff3e00;
|
padding: .75rem 1.5rem;
|
||||||
font-size: 1.25rem;
|
cursor: pointer;
|
||||||
background-image: linear-gradient(45deg, #ff3e00 50%, transparent 50%);
|
|
||||||
background-position: 100%;
|
|
||||||
background-size: 400%;
|
|
||||||
transition: background 300ms ease-in-out;
|
|
||||||
}
|
}
|
||||||
button:hover {
|
button:hover {
|
||||||
background-position: 0;
|
background: #CBD5E1;
|
||||||
color: #ddd;
|
color: #475569;
|
||||||
}
|
}
|
||||||
</style>
|
button:focus {
|
||||||
|
background: #94A3B8;
|
||||||
<button on:click>
|
color: #F1F5F9;
|
||||||
Click me
|
}
|
||||||
</button>
|
</style>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue