Skip to content

Commit a992b8c

Browse files
authored
fix: incorrect variable expansion (#351)
1 parent 996e6cd commit a992b8c

File tree

2 files changed

+25
-18
lines changed

2 files changed

+25
-18
lines changed

src/components/_chat.scss

+18-13
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,21 @@
22
// new message ruler
33
#---new-messages-bar {
44
span[class^="unreadPill"] {
5-
color: $crust;
5+
color: #{$crust};
66
}
77
}
88

99
// new message bar
1010
div[class^="newMessagesBar"] {
1111
button {
12-
color: $crust;
12+
color: #{$crust};
1313
}
1414
}
1515

1616
// reply bar
17-
[class^="attachedBars_"], [class^="stackedBars_"] {
18-
--background-secondary: $crust;
17+
[class^="attachedBars_"],
18+
[class^="stackedBars_"] {
19+
--background-secondary: #{$crust};
1920
}
2021

2122
// text input area
@@ -40,7 +41,9 @@
4041
}
4142
// Super reactions and beta badge
4243
div[class*="isBurstReactionPicker_"] {
43-
box-shadow: 0 0 0 2px $mauve, 0 0 16px $lavender;
44+
box-shadow:
45+
0 0 0 2px $mauve,
46+
0 0 16px $lavender;
4447
}
4548
div[class^="navButtonSuperReactActive"],
4649
div[class^="navButtonSuperReactActive"]:hover {
@@ -61,7 +64,9 @@
6164
}
6265
div[class*="isBurstReactionPicker"] {
6366
border: none;
64-
box-shadow: 0 0 0 2px $mauve, 0 0 16px $lavender;
67+
box-shadow:
68+
0 0 0 2px $mauve,
69+
0 0 16px $lavender;
6570
}
6671
// Voice messages play button
6772
div[class*="playButtonContainer_"] {
@@ -551,13 +556,13 @@ div[class*="giftCodeContainer"] [class*="tile"] {
551556
div[class*="chat_"] {
552557
div[class*="content_"][class*="container_"] {
553558
// customise
554-
--background-primary: $surface0;
555-
--background-secondary: $base; // dropdown menu
556-
--background-secondary-alt: $mantle; // roles
557-
--background-tertiary: $mantle;
558-
--input-background: $mantle;
559-
--white-500: $crust; // check icon
560-
559+
--background-primary: #{$surface0};
560+
--background-secondary: #{$base}; // dropdown menu
561+
--background-secondary-alt: #{$mantle}; // roles
562+
--background-tertiary: #{$mantle};
563+
--input-background: #{$mantle};
564+
--white-500: #{$crust}; // check icon
565+
561566
// channels
562567
div[class*="search_"] input::placeholder {
563568
color: $overlay1;

src/components/_popouts.scss

+7-5
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ div[class^="layerContainer"] [role="menu"] {
22
// make menu items readable when hovered
33
--brand-experiment-560: var(--brand-experiment-25a);
44
--brand-experiment-600: var(--brand-experiment);
5-
--white: $crust;
6-
--white-500: $crust;
5+
--white: #{$crust};
6+
--white-500: #{$crust};
77

88
// make active items have dark text
99
[class*="colorDefault"]:active:not([class*="hideInteraction_"]) {
@@ -232,9 +232,11 @@ section[class*="positionContainer_"] {
232232
}
233233

234234
> div[class^="focusLock"] > div[class^="root"] {
235-
box-shadow: 0 0 0 1px $surface0,
235+
box-shadow:
236+
0 0 0 1px $surface0,
236237
0 2px 10px 0 hsla(0, calc(var(--saturation-factor, 1) * 0%), 0%, 0.1);
237-
-webkit-box-shadow: 0 0 0 1px $surface0,
238+
-webkit-box-shadow:
239+
0 0 0 1px $surface0,
238240
0 2px 10px 0 hsla(0, calc(var(--saturation-factor, 1) * 0%), 0%, 0.1);
239241
}
240242

@@ -584,7 +586,7 @@ div[class*="userProfileOuter_"] {
584586
background: $brand;
585587
}
586588
div[class^="inner_"] {
587-
--input-background: $mantle;
589+
--input-background: #{$mantle};
588590
}
589591
}
590592

0 commit comments

Comments
 (0)