Skip to content

Commit 9d01b71

Browse files
committed
feat: better scrollbars
1 parent e756259 commit 9d01b71

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

panda.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ export default defineConfig({
6363
},
6464
},
6565
globalCss: {
66+
'*': {
67+
scrollbarColor: "var(--colors-fg-default) transparent",
68+
scrollbarWidth: "thin",
69+
},
6670
":root": {
6771
fontWeight: "normal",
6872
fontSize: "14px",
@@ -76,8 +80,10 @@ export default defineConfig({
7680
},
7781
h1: {
7882
fontSize: "1.5rem",
83+
lineHeight: "calc(1.5 * var(--line-heights-normal))",
7984
sm: {
8085
fontSize: "2rem",
86+
lineHeight: "calc(2 * var(--line-heights-normal))"
8187
}
8288
}
8389
},

src/layouts/app.css

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@
1919
font-variant-numeric: tabular-nums lining-nums;
2020
}
2121

22-
/* *+* {
23-
margin-top: var(--line-heights-normal);
24-
} */
25-
2622
body {
2723
line-height: var(--line-heights-normal);
2824
}
@@ -39,7 +35,6 @@
3935
}
4036

4137
h1 {
42-
line-height: calc(2 * var(--line-heights-normal));
4338
margin-bottom: calc(var(--line-heights-normal) * 2);
4439
text-transform: uppercase;
4540
}
@@ -248,11 +243,6 @@
248243
line-height: 0;
249244
}
250245

251-
::-webkit-scrollbar {
252-
display: none;
253-
/* height: var(--line-heights-normal); */
254-
}
255-
256246
input:focus {
257247
outline: none;
258248
}

0 commit comments

Comments
 (0)