remove banners

This commit is contained in:
Er2 2022-09-22 17:50:35 +03:00
parent af37e0a02d
commit a2a0f0bb5f
6 changed files with 21 additions and 33 deletions

View File

@ -4,7 +4,6 @@
*/
@no-nitro: true;
@no-banner: false;
@round: 8px;
@rounder: 16px;

View File

@ -82,6 +82,11 @@ div[class^="overviewSidebar-"], // at community creation, not needed
form::before, // message input shadow
div[class^="children-"]::after, // shadow at title
// banners are more buggy every day so it is disabled since now
.bannerSVGWrapper-qc0szY,
[class^="bannerContainer-"],
[class*="banner-"],
{ &:extend(.hide); }
.container-3wLKDe {

View File

@ -70,7 +70,7 @@ div[class^="chat-"]
}
&::before, &::after {
border-radius: inherit;
.radius(inherit);
position: absolute;
top: 0; bottom: 0;
left: 0; right: 0;

View File

@ -47,10 +47,6 @@ nav div[class^="animatedContainer-"] {
{ &:extend(.nitro); }
}
}
.nitroblock() when (@no-banner = true) {
[class^="bannerContainer-"],
[class*="banner-"]
{ &:extend(.hide); }
}
.nitroblock();

View File

@ -4,7 +4,7 @@
[class^="badgeList-"], // modal profile page
{ &:extend(.nitro); }
}
.profile() { // banners
.profile() {
div[class^="listItemContents-"] div[class^="userInfo"] {
padding-top: 0;
div[class^="avatar-"] {
@ -50,6 +50,10 @@
margin: 0 auto;
}
div.imageUploaderInner-IIRaFr {
background-color: unset;
}
div.avatarPositionPremiumBanner-2nq2Fy {
top: 24px;
}
@ -67,8 +71,9 @@ div.accountProfileCard-lbN7n- {
div.constrainedRow-3y91Xf
{ &:extend(.hide); }
button {
top: -48pt;
left: 300pt;
position: absolute;
right: 16px;
top: 16px;
}
}
@ -95,27 +100,14 @@ div.accountProfileCard-lbN7n- {
margin-top: 8px;
margin-left: -22px;
background-color: var(--background-tertiary);
.radius();
border-bottom-right-radius: 16px;
.radius() !important;
border-bottom-right-radius: 16px !important;
height: 32px;
padding-top: 4px;
padding-right: 4px;
}
}
div[class^="banner"] {
position: absolute;
width: inherit;
max-height: 72px;
min-height: 0;
&:extend(.rounder);
div[class^="profileBannerPreview-"] &,
&[class*="popoutBanner"] {
.bottom-border();
width: 100%;
}
}
// Redesigned profile page
div.root-8LYsGj {
flex-direction: row;
@ -132,6 +124,7 @@ div.root-8LYsGj {
div.headerTop-1PNKck {
position: unset;
justify-content: left;
margin-top: 8px;
}
div.nameTag-H6kSJ0 {
@ -167,7 +160,7 @@ div.root-8LYsGj {
&:hover, &.selected-g-kMVV {
border-right: 2px solid var(--interactive-active) !important;
}
.radius() !important;
.radius((@round / 4)) !important;
.left-border(@round) !important;
}
}
@ -178,7 +171,7 @@ div.root-8LYsGj {
}
div.profileBadges-2pItdR {
width: max-content;
.radius(8px);
.radius(@round);
padding: 2px;
}
}

View File

@ -243,11 +243,6 @@ div[data-list-id="audit-log"] {
}
}
#community-tab > div.container-2CHEay {
& > div.banner-3-oqyl
{ &:extend(.hide); }
}
#discovery-tab > div.container-26RXEg {
.horiz-tab();
// disabledButtonWrapper-2Oz3aY