revert nicks in some places

This commit is contained in:
Er2 2022-04-29 20:49:47 +03:00
parent 5c08d7363d
commit e6bc17787e
5 changed files with 37 additions and 25 deletions

View file

@ -29,3 +29,18 @@
height: 0 !important; height: 0 !important;
} }
.horiz-tab(@cols: 2, @offset: 0) {
@gap: @div-width * 2;
@el-width: calc(unit((100% / @cols), %) - unit((@gap + @offset), px));
display: flex;
flex-flow: row wrap;
column-gap: @gap;
row-gap: (@gap / 2);
& > * {
width: @el-width;
}
div[class^="divider"]:empty {
display: none;
}
}

View file

@ -18,16 +18,7 @@ div[class^="art-"],
{ &:extend(.hide); } { &:extend(.hide); }
// Nicks // Nicks
[class^="username-"] {
li[class^="messageListItem-"]
[class*="cozyMessage-"] &, // inside message
:not([class^="headerText-"])
> div[class*="nameTag-"] &, // outside message
{ &:extend(.hide); }
}
[class^="discrimBase-"], [class^="discrimBase-"],
div[class^="discordTag-"] [class^="username-"], // friends tab
div[class^="nameTag-"], div[class^="nameTag-"],
[class^="usernameInnerRow-"], // at settings [class^="usernameInnerRow-"], // at settings
{ &:extend(.hide); } { &:extend(.hide); }

View file

@ -20,3 +20,19 @@
margin-left: 0; margin-left: 0;
} }
} }
span[class^="username-"] {
font-weight: 500;
}
// friends tab
div[class^="peopleList-"] > div {
@margin: 4px;
& > *, & > *:hover {
border: none;
padding: 8px !important;
margin: @margin !important;
}
.horiz-tab(2, @margin * 2);
}

View file

@ -72,6 +72,9 @@ div[class^="pencilContainer-"] {
// Profile card in settings // Profile card in settings
div[class^="accountProfileCard-"] { div[class^="accountProfileCard-"] {
span[class^="username-"]
{ &:extend(.hide); }
div[class^="field-"]:nth-child(1) { div[class^="field-"]:nth-child(1) {
height: 0; height: 0;
div[class^="constrainedRow-"] { div[class^="constrainedRow-"] {
@ -110,6 +113,9 @@ header div[class^="nameTagNoCustomStatus-"] {
div.root-8LYsGj { // I not love fixed classes, but this selects only modal page div.root-8LYsGj { // I not love fixed classes, but this selects only modal page
flex-direction: row; flex-direction: row;
span[class^="username-"]
{ &:extend(.hide); }
header { header {
width: 260px; width: 260px;
margin: 24px; margin: 24px;

View file

@ -62,22 +62,6 @@ div[aria-controls="analytics-tab"],
div[aria-controls="partner-tab"], div[aria-controls="partner-tab"],
{ &:extend(.hide); } { &:extend(.hide); }
.horiz-tab(@cols: 2) {
@gap: @div-width * 2;
@el-width: calc(100% / @cols - @gap);
display: flex;
flex-flow: row wrap;
column-gap: @gap;
row-gap: (@gap / 2);
& > * {
width: @el-width;
}
div[class^="divider"]:empty {
display: none;
}
}
#my-account-tab > div { #my-account-tab > div {
.horiz-tab(); .horiz-tab();
& > div:first-child { & > div:first-child {