sass-site/source/assets/sass/components/_alerts.scss

50 lines
778 B
SCSS
Raw Normal View History

2023-01-06 22:40:29 +01:00
.sl-c-alert {
padding: {
top: sl-px-to-rem(12px);
bottom: sl-px-to-rem(12px);
2023-01-09 20:10:02 +01:00
}
2023-01-09 23:19:15 +01:00
2023-01-06 22:40:29 +01:00
text-align: center;
background: darken($sl-color--hopbush, 10%);
color: $sl-color--white;
font-size: $sl-font-size--small;
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-09 20:10:02 +01:00
border-bottom-color: rgba($sl-color--white, 0.5);
2023-01-06 22:40:29 +01:00
font-weight: $sl-font-weight--bold;
color: $sl-color--white;
&:hover,
&:focus {
2023-01-09 20:10:02 +01:00
border-bottom-color: rgba($sl-color--white, 0.75);
2023-01-09 23:19:15 +01:00
background: rgb(black 0.0625);
2023-01-06 22:40:29 +01:00
}
2023-01-09 20:10:02 +01:00
&:active {
border-bottom-color: $sl-color--white;
}
2023-01-06 22:40:29 +01:00
}
2023-01-09 20:10:02 +01:00
&--info {
background: $sl-color--midnight-blue;
}
2023-01-06 22:40:29 +01:00
}