mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-22 04:40:40 +00:00
fix: fix asciidoc sdmonitions formatting (#380)
This commit is contained in:
parent
b104d6ac70
commit
fbff9470b0
32
src/sass/_asciidoc.scss
Normal file
32
src/sass/_asciidoc.scss
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
@ -71,7 +71,11 @@ $sm-breakpoint: $menu-width + $body-min-width + 3rem !default;
|
||||
// Panel colors
|
||||
$hint-colors: (
|
||||
info: rgba(0, 145, 234, 1),
|
||||
note: rgba(0, 145, 234, 1),
|
||||
ok: rgba(0, 200, 83, 1),
|
||||
tip: rgba(0, 200, 83, 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;
|
||||
|
@ -1 +0,0 @@
|
||||
color: red;
|
@ -12,4 +12,5 @@
|
||||
@import "_base";
|
||||
|
||||
@import "_markdown";
|
||||
@import "_asciidoc";
|
||||
@import "_shortcodes";
|
||||
|
Loading…
Reference in New Issue
Block a user