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

72 lines
1.4 KiB
SCSS
Raw Normal View History

2023-01-12 19:19:42 +01:00
@use "sass:color";
@use "../breakpoints";
@use "../visual-design/theme";
2023-01-06 22:40:29 +01:00
.sl-c-callout {
margin: 1.5rem 0;
padding: 1.5rem 1rem;
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-09 20:10:02 +01:00
padding-bottom: 0.25rem;
2023-01-06 22:40:29 +01:00
padding-top: 0;
.signature {
// Make sure permalinks are visible.
overflow: visible;
margin-left: -1rem;
margin-right: -1rem;
}
}
&--impl-status {
font-size: 0.8em;
margin-top: -1rem;
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 {
font-size: 1rem;
}
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;
}
}
}