Skip to content

Commit

Permalink
remove some legacy
Browse files Browse the repository at this point in the history
  • Loading branch information
Leozard committed Feb 1, 2025
1 parent ca4f664 commit 8da8c8d
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 111 deletions.
11 changes: 7 additions & 4 deletions lib/selectors/selectorPlaceholders.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4378,6 +4378,9 @@ pre {
.iconWrapper__54b20 {
@extend %threadIconWrapper !optional;
}
.icon__54b20 {
@extend %threadIcon !optional;
}
.container__6764b {
@extend %threadPreview !optional;
}
Expand Down Expand Up @@ -5055,17 +5058,17 @@ pre {
.table_b4ec0b {
@extend %membersChannelTable !optional;
}
.newMembersNotice_acdcc0 {
@extend %membersChannelNotice !optional;
}
.memberRowContainer__71c22 {
@extend %membersChannelRowContainer !optional;
}
.button__71c22 {
@extend %membersChannelButton !optional;
}
.otherRoles__71c22 {
@extend %membersChannelRoleList !optional;
}
.pageButton_c15210 {
@extend %membersChannelPage !optional;
@extend %membersChannelOtherRoles !optional;
}
.optionBox_edf440 {
@extend %avatarOptionBox !optional;
Expand Down
25 changes: 8 additions & 17 deletions src/channels/channels.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,9 @@ html:not(%visualRefresh) %channelsSidebar:not(%channelsSidebarHidden) {
}

// CHANNEL CONTENT
%channelLink {
transition: all 0.15s ease-in-out;
}
%channelLink {
position: relative;
transition: all 0.15s ease-in-out;
&:before {
content: '';
position: absolute;
Expand All @@ -72,20 +70,13 @@ html:not(%visualRefresh) %channelsSidebar:not(%channelsSidebarHidden) {
z-index: -1;
border-radius: 4px;
}
%channelIcon {
width: 18px;
height: 18px;
margin-right: 3px;
color: var(--channel-color);
opacity: 1;
transition: all 0.15s ease-in-out;
> path {
opacity: 0.7;
}
> path:last-of-type {
opacity: 1;
}
}
}
%channelIcon {
width: 18px;
height: 18px;
margin-right: 3px;
color: var(--channel-color);
transition: all 0.15s ease-in-out;
}
%channelName {
color: var(--channel-color);
Expand Down
27 changes: 0 additions & 27 deletions src/channels/panels.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,33 +39,6 @@
}

// BUTTONS
button%panelButton {
width: 32px;
height: 32px;
opacity: 1;
> %buttonContents > svg {
@include bg($rep: no-repeat, $pos: center, $size: 18px);
color: #fff;
opacity: 0.5;
transition: all 0.1s ease-in-out;
> path[fill*='var(--interactive-normal)'] {
fill: #fff;
}
}
&:hover {
&%panelButtonEnabled {
background: transparent;
}
> %buttonContents > svg {
opacity: 0.7;
}
}
&%panelButtonDisabled {
> %buttonContents > svg {
opacity: 0.1;
}
}
}
%panelActionButtons {
grid-gap: 6px;
}
Expand Down
30 changes: 11 additions & 19 deletions src/channels/privateChannels.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
max-width: none;
}
%privateChannelInteractive {
position: relative;
position: relative;
color: var(--channel-color);
z-index: 1;
&:before {
content: '';
Expand All @@ -59,7 +60,6 @@
border-radius: 3px;
transition: all 0.15s ease-in-out;
z-index: -1;
pointer-events: none;
}
&:after {
content: '';
Expand All @@ -69,11 +69,9 @@
opacity: 0.9;
transition: all 0.3s ease-in-out;
z-index: -1;
pointer-events: none;
}
%privateChannelIcon,
%privateChannelName {
color: var(--channel-color);
font-size: 14px;
transition: all 0.15s ease-in-out;
overflow: hidden;
Expand All @@ -85,9 +83,6 @@
transition: all 0.15s ease-in-out;
}
}
%privateChannelCloseButton {
color: #fff;
}

// HOVER
&:hover {
Expand All @@ -99,12 +94,6 @@
%privateChannelName {
color: var(--channel-hovered);
}
%privateChannelCloseButton {
opacity: 0.3;
&:hover {
opacity: 0.7;
}
}
}

// SELECTED
Expand All @@ -131,12 +120,6 @@
color: #fff;
}
}
%privateChannelCloseButton {
opacity: 0.7;
&:hover {
opacity: 1;
}
}
}

// HIGHLIGHT
Expand All @@ -147,6 +130,15 @@
}
}

// CLOSE BUTTON
%privateChannelCloseButton {
color: var(--channel-color);
opacity: 1;
&:hover {
color: var(--channel-hovered);
}
}

// Activities popout
%privateChannelActivityContainer {
background: var(--background-overlay);
Expand Down
32 changes: 10 additions & 22 deletions src/channels/specialChannels.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,39 +61,27 @@
}
}
}

// MEMBERS LIST
/*main container*/
%membersChannelContainer {
background: var(--background-overlay);
border: 1px solid $main-color;
background: rgba(0, 0, 0, 0.4);
box-shadow: none;
}
/*table border*/
%membersChannelTable {
border-top: 1px solid $main-color;
}
/*user hover*/
%membersChannelRowContainer:hover td {
background: $hover-color;
%membersChannelNotice {
background-color: $main-color;
&:hover {
background-color: $hover-color;
}
}
/*user option buttons*/
%membersChannelButton {
background: $main-color;
color: #fff;
&:hover {
background: $hover-color;
}
&:nth-child(2) path ~ path,
&:nth-child(1) path {
fill: #fff;
}
}
/*roles*/
%membersChannelRoleList {
background: var(--background-overlay);
}
/*hover page button*/
%membersChannelPage > span {
color: #fff;
%membersChannelOtherRoles {
background: hsla(0, 0%, 100%, 0.1);
}

// NOT IN CHANNEL LIST
Expand Down
2 changes: 1 addition & 1 deletion src/chat/chat.scss
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ div[aria-checked='true'] %replyMentionButton {
}
%threadIconWrapper {
background-color: $main-color;
svg path {
path {
fill: #fff;
}
}
Expand Down
5 changes: 0 additions & 5 deletions src/general/checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,5 @@
&%checkboxChecked {
background-color: transparent !important;
border-color: $main-color !important;
> svg {
> path {
fill: #fff;
}
}
}
}
16 changes: 4 additions & 12 deletions src/general/switch.scss
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
/* SWITCH */
%switchContainer {
background-color: transparent !important;
&:before {
background-color: hsla(0, 0%, 100%, 0.15);
content: '';
position: absolute;
height: 100%;
width: 100%;
border-radius: inherit;
transition: all 0.1s ease-in-out;
}
&%switchChecked:before {
background-color: $main-color;
background-color: hsla(0, 0%, 100%, 0.15) !important;
transition: all 0.1s ease-in-out;
&%switchChecked {
background-color: $main-color !important;
}
path {
fill: $main-color;
Expand Down
2 changes: 1 addition & 1 deletion src/modals/eventModal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
%eventNewBadgeText {
color: #fff;
}
%eventIconContainer svg path {
%eventIconContainer path {
fill: $main-color;
}
%eventRSVPCount {
Expand Down
4 changes: 1 addition & 3 deletions src/settings/content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@
%themeDark {
%settingsCloseButton {
border-color: hsla(0, 0%, 100%, 0.4);
color: hsla(0, 0%, 100%, 0.6);
&:hover {
border-color: hsla(0, 0%, 100%, 0.6);
background-color: transparent;
}
> svg > path {
fill: hsla(0, 0%, 100%, 0.6);
}
}
%settingsCloseButtonKeybind {
color: hsla(0, 0%, 100%, 0.6);
Expand Down

0 comments on commit 8da8c8d

Please sign in to comment.