Added back light shadows to admonitions

This commit is contained in:
squidfunk
2020-02-27 12:27:05 +01:00
parent eaeac798b1
commit ff9ef6a4a7
10 changed files with 19 additions and 33 deletions

View File

@@ -275,7 +275,7 @@ kbd {
line-height: 1.5;
box-shadow:
0 px2rem(2px) 0 px2rem(1px) var(--md-default-fg-color--lighter),
0 px2rem(2px) 0 var(--md-default-fg-color--lighter),
0 px2rem(2px) 0 var(--md-default-fg-color--lighter),
inset 0 px2rem(-2px) px2rem(4px) var(--md-default-bg-color);
word-break: break-word;
vertical-align: text-top;

View File

@@ -31,21 +31,18 @@
.admonition {
margin: 1.5625em 0;
padding: 0 px2rem(12px);
border-left: px2rem(3px) solid $clr-blue-a200;
border-left: px2rem(4px) solid $clr-blue-a200;
border-radius: px2rem(2px);
font-size: ms(-1);
box-shadow:
inset 0 0 0 px2rem(1px) transparentize($clr-blue-a200, 0.85),
inset px2rem(1px) 0 $clr-blue-a200;
0 px2rem(4px) px2rem(10px) hsla(0, 0%, 0%, 0.05),
0 0 px2rem(1px) hsla(0, 0%, 0%, 0.1);
overflow: auto;
// Adjust for right-to-left languages
[dir="rtl"] & {
border-right: px2rem(3px) solid $clr-blue-a200;
border-right: px2rem(4px) solid $clr-blue-a200;
border-left: none;
box-shadow:
inset 0 0 0 px2rem(1px) transparentize($clr-blue-a200, 0.85),
inset px2rem(-1px) 0 $clr-blue-a200;
}
// Adjust spacing on last element
@@ -79,17 +76,6 @@
&%#{nth($names, 1)},
&.#{nth($names, 1)} {
border-left-color: $tint;
box-shadow:
inset 0 0 0 px2rem(1px) transparentize($tint, 0.85),
inset px2rem(1px) 0 $tint;
// Adjust for right-to-left languages
[dir="rtl"] & {
border-right-color: $tint;
box-shadow:
inset 0 0 0 px2rem(1px) transparentize($tint, 0.85),
inset px2rem(-1px) 0 $tint;
}
// Title
> :first-child {