Support server folders (closes #10)

This commit is contained in:
HoLLy 2019-07-26 21:51:39 +02:00
Родитель c87a82fdf8
Коммит f101b8d5ce
2 изменённых файлов: 29 добавлений и 3 удалений

Просмотреть файл

@ -23,12 +23,15 @@ div[class*="activityFeed-"] div[class*="card-"],
div[class*="noChannel-"],
div[class*="channels-"] + div[class*="container-"], // container holding friendlist
div[class*="table-"]>div[class*="header-"],// Generic stuff
div[class*="gameLibrary-"], div[class*="friendsTable-"], div[class*="root-"]
div[class*="gameLibrary-"], div[class*="friendsTable-"], div[class*="root-"],
div[class*="folder-"] // server folder
{
background: transparent!important;
}
// Semi-transparency
div[class*="activityFeed-"] div[class*="card-"]>div[class*="header-"] {
div[class*="activityFeed-"] div[class*="card-"]>div[class*="header-"],
span[class*="expandedFolderBackground-"] // open server folder
{
background: rgba(black, 25%)!important;
}

Просмотреть файл

@ -50,10 +50,33 @@
@if ($server-list-above) {
// .guildsWrapper parent
div[class*="layer-"]>div:not([class*="standardSidebarView-"]) {
// All direct children (including .guilds-wrapper)
flex-direction: column;
}
// server folder
.wrapper-21YSNc {
width: auto;
display: flex;
.expandedFolderBackground-2sPsd- {
// shape expanded folder bg
width: 100%;
left: 0px;
top: -8px;
bottom: 0px;
width: 100%;
&.collapsed-1GMuSb {
background-color: transparent!important;
}
}
.expandedGuilds-1JMD4M {
height: auto!important;
display: flex;
}
}
div[class*="wrapper-1Rf91z"] { // .guildsWrapper-XXXXXX
width: 100%;
height: 75px;