Skip to content

Commit 237c26d

Browse files
committed
Refactor(css): sass fixes
1 parent ba9db3e commit 237c26d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/assets/scss/core/_dropdown.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "sass:math";
2+
13
// Menus https://www.google.com/design/spec/components/menus.html#menus-specs
24
// Dropdown buttons (mobile and desktop) https://www.google.com/design/spec/components/buttons.html#buttons-dropdown-buttons
35

@@ -90,7 +92,7 @@
9092
text-decoration: none;
9193

9294
font-size: .8125rem;
93-
border-radius: $border-radius / 2;
95+
border-radius: math.div($border-radius, 2);
9496
margin: 0 $bmd-dropdown-margin-y;
9597
@include transitions($fast-transition-time, $transition-linear);
9698

src/assets/scss/core/_togglebutton.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "sass:math";
2+
13
.togglebutton {
24
vertical-align: middle;
35
&, label, input, .toggle {
@@ -70,15 +72,15 @@
7072
// set bg when checked
7173
input[type=checkbox]:checked {
7274
+ .toggle {
73-
background-color: rgba($brand-primary, (70/100)); // Switch bg on
75+
background-color: rgba($brand-primary, (math.div(70,100))); // Switch bg on
7476
}
7577

7678
+ .toggle:after {
7779
border-color: $brand-primary; // Handle on
7880
}
7981

8082
+ .toggle:active:after {
81-
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba($brand-primary, (10/100)); // Ripple on
83+
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba($brand-primary, (math.div(10,100))); // Ripple on
8284
}
8385
}
8486
}

0 commit comments

Comments
 (0)