|
28 | 28 | --input: 220 30% 20%;
|
29 | 29 | }
|
30 | 30 |
|
31 |
| -/* .dark { |
32 |
| - --primary: 0 0% 100%; |
33 |
| - --secondary: 220 30% 40%; |
34 |
| - --text: 0 0% 90.2%; |
35 |
| - --muted: 220 30% 40%; |
36 |
| - --bg: 220 30% 7.5%; |
37 |
| - --bg-alt: 220 30% 6.5%; |
38 |
| - --border: 220 30% 20%; |
39 |
| - --input: 220 30% 20%; |
40 |
| -
|
41 |
| - color-scheme: dark; |
42 |
| -} |
43 |
| -
|
44 |
| -.light { |
45 |
| - --primary: 0 0% 100%; |
46 |
| - --secondary: 10 30% 75%; |
47 |
| - --text: 10 27% 20%; |
48 |
| - --muted: 10 20% 60%; |
49 |
| - --bg: 10 20% 90%; |
50 |
| - --bg-alt: 10 20% 92%; |
51 |
| - --border: 10 20% 75%; |
52 |
| - --input: 10 20% 75%; |
53 |
| -
|
54 |
| - color-scheme: light; |
55 |
| -} */ |
56 |
| - |
57 |
| -@font-face { |
58 |
| - font-family: 'Nib Pro'; |
59 |
| - src: url('./../../public/NibPro-Bold.woff2') format('woff2'); |
60 |
| - font-weight: 700; |
61 |
| - font-style: normal; |
62 |
| -} |
63 |
| - |
64 |
| -@font-face { |
65 |
| - font-family: 'Nib Pro'; |
66 |
| - src: url('./../../public/NibPro-BoldItalic.woff2') format('woff2'); |
67 |
| - font-weight: 700; |
68 |
| - font-style: italic; |
69 |
| -} |
70 |
| - |
71 | 31 | :root {
|
| 32 | + --foreground: 210 40% 98%; |
72 | 33 | --background: var(--bg);
|
73 | 34 | --background-sheet: 220 30% 7.5%;
|
74 |
| - --foreground: 210 40% 98%; |
75 | 35 |
|
76 | 36 | --card: var(--bg);
|
77 |
| - --card-foreground: 210 40% 98%; |
| 37 | + --card-foreground: var(--foreground); |
78 | 38 |
|
79 | 39 | --popover: var(--bg);
|
80 | 40 | --popover-foreground: var(--text);
|
81 | 41 |
|
82 |
| - --radius: 0.4rem; |
83 |
| - |
84 |
| - /* --primary: 210 40% 98%; */ |
85 | 42 | --primary-foreground: 222.2 47.4% 11.2%;
|
86 |
| - |
87 |
| - /* --secondary: 220 30% 20%; */ |
88 |
| - --secondary-foreground: 210 40% 98%; |
89 |
| - |
90 |
| - /* --muted: 0 0% 43.1%; */ |
| 43 | + --secondary-foreground: var(--foreground); |
91 | 44 | --muted-foreground: 215 20.2% 65.1%;
|
92 | 45 |
|
93 | 46 | --accent: var(--muted);
|
94 |
| - --accent-foreground: 210 40% 98%; |
| 47 | + --accent-foreground: var(--foreground); |
95 | 48 |
|
96 | 49 | --destructive: 0 62.8% 30.6%;
|
97 |
| - --destructive-foreground: 210 40% 98%; |
| 50 | + --destructive-foreground: var(--foreground); |
| 51 | + |
| 52 | + --warning: 47.29 100% 50%; |
98 | 53 |
|
99 | 54 | --ring: 212.7 26.8% 83.9%;
|
100 | 55 |
|
| 56 | + --radius: 0.4rem; |
| 57 | + |
101 | 58 | /* Generic */
|
102 | 59 | --text-normal: hsl(var(--text));
|
103 | 60 | --text-muted: hsl(var(--muted));
|
104 |
| - --text-warning: #ffc900; |
| 61 | + --text-warning: hsl(var(--warning)); |
105 | 62 |
|
106 | 63 | --text-primary: hsl(var(--primary));
|
107 | 64 | --text-secondary: hsl(var(--secondary));
|
108 | 65 |
|
109 | 66 | --page-bg: hsl(var(--bg));
|
110 | 67 | --page-bg-alt: hsl(var(--bg-alt));
|
111 | 68 | --page-scrollbar: hsl(var(--bg));
|
| 69 | + --page-border: hsl(var(--border)); |
112 | 70 |
|
113 | 71 | /* Buttons */
|
114 | 72 | --button-text: hsl(var(--muted));
|
|
127 | 85 | /* Sortable drag indicators */
|
128 | 86 | --drag-indicator-text: hsl(var(--muted));
|
129 | 87 | --drag-indicator-text-active: hsl(var(--text));
|
| 88 | +} |
130 | 89 |
|
| 90 | +:root { |
131 | 91 | background: var(--page-bg);
|
132 | 92 | color: var(--text-normal);
|
133 | 93 | font-family: 'Chivo', monospace;
|
134 | 94 | font-weight: 250;
|
135 | 95 | overflow-y: scroll; /* Always show scrollbar to avoid layout shift */
|
136 |
| - /* scroll-margin-top: 8rem; */ |
137 | 96 | }
|
138 | 97 |
|
139 |
| -@layer base { |
140 |
| - * { |
141 |
| - @apply border-border; |
142 |
| - min-width: 0; /* Giving this a trial */ |
143 |
| - } |
| 98 | +::selection { |
| 99 | + color: var(--text-muted); |
| 100 | + background-color: var(--text-primary); |
144 | 101 | }
|
145 | 102 |
|
146 |
| -.loader { |
147 |
| - animation: rotates 1s infinite; |
148 |
| - height: 50px; |
149 |
| - width: 50px; |
150 |
| -} |
151 |
| -.loader:before, |
152 |
| -.loader:after { |
153 |
| - border-radius: 50%; |
154 |
| - content: ''; |
155 |
| - display: block; |
156 |
| - height: 20px; |
157 |
| - width: 20px; |
| 103 | +@font-face { |
| 104 | + font-family: 'Nib Pro'; |
| 105 | + src: url('./../../public/NibPro-Bold.woff2') format('woff2'); |
| 106 | + font-weight: 700; |
| 107 | + font-style: normal; |
158 | 108 | }
|
159 |
| -.loader:before { |
160 |
| - animation: ball1 1s infinite; |
161 |
| - background-color: #fff; |
162 |
| - box-shadow: 30px 0 0 hsl(var(--border)); |
163 |
| - margin-bottom: 10px; |
| 109 | + |
| 110 | +@font-face { |
| 111 | + font-family: 'Nib Pro'; |
| 112 | + src: url('./../../public/NibPro-BoldItalic.woff2') format('woff2'); |
| 113 | + font-weight: 700; |
| 114 | + font-style: italic; |
164 | 115 | }
|
165 |
| -.loader:after { |
166 |
| - animation: ball2 1s infinite; |
167 |
| - background-color: hsl(var(--border)); |
168 |
| - box-shadow: 30px 0 0 #fff; |
| 116 | + |
| 117 | +@layer base { |
| 118 | + * { |
| 119 | + @apply border-border; |
| 120 | + min-width: 0; |
| 121 | + } |
169 | 122 | }
|
170 | 123 |
|
171 | 124 | @keyframes rotates {
|
|
182 | 135 |
|
183 | 136 | @keyframes ball1 {
|
184 | 137 | 0% {
|
185 |
| - box-shadow: 30px 0 0 hsl(var(--border)); |
| 138 | + box-shadow: 30px 0 0 var(--page-border); |
186 | 139 | }
|
187 | 140 | 50% {
|
188 |
| - box-shadow: 0 0 0 hsl(var(--border)); |
| 141 | + box-shadow: 0 0 0 var(--page-border); |
189 | 142 | margin-bottom: 0;
|
190 | 143 | transform: translate(15px, 15px);
|
191 | 144 | }
|
192 | 145 | 100% {
|
193 |
| - box-shadow: 30px 0 0 hsl(var(--border)); |
| 146 | + box-shadow: 30px 0 0 var(--page-border); |
194 | 147 | margin-bottom: 10px;
|
195 | 148 | }
|
196 | 149 | }
|
197 | 150 |
|
198 | 151 | @keyframes ball2 {
|
199 | 152 | 0% {
|
200 |
| - box-shadow: 30px 0 0 #fff; |
| 153 | + box-shadow: 30px 0 0 var(--text-muted); |
201 | 154 | }
|
202 | 155 | 50% {
|
203 |
| - box-shadow: 0 0 0 #fff; |
| 156 | + box-shadow: 0 0 0 var(--text-muted); |
204 | 157 | margin-top: -20px;
|
205 | 158 | transform: translate(15px, 15px);
|
206 | 159 | }
|
207 | 160 | 100% {
|
208 |
| - box-shadow: 30px 0 0 #fff; |
| 161 | + box-shadow: 30px 0 0 var(--text-muted); |
209 | 162 | margin-top: 0;
|
210 | 163 | }
|
211 | 164 | }
|
212 | 165 |
|
213 |
| -body { |
214 |
| - overflow-y: none; /* Always show scrollbar to avoid layout shift */ |
| 166 | +.loader { |
| 167 | + animation: rotates 1s infinite; |
| 168 | + height: 50px; |
| 169 | + width: 50px; |
215 | 170 | }
|
216 |
| - |
217 |
| -html body { |
218 |
| - /* Fix Radix select open interfering with sticky */ |
219 |
| - overflow: clip !important; |
| 171 | +.loader:before, |
| 172 | +.loader:after { |
| 173 | + border-radius: 50%; |
| 174 | + content: ''; |
| 175 | + display: block; |
| 176 | + height: 20px; |
| 177 | + width: 20px; |
| 178 | + mix-blend-mode: multiply; |
| 179 | +} |
| 180 | +.loader:before { |
| 181 | + animation: ball1 1s infinite; |
| 182 | + background-color: var(--text-muted); |
| 183 | + box-shadow: 30px 0 0 var(--page-border); |
| 184 | + margin-bottom: 10px; |
| 185 | +} |
| 186 | +.loader:after { |
| 187 | + animation: ball2 1s infinite; |
| 188 | + background-color: var(--page-border); |
| 189 | + box-shadow: 30px 0 0 var(--text-muted); |
220 | 190 | }
|
221 | 191 |
|
222 | 192 | /* CodeMirror container */
|
|
0 commit comments