-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSlideoverServers.theme.css
72 lines (62 loc) · 1.71 KB
/
SlideoverServers.theme.css
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
/**
* @name Slideover Servers
* @author Andrew Grant
* @description Turns the server list into a grid that slides out on hover.
* @version 1.2
*/
:root {
--sos-number-of-rows: 10;
--sos-home-button-offset: 26px;
--sos-server-expand-width: 220px;
--sos-sidebar-collapse-width: 92px;
}
/* attach home, Discover, and "add server" buttons to top of screen */
[class^="tutorialContainer_"] {
position: fixed;
top: var(--sos-home-button-offset);
}
/* align Discover footer with home and "add server" buttons */
[class^="tutorialContainer_"]:has([class^="circleIconButton_"]) {
left: 72px;
}
[class^="footer_"] {
position: absolute;
top: -56px;
padding: 0px;
left: 144px;
}
/* offset server scroll to account for attached buttons */
nav[class*="guilds_"] {
padding-top: 60px;
}
/* change server list to allow for wrapping */
nav[class^="wrapper_"] div[class^="listItem_"] + div[aria-label] {
display: flex;
flex-flow: column wrap;
}
/* rows cannot be calculated with pure CSS, '--sos-number-of-rows' needs to be set */
div[aria-label="Servers"] {
height: calc(var(--sos-number-of-rows) * 56px);
}
/* Alow guild separator to expand on hover */
[class^="guildSeparator_"] {
position:absolute;
width: 40px;
left: 16px;
top: -2px;
}
/* expand server list and guild separator on hover */
nav[class^="wrapper_"]:hover {
width: var(--sos-server-expand-width);
[class^="guildSeparator_"] {
width: 182px;
}
}
/* collapse sidebar on hover */
nav[class^="wrapper_"]:hover + div [class^="sidebar_"] {
width: var(--sos-sidebar-collapse-width);
}
/* remove unread mention bottom and top pills */
[class^="unreadMentionsIndicator"] {
display: none;
}