1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-29 16:19:53 +02:00

Convert alerts to CSS variables (#35401)

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
Mark Otto
2021-12-16 21:16:24 -08:00
committed by GitHub
parent 4a66f229ed
commit f729e4c7d1
4 changed files with 36 additions and 12 deletions

View File

@@ -1,8 +1,12 @@
// scss-docs-start alert-variant-mixin
@mixin alert-variant($background, $border, $color) {
color: $color;
@include gradient-bg($background);
border-color: $border;
--#{$variable-prefix}alert-color: #{$color};
--#{$variable-prefix}alert-bg: #{$background};
--#{$variable-prefix}alert-border-color: #{$border};
@if $enable-gradients {
background-image: var(--#{$variable-prefix}gradient);
}
.alert-link {
color: shade-color($color, 20%);