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-02-09 23:53:25 +01:00
|
|
|
border-radius: var(--border-radius-small);
|
2023-01-06 22:40:29 +01:00
|
|
|
|
|
|
|
&--warning {
|
2023-01-12 19:19:42 +01:00
|
|
|
background: color.adjust(theme.$sl-color--hopbush, $lightness: 38%);
|
2023-02-20 22:24:50 +01:00
|
|
|
border: var(--border-small) 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%);
|
2023-02-20 22:24:50 +01:00
|
|
|
border: var(--border-small) 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 {
|
2023-02-09 23:53:25 +01:00
|
|
|
font-size: var(--status-text-size);
|
2023-02-02 18:14:02 +01:00
|
|
|
margin-top: var(--gutter-negative);
|
2023-02-09 23:53:25 +01:00
|
|
|
padding: var(--gutter-minus);
|
2023-01-06 22:40:29 +01:00
|
|
|
|
|
|
|
.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 {
|
2023-02-09 23:53:25 +01:00
|
|
|
font-size: var(--sl-font-size--large);
|
2023-01-06 22:40:29 +01:00
|
|
|
|
2023-01-09 20:10:02 +01:00
|
|
|
.sl-c-callout {
|
2023-02-09 23:53:25 +01:00
|
|
|
font-size: var(--sl-font-size--small);
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|