fix: fix asciidoc sdmonitions formatting (#380)

This commit is contained in:
Robert Kaussow 2022-04-18 21:45:38 +02:00 committed by GitHub
parent b104d6ac70
commit fbff9470b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 38 additions and 2 deletions

32
src/sass/_asciidoc.scss Normal file
View file

@ -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;
}
}
}

View file

@ -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;

View file

@ -1 +0,0 @@
color: red;

View file

@ -12,4 +12,5 @@
@import "_base"; @import "_base";
@import "_markdown"; @import "_markdown";
@import "_asciidoc";
@import "_shortcodes"; @import "_shortcodes";