0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-30 22:52:24 +01:00

Add color CSS vars for .alert-link (#36456)

* color css vars for .alert-link

* Update scss/mixins/_alert.scss

Co-authored-by: Mark Otto <otto@github.com>
This commit is contained in:
Vino Rodrigues 2022-10-04 04:47:51 +11:00 committed by GitHub
parent 1b3c38d2cd
commit 3b95c311ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,13 +3,14 @@
--#{$prefix}alert-color: #{$color}; --#{$prefix}alert-color: #{$color};
--#{$prefix}alert-bg: #{$background}; --#{$prefix}alert-bg: #{$background};
--#{$prefix}alert-border-color: #{$border}; --#{$prefix}alert-border-color: #{$border};
--#{$prefix}alert-link-color: #{shade-color($color, 20%)};
@if $enable-gradients { @if $enable-gradients {
background-image: var(--#{$prefix}gradient); background-image: var(--#{$prefix}gradient);
} }
.alert-link { .alert-link {
color: shade-color($color, 20%); color: var(--#{$prefix}alert-link-color);
} }
} }
// scss-docs-end alert-variant-mixin // scss-docs-end alert-variant-mixin