Skip to content

Commit 9b0d239

Browse files
committed
Replace hardcoded opacity with CSS variable and refactor nested SCSS selectors for better maintainability
1 parent eda3f82 commit 9b0d239

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

‎apps/editor/src/views/panel/frontend/components/Layout/Footer/Footer.module.scss‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.footer {
2-
$self: &;
32
--button-size: 24px;
43
position: relative;
54
z-index: -1; // Makes context menu of a preset appear above
@@ -26,7 +25,7 @@
2625
var(--transition-timing-function);
2726

2827
&--dimmed {
29-
opacity: 0.3;
28+
opacity: var(--dimmed-opacity);
3029

3130
&:hover {
3231
opacity: 1;
@@ -86,7 +85,6 @@
8685
}
8786

8887
&__action-button {
89-
$btn: &;
9088
display: flex;
9189
align-items: center;
9290
flex-shrink: 0;
@@ -106,16 +104,18 @@
106104

107105
&__text {
108106
display: inline;
109-
#{$btn}--compact & {
110-
display: none;
111-
}
107+
}
108+
109+
&--compact &__text {
110+
display: none;
112111
}
113112

114113
&__icon {
115114
display: none !important;
116-
#{$btn}--compact & {
117-
display: inline !important;
118-
}
115+
}
116+
117+
&--compact &__icon {
118+
display: inline !important;
119119
}
120120

121121
&--compact {

0 commit comments

Comments
 (0)