mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-01 01:21:49 +02:00
wip
This commit is contained in:
@@ -1,11 +1,30 @@
|
||||
// Re-assigned maps
|
||||
//
|
||||
// Placed here so that others can override the default Sass maps and see automatic updates to utilities and more.
|
||||
@function test-modify($value, $tint-value) {
|
||||
@if color-contrast($value) == $color-contrast-light {
|
||||
@return shade-color($value, $tint-value);
|
||||
}
|
||||
|
||||
@return tint-color($value, $tint-value);
|
||||
}
|
||||
|
||||
// scss-docs-start theme-colors-rgb
|
||||
$theme-colors-rgb: map-loop($theme-colors, to-rgb, "$value") !default;
|
||||
// scss-docs-end theme-colors-rgb
|
||||
|
||||
// scss-docs-start theme-colors-rgb
|
||||
$on-theme-colors: map-loop($theme-colors, color-contrast, "$value") !default;
|
||||
// scss-docs-end theme-colors-rgb
|
||||
|
||||
// scss-docs-start theme-colors-rgb
|
||||
$theme-colors-hover: map-loop($theme-colors, test-modify, "$value", 15%) !default;
|
||||
// scss-docs-end theme-colors-rgb
|
||||
|
||||
// scss-docs-start theme-colors-rgb
|
||||
$theme-colors-active: map-loop($theme-colors, test-modify, "$value", 20%) !default;
|
||||
// scss-docs-end theme-colors-rgb
|
||||
|
||||
// scss-docs-start theme-text-map
|
||||
$theme-colors-text: (
|
||||
"primary": $primary-text-emphasis,
|
||||
@@ -46,6 +65,9 @@ $theme-colors-border-subtle: (
|
||||
// scss-docs-end theme-border-subtle-map
|
||||
|
||||
$theme-colors-dark: null !default;
|
||||
$on-theme-colors-dark: null !default;
|
||||
$theme-colors-hover-dark: null !default;
|
||||
$theme-colors-active-dark: null !default;
|
||||
$theme-colors-rgb-dark: null !default;
|
||||
$theme-colors-text-dark: null !default;
|
||||
$theme-colors-bg-subtle-dark: null !default;
|
||||
@@ -69,6 +91,18 @@ $theme-colors-border-subtle-dark: null !default;
|
||||
$theme-colors-rgb-dark: map-loop($theme-colors-dark, to-rgb, "$value") !default;
|
||||
// scss-docs-end theme-colors-rgb-dark
|
||||
|
||||
// scss-docs-start theme-colors-rgb
|
||||
$on-theme-colors-dark: map-loop($theme-colors-dark, color-contrast, "$value") !default;
|
||||
// scss-docs-end theme-colors-rgb
|
||||
|
||||
// scss-docs-start theme-colors-rgb
|
||||
$theme-colors-hover-dark: map-loop($theme-colors-dark, test-modify, "$value", 15%) !default;
|
||||
// scss-docs-end theme-colors-rgb
|
||||
|
||||
// scss-docs-start theme-colors-rgb
|
||||
$theme-colors-active-dark: map-loop($theme-colors-dark, test-modify, "$value", 20%) !default;
|
||||
// scss-docs-end theme-colors-rgb
|
||||
|
||||
// scss-docs-start theme-text-dark-map
|
||||
$theme-colors-text-dark: (
|
||||
"primary": $primary-text-emphasis-dark,
|
||||
|
Reference in New Issue
Block a user