|
1 | 1 | <template>
|
2 | 2 | <div>
|
3 |
| - <div :class="styles.root">Nuxt module playground!</div> |
4 |
| - <button :class="styles.button">Hello World</button> |
| 3 | + <div :class="styles.root"> |
| 4 | + Nuxt module playground! |
| 5 | + </div> |
| 6 | + <button :class="styles.button"> |
| 7 | + Hello World |
| 8 | + </button> |
5 | 9 | </div>
|
6 | 10 | </template>
|
7 | 11 |
|
8 | 12 | <script setup>
|
9 |
| -import { css } from "@emotion/css"; |
| 13 | +import { css } from '@emotion/css' |
10 | 14 |
|
11 | 15 | const styles = reactive({
|
12 | 16 | root: css({
|
13 |
| - paddingInline: "16px", |
14 |
| - paddingBlock: "12px", |
15 |
| - fontSize: "1rem", |
16 |
| - fontFamily: "system ui", |
17 |
| - color: "white", |
18 |
| - borderRadius: "20px", |
19 |
| - backgroundColor: "indigo", |
| 17 | + paddingInline: '16px', |
| 18 | + paddingBlock: '12px', |
| 19 | + fontSize: '1rem', |
| 20 | + fontFamily: 'system ui', |
| 21 | + color: 'white', |
| 22 | + borderRadius: '20px', |
| 23 | + backgroundColor: 'indigo' |
20 | 24 | }),
|
21 | 25 | button: css({
|
22 |
| - padding: "13px 18px", |
23 |
| - position: "relative", |
24 |
| - display: "inline-flex", |
25 |
| - alignItems: "center", |
26 |
| - justifyContent: "center", |
27 |
| - whiteSpace: "pre", |
28 |
| - borderRadius: "9999px", |
29 |
| - borderWidth: "2px", |
30 |
| - borderColor: "transparent", |
31 |
| - backgroundColor: "rgb(245 245 240)", |
32 |
| - fontSize: "15px", |
33 |
| - fontWeight: "400", |
34 |
| - lineHeight: "21px", |
35 |
| - letterSpacing: ".011em", |
36 |
| - cursor: "pointer", |
| 26 | + padding: '13px 18px', |
| 27 | + position: 'relative', |
| 28 | + display: 'inline-flex', |
| 29 | + alignItems: 'center', |
| 30 | + justifyContent: 'center', |
| 31 | + whiteSpace: 'pre', |
| 32 | + borderRadius: '9999px', |
| 33 | + borderWidth: '2px', |
| 34 | + borderColor: 'transparent', |
| 35 | + backgroundColor: 'rgb(245 245 240)', |
| 36 | + fontSize: '15px', |
| 37 | + fontWeight: '400', |
| 38 | + lineHeight: '21px', |
| 39 | + letterSpacing: '.011em', |
| 40 | + cursor: 'pointer', |
37 | 41 | transitionProperty:
|
38 |
| - "color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter", |
39 |
| - transitionTimingFunction: "cubic-bezier(.4,0,.2,1)", |
40 |
| - transitionDuration: ".15s", |
41 |
| - "&:hover": { |
42 |
| - backgroundColor: "rgb(79 77 77)", |
43 |
| - color: "rgb(245 245 240)", |
44 |
| - }, |
45 |
| - }), |
46 |
| -}); |
| 42 | + 'color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter', |
| 43 | + transitionTimingFunction: 'cubic-bezier(.4,0,.2,1)', |
| 44 | + transitionDuration: '.15s', |
| 45 | + '&:hover': { |
| 46 | + backgroundColor: 'rgb(79 77 77)', |
| 47 | + color: 'rgb(245 245 240)' |
| 48 | + } |
| 49 | + }) |
| 50 | +}) |
47 | 51 | </script>
|
0 commit comments