Simplified Admonition styles and fixed padding bug

This commit is contained in:
squidfunk 2017-12-08 09:36:03 +01:00 committed by Martin Donath
parent 4ea70d6630
commit 17fb20ddf0
4 changed files with 9 additions and 9 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -46,7 +46,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application.ac64251e.css">
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application.7a4cdee3.css">
{% if palette.primary or palette.accent %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-palette.792431c1.css">
{% endif %}

View File

@ -33,10 +33,11 @@
position: relative;
margin: 1.5625em 0;
padding: 1.2rem 1.2rem 0;
padding: 0 1.2rem;
border-left: 0.4rem solid $clr-blue-a200;
border-radius: 0.2rem;
font-size: ms(-1);
overflow: auto;
// Remove spacing on first element
:first-child {
@ -45,8 +46,7 @@
// Adjust spacing on last element
html & :last-child {
margin-bottom: 0;
padding-bottom: 1.2rem;
margin-bottom: 1.2rem;
}
// Adjust margin for nested admonition blocks
@ -56,15 +56,15 @@
// Title
> .admonition-title {
margin: -1.2rem -1.2rem 0;
margin: 0 -1.2rem;
padding: 0.8rem 1.2rem 0.8rem 4rem;
border-bottom: 0.1rem solid transparentize($clr-blue-a200, 0.9);
background-color: transparentize($clr-blue-a200, 0.9);
font-weight: 700;
// Reset spacing, if title is the only element
html & {
padding-bottom: 0.8rem;
&:last-child {
margin-bottom: 0;
}
// Icon