-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathHorizontalServerList.theme.css
More file actions
216 lines (199 loc) · 5.5 KB
/
Copy pathHorizontalServerList.theme.css
File metadata and controls
216 lines (199 loc) · 5.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
/**
* @name Horizontal Server List
* @author Gibbu#1211
* @version 2.1.0
* @invite ZHthyCw
* @description Moves the server list from the left to the top of Discord. Compatible with Server Folders and most basic transparent themes
* @source https://github.com/DiscordStyles/HorizontalServerList
* @website https://www.gibbu.me
*/
@property --extra-margin {
syntax: "<length>";
inherits: true;
initial-value: 0px;
}
@property --gap {
syntax: "<length>";
inherits: true;
initial-value: 0px;
}
:root {
--HSL-server-scale: 1; /* Scale of the server icons, decimals allowed. | DEFAULT: 1 */
--HSL-server-direction: column; /* Direction of the server list. | OPTIONS: column, column-reverse | DEFAULT: column */
--HSL-server-alignment: flex-start; /* Alignment of the server list. | OPTIONS: flex-start, center, flex-end | DEFAULT: flex-start */
--__server-container: calc(
var(--custom-guild-list-width) * var(--HSL-server-scale)
);
--__server-y-padding: 10px;
--extra-margin: 0px;
}
.content__5e434 {
margin-top: var(--__server-container);
overflow: visible;
margin-right: var(--gap)
}
#app-mount .sidebar__5e434 {
border-radius: 0;
overflow: visible;
}
#app-mount .guilds__5e434 {
transform-origin: top left;
rotate: -90deg;
scale: var(--HSL-server-scale);
bottom: unset;
position: absolute !important;
left: 0;
}
#app-mount .tree_ef3116 {
padding-top: var(--__server-y-padding);
padding-bottom: var(--__server-y-padding);
}
#app-mount .wrapper_cc5dd2 {
rotate: 90deg;
}
#app-mount .itemsContainer_ef3116,
#app-mount .unreadMentionsIndicatorTop_ef3116 + ul .stack_dbd263 {
flex-direction: var(--HSL-server-direction);
justify-content: var(--HSL-server-alignment);
}
#app-mount .icon__6e9f8 {
rotate: -90deg;
}
#guild-list-unread-dms .icon__6e9f8 {
rotate: 0deg;
}
.guilds__5e434 {
overflow-x: hidden;
overflow-y: scroll;
&::-webkit-scrollbar {
display: none !important;
}
}
/* Half Half */
.sidebar__5e434 > [style$=";"] {
position: fixed;
z-index: 101;
transform: translateX(50vw);
> nav {
height: calc(50vw - (var(--gap) * 3)) !important;
border-top-left-radius: 0 !important;
border-top-right-radius: 0 !important;
> ul {
padding-top: 0 !important;
> div > div {
padding-top: 8px !important;
}
}
}
}
.sidebar__5e434:not(:has(> .vc-betterFolders-sidebar))
> .wrapper_ef3116.guilds__5e434 {
height: calc(100vw - (var(--gap) * 4)) !important;
}
.sidebar__5e434:has(> .vc-betterFolders-sidebar)
> .wrapper_ef3116.guilds__5e434 {
height: calc(50vw) !important;
border-bottom-left-radius: 0 !important;
border-bottom-right-radius: 0 !important;
.stack_dbd263.scroller_ef3116
> :is(
.listItem__650eb:has(> .listItemWrapper__91816),
.tutorialContainer__650eb:has(> .wrapper_d144f8)
) {
display: none !important;
}
}
.visual-refresh #app-mount {
.actionButtons_e131a9 button {
padding: 0 !important;
}
.trailing_c38106 {
gap: 0;
padding-right: calc(var(--window-control-size) + (8 * var(--gap)));
}
/* move controls to server bar in horizontalserverlist (must need!!) */
.bar_c38106 {
-webkit-app-region: no-drag;
.winButtons_c38106 {
z-index: 9999;
position: fixed;
transform-origin: center;
rotate: -90deg;
border-radius: 0 0 var(--radius-lg) var(--radius-lg);
-webkit-app-region: no-drag;
padding: 0px var(--gap);
border: var(--border-thickness) solid var(--border);
width: calc(
var(--custom-guild-list-width) - (2.25 * var(--gap))
) !important;
height: calc(var(--window-control-size) + (4 * var(--gap)));
transform: translate(
-15px,
calc(var(--window-control-size) * 2 + (7.5 * var(--gap)))
) !important;
background: var(--bg-4) !important;
&::before {
display: none !important;
}
> .winButton_c38106 {
width: 100%;
-webkit-app-region: no-drag;
z-index: 9999;
}
}
.recentsIcon_c99c29,
[href="https://support.discord.com"]
{
display: none;
}
}
/* fix disappeared window controls in hsl */
.sidebar__5e434:has(> .vc-betterFolders-sidebar)
> .wrapper_ef3116[aria-label="Servers sidebar"] {
height: calc(50vw - (1 * var(--gap))) !important;
}
.sidebar__5e434 > .wrapper_ef3116[aria-label="Servers sidebar"] {
height: calc(
100vw - var(--gap) * 5 - var(--window-control-size) * 2
) !important;
border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
/* fix hsl clipping through window controls */
.vc-betterFolders-sidebar .guilds__5e434 {
height: calc(
50vw - ((var(--gap) * 2.5 + var(--window-control-size)) * 2)
) !important;
z-index: 200;
border-radius: 0 !important;
}
.primary_a22cb0 {
background: var(--blue-3);
}
/* nuke bar */
.base__5e434 {
grid-template-rows: [top] 0 [titleBarEnd] min-content [noticeEnd] 1fr [contentEnd] min-content [end];
padding-top: calc(var(--gap) * 2);
}
.unreadMentionsIndicatorTop_ef3116 + ul .stack_dbd263::after {
height: var(--window-control-size);
}
/* nuke extra bar that i cant bother to fix */
> .bar_c38106 {
display: none !important;
}
/* update hsl stuff */
.content__5e434 {
margin-top: calc(var(--__server-container) + var(--gap));
.guilds__5e434 {
transform: translateX(var(--gap));
}
}
/* fix misalignment */
.page__5e434 {
padding-bottom: 0;
}
/* obliterate the title */
.title_c38106 {
display: none !important;
}
}