mirror of
https://github.com/danog/sass-site.git
synced 2024-12-04 18:38:12 +01:00
72 lines
1.6 KiB
SCSS
72 lines
1.6 KiB
SCSS
@use 'sass:color';
|
|
@use '../breakpoints';
|
|
@use '../visual-design/theme';
|
|
|
|
.sl-c-callout {
|
|
margin: var(--gutter-sesqui) 0;
|
|
padding: var(--gutter-sesqui) var(--gutter);
|
|
background: color.adjust(theme.$sl-color--pale-sky, $lightness: 60%);
|
|
border-radius: var(--border-radius-small);
|
|
|
|
&--warning {
|
|
background: color.adjust(theme.$sl-color--hopbush, $lightness: 38%);
|
|
border: var(--border-small) solid color.adjust(theme.$sl-color--hopbush, $lightness: 27%);
|
|
}
|
|
|
|
&--fun-fact {
|
|
background: color.adjust(theme.$sl-color--patina, $lightness: 47%);
|
|
border: var(--border-small) solid color.adjust(theme.$sl-color--patina, $lightness: 32%);
|
|
}
|
|
|
|
&--function {
|
|
padding-bottom: var(--gutter-quarter);
|
|
padding-top: 0;
|
|
|
|
.signature {
|
|
// Make sure permalinks are visible.
|
|
overflow: visible;
|
|
margin-left: var(--gutter-negative);
|
|
margin-right: var(--gutter-negative);
|
|
}
|
|
}
|
|
|
|
&--impl-status {
|
|
font-size: var(--status-text-size);
|
|
margin-top: var(--gutter-negative);
|
|
padding: var(--gutter-minus);
|
|
|
|
.sl-c-callout & {
|
|
background: color.adjust(theme.$sl-color--pale-sky, $lightness: 53%);
|
|
}
|
|
}
|
|
|
|
> *:first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
> *:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
@include breakpoints.sl-breakpoint--medium {
|
|
.sl-l-container--overview {
|
|
font-size: var(--sl-font-size--large);
|
|
|
|
.sl-c-callout {
|
|
font-size: var(--sl-font-size--small);
|
|
}
|
|
}
|
|
}
|
|
|
|
@include breakpoints.sl-breakpoint--large {
|
|
.sl-c-callout--function {
|
|
padding-left: 2.25rem;
|
|
|
|
.signature {
|
|
margin-left: -2.25rem;
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
}
|