2023-01-12 20:54:24 +01:00
|
|
|
@use 'sass:color';
|
|
|
|
@use '../functions';
|
|
|
|
@use '../visual-design/theme';
|
|
|
|
@use '../visual-design/typography';
|
2023-01-12 19:19:42 +01:00
|
|
|
|
2023-01-06 22:40:29 +01:00
|
|
|
.sl-c-alert {
|
2023-01-31 16:53:34 +01:00
|
|
|
background: var(
|
|
|
|
--alert-bg,
|
|
|
|
color.adjust(theme.$sl-color--hopbush, $lightness: -10%)
|
|
|
|
);
|
2023-01-12 19:19:42 +01:00
|
|
|
color: theme.$sl-color--white;
|
|
|
|
font-size: typography.$sl-font-size--small;
|
2023-01-31 07:13:57 +01:00
|
|
|
padding-bottom: var(--alert-padding-block, var(--gutter-minus));
|
|
|
|
padding-top: var(--alert-padding-block, var(--gutter-minus));
|
|
|
|
text-align: var(--alert-align, center);
|
2023-01-06 22:40:29 +01:00
|
|
|
|
|
|
|
p,
|
|
|
|
ul,
|
|
|
|
dl {
|
2023-01-09 20:10:02 +01:00
|
|
|
&:first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
2023-01-06 22:40:29 +01:00
|
|
|
|
2023-01-09 20:10:02 +01:00
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2023-01-06 22:40:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
p,
|
|
|
|
li,
|
2023-01-09 20:10:02 +01:00
|
|
|
dd {
|
|
|
|
max-width: none;
|
|
|
|
}
|
2023-01-06 22:40:29 +01:00
|
|
|
|
|
|
|
a {
|
2023-01-12 19:19:42 +01:00
|
|
|
border-bottom-color: rgba(theme.$sl-color--white, 0.5);
|
|
|
|
color: theme.$sl-color--white;
|
2023-01-31 07:13:57 +01:00
|
|
|
font-weight: typography.$sl-font-weight--bold;
|
2023-01-06 22:40:29 +01:00
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2023-01-09 23:53:57 +01:00
|
|
|
background: rgba(black, 0.0625);
|
2023-01-31 07:13:57 +01:00
|
|
|
border-bottom-color: rgba(theme.$sl-color--white, 0.75);
|
2023-01-06 22:40:29 +01:00
|
|
|
}
|
|
|
|
|
2023-01-09 20:10:02 +01:00
|
|
|
&:active {
|
2023-01-12 19:19:42 +01:00
|
|
|
border-bottom-color: theme.$sl-color--white;
|
2023-01-09 20:10:02 +01:00
|
|
|
}
|
2023-01-06 22:40:29 +01:00
|
|
|
}
|
2023-01-31 07:13:57 +01:00
|
|
|
}
|
2023-01-06 22:40:29 +01:00
|
|
|
|
2023-01-31 07:13:57 +01:00
|
|
|
.sl-c-alert--info {
|
|
|
|
--alert-bg: theme.$sl-color--midnight-blue;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sl-c-alert--special {
|
2023-01-31 16:53:34 +01:00
|
|
|
--alert-align: left;
|
2023-01-31 17:13:51 +01:00
|
|
|
--alert-bg: black;
|
2023-01-31 16:53:34 +01:00
|
|
|
--alert-padding-block: var(--gutter-triple);
|
2023-01-06 22:40:29 +01:00
|
|
|
}
|
2023-01-31 21:39:28 +01:00
|
|
|
|
|
|
|
.sl-c-alert-title {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|