Skip to content

Commit 42fca70

Browse files
committed
feat: Update opacity utilities to match new opacity settings
1 parent 74a8fec commit 42fca70

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed
Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,23 @@
11
/* ------------------------------------ *\
2-
#VISUALLY HIDDEN UTILITIES
2+
OPACITY UTILITIES
3+
see `_settings-opacity.scss`
34
\* ------------------------------------ */
45

56
@import '@bolt/core';
67

7-
$bolt-opacity-props: (0, .25, .50, .75, 1);
8-
98
@mixin bolt-opacity-utils($breakpoint: null) {
10-
@each $value in $bolt-opacity-props {
11-
$name: $value * 100;
9+
@each $name, $value in $bolt-opacities {
1210
.u-bolt-opacity-#{$name}#{$breakpoint} {
13-
opacity: $value !important;
11+
@include bolt-opacity($name, $utility: true);
1412
}
1513
}
1614
}
1715

1816
@include bolt-opacity-utils;
1917

20-
// Loop over our breakpoints
2118
@each $breakpoint in $bolt-breakpoints {
2219
$breakpointName: nth($breakpoint, 1);
2320
@include bolt-mq($breakpointName) {
2421
@include bolt-opacity-utils(\@#{$breakpointName});
2522
}
2623
}
27-
28-
@include export-data('opacity.bolt.json', $bolt-opacity-props);

0 commit comments

Comments
 (0)