Skip to content

Commit 7fd8471

Browse files
committed
change sass to use BEM
1 parent 12d59e4 commit 7fd8471

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

styles/abstracts/_placeholders.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,10 @@
2323
fill: $light-button-hover-color;
2424
}
2525
}
26+
&--selected {
27+
background-color: $light-button-background-hover-color;
28+
& g {
29+
fill: $light-button-hover-color;
30+
}
31+
}
2632
}

styles/components/_toolbar.scss

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,14 @@
22
@extend %toolbar-button;
33
margin-right: #{15 / $base-font-size}rem;
44
&--selected {
5-
background-color: $light-button-background-hover-color;
6-
& g {
7-
fill: $light-button-hover-color;
8-
}
5+
@extend %toolbar-button--selected;
96
}
107
}
118

129
.toolbar__stop-button {
1310
@extend %toolbar-button;
1411
&--selected {
15-
background-color: $light-button-background-hover-color;
16-
& g {
17-
fill: $light-button-hover-color;
18-
}
12+
@extend %toolbar-button--selected;
1913
}
2014
}
2115

0 commit comments

Comments
 (0)