diskort/src/style.less

242 lines
5.0 KiB
Plaintext
Raw Normal View History

2022-04-10 11:14:51 +00:00
.round { .radius(@round); }
.rounder { .radius(@rounder); }
2022-03-24 16:19:00 +00:00
2022-04-10 11:14:51 +00:00
// Space between sidebar and chat
div[class^="sidebar-"] {
margin-right: @div-width;
}
// Old-school
div[class^="repliedMessage-"] {
&::before {
margin: 0;
border: none;
width: 4px;
border-radius: 2px;
background: var(--interactive-muted);
left: 0; right: 100%;
top: 0; bottom: 0;
}
2022-04-24 08:34:07 +00:00
& > :first-child {
margin-left: 16px;
}
}
div[class^="role-"] {
&:extend(.rounder);
padding: 0;
border-width: 2px;
border-style: solid;
2022-04-10 11:14:51 +00:00
}
2022-04-24 08:34:07 +00:00
article[class^="embed"] {
2022-04-10 11:14:51 +00:00
.left-border(3px);
max-width: unset;
background: unset;
}
2022-03-24 16:19:00 +00:00
2022-04-10 11:14:51 +00:00
// Round
2022-03-24 16:19:00 +00:00
// UI parts
li[class^="channel-"],
[class^="avatar-"],
[role="dialog"],
div[class^="menu-"] [role="menuitem"],
2022-03-24 16:19:00 +00:00
div[class^="colorPicker"] div div[class^="saturation"] div,
#channels ul li div > div[class^="content-"],
// Input
2022-04-02 08:27:22 +00:00
div[class^="searchBox-"],
2022-04-09 08:14:13 +00:00
[class*="input"],
2022-03-24 16:19:00 +00:00
input[class^="inputDefault-"],
div[class*="TextArea"],
2022-04-08 18:37:41 +00:00
textarea,
2022-04-10 11:14:51 +00:00
{ &:extend(.round); }
2022-03-24 16:19:00 +00:00
// Rounder
// Popouts
[class^="authBox"], // login
[role="menu"],
2022-03-24 16:19:00 +00:00
div[class*="popout"],
div[class*="Popout"],
div[class*="fullscreenOnMobile"],
div[class*="root"] div[class^="flex-"],
// UI parts
2022-04-11 17:05:34 +00:00
div[class^="chat-"],
2022-04-08 18:37:41 +00:00
div[class^="noticeRegion"] > div, // you have unsaved changes bottom bar
2022-04-02 09:01:45 +00:00
[class^="resultsGroup-"], // search
2022-03-24 16:19:00 +00:00
div[class^="auditLog-"],
div[class^="auditLog-"] > div,
div[class^="connectedAccount-"], // in profile
2022-03-24 16:19:00 +00:00
div[class^="profileBanner"],
div[class^="accountProfile"],
2022-04-09 08:14:13 +00:00
div[class^="quickswitcher-"] input,
2022-03-24 16:19:00 +00:00
div[class^="autocomplete-"], // input
div[class^="pictureInPicture-"],
div[class^="select-"],
2022-04-09 08:14:13 +00:00
div[class^="messagesWrapper-"] div:not([class*="Inner"]):not([class^="filename"]),
2022-03-29 16:11:13 +00:00
2022-04-02 09:01:45 +00:00
div[class^="layer-"] > div[class^="container-"],
2022-04-02 08:27:22 +00:00
div[class^="base-"] div[class^="content-"] > div:nth-child(2),
div[class^="guildList-"] div[class^="container-"],
2022-03-29 16:11:13 +00:00
div[class^="container"] > div,
div[class^="chat-"] > div[class^="content-"],
2022-07-30 17:57:11 +00:00
div.focusLock-2tveLW .wrapper-2bCXfR,
2022-04-10 11:14:51 +00:00
{ &:extend(.rounder); }
2022-03-24 16:19:00 +00:00
div[class^="auditLog"] {
div[class^="headerExpanded-"]
{ .bottom-border(); }
div[class^="changeDetails-"]
{ .top-border(); }
}
2022-03-24 16:19:00 +00:00
div[class^="messagesWrapper-"]
2022-04-09 08:14:13 +00:00
div[class^="message-"][class*="mentioned"]
2022-03-24 16:19:00 +00:00
{ .left-border(4px); }
2022-04-10 11:14:51 +00:00
// no shadows
2022-03-24 16:19:00 +00:00
section, header,
div[class^="content-"]::before,
div[class^="tabBody-"]::before
2022-04-10 11:14:51 +00:00
{ box-shadow: unset !important; }
2022-03-24 16:19:00 +00:00
2022-04-02 09:01:45 +00:00
// Pins
div[class^="messageGroupWrapper-"] {
border: none;
2022-04-10 11:14:51 +00:00
background: unset;
2022-04-02 09:01:45 +00:00
}
2022-03-24 16:19:00 +00:00
// Redesigned text input
div[class^="attachedBars-"],
div[class^="messagesWrapper-"] div[class*="Bar-"]:not([class^="newMessagesBar-"]) {
bottom: 16px;
padding: 0;
}
div[class^="attachedBars-"]
{ position: relative; }
div[class^="channelTextArea-"] {
2022-04-20 18:30:40 +00:00
&[class*="channelTextAreaDisabled-"]
button[class^="attachButton-"] {
display: none;
}
2022-03-24 16:19:00 +00:00
& > div[class^="scrollableContainer-"] {
background-color: unset;
opacity: 1;
2022-03-24 16:19:00 +00:00
button[class^="attachButton-"],
div[class^="textArea-"],
div[class^="buttons-"] {
background-color: var(--background-secondary);
border-radius: @roundest !important;
margin: 0;
}
& > div[class^="inner-"]
{ padding: 0; }
button[class^="attachButton-"] {
padding: 8px;
width: auto;
height: auto;
2022-04-20 18:30:40 +00:00
margin-right: 8px;
2022-03-24 16:19:00 +00:00
}
div[class^="textArea-"] {
2022-04-20 18:30:40 +00:00
&:not([class*="textAreaDisabled-"])
{ .right-border(); }
2022-03-24 16:19:00 +00:00
2022-04-01 17:05:53 +00:00
div > * { left: (@roundest / 2); }
2022-03-24 16:19:00 +00:00
}
div[class^="buttons-"] {
height: auto; // to match input height
& > * {
align-items: center; // center buttons
}
2022-03-24 16:19:00 +00:00
.left-border();
}
}
}
2022-04-10 11:14:51 +00:00
[role="menu"],
[role="dialog"]:not(.focusLock-2tveLW):not(#emoji-picker-tab-panel),
2022-07-30 17:57:11 +00:00
div[class^="focusLock-"] > div:not(.carouselModal-1eUFoq),
div.focusLock-2tveLW .wrapper-2bCXfR,
2022-04-09 08:14:13 +00:00
div[class^="channelHeader-"],
2022-04-10 11:14:51 +00:00
div[class^="layers-"] > div[class^="layer-"] div[class*="View-"],
2022-04-10 17:05:22 +00:00
div[class*="stickyHeader-"],
div.emojiPicker-6YCk8a,
div.header-1XpmZs,
div.popoutContainer-2wbmiM,
2022-04-10 11:14:51 +00:00
{
&:extend(.acrylic all);
2022-04-08 18:37:41 +00:00
}
.wrapper-1NNaWG::after {
display: none;
}
// 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); }
}
}
svg {
width: 16px;
height: 16px;
margin-left: 4px;
}
}
2022-04-20 18:48:15 +00:00
// new invite with splash style
2022-04-24 08:34:07 +00:00
div[id^="message-accessories-"] {
& > div[class^="messageAttachment-"] {
2022-04-20 18:48:15 +00:00
width: 100%;
2022-04-24 08:34:07 +00:00
}
& > div[class^="wrapper-"] {
position: relative;
div[class^="inviteSplash-"] {
position: absolute;
width: 100%;
height: 100%;
z-index: 0;
filter: brightness(50%);
& ~ * {
position: relative;
z-index: 1;
}
2022-04-20 18:48:15 +00:00
}
}
}
// Verified!
2022-08-07 10:39:11 +00:00
.vrf() when (@verifies = true) {
.verify('785219544364351499');
}
.vrf();