|
1 | 1 | <template>
|
2 | 2 | <div>
|
3 |
| - <div :class="styles.root"> |
4 |
| - Nuxt module playground! |
5 |
| - </div> |
6 |
| - <button :class="styles.button"> |
7 |
| - Hello World |
8 |
| - </button> |
| 3 | + <div :class="styles.root">Nuxt module playground!</div> |
| 4 | + <button :class="styles.button">Hello World</button> |
9 | 5 | </div>
|
10 | 6 | </template>
|
11 | 7 |
|
12 |
| -<script setup> |
13 |
| -import { css } from '@emotion/css' |
| 8 | +<script lang="ts" setup> |
| 9 | +import { css } from "@emotion/css"; |
14 | 10 |
|
15 | 11 | const styles = reactive({
|
16 | 12 | root: css({
|
17 |
| - paddingInline: '16px', |
18 |
| - paddingBlock: '12px', |
19 |
| - fontSize: '1rem', |
20 |
| - fontFamily: 'system ui', |
21 |
| - color: 'white', |
22 |
| - borderRadius: '20px', |
23 |
| - backgroundColor: 'indigo' |
| 13 | + paddingInline: "16px", |
| 14 | + paddingBlock: "12px", |
| 15 | + fontSize: "1rem", |
| 16 | + fontFamily: "system ui", |
| 17 | + color: "white", |
| 18 | + borderRadius: "20px", |
| 19 | + backgroundColor: "indigo", |
24 | 20 | }),
|
25 | 21 | button: css({
|
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', |
| 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", |
41 | 37 | transitionProperty:
|
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 |
| -}) |
| 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 | +}); |
51 | 47 | </script>
|
0 commit comments