sass-site/source/assets/sass/components/_callouts.scss

74 lines
1.6 KiB
SCSS
Raw Normal View History

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%);
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;
margin-left: var(--gutter-negative);
margin-right: var(--gutter-negative);
2023-01-06 22:40:29 +01:00
}
}
&--impl-status {
font-size: var(--status-text-size);
margin-top: var(--gutter-negative);
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 {
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 {
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;
}
}
}