Skip to content

Commit

Permalink
Small facelifting of Admonitions
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Feb 12, 2020
1 parent 76258ee commit a018ed0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/assets/stylesheets/extensions/_admonition.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,12 @@

// Admonition extension
.admonition {
@include z-depth(2);

margin: 1.5625em 0;
padding: 0 px2rem(12px);
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.75);
overflow: auto;

// Adjust for RTL languages
Expand All @@ -58,7 +57,6 @@
> .admonition-title {
margin: 0 px2rem(-12px);
padding: px2rem(8px) px2rem(12px) px2rem(8px) px2rem(40px);
border-bottom: px2rem(1px) solid transparentize($clr-blue-a200, 0.9);
background-color: transparentize($clr-blue-a200, 0.9);
font-weight: 700;

Expand Down Expand Up @@ -111,6 +109,7 @@
&%#{nth($names, 1)},
&.#{nth($names, 1)} {
border-left-color: $tint;
box-shadow: inset 0 0 0 px2rem(1px) transparentize($tint, 0.75);

// Adjust for RTL languages
[dir="rtl"] & {
Expand All @@ -119,7 +118,6 @@

// Title
> .admonition-title {
border-bottom-color: transparentize($tint, 0.9);
background-color: transparentize($tint, 0.9);

// Icon
Expand Down

0 comments on commit a018ed0

Please sign in to comment.