2023-01-12 20:54:24 +01:00
|
|
|
@use 'sass:color';
|
|
|
|
@use '../breakpoints';
|
|
|
|
@use '../visual-design/theme';
|
2023-01-12 19:19:42 +01:00
|
|
|
|
2023-01-06 22:40:29 +01:00
|
|
|
.sl-c-callout {
|
2023-01-31 07:13:57 +01:00
|
|
|
margin: var(--gutter-sesqui) 0;
|
|
|
|
padding: var(--gutter-sesqui) var(--gutter);
|
2023-01-12 19:19:42 +01:00
|
|
|
background: color.adjust(theme.$sl-color--pale-sky, $lightness: 60%);
|
2023-01-06 22:40:29 +01:00
|
|
|
border-radius: 2px;
|
|
|
|
|
|
|
|
&--warning {
|
2023-01-12 19:19:42 +01:00
|
|
|
background: color.adjust(theme.$sl-color--hopbush, $lightness: 38%);
|
|
|
|
border: 1px solid color.adjust(theme.$sl-color--hopbush, $lightness: 27%);
|
2023-01-06 22:40:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&--fun-fact {
|
2023-01-12 19:19:42 +01:00
|
|
|
background: color.adjust(theme.$sl-color--patina, $lightness: 47%);
|
|
|
|
border: 1px solid color.adjust(theme.$sl-color--patina, $lightness: 32%);
|
2023-01-06 22:40:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&--function {
|
2023-01-31 07:13:57 +01:00
|
|
|
padding-bottom: var(--gutter-quarter);
|
2023-01-06 22:40:29 +01:00
|
|
|
padding-top: 0;
|
|
|
|
|
|
|
|
.signature {
|
|
|
|
// Make sure permalinks are visible.
|
|
|
|
overflow: visible;
|
2023-02-02 18:14:02 +01:00
|
|
|
margin-left: var(--gutter-negative);
|
|
|
|
margin-right: var(--gutter-negative);
|
2023-01-06 22:40:29 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--impl-status {
|
|
|
|
font-size: 0.8em;
|
2023-02-02 18:14:02 +01:00
|
|
|
margin-top: var(--gutter-negative);
|
2023-01-06 22:40:29 +01:00
|
|
|
padding: 0.8rem;
|
|
|
|
|
|
|
|
.sl-c-callout & {
|
2023-01-12 19:19:42 +01:00
|
|
|
background: color.adjust(theme.$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--medium {
|
2023-01-06 22:40:29 +01:00
|
|
|
.sl-l-container--overview {
|
|
|
|
font-size: 1.25rem;
|
|
|
|
|
2023-01-09 20:10:02 +01:00
|
|
|
.sl-c-callout {
|
2023-01-31 21:53:00 +01:00
|
|
|
font-size: 1rem;
|
2023-01-09 20:10:02 +01:00
|
|
|
}
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|