diff options
author | vjeantet <valere.jeantet@gmail.com> | 2020-10-29 01:41:44 +0300 |
---|---|---|
committer | vjeantet <valere.jeantet@gmail.com> | 2020-10-29 01:41:44 +0300 |
commit | 4b0cf57d5be417ddb3167d0bd0b4c09a35c1e62b (patch) | |
tree | cd25a89ad4d1338d39561f4f70076ff95dfcf3c6 | |
parent | 0cfdd26b4bc9f8d869eb5259314b75d363717355 (diff) |
css : fix code block, notice shortcode
-rw-r--r-- | assets/sass/main.scss | 12 | ||||
-rw-r--r-- | assets/sass/shortcodes/notice.scss | 18 |
2 files changed, 18 insertions, 12 deletions
diff --git a/assets/sass/main.scss b/assets/sass/main.scss index d2e215f..78ac359 100644 --- a/assets/sass/main.scss +++ b/assets/sass/main.scss @@ -512,10 +512,9 @@ article section.page div.content{ overflow: inherit!important; code{ color:inherit!important; - font-size: 75%; + font-size: 95%; display: block; - margin-left:-1.5rem; - margin-right:-1.5rem; + line-height: 1.2em; padding: 10px; border:0px; font-weight: inherit; @@ -523,6 +522,13 @@ article section.page div.content{ } } } + + >div.highlight{ + pre code{ + margin-left:-1.5rem; + margin-right:-1.5rem; + } + } } diff --git a/assets/sass/shortcodes/notice.scss b/assets/sass/shortcodes/notice.scss index b7baf21..43f8c4e 100644 --- a/assets/sass/shortcodes/notice.scss +++ b/assets/sass/shortcodes/notice.scss @@ -49,7 +49,7 @@ div.notices { label{color: $color_primary;}
}
&.primary {
- p {
+ > *:not(label) {
box-shadow: inset 4px 0 0 $color_primary;
background: transparentize($color_primary, 0.95);
color: darken($color_primary,20%) !important;
@@ -67,7 +67,7 @@ div.notices { }
&.success, &.tip {
- p {
+ > *:not(label) {
box-shadow: inset 4px 0 0 $color_success;
background: transparentize($color_success, 0.95);
color: darken($color_success,20%) !important;
@@ -76,7 +76,7 @@ div.notices { }
&.danger {
- p {
+ > *:not(label) {
box-shadow: inset 4px 0 0 $color_danger;
background: transparentize($color_danger, 0.95);
color: darken($color_danger,20%) !important;
@@ -85,7 +85,7 @@ div.notices { }
&.warning {
- >* {
+ > *:not(label) {
box-shadow: inset 4px 0 0 $color_warning;
background: transparentize($color_warning, 0.95);
color: darken($color_warning,20%) !important;
@@ -94,7 +94,7 @@ div.notices { }
&.info {
- p {
+ > *:not(label) {
box-shadow: inset 4px 0 0 $color_info;
background: transparentize($color_info, 0.95);
color: darken($color_info,20%) !important;
@@ -103,7 +103,7 @@ div.notices { }
&.light {
- p {
+ > *:not(label) {
box-shadow: inset 4px 0 0 $color_light;
background: transparentize($color_light, 0.95);
color: darken($color_light,20%) !important;
@@ -111,7 +111,7 @@ div.notices { label{color: $color_light;}
}
&.dark {
- p {
+ > *:not(label) {
box-shadow: inset 4px 0 0 $color_dark;
background: transparentize($color_dark, 0.95);
color: darken($color_dark,20%) !important;
@@ -119,7 +119,7 @@ div.notices { label{color: $color_dark;}
}
&.white {
- p {
+ > *:not(label) {
box-shadow: inset 4px 0 0 $color_white;
background: transparentize($color_white, 0.95);
color: whiteen($color_white,20%) !important;
@@ -127,7 +127,7 @@ div.notices { label{color: $color_white;}
}
&.transparent {
- p {
+ > *:not(label) {
box-shadow: inset 4px 0 0 $color_transparent;
background: transparentize($color_transparent, 0.95);
color: transparenten($color_transparent,20%) !important;
|