fix: fix asciidoc sdmonitions formatting (#380)
parent
b104d6ac70
commit
fbff9470b0
|
@ -0,0 +1,32 @@
|
||||||
|
// {{< hint >}}
|
||||||
|
.admonitionblock {
|
||||||
|
@each $name, $color in $hint-colors {
|
||||||
|
&.#{$name} {
|
||||||
|
border-left-color: $color;
|
||||||
|
background-color: scale-color($color, $lightness: 95%, $saturation: -30%);
|
||||||
|
color: $body-font-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
margin: $padding-16 0;
|
||||||
|
padding: $padding-8 $padding-16 $padding-8 ($padding-16 - $padding-4); //to keep total left space 16dp
|
||||||
|
|
||||||
|
border-left: $border-4 solid var(--accent-color);
|
||||||
|
border-radius: $border-radius;
|
||||||
|
|
||||||
|
table {
|
||||||
|
padding: 0 !important;
|
||||||
|
margin: 0 !important;
|
||||||
|
|
||||||
|
tr {
|
||||||
|
border: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
td {
|
||||||
|
&:first-child {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
display: table-row;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -71,7 +71,11 @@ $sm-breakpoint: $menu-width + $body-min-width + 3rem !default;
|
||||||
// Panel colors
|
// Panel colors
|
||||||
$hint-colors: (
|
$hint-colors: (
|
||||||
info: rgba(0, 145, 234, 1),
|
info: rgba(0, 145, 234, 1),
|
||||||
|
note: rgba(0, 145, 234, 1),
|
||||||
ok: rgba(0, 200, 83, 1),
|
ok: rgba(0, 200, 83, 1),
|
||||||
|
tip: rgba(0, 200, 83, 1),
|
||||||
warning: rgba(255, 171, 0, 1),
|
warning: rgba(255, 171, 0, 1),
|
||||||
danger: rgba(213, 0, 0, 1)
|
caution: rgba(115, 0, 211, 1),
|
||||||
|
danger: rgba(213, 0, 0, 1),
|
||||||
|
important: rgba(213, 0, 0, 1)
|
||||||
) !default;
|
) !default;
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
color: red;
|
|
|
@ -12,4 +12,5 @@
|
||||||
@import "_base";
|
@import "_base";
|
||||||
|
|
||||||
@import "_markdown";
|
@import "_markdown";
|
||||||
|
@import "_asciidoc";
|
||||||
@import "_shortcodes";
|
@import "_shortcodes";
|
||||||
|
|
Loading…
Reference in New Issue