Skip to content

Commit 93ae0d0

Browse files
committed
Move config to sidebar
1 parent 4849338 commit 93ae0d0

24 files changed

+563
-590
lines changed

playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default defineConfig({
4545
use: {
4646
...devices['Desktop Chrome'],
4747
// Set a large height to avoid the windowing removing the editor/preview from the DOM
48-
viewport: { width: 1280, height: 5000 },
48+
viewport: { width: 1580, height: 5000 },
4949
},
5050
},
5151

src/app/globals.css

Lines changed: 62 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -28,87 +28,45 @@
2828
--input: 220 30% 20%;
2929
}
3030

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-
7131
:root {
32+
--foreground: 210 40% 98%;
7233
--background: var(--bg);
7334
--background-sheet: 220 30% 7.5%;
74-
--foreground: 210 40% 98%;
7535

7636
--card: var(--bg);
77-
--card-foreground: 210 40% 98%;
37+
--card-foreground: var(--foreground);
7838

7939
--popover: var(--bg);
8040
--popover-foreground: var(--text);
8141

82-
--radius: 0.4rem;
83-
84-
/* --primary: 210 40% 98%; */
8542
--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);
9144
--muted-foreground: 215 20.2% 65.1%;
9245

9346
--accent: var(--muted);
94-
--accent-foreground: 210 40% 98%;
47+
--accent-foreground: var(--foreground);
9548

9649
--destructive: 0 62.8% 30.6%;
97-
--destructive-foreground: 210 40% 98%;
50+
--destructive-foreground: var(--foreground);
51+
52+
--warning: 47.29 100% 50%;
9853

9954
--ring: 212.7 26.8% 83.9%;
10055

56+
--radius: 0.4rem;
57+
10158
/* Generic */
10259
--text-normal: hsl(var(--text));
10360
--text-muted: hsl(var(--muted));
104-
--text-warning: #ffc900;
61+
--text-warning: hsl(var(--warning));
10562

10663
--text-primary: hsl(var(--primary));
10764
--text-secondary: hsl(var(--secondary));
10865

10966
--page-bg: hsl(var(--bg));
11067
--page-bg-alt: hsl(var(--bg-alt));
11168
--page-scrollbar: hsl(var(--bg));
69+
--page-border: hsl(var(--border));
11270

11371
/* Buttons */
11472
--button-text: hsl(var(--muted));
@@ -127,45 +85,40 @@
12785
/* Sortable drag indicators */
12886
--drag-indicator-text: hsl(var(--muted));
12987
--drag-indicator-text-active: hsl(var(--text));
88+
}
13089

90+
:root {
13191
background: var(--page-bg);
13292
color: var(--text-normal);
13393
font-family: 'Chivo', monospace;
13494
font-weight: 250;
13595
overflow-y: scroll; /* Always show scrollbar to avoid layout shift */
136-
/* scroll-margin-top: 8rem; */
13796
}
13897

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);
144101
}
145102

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;
158108
}
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;
164115
}
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+
}
169122
}
170123

171124
@keyframes rotates {
@@ -182,41 +135,58 @@
182135

183136
@keyframes ball1 {
184137
0% {
185-
box-shadow: 30px 0 0 hsl(var(--border));
138+
box-shadow: 30px 0 0 var(--page-border);
186139
}
187140
50% {
188-
box-shadow: 0 0 0 hsl(var(--border));
141+
box-shadow: 0 0 0 var(--page-border);
189142
margin-bottom: 0;
190143
transform: translate(15px, 15px);
191144
}
192145
100% {
193-
box-shadow: 30px 0 0 hsl(var(--border));
146+
box-shadow: 30px 0 0 var(--page-border);
194147
margin-bottom: 10px;
195148
}
196149
}
197150

198151
@keyframes ball2 {
199152
0% {
200-
box-shadow: 30px 0 0 #fff;
153+
box-shadow: 30px 0 0 var(--text-muted);
201154
}
202155
50% {
203-
box-shadow: 0 0 0 #fff;
156+
box-shadow: 0 0 0 var(--text-muted);
204157
margin-top: -20px;
205158
transform: translate(15px, 15px);
206159
}
207160
100% {
208-
box-shadow: 30px 0 0 #fff;
161+
box-shadow: 30px 0 0 var(--text-muted);
209162
margin-top: 0;
210163
}
211164
}
212165

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;
215170
}
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);
220190
}
221191

222192
/* CodeMirror container */

0 commit comments

Comments
 (0)