diskort/src/settings.less

256 lines
4.7 KiB
Plaintext
Raw Normal View History

2022-04-10 11:14:51 +00:00
div[class^="keybind-"], // true must know it!
[class*="socialLink-"], // in change log
div[class^="socialLinks-"], // in settings at bottom
{ &:extend(.hide); }
// New sidebar in settings
div[class^="standardSidebarView-"] {
flex-direction: column;
div[class^="sidebarRegion-"] {
overflow: hidden;
flex-basis: unset; // bugfix to normalize height
2022-03-27 09:28:24 +00:00
flex-grow: 0; // fix scaling
div[class^="header-"],
div[class^="separator-"]
{ display: none; }
& > div {
background: var(--background-primary);
scrollbar-width: thin;
overflow: auto hidden !important;
justify-content: left;
max-width: 100%;
& > nav {
padding: 0;
width: unset; // to increase size
background: var(--background-secondary); // bugfix
& > div {
2022-03-29 16:11:13 +00:00
padding-left: @rounder;
flex-direction: row;
height: @tab-height;
}
}
}
}
div[class^="contentRegion-"] {
overflow-y: auto;
scrollbar-width: thin;
* {
max-width: 100%;
}
}
}
div[aria-controls*="nitro"],
div[aria-controls="library-inventory-tab"],
div[aria-controls="subscriptions-tab"],
div[aria-controls="billing-tab"],
div[aria-controls^="hypesquad"],
2022-04-02 09:56:03 +00:00
div[aria-controls="stickers-tab"],
2022-04-11 16:29:17 +00:00
{ &:extend(.nitro); }
2022-04-10 17:05:22 +00:00
2022-04-11 16:29:17 +00:00
div[aria-controls="keybinds-tab"],
div[aria-controls="game-activity-tab"],
2022-04-10 17:05:22 +00:00
div[aria-controls="analytics-tab"],
div[aria-controls="partner-tab"],
{ &:extend(.hide); }
2022-04-09 19:09:45 +00:00
.horiz-tab(@cols: 2) {
@gap: @div-width * 2;
@el-width: calc(100% / @cols - @gap);
2022-04-09 16:57:07 +00:00
display: flex;
flex-flow: row wrap;
column-gap: @gap;
2022-04-17 13:51:06 +00:00
row-gap: (@gap / 2);
2022-04-10 17:05:22 +00:00
& > * {
width: @el-width;
}
div[class^="divider"]:empty {
display: none;
}
2022-04-09 16:57:07 +00:00
}
#my-account-tab > div {
.horiz-tab();
& > div:first-child {
width: 50%;
2022-04-17 13:51:06 +00:00
min-width: 512px;
2022-04-09 16:57:07 +00:00
}
}
#profile-customization-tab div[class^="children"]
div[class^="baseLayout-"] {
& > div:not([class]) {
width: 100%;
div[class^="customizationSection-"] {
&:nth-child(2), &:nth-child(3) {
2022-04-11 16:29:17 +00:00
&:extend(.nitro);
}
}
}
div[class^="bioTextArea-"] {
2022-04-10 17:05:22 +00:00
height: 30vh;
}
}
2022-04-11 16:32:48 +00:00
// TrY AnImAtEd AvAtAr, eh... f you
[class^="optionBox-"]:nth-child(2)
{ &:extend(.nitro); }
#connections-tab div[class^="children-"] {
flex-direction: row;
div[class^="accountList-"] {
margin-right: @div-width;
height: 100%; // decreases height? 0_0
}
div[class^="connectionList-"] {
width: 100%;
}
}
#appearance-tab div[class^="children-"] {
2022-04-09 16:57:07 +00:00
.horiz-tab();
& > div:first-child {
width: 100%;
}
div[class^="marginTop20-"] > div[class^="slider-"] {
margin-top: 28px;
}
}
#accessibility-tab div div[class^="children-"] {
& > div {
&:nth-child(2),
&:nth-child(3),
&:nth-child(6),
&:nth-child(7)
2022-04-11 16:29:17 +00:00
{ &:extend(.hide); }
&:nth-child(4) {
margin-top: @div-width * 2;
}
}
}
#notifications-tab div[class^="children"] {
div:nth-child(6)
2022-04-11 16:29:17 +00:00
{ &:extend(.hide); }
}
2022-04-09 19:09:45 +00:00
#language-tab div[class^="children-"] {
div div > div[role="radiogroup"] {
.horiz-tab(3);
}
}
#streamer-mode-tab div[class^="children-"] {
.horiz-tab();
& > * {
&:nth-child(1),
&:nth-child(2)
{ width: 100%; }
}
2022-04-14 18:25:37 +00:00
h5
{ display: none; }
2022-04-09 19:09:45 +00:00
}
2022-04-10 17:05:22 +00:00
// Server settings
#overview-tab div[class^="children-"] > div {
2022-04-11 16:29:17 +00:00
// system messages
2022-04-10 17:05:22 +00:00
&:nth-child(3) {
.horiz-tab();
& > :nth-child(1),
& > :nth-child(2)
{ width: 100%; }
2022-04-11 16:29:17 +00:00
& > :nth-child(3) // description
2022-04-10 17:05:22 +00:00
{ display: none; }
}
2022-04-11 16:29:17 +00:00
// notification settings
2022-04-10 17:05:22 +00:00
&:nth-child(4) > div > div:last-child {
.horiz-tab();
}
2022-04-11 16:29:17 +00:00
// nitro features
2022-04-10 17:05:22 +00:00
&:nth-child(5) > div > div:last-child {
.horiz-tab(3);
& > * {
padding: 0;
margin: 0;
border: none;
}
2022-04-11 16:29:17 +00:00
& > div:first-child div[class^="flexChild-"]
{ display: none; }
2022-04-10 17:05:22 +00:00
}
}
#moderation-tab div[class^="children-"] {
div[role="radiogroup"] {
.horiz-tab();
}
}
div[data-list-id="audit-log"] {
.horiz-tab();
& > * {
height: min-content;
}
}
#integrations-tab > div:nth-child(2) {
.horiz-tab();
2022-04-12 17:53:03 +00:00
img[class^="iconWrapper-"] {
width: unset;
}
2022-04-10 17:05:22 +00:00
button[class^="createButton-"],
[class^="sectionHeader-"],
& > div:first-child {
width: 100%;
margin-bottom: @div-width * 3;
}
}
#widget-tab div[class^="children-"] {
&, & > div[class^="infoWrapper-"] {
.horiz-tab();
row-gap: @gap * 2;
}
img[class^="infoItem-"]
{ display: none; }
div[class^="infoItem-"],
& > div:first-child,
& > div:last-child {
width: 100%;
flex-basis: unset;
}
}
2022-04-12 17:53:03 +00:00
#community-tab > div[class^="container-"] {
& > div[class^="banner-"]
{ &:extend(.hide); }
}
2022-04-10 17:05:22 +00:00
#discovery-tab > div[class^="container-"] {
.horiz-tab();
span[class*="Button"] {
align-self: start;
}
}