mirror of
https://github.com/danog/sass-site.git
synced 2024-11-27 04:24:50 +01:00
74 lines
1.7 KiB
SCSS
74 lines
1.7 KiB
SCSS
@use 'sass:color';
|
|
@use '../breakpoints';
|
|
@use '../visual-design/theme';
|
|
|
|
.sl-c-callout {
|
|
margin: var(--sl-gutter--sesqui) 0;
|
|
padding: var(--sl-gutter--sesqui) var(--sl-gutter);
|
|
background: color.adjust(theme.$sl-color--pale-sky, $lightness: 60%);
|
|
border-radius: var(--sl-border-radius--small);
|
|
|
|
&--warning {
|
|
background: color.adjust(theme.$sl-color--hopbush, $lightness: 38%);
|
|
border: var(--sl-border--small) solid
|
|
color.adjust(theme.$sl-color--hopbush, $lightness: 27%);
|
|
}
|
|
|
|
&--fun-fact {
|
|
background: color.adjust(theme.$sl-color--patina, $lightness: 47%);
|
|
border: var(--sl-border--small) solid
|
|
color.adjust(theme.$sl-color--patina, $lightness: 32%);
|
|
}
|
|
|
|
&--function {
|
|
padding-bottom: var(--sl-gutter--quarter);
|
|
padding-top: 0;
|
|
|
|
.signature {
|
|
// Make sure permalinks are visible.
|
|
overflow: visible;
|
|
margin-left: var(--sl-gutter--negative);
|
|
margin-right: var(--sl-gutter--negative);
|
|
}
|
|
}
|
|
|
|
&--impl-status {
|
|
font-size: var(--sl-status-text-size);
|
|
margin-top: var(--sl-gutter--negative);
|
|
padding: var(--sl-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;
|
|
}
|
|
}
|
|
}
|