mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Simplified Admonition styles and fixed padding bug
This commit is contained in:
parent
4ea70d6630
commit
17fb20ddf0
2
material/assets/stylesheets/application.7a4cdee3.css
Normal file
2
material/assets/stylesheets/application.7a4cdee3.css
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -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 %}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user