2025-01-03 15:25:04 +08:00
|
|
|
|
|
|
|
@mixin alert-styles($type, $color) {
|
|
|
|
.post-alert-#{$type} {
|
|
|
|
padding: 0 0 0 10px;
|
|
|
|
border-left: 6px solid $color;
|
|
|
|
font-size: 0.825em;
|
|
|
|
color: $color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@each $key, $color in $post_alert_colors {
|
|
|
|
@include alert-styles(#{$key}, $color);
|
|
|
|
}
|
|
|
|
|
2025-01-03 20:48:41 +08:00
|
|
|
.post-alert-title, .post-expired-title {
|
2025-01-03 15:25:04 +08:00
|
|
|
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
line-height: 1.5;
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
i {
|
|
|
|
font-size: 1.25em;
|
|
|
|
text-align: center;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
span {
|
|
|
|
margin: 0 0 0 8px;
|
|
|
|
letter-spacing: 0.08em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-01-03 20:48:41 +08:00
|
|
|
.post-alert-content, .post-expired-content {
|
2025-01-03 15:25:04 +08:00
|
|
|
color: var(--text-color);
|
|
|
|
}
|