mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fix search mode
This commit is contained in:
parent
5ee95e4fe2
commit
9d4a8409f9
File diff suppressed because one or more lines are too long
1
material/assets/stylesheets/application-fbfbf18e7f.css
Normal file
1
material/assets/stylesheets/application-fbfbf18e7f.css
Normal file
File diff suppressed because one or more lines are too long
@ -36,7 +36,7 @@
|
|||||||
{% include "partials/fonts.html" %}
|
{% include "partials/fonts.html" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block styles %}
|
{% block styles %}
|
||||||
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-b696a01fff.css">
|
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-fbfbf18e7f.css">
|
||||||
{% if config.extra.palette %}
|
{% if config.extra.palette %}
|
||||||
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-4bd030561c.palette.css">
|
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-4bd030561c.palette.css">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -51,8 +51,12 @@ body {
|
|||||||
|
|
||||||
// Lock body to viewport height (e.g. in search mode)
|
// Lock body to viewport height (e.g. in search mode)
|
||||||
&[data-md-state="lock"] {
|
&[data-md-state="lock"] {
|
||||||
height: 100%;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
|
// Hide container on iOS, or the body will not be locked correctly
|
||||||
|
.ios & .md-container {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -298,6 +298,7 @@
|
|||||||
|
|
||||||
box-shadow: 0 0.1rem 0 $md-color-black--lightest inset;
|
box-shadow: 0 0.1rem 0 $md-color-black--lightest inset;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
|
||||||
// [tablet landscape]: Set absolute width to omit unnecessary reflow
|
// [tablet landscape]: Set absolute width to omit unnecessary reflow
|
||||||
@include break-at-device(tablet landscape) {
|
@include break-at-device(tablet landscape) {
|
||||||
|
Loading…
Reference in New Issue
Block a user