Skip to content

Commit 1fe254e

Browse files
Re-add scroll bar style, fix missed tw conversion
Fixed backup message still using old method of "className" changed to use css={ts} readded scrollbar styling from PR#2118
1 parent 24db6d9 commit 1fe254e

File tree

2 files changed

+42
-5
lines changed

2 files changed

+42
-5
lines changed

resources/scripts/assets/css/GlobalStylesheet.ts

Lines changed: 41 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ export default createGlobalStyle`
66
${tw`font-sans bg-neutral-800 text-neutral-200`};
77
letter-spacing: 0.015em;
88
}
9-
9+
1010
h1, h2, h3, h4, h5, h6 {
1111
${tw`font-medium tracking-normal font-header`};
1212
}
13-
13+
1414
p {
1515
${tw`text-neutral-200 leading-snug font-sans`};
1616
}
17-
17+
1818
form {
1919
${tw`m-0`};
2020
}
21-
21+
2222
textarea, select, input, button, button:focus, button:focus-visible {
2323
${tw`outline-none`};
2424
}
@@ -32,4 +32,41 @@ export default createGlobalStyle`
3232
input[type=number] {
3333
-moz-appearance: textfield !important;
3434
}
35+
36+
/* Scroll Bar Style */
37+
::-webkit-scrollbar {
38+
background: none;
39+
width: 16px;
40+
height: 16px;
41+
}
42+
43+
::-webkit-scrollbar-thumb {
44+
border: solid 0 rgb(0 0 0 / 0%);
45+
border-right-width: 4px;
46+
border-left-width: 4px;
47+
-webkit-border-radius: 9px 4px;
48+
-webkit-box-shadow: inset 0 0 0 1px hsl(211, 10%, 53%), inset 0 0 0 4px hsl(209deg 18% 30%);
49+
}
50+
51+
::-webkit-scrollbar-track-piece {
52+
margin: 4px 0;
53+
}
54+
55+
::-webkit-scrollbar-thumb:horizontal {
56+
border-right-width: 0;
57+
border-left-width: 0;
58+
border-top-width: 4px;
59+
border-bottom-width: 4px;
60+
-webkit-border-radius: 4px 9px;
61+
}
62+
63+
::-webkit-scrollbar-thumb:hover {
64+
-webkit-box-shadow:
65+
inset 0 0 0 1px hsl(212, 92%, 43%),
66+
inset 0 0 0 4px hsl(212, 92%, 43%);
67+
}
68+
69+
::-webkit-scrollbar-corner {
70+
background: transparent;
71+
}
3572
`;

resources/scripts/components/server/backups/BackupContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default () => {
5252
</div>
5353
}
5454
{featureLimits.backups === 0 &&
55-
<p className="text-center text-sm text-neutral-400">
55+
<p css={tw`text-center text-sm text-neutral-400`}>
5656
Backups cannot be created for this server.
5757
</p>
5858
}

0 commit comments

Comments
 (0)