File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change 1
1
@use ' ../functions/color' as * ;
2
2
3
3
// Toast variant mixin
4
+ /*
5
+ The mixin includes toast `background` and `border` of a given `$color`.
6
+ */
4
7
// @mixin toast-variant($color: $dark-color) { // old spectre.css
5
- @mixin toast-variant ($name : ' dark' , $color : ' dark-color' ) {
8
+ @mixin toast-variant ($color : ' dark-color' ) {
9
+ // background: rgba($color, .95); // old spectre.css
10
+ background : color ($color , $alpha : 0.95 );
11
+ // border-color: $color; // old spectre.css
12
+ border-color : color ($color );
13
+ }
14
+
15
+ /*
16
+ The mixin includes an extension class of name prefixed with `toast-` with a given color name that includes a toast variant of the given `$color`.
17
+ */
18
+ @mixin toast-class-variant ($name : ' dark' , $color : ' dark-color' ) {
6
19
& .toast-#{$name } {
7
- // background: rgba($color, .95); // old spectre.css
8
- background : color ($color , $alpha : 0.95 );
9
- // border-color: $color; // old spectre.css
10
- border-color : color ($color );
20
+ @include toast-variant ($color );
11
21
}
12
22
}
You can’t perform that action at this time.
0 commit comments