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

40 lines
702 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%);
2018-10-24 00:06:39 +02:00
2019-03-05 01:24:31 +01:00
&--warning { background: lighten($sl-color--hopbush, 36%); }
2018-10-24 00:06:39 +02:00
2019-03-05 01:24:31 +01:00
&--fun-fact { background: lighten($sl-color--patina, 43%); }
2018-10-24 00:06:39 +02:00
2019-03-05 02:19:06 +01:00
&--function {
padding: {
top: 0;
bottom: .25rem;
};
.code-example { margin-top: -3rem; }
.signature {
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
}