@@ -183,7 +183,7 @@ $_luminance-list: .0008 .001 .0011 .0013 .0015 .0017 .002 .0022 .0025 .0027 .003
183
183
// scss-docs-start alert-color-functions
184
184
@function alert-color-map ($color ) {
185
185
@return (
186
- " background " : shift-color ($color , $alert-bg-scale ),
186
+ " bg " : shift-color ($color , $alert-bg-scale ),
187
187
" border-color" : shift-color ($color , $alert-border-scale ),
188
188
" color" : shift-color ($color , $alert-color-scale ),
189
189
" link-color" : shade-color (shift-color ($color , $alert-color-scale ), 20% )
@@ -198,16 +198,16 @@ $_luminance-list: .0008 .001 .0011 .0013 .0015 .0017 .002 .0022 .0025 .0027 .003
198
198
199
199
@function btn-color-map ($background , $border-color ) {
200
200
@return (
201
- " background " : $background ,
201
+ " bg " : $background ,
202
202
" border-color" : $border-color ,
203
203
" color" : color-contrast ($background ),
204
- " hover-background " : btn-color ($background , $btn-hover-bg-shade-amount , $btn-hover-bg-tint-amount ),
204
+ " hover-bg " : btn-color ($background , $btn-hover-bg-shade-amount , $btn-hover-bg-tint-amount ),
205
205
" hover-border-color" : btn-color ($border-color , $btn-hover-border-shade-amount , $btn-hover-border-tint-amount ),
206
206
" hover-color" : color-contrast (btn-color ($background , $btn-hover-bg-shade-amount , $btn-hover-bg-tint-amount )),
207
- " active-background " : btn-color ($background , $btn-active-bg-shade-amount , $btn-active-bg-tint-amount ),
207
+ " active-bg " : btn-color ($background , $btn-active-bg-shade-amount , $btn-active-bg-tint-amount ),
208
208
" active-border-color" : btn-color ($border-color , $btn-active-border-shade-amount , $btn-active-border-tint-amount ),
209
209
" active-color" : color-contrast (btn-color ($border-color , $btn-active-border-shade-amount , $btn-active-border-tint-amount )),
210
- " disabled-background " : $background ,
210
+ " disabled-bg " : $background ,
211
211
" disabled-border-color" : $border-color ,
212
212
" disabled-color" : color-contrast ($background ),
213
213
" shadow" : rgba (mix ($background , $border-color , 15% ), .5 )
@@ -217,10 +217,10 @@ $_luminance-list: .0008 .001 .0011 .0013 .0015 .0017 .002 .0022 .0025 .0027 .003
217
217
@function btn-outline-color-map ($background ) {
218
218
@return (
219
219
" color" : $background ,
220
- " hover-background " : btn-color ($background , $btn-hover-bg-shade-amount , $btn-hover-bg-tint-amount ),
220
+ " hover-bg " : btn-color ($background , $btn-hover-bg-shade-amount , $btn-hover-bg-tint-amount ),
221
221
" hover-border-color" : btn-color ($background , $btn-hover-border-shade-amount , $btn-hover-border-tint-amount ),
222
222
" hover-color" : color-contrast (btn-color ($background , $btn-hover-bg-shade-amount , $btn-hover-bg-tint-amount )),
223
- " active-background " : btn-color ($background , $btn-active-bg-shade-amount , $btn-active-bg-tint-amount ),
223
+ " active-bg " : btn-color ($background , $btn-active-bg-shade-amount , $btn-active-bg-tint-amount ),
224
224
" active-border-color" : btn-color ($background , $btn-active-border-shade-amount , $btn-active-border-tint-amount ),
225
225
" active-color" : color-contrast (btn-color ($background , $btn-active-border-shade-amount , $btn-active-border-tint-amount )),
226
226
" disabled-color" : $background ,
@@ -232,15 +232,15 @@ $_luminance-list: .0008 .001 .0011 .0013 .0015 .0017 .002 .0022 .0025 .0027 .003
232
232
// scss-docs-start list-group-color-functions
233
233
@function list-group-color-map ($color ) {
234
234
@return (
235
- " background " : shift-color ($color , $list-group-item-bg-scale ),
236
- " background -hover" : shade-color ($color , 10% ),
235
+ " bg " : shift-color ($color , $list-group-item-bg-scale ),
236
+ " bg -hover" : shade-color ($color , 10% ),
237
237
" color" : shift-color ($color , $list-group-item-color-scale )
238
238
);
239
239
}
240
240
// scss-docs-end list-group-color-functions
241
241
242
242
// scss-docs-start table-color-functions
243
- @function table-color-map ($background ) {
243
+ @function table-color-map ($background , $body-bg : $body-bg ) {
244
244
$color : color-contrast (opaque ($body-bg , $background ));
245
245
$striped-bg : mix ($color , $background , percentage ($table-striped-bg-factor ));
246
246
$active-bg : mix ($color , $background , percentage ($table-active-bg-factor ));
0 commit comments