mirror of https://github.com/sveltejs/svelte
parent
f2e1b0ea99
commit
e49db5c65f
@ -0,0 +1,33 @@
|
|||||||
|
import { css } from 'emotion/dist/emotion.umd.min.js';
|
||||||
|
|
||||||
|
const brand = '#74D900';
|
||||||
|
|
||||||
|
export const title = css`
|
||||||
|
color: ${brand};
|
||||||
|
font-size: 1em;
|
||||||
|
white-space: nowrap;
|
||||||
|
`;
|
||||||
|
|
||||||
|
export const comicSans = css`
|
||||||
|
font-family: 'Comic Sans MS';
|
||||||
|
`;
|
||||||
|
|
||||||
|
export const box = css`
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
border: 2px solid ${brand};
|
||||||
|
line-height: 1;
|
||||||
|
padding: 4px;
|
||||||
|
border-radius: 4px;
|
||||||
|
`;
|
||||||
|
|
||||||
|
export const link = css`
|
||||||
|
color: inherit;
|
||||||
|
font-weight: bold;
|
||||||
|
text-decoration: none;
|
||||||
|
border-bottom: 1px solid ${brand};
|
||||||
|
&:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
background: ${brand};
|
||||||
|
}
|
||||||
|
`;
|
@ -0,0 +1,9 @@
|
|||||||
|
<script>
|
||||||
|
let a = 1;
|
||||||
|
let b = 2;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<input type="number" bind:value={a}>
|
||||||
|
<input type="number" bind:value={b}>
|
||||||
|
|
||||||
|
<p>{a} + {b} = {a + b}</p>
|
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"title": "-"
|
||||||
|
}
|
Loading…
Reference in new issue