Fixed minor styling error with title-only admonition blocks

This commit is contained in:
squidfunk 2017-12-02 14:43:49 +01:00 committed by Martin Donath
parent 5305cfcd53
commit e81054ceb6
7 changed files with 19 additions and 7 deletions

View File

@ -1,3 +1,7 @@
mkdocs-material-2.2.1 (2017-12-02)
* Removed border for table of contents and improved spacing
mkdocs-material-2.2.0 (2017-11-22)
* Added support for hero teaser

View File

@ -6,6 +6,8 @@ example summaries, notes, hints or warnings.
[1]: https://pythonhosted.org/Markdown/extensions/admonition.html
!!! note "LOL"
## Installation
Add the following lines to your `mkdocs.yml`:

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -34,7 +34,7 @@
<meta name="lang:{{ key }}" content="{{ lang.t(key) }}">
{% endfor %}
<link rel="shortcut icon" href="{{ base_url }}/{{ config.theme.favicon }}">
<meta name="generator" content="mkdocs-{{ mkdocs_version }}, mkdocs-material-2.2.0">
<meta name="generator" content="mkdocs-{{ mkdocs_version }}, mkdocs-material-2.2.1">
{% endblock %}
{% block htmltitle %}
{% if page and page.meta and page.meta.title %}
@ -46,7 +46,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application.6da73b00.css">
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application.f4dc4a07.css">
{% if palette.primary or palette.accent %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-palette.792431c1.css">
{% endif %}

View File

@ -1,6 +1,6 @@
{
"name": "mkdocs-material",
"version": "2.2.0",
"version": "2.2.1",
"description": "A Material Design theme for MkDocs",
"keywords": [
"mkdocs",

View File

@ -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;