2023-01-12 20:54:24 +01:00
|
|
|
@use 'sass:color';
|
|
|
|
@use '../breakpoints';
|
2023-03-03 23:14:07 +01:00
|
|
|
@use '../config/color/brand';
|
2023-01-12 19:19:42 +01:00
|
|
|
|
2023-01-06 22:40:29 +01:00
|
|
|
.sl-c-callout {
|
2023-02-21 20:51:32 +01:00
|
|
|
margin: var(--sl-gutter--sesqui) 0;
|
|
|
|
padding: var(--sl-gutter--sesqui) var(--sl-gutter);
|
2023-03-03 23:30:46 +01:00
|
|
|
background: color.adjust(brand.$sl-color--pale-sky, $lightness: 60%);
|
2023-02-21 20:51:32 +01:00
|
|
|
border-radius: var(--sl-border-radius--small);
|
2023-01-06 22:40:29 +01:00
|
|
|
|
|
|
|
&--warning {
|
2023-03-03 23:30:46 +01:00
|
|
|
background: color.adjust(brand.$sl-color--hopbush, $lightness: 38%);
|
2023-02-21 20:51:32 +01:00
|
|
|
border: var(--sl-border--small) solid
|
2023-03-03 23:30:46 +01:00
|
|
|
color.adjust(brand.$sl-color--hopbush, $lightness: 27%);
|
2023-01-06 22:40:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&--fun-fact {
|
2023-03-03 23:30:46 +01:00
|
|
|
background: color.adjust(brand.$sl-color--patina, $lightness: 47%);
|
2023-02-21 20:51:32 +01:00
|
|
|
border: var(--sl-border--small) solid
|
2023-03-03 23:30:46 +01:00
|
|
|
color.adjust(brand.$sl-color--patina, $lightness: 32%);
|
2023-01-06 22:40:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&--function {
|
2023-02-21 20:51:32 +01:00
|
|
|
padding-bottom: var(--sl-gutter--quarter);
|
2023-01-06 22:40:29 +01:00
|
|
|
padding-top: 0;
|
|
|
|
|
|
|
|
.signature {
|
|
|
|
// Make sure permalinks are visible.
|
|
|
|
overflow: visible;
|
2023-02-21 20:51:32 +01:00
|
|
|
margin-left: var(--sl-gutter--negative);
|
|
|
|
margin-right: var(--sl-gutter--negative);
|
2023-01-06 22:40:29 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--impl-status {
|
2023-02-21 20:51:32 +01:00
|
|
|
font-size: var(--sl-status-text-size);
|
|
|
|
margin-top: var(--sl-gutter--negative);
|
|
|
|
padding: var(--sl-gutter--minus);
|
2023-01-06 22:40:29 +01:00
|
|
|
|
|
|
|
.sl-c-callout & {
|
2023-03-03 23:30:46 +01:00
|
|
|
background: color.adjust(brand.$sl-color--pale-sky, $lightness: 53%);
|
2023-01-06 22:40:29 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2023-01-12 19:19:42 +01:00
|
|
|
@include breakpoints.sl-breakpoint--large {
|
2023-01-06 22:40:29 +01:00
|
|
|
.sl-c-callout--function {
|
|
|
|
padding-left: 2.25rem;
|
|
|
|
|
|
|
|
.signature {
|
|
|
|
margin-left: -2.25rem;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|