1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-24 07:30:12 +01:00

Fixed rendering error for details

This commit is contained in:
squidfunk 2020-03-19 12:13:06 +01:00
parent 5f2f497f0c
commit 30f7c15368
6 changed files with 17 additions and 9 deletions

View File

@ -1,10 +1,10 @@
{ {
"assets/javascripts/bundle.js": "assets/javascripts/bundle.8f6f3473.min.js", "assets/javascripts/bundle.js": "assets/javascripts/bundle.9ba506a9.min.js",
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.8f6f3473.min.js.map", "assets/javascripts/bundle.js.map": "assets/javascripts/bundle.9ba506a9.min.js.map",
"assets/javascripts/vendor.js": "assets/javascripts/vendor.0c35f0aa.min.js", "assets/javascripts/vendor.js": "assets/javascripts/vendor.0c35f0aa.min.js",
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.0c35f0aa.min.js.map", "assets/javascripts/vendor.js.map": "assets/javascripts/vendor.0c35f0aa.min.js.map",
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.2613054f.min.js", "assets/javascripts/worker/search.js": "assets/javascripts/worker/search.2613054f.min.js",
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.2613054f.min.js.map", "assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.2613054f.min.js.map",
"assets/stylesheets/main.css": "assets/stylesheets/main.9753e9ae.min.css", "assets/stylesheets/main.css": "assets/stylesheets/main.02c0bdda.min.css",
"assets/stylesheets/palette.css": "assets/stylesheets/palette.31180ff2.min.css" "assets/stylesheets/palette.css": "assets/stylesheets/palette.31180ff2.min.css"
} }

View File

@ -41,7 +41,7 @@
{% endif %} {% endif %}
{% endblock %} {% endblock %}
{% block styles %} {% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.9753e9ae.min.css' | url }}"> <link rel="stylesheet" href="{{ 'assets/stylesheets/main.02c0bdda.min.css' | url }}">
{% if palette.primary or palette.accent %} {% if palette.primary or palette.accent %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.31180ff2.min.css' | url }}"> <link rel="stylesheet" href="{{ 'assets/stylesheets/palette.31180ff2.min.css' | url }}">
{% endif %} {% endif %}
@ -178,7 +178,7 @@
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}
<script src="{{ 'assets/javascripts/vendor.0c35f0aa.min.js' | url }}"></script> <script src="{{ 'assets/javascripts/vendor.0c35f0aa.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.8f6f3473.min.js' | url }}"></script> <script src="{{ 'assets/javascripts/bundle.9ba506a9.min.js' | url }}"></script>
{%- set translations = {} -%} {%- set translations = {} -%}
{%- for key in [ {%- for key in [
"clipboard.copy", "clipboard.copy",

View File

@ -42,14 +42,21 @@
padding-top: 0; padding-top: 0;
overflow: visible; overflow: visible;
// Rotate title icon // Rotate title icon
&[open] > summary::after { &[open] > summary::after {
transform: rotate(90deg); transform: rotate(90deg);
} }
// Remove bottom spacing // Remove bottom spacing for closed details
&:not([open]) { &:not([open]) {
padding-bottom: 0; padding-bottom: 0;
// We cannot set overflow: hidden, as the outline would not be visible,
// so we need to correct the border radius
> summary {
border-bottom-right-radius: px2rem(2px);
}
} }
// Hack: omit margin collapse // Hack: omit margin collapse
@ -65,6 +72,7 @@
min-height: px2rem(20px); min-height: px2rem(20px);
padding: px2rem(8px) px2rem(36px) px2rem(8px) px2rem(40px); padding: px2rem(8px) px2rem(36px) px2rem(8px) px2rem(40px);
border-top-right-radius: px2rem(2px);
cursor: pointer; cursor: pointer;
// Adjust for right-to-left languages // Adjust for right-to-left languages