Skip to content

Commit

Permalink
remove redundant selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
KraXen72 committed Dec 7, 2023
1 parent 0d52810 commit bf3a19f
Show file tree
Hide file tree
Showing 10 changed files with 461 additions and 198 deletions.
3 changes: 2 additions & 1 deletion discord/base/_reset.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// hiding elements
%toolbar [href="https://support.discord.com"],
[aria-label="Send a gift"],
[class^="protip"] {
[class^="protip"],
%privateChannel a[data-list-item-id$="__shop"] {
display: none !important
}

2 changes: 1 addition & 1 deletion discord/components/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}

// markdown editing toolbar
%markdownEditToolbar, #slate-toolbar {
%chatToolbar, #slate-toolbar {
%buttonFilled {
background-color: transparent !important;
&:hover { background-color: rgba(255, 255, 255, 0.1) !important; }
Expand Down
2 changes: 1 addition & 1 deletion discord/dist/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion discord/dist/main.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions discord/layout/_channelList.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,12 @@
left: -3px !important;
}

// move y spacing in private channels to child's margin, so i can yeet shop tab
%privateChannel {
padding-top: 0;
padding-bottom: 0;
}
%privateChannelInteractive {
margin-top: 2px;
margin-bottom: 2px;
}
Loading

0 comments on commit bf3a19f

Please sign in to comment.