2025-05-17 00:37:16 +02:00
|
|
|
@use '../constants' as *;
|
|
|
|
|
|
2025-05-13 17:55:29 +02:00
|
|
|
@mixin callout-customization($type, $color, $text-icon) {
|
|
|
|
|
&[type="#{$type}"] {
|
|
|
|
|
&>.callout-content {
|
|
|
|
|
border-color: var(#{$color});
|
|
|
|
|
background-color: color-mix(in srgb, var(#{$color}), transparent 90%);
|
2025-05-17 00:37:16 +02:00
|
|
|
|
|
|
|
|
@media only screen and (max-width: $smartphone) {
|
|
|
|
|
&::before {
|
|
|
|
|
content: $text-icon;
|
|
|
|
|
color: var(#{$color});
|
|
|
|
|
float: left;
|
|
|
|
|
margin-right: .5rem;
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-05-13 17:55:29 +02:00
|
|
|
}
|
|
|
|
|
|
2025-05-17 00:37:16 +02:00
|
|
|
@media only screen and (min-width: $smartphone) {
|
|
|
|
|
&::before {
|
|
|
|
|
content: $text-icon;
|
|
|
|
|
color: var(#{$color});
|
|
|
|
|
}
|
2025-05-13 17:55:29 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.callout {
|
|
|
|
|
text-align: center;
|
|
|
|
|
margin-top: 1.5rem;
|
|
|
|
|
margin-bottom: 1.5rem;
|
|
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
width: 14%;
|
|
|
|
|
font-size: 3rem;
|
|
|
|
|
margin: auto;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&>.callout-title {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&>.callout-content {
|
|
|
|
|
text-align: initial;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
padding: 1.25rem;
|
|
|
|
|
|
2025-05-17 00:37:16 +02:00
|
|
|
@media only screen and (min-width: $smartphone) {
|
|
|
|
|
width: 85%;
|
|
|
|
|
}
|
|
|
|
|
|
2025-05-13 17:55:29 +02:00
|
|
|
&>p {
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
border: {
|
|
|
|
|
style: dashed;
|
|
|
|
|
width: 1px;
|
|
|
|
|
radius: var(--standard-border-radius)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@include callout_customization("info", "--sapphire", "");
|
|
|
|
|
@include callout_customization("success", "--green", "");
|
|
|
|
|
@include callout_customization("warning", "--yellow", "");
|
|
|
|
|
@include callout_customization("danger", "--red", "");
|
|
|
|
|
@include callout-customization("error", "--red", "");
|
|
|
|
|
@include callout_customization("tip", "--teal", "");
|
|
|
|
|
@include callout_customization("note", "--lavender", "");
|
|
|
|
|
@include callout_customization("question", "--sky", "");
|
|
|
|
|
@include callout_customization("example", "--mauve", "");
|
|
|
|
|
@include callout_customization("bug", "--maroon", "");
|
|
|
|
|
@include callout_customization("quote", "--overlay1", "");
|
|
|
|
|
}
|