sass-site/source/assets/css/components/_callouts.scss
Natalie Weizenbaum 3b1a93afe9 Add a light border to callouts (#300)
This helps them stand out a tiny bit more, especially in functions
where their backgrounds are very similar to the function background.
2019-03-10 09:11:48 -05:00

35 lines
633 B
SCSS

.sl-c-callout {
margin: 1.5rem 0;
padding: 1.5rem 1rem;
background: lighten($sl-color--pale-sky, 50%);
border-radius: 2px;
&--warning {
background: lighten($sl-color--hopbush, 36%);
border: 1px solid lighten($sl-color--hopbush, 27%);
}
&--fun-fact {
background: lighten($sl-color--patina, 43%);
border: 1px solid lighten($sl-color--patina, 32%);
}
&--function {
padding: {
top: 0;
bottom: .25rem;
};
.signature {
margin: {
right: -1rem;
left: -1rem;
};
}
}
> *:first-child { margin-top: 0; }
> *:last-child { margin-bottom: 0; }
}