This commit is contained in:
Er2 2022-04-09 22:09:45 +03:00
parent d62d991e87
commit 6006bf38f6
10 changed files with 41 additions and 45 deletions

View file

@ -10,3 +10,4 @@
@import "src/people";
@import "src/fixes";
@import "src/style";
@import "src/ui";

View file

@ -1,8 +1,3 @@
/** DisKort
* (c) Er2 2022 <er2@dismail.de>
* Zlib License
*/
.theme-dimmer {
--header-primary: #dedede;
--header-secondary: #cacaca;

View file

@ -1,8 +1,3 @@
/** DisKort
* (c) Er2 2022 <er2@dismail.de>
* Zlib License
*/
// fix guild selector at left part
ul[data-list-id="guildsnav"] div[class^="scroller-"] {
display: flex;

View file

@ -1,8 +1,3 @@
/** DisKort
* (c) Er2 2022 <er2@dismail.de>
* Zlib License
*/
// Site
[class*="perksContainer-"],
[class^="DocSearch"], // Algolia, f you

View file

@ -1,8 +1,3 @@
/** DisKort
* (c) Er2 2022 <er2@dismail.de>
* Zlib License
*/
// TODO: comment this
@media screen and (max-device-width: 800px) {

View file

@ -1,8 +1,3 @@
/** DisKort
* (c) Er2 2022 <er2@dismail.de>
* Zlib License
*/
[class^="membersWrap-"] {
// make it shorter
&, div[class^="members-"] {

View file

@ -1,8 +1,3 @@
/** DisKort
* (c) Er2 2022 <er2@dismail.de>
* Zlib License
*/
div[class^="accountProfileCard-"] div[class^="userInfo-"] {
// settings
justify-content: left;

View file

@ -1,8 +1,3 @@
/** DisKort
* (c) Er2 2022 <er2@dismail.de>
* Zlib License
*/
// New sidebar in settings
div[class^="standardSidebarView-"] {
flex-direction: column;
@ -59,10 +54,11 @@ div[aria-controls="stickers-tab"],
display: none;
}
.horiz-tab() {
.horiz-tab(@cols: 2) {
@gap: @div-width * 2;
@el-width: calc(100% / @cols - @gap);
display: flex;
flex-flow: row wrap;
@gap: @div-width * 2;
column-gap: @gap;
}
@ -118,7 +114,7 @@ div[class^="baseLayout-"] {
}
div[class^="marginTop8-"], div[class^="marginTop20-"] {
width: calc(50% - @gap);
width: @el-width;
div[class^="divider-"]
{ display: none; }
@ -160,3 +156,24 @@ div[class^="accountProfileCard-"] {
}
}
}
#language-tab div[class^="children-"] {
div div > div[role="radiogroup"] {
.horiz-tab(3);
& > div {
width: @el-width;
}
}
}
#streamer-mode-tab div[class^="children-"] {
.horiz-tab();
& > * {
width: @el-width;
&:nth-child(1),
&:nth-child(2)
{ width: 100%; }
&:nth-child(3)
{ display: none; }
}
}

View file

@ -1,8 +1,3 @@
/** DisKort
* (c) Er2 2022 <er2@dismail.de>
* Zlib License
*/
@round: 8px;
@rounder: 16px;
@roundest: 24px; // text area
@ -299,8 +294,6 @@ div[class^="layers-"] {
div[class^="layers-"] > div[class^="layer-"] > div[class],
div[class^="channelHeader-"],
//div[class^="emojiPicker-"],
//#emoji-picker-tab-panel div[class*="header-"],
div[class^="focusLock-"] > div,
[role="dialog"]:not([class^="focusLock-"]),
[role="menu"] {

15
src/ui.less Normal file
View file

@ -0,0 +1,15 @@
// UI element changes
div[class^="slider-"] {
div[class^="track-"] {
div[class^="grabber-"] {
@half: (@rounder / 2);
width: @rounder;
height: @rounder;
border: none;
border-radius: @half;
margin-top: -@half;
margin-left: -@half;
}
}
}