diskort/src/profile.less

151 lines
3 KiB
Text
Raw Normal View History

2022-04-10 11:14:51 +00:00
div[class^="accountProfileCard-"] div[class^="userInfo-"] {
2022-03-24 16:19:00 +00:00
// settings
justify-content: left;
padding-top: 24px;
height: 56px;
2022-03-24 16:19:00 +00:00
button {
margin-left: 32px;
margin-top: -8px;
}
div[class^="avatar-"] {
background-color: var(--background-tertiary) !important;
top: 0;
border-radius: 0 !important;
border-bottom-right-radius: 50% !important;
2022-03-24 16:19:00 +00:00
}
}
2022-04-11 16:29:17 +00:00
.profile() when (@no-nitro = true) {
[class^="botTagVerified-"],
[class^="badgeList-"],
[class^="profileBadges-"],
{ &:extend(.nitro); }
2022-04-12 17:53:03 +00:00
}
2022-04-20 18:30:40 +00:00
.profile() { // banners
2022-04-11 16:29:17 +00:00
div[class^="listItemContents-"] div[class^="userInfo"] {
padding-top: 0;
div[class^="avatar-"] {
top: 0;
}
2022-03-24 16:19:00 +00:00
}
2022-04-11 16:29:17 +00:00
div[class^="userPopout-"],
div[class^="profileBannerPreview-"] {
div[class^="avatarWrapper"] {
top: 8px; // fix divider bug
}
div[class^="headerTop-"] {
padding-top: 72px; // also fix divider bug
div[class^="headerText"] {
margin-left: 96px; // fix nickname
}
}
2022-03-24 16:19:00 +00:00
}
2022-04-11 16:29:17 +00:00
div[class^="profileBanner"] div[class*="avatar"]:not([class^="imageUploaderInner"]) {
margin-left: -8px;
margin-top: -8px;
2022-03-24 16:19:00 +00:00
}
}
2022-04-11 16:29:17 +00:00
.profile();
2022-04-20 18:30:40 +00:00
div[class^="pencilContainer-"] {
z-index: 1; // fix edit button in profile
}
2022-04-11 16:29:17 +00:00
// Profile card in settings
div[class^="accountProfileCard-"] {
div[class^="field-"]:nth-child(1) {
height: 0;
div[class^="constrainedRow-"] {
display: none;
}
button {
top: -48pt;
left: 300pt;
}
}
2022-03-24 16:19:00 +00:00
}
2022-04-20 18:30:40 +00:00
div[class^="banner"] {
2022-04-11 16:29:17 +00:00
position: absolute;
width: inherit;
2022-04-20 18:30:40 +00:00
max-height: 72px;
2022-04-11 16:29:17 +00:00
&:extend(.rounder);
2022-04-20 18:30:40 +00:00
div[class^="profileBannerPreview-"] &,
2022-04-11 16:29:17 +00:00
&[class*="popoutBanner"] {
.bottom-border();
2022-04-20 18:30:40 +00:00
width: 100%;
2022-04-11 16:29:17 +00:00
}
2022-03-24 16:19:00 +00:00
}
div[class^="avatarWrapper-"] {
2022-04-11 16:29:17 +00:00
margin-right: auto; // make some space after avatar (sidebar at bottom)
2022-03-24 16:19:00 +00:00
}
2022-04-11 16:29:17 +00:00
// Redesigned profile page
2022-03-24 16:19:00 +00:00
header div[class^="nameTagWithCustomStatus-"],
header div[class^="nameTagNoCustomStatus-"] {
margin-bottom: 48px; // some space under avatar
margin-left: 160px; // after avatar, not before
}
2022-04-01 18:34:22 +00:00
2022-04-02 09:56:03 +00:00
div[class^="focusLock-"]:not([aria-labelledby]) > div[class^="root-"][class*="small-"] {
2022-04-01 18:34:22 +00:00
flex-direction: row;
2022-04-01 18:34:22 +00:00
header {
2022-04-01 18:53:24 +00:00
width: 260px;
2022-04-01 18:34:22 +00:00
margin: 24px;
div[class^="avatar-"] {
top: 0; left: 0;
position: relative;
}
div[class^="headerTop-"] {
position: unset;
justify-content: left;
}
div[class^="nameTag"] {
width: 64px;
position: absolute;
2022-04-20 18:30:40 +00:00
margin-top: -64px;
2022-04-01 18:34:22 +00:00
margin-left: 130px;
}
div[class^="customStatus"] {
margin-top: 16px;
padding: 0;
}
}
2022-04-02 09:56:03 +00:00
div[class^="body-"] {
border: none;
2022-04-02 09:56:03 +00:00
margin-left: 16px;
height: 370px;
& > *
{ padding: 0 !important; }
}
2022-04-01 18:34:22 +00:00
div[class^="tabBarContainer"]
{ border: none; }
div[class^="tabBar-"] {
flex-direction: column;
height: unset;
margin: 8px;
}
2022-04-02 09:56:03 +00:00
div[class^="tabBarItem-"] {
margin-right: 0;
border-bottom: unset;
&:hover, &[class*="selected-"] {
2022-04-11 16:29:17 +00:00
border-right: 2px solid var(--interactive-active) !important;
2022-04-02 09:56:03 +00:00
}
.top-border();
.left-border(@round);
2022-04-01 18:34:22 +00:00
}
}