File tree Expand file tree Collapse file tree 3 files changed +23
-0
lines changed
Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 3737@import " mixins/sidebar-width" ; // TODO: refactor
3838@import " mixins/switches" ;
3939@import " mixins/table-row" ;
40+ @import " mixins/toasts" ;
4041@import " mixins/icon" ;
4142
4243// Skins
Original file line number Diff line number Diff line change 121121 margin-bottom : ($spacer / 8 );
122122 }
123123}
124+
125+ // Alternate styles
126+ //
127+ // Generate contextual modifier classes for colorizing the toast.
128+
129+ @include theme-variant () {
130+ .toast-#{$color } {
131+ @include toast-variant ($value );
132+ }
133+ }
134+
Original file line number Diff line number Diff line change 1+ @mixin toast-variant ($background ) {
2+ color : color-yiq ($background );
3+ background-color : $background ;
4+ border-color : darken ($background , 10% );
5+
6+ .toast-header {
7+ color : color-yiq ($background );
8+ background-color : darken ($background , 5% );
9+ border-color : darken ($background , 10% );
10+ }
11+ }
You can’t perform that action at this time.
0 commit comments