mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed overflow scrolling behavior
This commit is contained in:
parent
dda04673e8
commit
15961dffa8
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"assets/javascripts/bundle.js": "assets/javascripts/bundle.acd913ae.min.js",
|
"assets/javascripts/bundle.js": "assets/javascripts/bundle.05dbdb2b.min.js",
|
||||||
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.acd913ae.min.js.map",
|
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.05dbdb2b.min.js.map",
|
||||||
"assets/javascripts/vendor.js": "assets/javascripts/vendor.241d0c29.min.js",
|
"assets/javascripts/vendor.js": "assets/javascripts/vendor.241d0c29.min.js",
|
||||||
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.241d0c29.min.js.map",
|
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.241d0c29.min.js.map",
|
||||||
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.7f7c8775.min.js",
|
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.7f7c8775.min.js",
|
||||||
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.7f7c8775.min.js.map",
|
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.7f7c8775.min.js.map",
|
||||||
"assets/stylesheets/main.css": "assets/stylesheets/main.28d6c211.min.css",
|
"assets/stylesheets/main.css": "assets/stylesheets/main.25573976.min.css",
|
||||||
"assets/stylesheets/palette.css": "assets/stylesheets/palette.4444686e.min.css"
|
"assets/stylesheets/palette.css": "assets/stylesheets/palette.4444686e.min.css"
|
||||||
}
|
}
|
1
material/assets/stylesheets/main.25573976.min.css
vendored
Normal file
1
material/assets/stylesheets/main.25573976.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -41,7 +41,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block styles %}
|
{% block styles %}
|
||||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.28d6c211.min.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.25573976.min.css' | url }}">
|
||||||
{% if palette.primary or palette.accent %}
|
{% if palette.primary or palette.accent %}
|
||||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.4444686e.min.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.4444686e.min.css' | url }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -179,7 +179,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script src="{{ 'assets/javascripts/vendor.241d0c29.min.js' | url }}"></script>
|
<script src="{{ 'assets/javascripts/vendor.241d0c29.min.js' | url }}"></script>
|
||||||
<script src="{{ 'assets/javascripts/bundle.acd913ae.min.js' | url }}"></script>
|
<script src="{{ 'assets/javascripts/bundle.05dbdb2b.min.js' | url }}"></script>
|
||||||
{%- set translations = {} -%}
|
{%- set translations = {} -%}
|
||||||
{%- for key in [
|
{%- for key in [
|
||||||
"clipboard.copy",
|
"clipboard.copy",
|
||||||
|
@ -204,7 +204,7 @@ kbd {
|
|||||||
word-break: normal;
|
word-break: normal;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
box-decoration-break: slice;
|
box-decoration-break: slice;
|
||||||
touch-action: pan-x;
|
touch-action: auto;
|
||||||
|
|
||||||
// Override native scrollbar styles
|
// Override native scrollbar styles
|
||||||
&::-webkit-scrollbar {
|
&::-webkit-scrollbar {
|
||||||
@ -393,7 +393,7 @@ kbd {
|
|||||||
box-shadow:
|
box-shadow:
|
||||||
0 px2rem(4px) px2rem(10px) hsla(0, 0%, 0%, 0.05),
|
0 px2rem(4px) px2rem(10px) hsla(0, 0%, 0%, 0.05),
|
||||||
0 0 px2rem(1px) hsla(0, 0%, 0%, 0.1);
|
0 0 px2rem(1px) hsla(0, 0%, 0%, 0.1);
|
||||||
touch-action: pan-x;
|
touch-action: auto;
|
||||||
|
|
||||||
// Due to margin collapse because of the necessary inline-block hack, we
|
// Due to margin collapse because of the necessary inline-block hack, we
|
||||||
// cannot increase the bottom margin on the table, so we just increase the
|
// cannot increase the bottom margin on the table, so we just increase the
|
||||||
@ -456,7 +456,7 @@ kbd {
|
|||||||
&__scrollwrap {
|
&__scrollwrap {
|
||||||
margin: 1em px2rem(-16px);
|
margin: 1em px2rem(-16px);
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
touch-action: pan-x;
|
touch-action: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Data table wrapper, in case JavaScript is available
|
// Data table wrapper, in case JavaScript is available
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
margin: 0.75em 0;
|
margin: 0.75em 0;
|
||||||
padding: 0.75em 0;
|
padding: 0.75em 0;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
touch-action: pan-x;
|
touch-action: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Stretch top-level containers
|
// Stretch top-level containers
|
||||||
|
@ -290,7 +290,10 @@ export default (_env: never, args: Configuration): Configuration[] => {
|
|||||||
"{#-\n" +
|
"{#-\n" +
|
||||||
" This file was automatically generated - do not edit\n" +
|
" This file was automatically generated - do not edit\n" +
|
||||||
"-#}\n"
|
"-#}\n"
|
||||||
return banner + minhtml(content.toString().replace(/\r\n/gm, "\n"), {
|
|
||||||
|
/* Normalize line feeds and minify HTML */
|
||||||
|
const html = content.toString().replace(/\r\n/gm, "\n")
|
||||||
|
return banner + minhtml(html, {
|
||||||
collapseBooleanAttributes: true,
|
collapseBooleanAttributes: true,
|
||||||
includeAutoGeneratedTags: false,
|
includeAutoGeneratedTags: false,
|
||||||
minifyCSS: true,
|
minifyCSS: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user