1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-12-01 02:27:17 +01:00

Fixed scroll bar on tables inside admonitions

This commit is contained in:
squidfunk 2020-03-11 14:55:13 +01:00
parent fcbd47c2cb
commit 447d409b81
8 changed files with 20 additions and 10 deletions

View File

@ -1,10 +1,10 @@
{
"assets/javascripts/bundle.js": "assets/javascripts/bundle.7076e726.min.js",
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.7076e726.min.js.map",
"assets/javascripts/bundle.js": "assets/javascripts/bundle.5d04593e.min.js",
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.5d04593e.min.js.map",
"assets/javascripts/vendor.js": "assets/javascripts/vendor.b0b43276.min.js",
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.b0b43276.min.js.map",
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.784c5235.min.js",
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.784c5235.min.js.map",
"assets/stylesheets/main.css": "assets/stylesheets/main.1fb2593e.min.css",
"assets/stylesheets/main.css": "assets/stylesheets/main.0243f7e4.min.css",
"assets/stylesheets/palette.css": "assets/stylesheets/palette.31180ff2.min.css"
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -41,7 +41,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.1fb2593e.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.0243f7e4.min.css' | url }}">
{% if palette.primary or palette.accent %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.31180ff2.min.css' | url }}">
{% endif %}
@ -178,7 +178,7 @@
{% endblock %}
{% block scripts %}
<script src="{{ 'assets/javascripts/vendor.b0b43276.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.7076e726.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.5d04593e.min.js' | url }}"></script>
{%- set translations = {} -%}
{%- for key in [
"clipboard.copy",

View File

@ -488,7 +488,7 @@ kbd {
}
// Data table wrapper, in case JavaScript is available
.md-typeset__table {
&__table {
display: inline-block;
margin-bottom: 0.5em;
padding: 0 px2rem(16px);

View File

@ -49,7 +49,7 @@
.admonition {
margin: 1.5625em 0;
padding: 0 px2rem(12px);
overflow: auto;
overflow: hidden;
font-size: ms(-1);
border-left: px2rem(4px) solid $clr-blue-a200;
border-radius: px2rem(2px);
@ -73,6 +73,16 @@
margin: 1em 0;
}
// Wrapper for scrolling on overflow
.md-typeset__scrollwrap {
margin: 1em px2rem(-12px);
}
// Data table wrapper, in case JavaScript is available
.md-typeset__table {
padding: 0 px2rem(12px);
}
// Build representational classes
@each $names, $tint in (
abstract summary tldr: $clr-light-blue-a400,