Skip to content

Commit

Permalink
Use short hands consistently across the theme (#212)
Browse files Browse the repository at this point in the history
* 2

* var(--text-normal) now shorthand

* ok discord I get it

* Update friends.scss

* Update variables.scss

* Revert "Merge branch 'master' into pls-ignore-unless-nyx-or-leo"

This reverts commit fcc10c4, reversing
changes made to 8157424.
  • Loading branch information
BabyBoySnow authored and untuned committed Oct 16, 2024
1 parent aaa3091 commit f6d7bdf
Show file tree
Hide file tree
Showing 34 changed files with 82 additions and 77 deletions.
2 changes: 1 addition & 1 deletion lib/selectors/selectorPlaceholders.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5617,4 +5617,4 @@ pre {
}
.tile_b5b752 {
@extend %nitroTrial !optional;
}
}
4 changes: 2 additions & 2 deletions src/app/titlebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
margin: 0;
padding-top: 2px;
padding-bottom: 2px;
background: rgba(0, 0, 0, calc(#{cv('bg.app.shading')} * 0.6));
box-shadow: 0 0 20px rgba(0, 0, 0, calc(#{cv('bg.app.shading')} * 0.6));
background: rgba(0, 0, 0, calc($bg-shading * 0.6));
box-shadow: 0 0 20px rgba(0, 0, 0, calc($bg-shading * 0.6));
> %titlebarWordmark {
position: static;
margin-right: auto;
Expand Down
2 changes: 1 addition & 1 deletion src/channels/channels.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* CHANNELS */
%channelsSidebar {
width: cv('channels-width');
background: rgba(0, 0, 0, calc(#{cv('bg.app.shading')} * 0.3));
background: rgba(0, 0, 0, calc($bg-shading * 0.3));
%platformWin & {
border-radius: 0;
}
Expand Down
2 changes: 1 addition & 1 deletion src/channels/panels.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
%panels {
background: transparent;
> :first-child {
box-shadow: 0 -2px 10px rgba(0, 0, 0, calc(#{cv('bg.app.shading')} * 0.3));
box-shadow: 0 -2px 10px rgba(0, 0, 0, calc($bg-shading * 0.3));
}
}
%themeDark %panel {
Expand Down
12 changes: 6 additions & 6 deletions src/channels/specialChannels.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*CUSTOMIZE CHANNELS*/

%customizeChannelsHeader {
background-color: rgba(0, 0, 0, calc(var(--background-shading) * 0.6)) !important;
background-color: rgba(0, 0, 0, calc($bg-shading * 0.6)) !important;
}
%customizeChannels {
background-color: rgba(0, 0, 0, calc(var(--background-shading) * 0.5)) !important;
background-color: rgba(0, 0, 0, calc($bg-shading * 0.5)) !important;
}

/*header*/
Expand Down Expand Up @@ -54,10 +54,10 @@
}

%browseChannelsRow {
background-color: rgba(0, 0, 0, calc(var(--background-shading) * 0.4));
background-color: rgba(0, 0, 0, calc($bg-shading * 0.4));
&:hover {
&:not(%browseChannelsDisabled) {
background-color: rgba(0, 0, 0, calc(var(--background-shading) * 0.6));
background-color: rgba(0, 0, 0, calc($bg-shading * 0.6));
}
}
}
Expand Down Expand Up @@ -111,7 +111,7 @@
%serverGuideAction,
%serverGuideSidebarCard,
%serverGuideRow {
background: rgba(0, 0, 0, calc(var(--background-shading) * 0.4));
background: rgba(0, 0, 0, calc($bg-shading * 0.4));
}
%serverGuideAction:hover {
background: $hover-color;
Expand Down Expand Up @@ -140,7 +140,7 @@
}
/*Cases where we get taken to channels*/
%serverGuideChannelHintBanner {
background: rgba(0, 0, 0, calc(var(--background-shading) * 0.4));
background: rgba(0, 0, 0, calc($bg-shading * 0.4));
}
%serverGuideChannelHintIcon {
background: $main-color;
Expand Down
8 changes: 4 additions & 4 deletions src/chat/call.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* PRIVATE CALL */
%callWrapper {
background: rgba(0, 0, 0, calc(var(--background-shading) * 0.8));
background: rgba(0, 0, 0, calc($bg-shading * 0.8));
&%callMinimum {
background: rgba(0, 0, 0, calc(var(--background-shading) * 0.8));
background: rgba(0, 0, 0, calc($bg-shading * 0.8));
}
}
%callContainer {
Expand All @@ -11,7 +11,7 @@

// VIDEO STREAM
%callTile {
background-color: rgba(0, 0, 0, calc(var(--background-shading) * 0.7));
background-color: rgba(0, 0, 0, calc($bg-shading * 0.7));
}
%callInviteButton {
background-color: $main-color;
Expand Down Expand Up @@ -52,7 +52,7 @@
}

%streamStillRunning {
background-color: rgba(0, 0, 0, calc(var(--background-shading) * 0.7));
background-color: rgba(0, 0, 0, calc($bg-shading * 0.7));
}

// ACTION BUTTON
Expand Down
2 changes: 1 addition & 1 deletion src/chat/chat.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}
%chatContent,
%chatResize {
background: rgba(0, 0, 0, calc(#{cv('bg.app.shading')} * 0.5));
background: rgba(0, 0, 0, calc($bg-shading * 0.5));
}
%chat {
// CONTENT
Expand Down
8 changes: 4 additions & 4 deletions src/chat/stageCall.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

// STAGE
%stageContainer {
background: rgba(0, 0, 0, calc(#{cv('bg.app.shading')} * 0.5));
background: rgba(0, 0, 0, calc($bg-shading * 0.5));
}
%stageCallContainer,
%stageScroller {
Expand Down Expand Up @@ -63,9 +63,9 @@
}
}
%stageOptionContainer {
background: rgba(0, 0, 0, calc(var(--background-shading) * 0.3));
background: rgba(0, 0, 0, calc($bg-shading * 0.3));
&:hover {
background: rgba(0, 0, 0, calc(var(--background-shading) * 0.6));
background: rgba(0, 0, 0, calc($bg-shading * 0.6));
}
}
%stageLeaveButton {
Expand Down Expand Up @@ -99,7 +99,7 @@

// REQUESTS
%stageRequestContainer {
background-color: rgba(0, 0, 0, calc(var(--background-shading) * 0.6));
background-color: rgba(0, 0, 0, calc($bg-shading * 0.6));
}
%stageIconBigBackground {
background-color: $main-color;
Expand Down
6 changes: 3 additions & 3 deletions src/fixespt2.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ div.popoutList_da8701.phoneFieldPopout_ff761b.elevationBorderLow_ff8688 {

// Security keys list https://discord.com/channels/212324635356692500/858733936800956427/1270769660039663636
div.credentialList_eaef52 {
background-color: rgba(0, 0, 0, calc(var(--background-shading) * 0.4));
background-color: rgba(0, 0, 0, calc($bg-shading * 0.4));
border-radius: 4px;
}
div.name_d808b0 {
color: var(--text-normal);
color: $text-normal;
}
button.button_dd4f85.lookBlank_dd4f85.colorTransparent_dd4f85.sizeIcon_dd4f85.grow_dd4f85 {
color: var(--text-normal);
color: $text-normal;
}
div.credentialItem_eaef52.container_d808b0 {
border-radius: 0px;
Expand Down
2 changes: 1 addition & 1 deletion src/general/input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
padding: 2px;
}
%input {
color: var(--text-normal);
color: $text-normal;
background-color: hsla(0, 0%, 100%, 0.07);
border: none;
box-shadow: 0 0 0 2px hsla(0, 0%, 100%, 0.09);
Expand Down
2 changes: 1 addition & 1 deletion src/general/scrollbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
%friendsTable {
%scroller {
&::-webkit-scrollbar-track-piece {
background-color: rgba(0, 0, 0, calc(var(--background-shading) * 0.3)) !important;
background-color: rgba(0, 0, 0, calc($bg-shading * 0.3)) !important;
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/guilds/guilds.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
}
%guildsWrapper {
box-shadow: inset 0 0 20px rgba(0, 0, 0, calc(#{cv('bg.app.shading')} * 0.3));
box-shadow: inset 0 0 20px rgba(0, 0, 0, calc($bg-shading * 0.3));
}

// HOME BUTTON
Expand Down Expand Up @@ -144,5 +144,5 @@

// FOOTER - currently only in experiments
%guildsFooter {
background: rgba(0, 0, 0, calc(#{cv('bg.app.shading')} * 0.3));
background: rgba(0, 0, 0, calc($bg-shading * 0.3));
}
8 changes: 4 additions & 4 deletions src/headerBar/headerBar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
%base {
%headerBar {
height: 48px;
background: rgba(0, 0, 0, calc(#{cv('bg.app.shading')} * 0.6));
box-shadow: 0 0 10px rgba(0, 0, 0, calc(#{cv('bg.app.shading')} * 0.6));
background: rgba(0, 0, 0, calc($bg-shading * 0.6));
box-shadow: 0 0 10px rgba(0, 0, 0, calc($bg-shading * 0.6));
color: hsla(0, 0%, 100%, 0.5);
}
%threadHeaderBar {
background: rgba(0, 0, 0, calc(#{cv('bg.app.shading')} * 0.6));
box-shadow: 0 0 10px rgba(0, 0, 0, calc(#{cv('bg.app.shading')} * 0.6));
background: rgba(0, 0, 0, calc($bg-shading * 0.6));
box-shadow: 0 0 10px rgba(0, 0, 0, calc($bg-shading * 0.6));
color: hsla(0, 0%, 100%, 0.5);
}
}
Expand Down
8 changes: 4 additions & 4 deletions src/home/friends.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

// FRIENDS COLUMN
%friendsColumn {
background: rgba(0, 0, 0, calc(var(--background-shading) * 0.4));
background: rgba(0, 0, 0, calc($bg-shading * 0.4));
}
%friendsSearch {
background-color: hsla(0, 0%, 100%, 0.07);
Expand Down Expand Up @@ -117,7 +117,7 @@

// NOW PLAYING
%nowPlayingColumn {
background-color: rgba(0, 0, 0, calc(var(--background-shading) * 0.6));
background-color: rgba(0, 0, 0, calc($bg-shading * 0.6));
}
%nowPlayingColumnContainer {
background-color: transparent;
Expand Down Expand Up @@ -166,8 +166,8 @@
background-color: hsla(0, 0%, 0%, 0.4);
}
%promotedQuestPill {
background-color: rgba(0, 0, 0, calc(var(--background-shading) * 0.8));
color: var(--text-normal);
background-color: rgba(0, 0, 0, calc($bg-shading * 0.8));
color: $text-normal;
}

// DM USER PROFILE
Expand Down
4 changes: 2 additions & 2 deletions src/home/nitro.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
}
%nitroScroller,
%nitroPremiumScroller {
background-color: rgba(0, 0, 0, calc(#{cv('bg.app.shading')} * 0.5));
background-color: rgba(0, 0, 0, calc($bg-shading * 0.5));
right: 0%;
transition: all 0.5s ease-in-out;
&:has(+ %nitroPerksScroller%nitroPerksScrollerOpen) {
Expand Down Expand Up @@ -32,7 +32,7 @@

// PERKS PAGE
%nitroPerksScroller {
background-color: rgba(0, 0, 0, calc(var(--background-shading) * 0.6));
background-color: rgba(0, 0, 0, calc($bg-shading * 0.6));
transition: all 0.5s ease-in-out;
}
%nitroPerksBackButton {
Expand Down
2 changes: 1 addition & 1 deletion src/home/requests.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
}
/*was it spam*/
%messageReqSpamCheck {
background: rgba(0, 0, 0, calc(var(--background-shading) * 0.3));
background: rgba(0, 0, 0, calc($bg-shading * 0.3));
}
2 changes: 1 addition & 1 deletion src/injectors/bd/plugins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ div#magane div.stickerWindow div.packs-toolbar {
#MemberCount {
background: transparent;
h3 {
color: var(--text-normal);
color: $text-normal;
padding: 12px 0;
flex-direction: column;
font-size: 11px;
Expand Down
2 changes: 1 addition & 1 deletion src/injectors/ven/plugins.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*Shiki code blocks*/
.shiki-plain {
background-color: rgba(0, 0, 0, calc(var(--background-shading) * 0.2)) !important;
background-color: rgba(0, 0, 0, calc($bg-shading * 0.2)) !important;
}

.shiki-container {
Expand Down
4 changes: 2 additions & 2 deletions src/injectors/ven/venSettings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
// vencord quick action pills
.vc-settings-quickActions-pill {
background: rgba(0, 0, 0, 0.4);
color: var(--text-normal);
color: $text-normal;
border: 1px solid $main-color;
transition: all 0.5s ease-in-out;
}
.vc-settings-quickActions-pill:hover {
background: $hover-color;
color: var(--text-normal);
color: $text-normal;
border: transparent;
}
4 changes: 2 additions & 2 deletions src/members/members.scss
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,10 @@
}
// MEMBERS ACTIVITY SECTION (as opposed to just the text under members)
%memberActivityContainer {
background: rgba(0, 0, 0, calc(var(--background-shading) * 0.4));
background: rgba(0, 0, 0, calc($bg-shading * 0.4));
border: 2px solid transparent;
&:hover {
background: rgba(0, 0, 0, calc(var(--background-shading) * 0.4));
background: rgba(0, 0, 0, calc($bg-shading * 0.4));
border: 2px solid $hover-color;
}
}
2 changes: 1 addition & 1 deletion src/messages/message.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

// CONTENT
%messageContent {
color: var(--text-normal);
color: $text-normal;
}
%messageSystemContainer {
color: hsla(0, 0%, 100%, 0.5);
Expand Down
2 changes: 1 addition & 1 deletion src/messages/poll.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%poll {
background: rgba(0, 0, 0, calc(var(--background-shading) * 0.4));
background: rgba(0, 0, 0, calc($bg-shading * 0.4));
}
/* selection */
%pollAnswerSelectionIcon %pollRadioForeground {
Expand Down
6 changes: 3 additions & 3 deletions src/modals/otherModals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
background: rgba(0, 0, 0, 0.4);
}
%activityTag {
background-color: rgba(0, 0, 0, calc(var(--background-shading) * 0.5));
background-color: rgba(0, 0, 0, calc($bg-shading * 0.5));
}
%activityItem {
background: rgba(0, 0, 0, 0.4);
Expand Down Expand Up @@ -197,7 +197,7 @@
}
}
%soundboardHint {
background: rgba(0, 0, 0, calc(var(--background-shading) * 0.3));
background: rgba(0, 0, 0, calc($bg-shading * 0.3));
}
}

Expand Down Expand Up @@ -252,7 +252,7 @@
}
%webhookEmojiRow {
background-color: $main-color;
color: var(--text-normal) !important;
color: $text-normal !important;
}
%webhookBackground:after {
background: var(--background-overlay);
Expand Down
10 changes: 5 additions & 5 deletions src/pages/appDirectory.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,27 @@

// HOME PAGE
%directoryCategory {
background: rgba(0, 0, 0, calc(var(--background-shading) * 0.4));
background: rgba(0, 0, 0, calc($bg-shading * 0.4));
&:hover {
background: $hover-color;
}
}
%directoryCard,
%directoryNewToApps {
background: rgba(0, 0, 0, calc(var(--background-shading) * 0.4));
background: rgba(0, 0, 0, calc($bg-shading * 0.4));
}
%directoryListCard {
background: rgba(0, 0, 0, calc(var(--background-shading) * 0.4));
background: rgba(0, 0, 0, calc($bg-shading * 0.4));
&%directoryCardClickable:hover {
background-color: rgba(0, 0, 0, calc(var(--background-shading) * 0.6));
background-color: rgba(0, 0, 0, calc($bg-shading * 0.6));
color: #fff;
%textMediumNormal {
color: #fff;
}
}
}
%directoryFooter {
background: rgba(0, 0, 0, calc(var(--background-shading) * 0.4));
background: rgba(0, 0, 0, calc($bg-shading * 0.4));
}

// SEARCH
Expand Down
Loading

0 comments on commit f6d7bdf

Please sign in to comment.