Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update theme to work on latest Discord #51

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 45 additions & 45 deletions src/base.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*
/*
* Yes, this codebase is near unreadable. Why?
* I designed this mainly as a test to see how viable avoidance of straight out class selectors would be.
* The codebase was never designed to be pretty, it was designed to require as little maintenance as possible.
*/

@import url('https://fonts.googleapis.com/css2?family=Karla:wght@400;500;600;700&display=swap');
@import url('https://mwittrien.github.io/BetterDiscordAddons/Themes/BlurpleRecolor/BlurpleRecolor.css');
@import url('https://discord-custom-covers.github.io/usrbg/dist/usrbg.css');
/* @import url('https://discord-custom-covers.github.io/usrbg/dist/usrbg.css'); */

button {
--accentcolor: var(--accent-alt);
Expand Down Expand Up @@ -139,7 +139,7 @@ div[class*="typeWindows-"]::after {

/* Guilds */

nav[class*="guilds-"] {
nav[class*="guilds_"] {
background: transparent;
}
ul[data-list-id='guildsnav'] {
Expand All @@ -159,8 +159,8 @@ ul[data-list-id='guildsnav']>div[dir] {
padding-top: 18px;
}

ul[data-list-id='guildsnav'] [class^="pill-"],
ul[data-list-id='guildsnav'] [class^="pill-"]>div {
ul[data-list-id='guildsnav'] [class^="pill_"],
ul[data-list-id='guildsnav'] [class^="pill_"]>div {
height: 40px !important;
}

Expand All @@ -169,17 +169,17 @@ ul[id^="folder-items-"] {
height: auto !important;
}

ul[data-list-id='guildsnav'] [class^="pill-"] span {
ul[data-list-id='guildsnav'] [class^="pill_"] span {
width: 10px;
margin-left: -5px;
border-radius: 20px;
}

[data-list-id='guildsnav'] [class^="pill-"] span[style^="opacity: 1; height: 40"] {
[data-list-id='guildsnav'] [class^="pill_"] span[style^="opacity: 1; height: 40"] {
--header-primary: rgba(var(--accent), 1);
}

span[class^="expandedFolderBackground-"] {
span[class^="expandedFolderBackground_"] {
--background-secondary: rgba(var(--md-black), 0.25);
border-radius: 14px;
width: 40px;
Expand All @@ -197,7 +197,7 @@ div[data-list-item-id="guildsnav___home"] {
background: var(--home-image) top center/110% no-repeat;
}

div[class^="unreadMentionsIndicatorBottom-"] {
div[class^="unreadMentionsIndicatorBottom_"] {
bottom: 70px;
}

Expand All @@ -224,18 +224,18 @@ div[data-list-item-id="guildsnav___guild-discover-button"]:hover {

/* Sidebar */

.platform-win [class^="sidebar-"] {
.platform-win [class^="sidebar_"] {
border-radius: 0;
background-color: transparent;
}

div[class^="sidebar-"] nav,
div[class^="sidebar_"] nav,
#private-channels {
background: var(--background-secondary) !important;
--background-tertiary: rgba(var(--md-black), 0.35);
}

div[class^="sidebar-"]>nav>div[class^="searchBar"] {
div[class^="sidebar_"]>nav>div[class^="searchBar"] {
height: 54px;
}

Expand All @@ -248,24 +248,24 @@ div[class^="sidebar-"]>nav>div[class^="searchBar"] {
background: rgb(var(--md-black), 0.9);
}

div[data-list-id^="members-"][class*="scrollerBase-"] {
div[data-list-id^="members-"][class*="scrollerBase_"] {
background: transparent;
}

div[data-list-id^="members-"] [class*="placeholder"] {
--backgorund-primary: var(--text-normal);
--background-primary: var(--text-normal);
}

div[class^='nowPlayingColumn'] {
--background-secondary: transparent;
--background-primary: rgba(var(--md-black), 0.5);
--background-modifier-hover: rgba(var(--dm-white), 0.075);
}
div[class^="members-"] div[class^="member-"] {
div[class^="members_"] div[class^="member_"] {
background-color: transparent;
}

#channels div[class^="unread-"] {
#channels div[class^="unread_"] {
--interactive-active: rgba(var(--accent), 1);
}

Expand Down Expand Up @@ -294,39 +294,39 @@ body {
--background-secondary: transparent;
}

#app-mount>div[class^="appDevToolsWrapper-"] {
#app-mount>div[class^="appDevToolsWrapper_"] {
--background-primary: transparent;
--background-tertiary: transparent;
--background-secondary: rgba(var(--md-black), 0.7);
background-color: rgba(var(--md-black), 0.4);
}
div[class^="notAppAsidePanel-"]>div[class^="app-"]>div[class^="app-"],
div[class^="app-"]>div[class^="bg-"] {
div[class^="notAppAsidePanel_"]>div[class^="app_"]>div[class^="app_"],
div[class^="app_"]>div[class^="bg_"] {
background-color: transparent;
}
div[class*="baseLayer-"]>div[class^="container-"] {
div[class*="baseLayer_"]>div[class^="container_"] {
background-color: rgb(var(--md-black), 0.4);
}

nav+div [class^='sidebar-'],
nav+div[class^='base-'] {
nav+div [class^='sidebar_'],
nav+div[class^='base_'] {
overflow: visible !important;
position: relative;
max-width: calc(100% - 72px);
}

nav+div[class^='base-'] > div[class^="notice"] {
nav+div[class^='base_'] > div[class^="notice"] {
border-radius: 0;
}

div[class^='base-']>div,
section[class*="themed-"] {
div[class^='base_']>div,
section[class*="themed_"] {
--background-secondary: rgba(var(--md-black), 0.7);
--background-tertiary: rgba(var(--dm-white), 0.05);
--background-primary: rgba(var(--md-black), 0.8);
}

#app-mount>div:not([class^="appDevToolsWrapper-"]),
#app-mount>div:not([class^="appDevToolsWrapper_"]),
.autocomplete-1vrmpx {
--background-primary: var(--background-solid);
--background-secondary: var(--background-solid-dark);
Expand All @@ -337,7 +337,7 @@ section[class*="themed-"] {

/* Header */

section[class*="themed-"] {
section[class*="themed_"] {
height: 54px;
box-shadow: var(--elevation-low);
background-color: rgb(var(--md-black), 0.925) !important;
Expand All @@ -348,8 +348,8 @@ section>div>a[href*="support.discord.com"] {
display: none;
}

section[class*="themed-"]::before,
section[class*="themed-"] ::after {
section[class*="themed_"]::before,
section[class*="themed_"] ::after {
content: none;
}

Expand All @@ -368,21 +368,21 @@ section div[class^="toolbar"]>div[role] svg {
width: 22px;
}

section div[class^="toolbar"]>div[role][class*="selected-"] {
section div[class^="toolbar"]>div[role][class*="selected_"] {
background-color: rgba(var(--dm-white), 0.1);
}


/* Panels */

div[class^='sidebar-']>section {
div[class^='sidebar_']>section {
--background-primary: rgba(var(--dm-white), 0.07);
--background-secondary: rgba(var(--dm-white), 0.1);
--background-secondary-alt: rgba(var(--md-black), 0.95);
margin-bottom: 70px;
}

div[class^='sidebar-']>section>div:last-child {
div[class^='sidebar_']>section>div:last-child {
background-color: var(--background-secondary-alt);
box-sizing: border-box;
height: 70px;
Expand All @@ -392,7 +392,7 @@ div[class^='sidebar-']>section>div:last-child {
left: -72px;
bottom: 0;
}
div[class^="sidebar-"]>section>div:last-child [class^="avatarWrapper-"] {
div[class^="sidebar_"]>section>div:last-child [class^="avatarWrapper_"] {
flex: 1;
}

Expand All @@ -404,7 +404,7 @@ div[class^='chat'] {
background: transparent;
}

div[class^="container-"][id^="chat-messages-"] {
li[class^="container_"]>div[id^="message_"]>div[id^="chat-messages-"] {
--background-modifier-hover: var(--background-solid-dark);
}

Expand All @@ -416,13 +416,13 @@ div[class^='chat'] main form::before {
content: none;
}

div[data-list-id="chat-messages"] {
ol[data-list-id="chat-messages"] {
--background-primary: transparent;
--background-secondary: rgba(var(--dm-white), 0.05);
--background-accent: rgba(var(--dm-white), 0.1);
}

div[class^="channelTextArea-"] {
div[class^="channelTextArea_"] {
--background-secondary: transparent;
box-shadow: inset 0 0 0 2px rgba(var(--dm-white), 0.1);
transition: 250ms ease;
Expand All @@ -431,36 +431,36 @@ div[class^="channelTextArea-"] {
border-radius: 5px;
}

div[id^="chat-messages-"]+div:not([id]):last-child {
li[id^="chat-messages-"]+div:not([id]):last-child {
height: 8px;
}

div[id^="chat-messages-"][class*="cozy-"] {
li[id^="chat-messages-"][class*="cozy-"] {
padding-left: calc(var(--avatar-size) * 2);
}

div[id^="chat-messages-"] {
li[id^="chat-messages-"] {
margin-left: 8px;
margin-right: 8px;
border-radius: 4px;
}

div[id^="chat-messages-"]>div[class^="buttonContainer-"] {
li[id^="chat-messages-"]>div[role^="article"]>div[class^="buttonContainer_"] {
transform: scale(.85);
top: 1px;
}

div[id^="chat-messages-"] {
li[id^="chat-messages-"] {
--background-primary: rgba(var(--md-black), 0.5);
}

div[id^="chat-messages-"]>div>[class^="avatar-"] {
li[id^="chat-messages-"]>div>[class^="avatar-"] {
margin-top: 6px;
width: var(--avatar-size);
height: var(--avatar-size);
}

div[id^="chat-messages-"][class*="cozy-"] div::before {
li[id^="chat-messages-"][class*="cozy-"] div::before {
--gutter: 13px;
}

Expand Down Expand Up @@ -585,7 +585,7 @@ div[class^="tooltip-"] {

/* Buttons */

button[class*="button-"][class*="color"],
button[class*="button_"][class*="color"],
.bd-button {
--vaccentcolor: var(--accent-alt);
}
Expand All @@ -606,7 +606,7 @@ div[role="menuitem"]:active {
}


/* Depreceated Components */
/* Depreciated Components */


/* These use hardcoded colors, no need to bother with strange selectors */
Expand Down