From 94b4dae8e71009a23aa73d9bea1ca49645c9b332 Mon Sep 17 00:00:00 2001 From: Er2 Date: Sat, 17 Sep 2022 12:08:10 +0300 Subject: [PATCH] bugfixes --- btfl.less | 1 - src/hide.less | 10 +++++- src/settings.less | 13 ++----- src/style.less | 88 ++++++++++++++++++++++++++++++++--------------- src/ui.less | 2 +- 5 files changed, 73 insertions(+), 41 deletions(-) diff --git a/btfl.less b/btfl.less index 7464d3f..069cc52 100644 --- a/btfl.less +++ b/btfl.less @@ -5,7 +5,6 @@ @no-nitro: true; @no-banner: false; -@verifies: true; @round: 8px; @rounder: 16px; diff --git a/src/hide.less b/src/hide.less index fc814c2..1327a94 100644 --- a/src/hide.less +++ b/src/hide.less @@ -32,7 +32,10 @@ button[class*="followButton-"], // at top in channels [class^="nowPlaying"], // in friends tab div[class^="threadSuggestionBar-"], // create thread because many replies div[class^="welcomeCTA-"], // wave to say hi on server -div[role="separator"]:not([id$="new-messages-bar"]), // aren't needed +.divider-IqmEqJ .content-3spvdd, // date in divider +.spine-29OFwR, // threads svg +.mainContent-20q_Hp .subtitle-3PyFgf, // forum subtitle +.scrollerInner-2PPAp2 div.box-2iMsQm, // start the conversation in forum div[class^="channelNotice-"], // sh** at bottom of server name like invite people, server boost etc. h2[class^="privateChannelsHeaderContainer"], // direct messages label @@ -80,3 +83,8 @@ div[class^="overviewSidebar-"], // at community creation, not needed form::before, // message input shadow div[class^="children-"]::after, // shadow at title { &:extend(.hide); } + +.container-3wLKDe { + background: unset !important; +} + diff --git a/src/settings.less b/src/settings.less index 47c6a15..233b701 100644 --- a/src/settings.less +++ b/src/settings.less @@ -78,21 +78,12 @@ div.optionBox-1UOevl:nth-child(2) #privacy-\&-safety-tab { .marginBottom40-fvAlAV { &:first-child div[role=radiogroup], - &:nth-child(3) { .horiz-tab(3); } &:nth-child(2) { .horiz-tab(); } - &:nth-child(3) { - h3 ~ * { - min-width: 100%; - } - } - - &:nth-child(2), &:nth-child(3) { - & > :first-child - { min-width: 100%; } - } + &:nth-child(2) > h5 + { min-width: 100%; } &:last-child { &:extend(.hide); } diff --git a/src/style.less b/src/style.less index 876e4ee..1dc189a 100644 --- a/src/style.less +++ b/src/style.less @@ -1,5 +1,5 @@ -.round { .radius(@round); } -.rounder { .radius(@rounder); } +.round { .radius(@round) !important; } +.rounder { .radius(@rounder) !important; } // Space between sidebar and chat div[class^="sidebar-"] { @@ -84,9 +84,9 @@ article[class^="embed"] { div[class^="layer-"] > div[class^="container-"], div[class^="base-"] div[class^="content-"] > div:nth-child(2), div[class^="guildList-"] div[class^="container-"], - div[class^="container"] > div, div[class^="chat-"] > div[class^="content-"], div.focusLock-2tveLW .wrapper-2bCXfR, + div.avatarWrapper-1B9FTW, { &:extend(.rounder); } div[class^="auditLog"] { @@ -194,27 +194,35 @@ div.popoutContainer-2wbmiM, } // status picker -#account-status-picker + div.layer-2aCOJ3 div.scroller-1bVxF5 { - display: flex; - flex-flow: row wrap; - justify-content: space-around; - - & > div.item-1OdjEX { - padding: 8px; - margin: 0; - - & > div { - padding: 0; - - & > div.status-2xYiEF, - & > div.description-1Dd2kv, - { &:extend(.hide); } - } +#account-status-picker + div.layer-2aCOJ3 { + div.submenu-1apzyU { + top: -8px; } - svg { - width: 16px; - height: 16px; - margin-left: 4px; + div.scroller-1bVxF5 { + display: flex; + flex-flow: row wrap; + justify-content: space-around; + + .separator-1So4YB + { &:extend(.hide); } + + & > div.item-1OdjEX { + padding: 8px; + margin: 0; + + & > div { + padding: 0; + + & > div.status-2xYiEF, + & > div.description-1Dd2kv, + { &:extend(.hide); } + } + } + svg { + width: 16px; + height: 16px; + margin-left: 2px; + } } } @@ -240,9 +248,35 @@ div[id^="message-accessories-"] { } } -// Verified! -.vrf() when (@verifies = true) { - .verify('785219544364351499'); +div.saveNoticeContainer-3t-pI1 { + width: calc(100% - 60pt); +} + +#channels ul { + & > li.containerDefault-YUSmu3, + & > li.container-1Bj0eq { + margin-left: @round; + } + div.content-1gYQeQ { + margin: 0; + } + .unread-36eUEm { + left: -@round; + } +} + +.spoilerText-27bIiA { + &.hidden-3B-Rum { + &:extend(.acrylic all); + position: relative; + background: unset !important; + user-select: none; + } + .inlineContent-2YnoDy { + opacity: 1 !important; + margin: 0 (@round / 2); + z-index: -2; + position: relative; + } } -.vrf(); diff --git a/src/ui.less b/src/ui.less index f63882e..4b18525 100644 --- a/src/ui.less +++ b/src/ui.less @@ -97,13 +97,13 @@ div.bd-server-card { div[class^="tabBarItem-"], div[class^="checkbox"], button[class*="button"], +code.inline, { &:extend(.round); } // Rounder div[class^="markup-"] pre code, // ```code``` span[class^="spoiler"], span.mention, -code.inline, [class^="item-"], // in settings div[class^="group-"], // radiogroup div[class*="card"],