Skip to content
Snippets Groups Projects
Commit e81054ce authored by squidfunk's avatar squidfunk Committed by Martin Donath
Browse files

Fixed minor styling error with title-only admonition blocks

parent 5305cfcd
No related branches found
No related tags found
No related merge requests found
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
......
......@@ -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`:
......
......@@ -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 %}
......
{
"name": "mkdocs-material",
"version": "2.2.0",
"version": "2.2.1",
"description": "A Material Design theme for MkDocs",
"keywords": [
"mkdocs",
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment