org-theme/scss/partials/_boxes.scss

61 lines
1.8 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"),
2020-11-27 16:57:04 +01:00
exercice: (color: $pale-yellow, title-color: $yellow, icon: "\f040"),
answer: (color: $pale-turq, title-color: $turq, icon: "\f00c"),
2020-11-26 19:55:43 +01:00
summary: (color: $pale-blue, title-color: $blue, icon: "\f02e"),
2020-12-10 18:50:54 +01:00
note: (color: $pale-blue, title-color: $blue, icon: "\f249"),
2020-11-26 19:55:43 +01:00
hint: (color: $pale-grey, title-color: $grey, icon: "\f05a"),
2020-11-27 16:57:04 +01:00
important: (color: $pale-red, title-color: $red, icon: "\f005"),
2020-11-26 19:55:43 +01:00
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-12-13 22:40:27 +01:00
font-weight: 900;
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;
2020-12-13 22:40:27 +01:00
font-weight: 900;
2020-11-27 15:16:19 +01:00
line-height: 1;
text-decoration: inherit;
2020-11-25 23:22:07 +01:00
}
}