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

56 lines
1008 B
SCSS
Raw Normal View History

2018-10-24 00:06:39 +02:00
.sl-c-callout {
2018-12-28 01:31:28 +01:00
margin: 1.5rem 0;
2019-03-05 01:24:31 +01:00
padding: 1.5rem 1rem;
2019-03-05 02:19:06 +01:00
background: lighten($sl-color--pale-sky, 50%);
border-radius: 2px;
2018-10-24 00:06:39 +02:00
&--warning {
background: lighten($sl-color--hopbush, 36%);
border: 1px solid lighten($sl-color--hopbush, 27%);
}
2018-10-24 00:06:39 +02:00
&--fun-fact {
background: lighten($sl-color--patina, 43%);
border: 1px solid lighten($sl-color--patina, 32%);
}
2018-10-24 00:06:39 +02:00
2019-03-05 02:19:06 +01:00
&--function {
padding: {
top: 0;
bottom: .25rem;
};
.signature {
// Make sure permalinks are visible.
overflow: visible;
2019-03-05 02:19:06 +01:00
margin: {
right: -1rem;
left: -1rem;
};
}
}
&--impl-status {
font-size: 0.8em;
margin-top: -1rem;
padding: 0.8rem;
.sl-c-callout & {
background: lighten($sl-color--pale-sky, 53%);
}
}
2019-03-05 01:24:31 +01:00
> *:first-child { margin-top: 0; }
2018-10-24 00:06:39 +02:00
2019-03-05 01:24:31 +01:00
> *:last-child { margin-bottom: 0; }
2018-10-24 00:06:39 +02:00
}
@include sl-breakpoint--medium {
.sl-l-container--overview {
font-size: 1.25rem;
.sl-c-callout { font-size: 1rem; }
}
}