Skip to content

Commit 742150d

Browse files
authored
Revert "Fixed sidebar on Firefox mobile (#8083)" (#8084)
This reverts commit a303a01.
1 parent a303a01 commit 742150d

File tree

5 files changed

+9
-13
lines changed

5 files changed

+9
-13
lines changed

material/templates/assets/stylesheets/main.4af4bdda.min.css

-1
This file was deleted.

material/templates/assets/stylesheets/main.8608ea7d.min.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/templates/assets/stylesheets/main.4af4bdda.min.css.map material/templates/assets/stylesheets/main.8608ea7d.min.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/templates/base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
{% endif %}
4545
{% endblock %}
4646
{% block styles %}
47-
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.4af4bdda.min.css' | url }}">
47+
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.8608ea7d.min.css' | url }}">
4848
{% if config.theme.palette %}
4949
{% set palette = config.theme.palette %}
5050
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.06af60db.min.css' | url }}">

src/templates/assets/stylesheets/main/components/_sidebar.scss

+6-10
Original file line numberDiff line numberDiff line change
@@ -124,19 +124,15 @@
124124
margin: 0 px2rem(4px);
125125
overflow-y: auto;
126126
scrollbar-color: var(--md-default-fg-color--lighter) transparent;
127+
scrollbar-gutter: stable;
128+
// Hack: Chrome 81+ exhibits a strange bug, where it scrolls the container
129+
// to the bottom if `scroll-snap-type` is set on the initial render. For
130+
// this reason, we disable scroll snapping until this is resolved (#1667).
131+
// scroll-snap-type: y mandatory;
132+
scrollbar-width: thin;
127133
// Hack: promote to own layer to reduce jitter
128134
backface-visibility: hidden;
129135

130-
// [tablet landscape +]: Show sidebars
131-
@include break-from-device(tablet landscape) {
132-
scrollbar-gutter: stable;
133-
// Hack: Chrome 81+ exhibits a strange bug, where it scrolls the container
134-
// to the bottom if `scroll-snap-type` is set on the initial render. For
135-
// this reason, we disable scroll snapping until this is resolved (#1667).
136-
// scroll-snap-type: y mandatory;
137-
scrollbar-width: thin;
138-
}
139-
140136
// Webkit scrollbar
141137
&::-webkit-scrollbar {
142138
width: px2rem(4px);

0 commit comments

Comments
 (0)