mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
12cc5f7e60
hugo 0.134.1
45 lines
955 B
SCSS
45 lines
955 B
SCSS
.alert {
|
|
padding: 0.5rem 1rem;
|
|
margin-block: 1rem;
|
|
color: inherit;
|
|
border-left: 0.25em solid var(--#{$prefix}alert-border-color);
|
|
|
|
> :first-child {
|
|
margin-top: 0;
|
|
}
|
|
> :last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.alert-title {
|
|
display: flex;
|
|
font-weight: 500;
|
|
align-items: center;
|
|
line-height: 1;
|
|
margin-bottom: 1rem;
|
|
color: var(--#{$prefix}alert-color);
|
|
|
|
> svg.icon {
|
|
width: initial;
|
|
height: initial;
|
|
margin-right: 0.5rem;
|
|
}
|
|
}
|
|
|
|
@each $type, $item in $alert-color-map {
|
|
&.alert-#{$type} {
|
|
--#{$prefix}alert-border-color: #{map-get($item, border-color)};
|
|
--#{$prefix}alert-color: #{map-get($item, color)};
|
|
}
|
|
}
|
|
|
|
[data-theme='dark'] & {
|
|
@each $type, $item in $alert-color-map-dark {
|
|
&.alert-#{$type} {
|
|
--#{$prefix}alert-border-color: #{map-get($item, border-color)};
|
|
--#{$prefix}alert-color: #{map-get($item, color)};
|
|
}
|
|
}
|
|
}
|
|
}
|