Skip to content

Commit 1b54112

Browse files
authored
Merge pull request pterodactyl#2118 from Sir3lit/stylingchanges
Add scrollbar styling + change syntax background color
2 parents 173b75d + ad0fd4b commit 1b54112

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

resources/styles/components/forms.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ select.input:not(.appearance-none) {
123123
select.input-dark:not(.appearance-none) {
124124
@apply .bg-neutral-600 .border-neutral-500 .text-neutral-200;
125125
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='%23C3D1DF' d='M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z'/%3e%3c/svg%3e ");
126+
background-color: hsl(220deg 21% 16%);
126127

127128
&:hover:not(:disabled), &:focus {
128129
@apply .border-neutral-400;

resources/styles/components/miscellaneous.css

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,39 @@ code.clean {
2727
@apply .mt-4;
2828
}
2929
}
30+
31+
::-webkit-scrollbar {
32+
background: none;
33+
width: 16px;
34+
height: 16px;
35+
}
36+
37+
::-webkit-scrollbar-thumb {
38+
border: solid 0 rgb(0 0 0 / 0%);
39+
border-right-width: 4px;
40+
border-left-width: 4px;
41+
-webkit-border-radius: 9px 4px;
42+
-webkit-box-shadow: inset 0 0 0 1px hsl(211, 10%, 53%), inset 0 0 0 4px hsl(209deg 18% 30%);
43+
}
44+
45+
::-webkit-scrollbar-track-piece {
46+
margin: 4px 0;
47+
}
48+
49+
::-webkit-scrollbar-thumb:horizontal {
50+
border-right-width: 0;
51+
border-left-width: 0;
52+
border-top-width: 4px;
53+
border-bottom-width: 4px;
54+
-webkit-border-radius: 4px 9px;
55+
}
56+
57+
::-webkit-scrollbar-thumb:hover {
58+
-webkit-box-shadow:
59+
inset 0 0 0 1px hsl(212, 92%, 43%),
60+
inset 0 0 0 4px hsl(212, 92%, 43%);
61+
}
62+
63+
::-webkit-scrollbar-corner {
64+
background: transparent;
65+
}

0 commit comments

Comments
 (0)