Skip to content

Commit 384275f

Browse files
ianmeighnickmoreton
authored andcommitted
Refactor sccs selector to use variable interpolation
1 parent bb740d1 commit 384275f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tbx/static_src/sass/components/_featured-services.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@use 'config' as *;
22

33
.featured-services {
4+
$root: &;
45
&__header {
56
margin-bottom: $spacer-medium;
67
}
@@ -11,13 +12,13 @@
1112
flex-wrap: wrap;
1213

1314
@include media-query(medium) {
14-
> * {
15+
#{$root}__card {
1516
flex: 1 1 40%;
1617
}
1718
}
1819

1920
@include media-query(x-large) {
20-
> * {
21+
#{$root}__card {
2122
flex: 1 1 20%;
2223
min-width: 20%;
2324
}

0 commit comments

Comments
 (0)