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

68 lines
1.1 KiB
SCSS
Raw Normal View History

2023-01-06 22:40:29 +01:00
.sl-c-callout {
margin: 1.5rem 0;
padding: 1.5rem 1rem;
background: lighten($sl-color--pale-sky, 60%);
border-radius: 2px;
&--warning {
background: lighten($sl-color--hopbush, 38%);
border: 1px solid lighten($sl-color--hopbush, 27%);
}
&--fun-fact {
background: lighten($sl-color--patina, 47%);
border: 1px solid lighten($sl-color--patina, 32%);
}
&--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 & {
background: lighten($sl-color--pale-sky, 53%);
}
}
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
}
@include sl-breakpoint--medium {
.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
}
}
@include sl-breakpoint--large {
.sl-c-callout--function {
padding-left: 2.25rem;
.signature {
margin-left: -2.25rem;
margin-right: 0;
}
}
}