mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-31 09:48:53 -04:00
Fixed minor styling error with title-only admonition blocks
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
|
||||
position: relative;
|
||||
margin: 1.5625em 0;
|
||||
padding: 1.2rem;
|
||||
padding: 1.2rem 1.2rem 0;
|
||||
border-left: 0.4rem solid $clr-blue-a200;
|
||||
border-radius: 0.2rem;
|
||||
font-size: ms(-1);
|
||||
@@ -43,9 +43,10 @@
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
// Remove spacing on last element
|
||||
// Adjust spacing on last element
|
||||
html & :last-child {
|
||||
margin-bottom: 0;
|
||||
padding-bottom: 1.2rem;
|
||||
}
|
||||
|
||||
// Adjust margin for nested admonition blocks
|
||||
@@ -61,6 +62,11 @@
|
||||
background-color: transparentize($clr-blue-a200, 0.9);
|
||||
font-weight: 700;
|
||||
|
||||
// Reset spacing, if title is the only element
|
||||
html & {
|
||||
padding-bottom: 0.8rem;
|
||||
}
|
||||
|
||||
// Icon
|
||||
&::before {
|
||||
@extend %md-icon;
|
||||
|
||||
Reference in New Issue
Block a user