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,5 +1,7 @@
|
||||
<strong>Blue thing</strong>
|
||||
|
||||
<style>
|
||||
strong { color: blue; }
|
||||
strong {
|
||||
color: blue;
|
||||
}
|
||||
</style>
|
||||
|
||||
<strong>blue thing</strong>
|
@ -1,5 +1,7 @@
|
||||
<strong>Green thing</strong>
|
||||
|
||||
<style>
|
||||
strong { color: green; }
|
||||
strong {
|
||||
color: green;
|
||||
}
|
||||
</style>
|
||||
|
||||
<strong>green thing</strong>
|
@ -1,5 +1,7 @@
|
||||
<strong>Red thing</strong>
|
||||
|
||||
<style>
|
||||
strong { color: red; }
|
||||
strong {
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
|
||||
<strong>red thing</strong>
|
@ -1,22 +1,22 @@
|
||||
<button>
|
||||
Click me
|
||||
</button>
|
||||
|
||||
<style>
|
||||
button {
|
||||
height: 4rem;
|
||||
width: 8rem;
|
||||
background-color: #ddd;
|
||||
border-color: #ff3e00;
|
||||
color: #ff3e00;
|
||||
font-size: 1.25rem;
|
||||
background-image: linear-gradient(45deg, #ff3e00 50%, transparent 50%);
|
||||
background-position: 100%;
|
||||
background-size: 400%;
|
||||
transition: background 300ms ease-in-out;
|
||||
background: #E2E8F0;
|
||||
color: #64748B;
|
||||
border: unset;
|
||||
border-radius: 6px;
|
||||
padding: .75rem 1.5rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
button:hover {
|
||||
background-position: 0;
|
||||
color: #ddd;
|
||||
background: #CBD5E1;
|
||||
color: #475569;
|
||||
}
|
||||
button:focus {
|
||||
background: #94A3B8;
|
||||
color: #F1F5F9;
|
||||
}
|
||||
</style>
|
||||
|
||||
<button>
|
||||
Click me
|
||||
</button>
|
@ -1,22 +1,22 @@
|
||||
<button on:click>
|
||||
Click me
|
||||
</button>
|
||||
|
||||
<style>
|
||||
button {
|
||||
height: 4rem;
|
||||
width: 8rem;
|
||||
background-color: #ddd;
|
||||
border-color: #ff3e00;
|
||||
color: #ff3e00;
|
||||
font-size: 1.25rem;
|
||||
background-image: linear-gradient(45deg, #ff3e00 50%, transparent 50%);
|
||||
background-position: 100%;
|
||||
background-size: 400%;
|
||||
transition: background 300ms ease-in-out;
|
||||
background: #E2E8F0;
|
||||
color: #64748B;
|
||||
border: unset;
|
||||
border-radius: 6px;
|
||||
padding: .75rem 1.5rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
button:hover {
|
||||
background-position: 0;
|
||||
color: #ddd;
|
||||
background: #CBD5E1;
|
||||
color: #475569;
|
||||
}
|
||||
button:focus {
|
||||
background: #94A3B8;
|
||||
color: #F1F5F9;
|
||||
}
|
||||
</style>
|
||||
|
||||
<button on:click>
|
||||
Click me
|
||||
</button>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue