org-theme/scss/partials/_boxes.scss

57 lines
1.6 KiB
SCSS
Raw Normal View History

2020-11-25 23:22:07 +01:00
$types: (
2020-11-26 19:55:43 +01:00
seealso: (color: $pale-grey, title-color: $grey, icon: "\f05a"),
definition: (color: $pale-red, title-color: $red, icon: "\f005"),
exampl: (color: $pale-green, title-color: $green, icon: "\f013"),
question: (color: $pale-yellow, title-color: $yellow, icon: "\f059"),
summary: (color: $pale-blue, title-color: $blue, icon: "\f02e"),
hint: (color: $pale-grey, title-color: $grey, icon: "\f05a"),
important: (color: $pale-orange, title-color: $orange, icon: "\f005"),
caution: (color: $pale-orange, title-color: $orange, icon: "\f071"),
warning: (color: $pale-orange, title-color: $orange, icon: "\f071")
2020-11-25 23:22:07 +01:00
);
@each $label, $map in $types {
.#{$label} {
padding:12px;
line-height:24px;
margin-bottom:24px;
-webkit-font-smoothing:antialiased;
background: map-get($map, color);
2020-11-26 19:55:43 +01:00
> p:last-child {
margin-bottom: 0;
2020-11-25 23:22:07 +01:00
}
&.admonition-title{
line-height: 1;
background: map-get($map, title-color);
margin-bottom: 0px;
&:before{
2020-11-27 15:16:19 +01:00
font-family: $fa;
2020-11-25 23:22:07 +01:00
content: map-get($map, icon);
}
}
}
}
#content .admonition-title{
2020-11-27 15:16:19 +01:00
color: $color-block-title;
font-weight: $bold;
display: block;
padding: 6px 12px;
margin-bottom: 0px;
2020-11-25 23:22:07 +01:00
&:before{
2020-11-27 15:16:19 +01:00
margin-right: 8px;
font-family: $fa;
display: inline-block;
font-weight: $normal;
line-height: 1;
text-decoration: inherit;
2020-11-25 23:22:07 +01:00
}
}