|
1 |
| -@import "@fontsource/fira-mono"; |
| 1 | +@import '@fontsource/fira-mono'; |
2 | 2 |
|
3 | 3 | :root {
|
4 |
| - font-family: Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, |
5 |
| - Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; |
6 |
| - --font-mono: "Fira Mono", monospace; |
7 |
| - --pure-white: #ffffff; |
8 |
| - --primary-color: #b9c6d2; |
9 |
| - --secondary-color: #676778; |
10 |
| - --tertiary-color: #edf0f8; |
11 |
| - --accent-color: #ff3e00; |
12 |
| - --heading-color: rgba(0, 0, 0, 0.7); |
13 |
| - --text-color: #444444; |
14 |
| - --background-without-opacity: rgba(255, 255, 255, 0.7); |
15 |
| - --column-width: 42rem; |
16 |
| - --column-margin-top: 4rem; |
| 4 | + font-family: 'Inter', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', |
| 5 | + 'Segoe UI Symbol', 'Noto Color Emoji'; |
| 6 | + --font-mono: 'Fira Mono', monospace; |
| 7 | + --pure-white: #ffffff; |
| 8 | + --primary-color: #b9c6d2; |
| 9 | + --secondary-color: #676778; |
| 10 | + --tertiary-color: #edf0f8; |
| 11 | + --accent-color: #ff3e00; |
| 12 | + --heading-color: rgba(0, 0, 0, 0.7); |
| 13 | + --text-color: #444444; |
| 14 | + --background-without-opacity: rgba(255, 255, 255, 0.7); |
| 15 | + --column-width: 42rem; |
| 16 | + --column-margin-top: 4rem; |
17 | 17 | }
|
18 | 18 |
|
19 | 19 | body {
|
20 |
| - min-height: 100vh; |
21 |
| - margin: 0; |
22 |
| - background-color: var(--primary-color); |
| 20 | + min-height: 100vh; |
| 21 | + margin: 0; |
| 22 | + background-color: var(--primary-color); |
| 23 | + line-height: 1.5; |
23 | 24 | }
|
24 | 25 |
|
25 | 26 | body::before {
|
26 |
| - content: ""; |
27 |
| - width: 80vw; |
28 |
| - height: 100vh; |
29 |
| - position: absolute; |
30 |
| - top: 0; |
31 |
| - left: 10vw; |
32 |
| - z-index: -1; |
33 |
| - background: radial-gradient( |
34 |
| - 50% 50% at 50% 50%, |
35 |
| - var(--pure-white) 0%, |
36 |
| - rgba(255, 255, 255, 0) 100% |
37 |
| - ); |
38 |
| - opacity: 0.05; |
| 27 | + content: ''; |
| 28 | + width: 80vw; |
| 29 | + height: 100vh; |
| 30 | + position: absolute; |
| 31 | + top: 0; |
| 32 | + left: 10vw; |
| 33 | + z-index: -1; |
| 34 | + background: radial-gradient( |
| 35 | + 50% 50% at 50% 50%, |
| 36 | + var(--pure-white) 0%, |
| 37 | + rgba(255, 255, 255, 0) 100% |
| 38 | + ); |
| 39 | + opacity: 0.05; |
39 | 40 | }
|
40 | 41 |
|
41 | 42 | #svelte {
|
42 |
| - min-height: 100vh; |
43 |
| - display: flex; |
44 |
| - flex-direction: column; |
| 43 | + min-height: 100vh; |
| 44 | + display: flex; |
| 45 | + flex-direction: column; |
45 | 46 | }
|
46 | 47 |
|
47 | 48 | h1,
|
48 | 49 | h2,
|
49 | 50 | p {
|
50 |
| - font-weight: 400; |
51 |
| - color: var(--heading-color); |
| 51 | + font-weight: 400; |
| 52 | + color: var(--heading-color); |
52 | 53 | }
|
53 | 54 |
|
54 | 55 | p {
|
55 |
| - line-height: 1.5; |
| 56 | + line-height: 1.5; |
56 | 57 | }
|
57 | 58 |
|
58 | 59 | a {
|
59 |
| - color: var(--accent-color); |
60 |
| - text-decoration: none; |
| 60 | + color: var(--accent-color); |
| 61 | + text-decoration: none; |
61 | 62 | }
|
62 | 63 |
|
63 | 64 | a:hover {
|
64 |
| - text-decoration: underline; |
| 65 | + text-decoration: underline; |
65 | 66 | }
|
66 | 67 |
|
67 | 68 | h1 {
|
68 |
| - font-size: 2rem; |
69 |
| - text-align: center; |
| 69 | + font-size: 2rem; |
| 70 | + text-align: center; |
70 | 71 | }
|
71 | 72 |
|
72 | 73 | h2 {
|
73 |
| - font-size: 1rem; |
| 74 | + font-size: 1rem; |
74 | 75 | }
|
75 | 76 |
|
76 | 77 | pre {
|
77 |
| - font-size: 16px; |
78 |
| - font-family: var(--font-mono); |
79 |
| - background-color: rgba(255, 255, 255, 0.45); |
80 |
| - border-radius: 3px; |
81 |
| - box-shadow: 2px 2px 6px rgb(255 255 255 / 25%); |
82 |
| - padding: 0.5em; |
83 |
| - overflow-x: auto; |
84 |
| - color: var(--text-color); |
| 78 | + font-size: 16px; |
| 79 | + background-color: rgba(255, 255, 255, 0.45); |
| 80 | + border-radius: 3px; |
| 81 | + box-shadow: 2px 2px 6px rgb(255 255 255 / 25%); |
| 82 | + padding: 0.5em; |
| 83 | + overflow-x: auto; |
| 84 | + color: var(--text-color); |
| 85 | +} |
| 86 | + |
| 87 | +code { |
| 88 | + font-family: 'Inter', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', |
| 89 | + 'Segoe UI Symbol', 'Noto Color Emoji' !important; |
85 | 90 | }
|
86 | 91 |
|
87 | 92 | input,
|
88 | 93 | button {
|
89 |
| - font-size: inherit; |
90 |
| - font-family: inherit; |
| 94 | + font-size: inherit; |
| 95 | + font-family: inherit; |
91 | 96 | }
|
92 | 97 |
|
93 | 98 | button:focus:not(:focus-visible) {
|
94 |
| - outline: none; |
| 99 | + outline: none; |
95 | 100 | }
|
96 | 101 |
|
97 | 102 | @media (min-width: 720px) {
|
98 |
| - h1 { |
99 |
| - font-size: 2.4rem; |
100 |
| - } |
| 103 | + h1 { |
| 104 | + font-size: 2.4rem; |
| 105 | + } |
101 | 106 | }
|
102 | 107 |
|
103 | 108 | :target {
|
104 |
| - scroll-margin-top: 80px; |
| 109 | + scroll-margin-top: 80px; |
105 | 110 | }
|
0 commit comments