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 %} {% endif %}
{% endblock %} {% endblock %}
{% block styles %} {% 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 %} {% if palette.primary or palette.accent %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-palette.792431c1.css"> <link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-palette.792431c1.css">
{% endif %} {% endif %}

View File

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