Apply theme to 5.3.8
This commit is contained in:
parent
f203f0c103
commit
be164cfe0a
930 changed files with 53160 additions and 42297 deletions
|
|
@ -12,6 +12,7 @@
|
|||
--#{$prefix}alert-border-color: transparent;
|
||||
--#{$prefix}alert-border: #{$alert-border-width} solid var(--#{$prefix}alert-border-color);
|
||||
--#{$prefix}alert-border-radius: #{$alert-border-radius};
|
||||
--#{$prefix}alert-link-color: inherit;
|
||||
// scss-docs-end alert-css-vars
|
||||
|
||||
position: relative;
|
||||
|
|
@ -32,6 +33,7 @@
|
|||
// Provide class for links that match alerts
|
||||
.alert-link {
|
||||
font-weight: $alert-link-font-weight;
|
||||
color: var(--#{$prefix}alert-link-color);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -54,18 +56,20 @@
|
|||
|
||||
|
||||
// scss-docs-start alert-modifiers
|
||||
// Generate contextual modifier classes for colorizing the alert.
|
||||
|
||||
// Generate contextual modifier classes for colorizing the alert
|
||||
//
|
||||
// Customization: upstream v5.3 colors alerts with the pale `-bg-subtle` /
|
||||
// `-border-subtle` / `-text-emphasis` color-mode variables. We keep the solid,
|
||||
// fully saturated alerts this fork has always used — the equivalent of the
|
||||
// v5.2 `$alert-bg-scale` / `$alert-border-scale` / `$alert-color-scale` all
|
||||
// being set to `0%`, which those (now deprecated and unread) variables no
|
||||
// longer control.
|
||||
@each $state, $value in $theme-colors {
|
||||
$alert-background: shift-color($value, $alert-bg-scale);
|
||||
$alert-border: shift-color($value, $alert-border-scale);
|
||||
$alert-color: shift-color($value, $alert-color-scale);
|
||||
|
||||
@if (contrast-ratio($alert-background, $alert-color) < $min-contrast-ratio) {
|
||||
$alert-color: mix($value, color-contrast($alert-background), abs($alert-color-scale));
|
||||
}
|
||||
.alert-#{$state} {
|
||||
@include alert-variant($alert-background, $alert-border, $alert-color);
|
||||
--#{$prefix}alert-color: #{color-contrast($value)};
|
||||
--#{$prefix}alert-bg: #{$value};
|
||||
--#{$prefix}alert-border-color: #{$value};
|
||||
--#{$prefix}alert-link-color: #{shade-color(color-contrast($value), 10%)};
|
||||
}
|
||||
}
|
||||
// scss-docs-end alert-modifiers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue