mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed scrollbar on mobile when header is hidden on some browsers
This commit is contained in:
parent
60a007844c
commit
d678678cc4
2
material/assets/stylesheets/main.3c7cdd75.min.css
vendored
Normal file
2
material/assets/stylesheets/main.3c7cdd75.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
material/assets/stylesheets/main.3c7cdd75.min.css.map
Normal file
1
material/assets/stylesheets/main.3c7cdd75.min.css.map
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -39,7 +39,7 @@
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% block styles %}
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.665c42a3.min.css' | url }}">
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.3c7cdd75.min.css' | url }}">
|
||||
{% if config.theme.palette %}
|
||||
{% set palette = config.theme.palette %}
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.3f5d1f46.min.css' | url }}">
|
||||
|
@ -146,41 +146,36 @@
|
||||
@include break-to-device(tablet portrait) {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 100%;
|
||||
left: 0;
|
||||
z-index: 2;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
width: 0;
|
||||
height: 0;
|
||||
transform: translateX(5%);
|
||||
opacity: 0;
|
||||
transition:
|
||||
right 0ms 300ms,
|
||||
left 0ms 300ms,
|
||||
width 0ms 300ms,
|
||||
height 0ms 300ms,
|
||||
transform 150ms 150ms cubic-bezier(0.4, 0, 0.2, 1),
|
||||
opacity 150ms 150ms;
|
||||
|
||||
// Adjust for right-to-left languages
|
||||
[dir="rtl"] & {
|
||||
right: 0;
|
||||
left: initial;
|
||||
transform: translateX(-5%);
|
||||
}
|
||||
|
||||
// Adjust appearance when search is active
|
||||
[data-md-toggle="search"]:checked ~ .md-header & {
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
transform: translateX(0);
|
||||
opacity: 1;
|
||||
transition:
|
||||
right 0ms 0ms,
|
||||
left 0ms 0ms,
|
||||
width 0ms 0ms,
|
||||
height 0ms 0ms,
|
||||
transform 150ms 150ms cubic-bezier(0.1, 0.7, 0.1, 1),
|
||||
opacity 150ms 150ms;
|
||||
|
||||
// Adjust for right-to-left languages
|
||||
[dir="rtl"] & {
|
||||
right: 0;
|
||||
left: initial;
|
||||
}
|
||||
}
|
||||
|
||||
// Adjust for right-to-left languages
|
||||
html [dir="rtl"] & {
|
||||
right: 100%;
|
||||
left: initial;
|
||||
transform: translateX(-5%);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user