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-nitro: true;
@no-banner: false;
@round: 8px; @round: 8px;
@rounder: 16px; @rounder: 16px;

View File

@ -82,6 +82,11 @@ div[class^="overviewSidebar-"], // at community creation, not needed
form::before, // message input shadow form::before, // message input shadow
div[class^="children-"]::after, // shadow at title 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); } { &:extend(.hide); }
.container-3wLKDe { .container-3wLKDe {

View File

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

View File

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

View File

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