Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mkdocs-material
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Janne Mareike Koschinski
mkdocs-material
Commits
bdaf0430
Commit
bdaf0430
authored
7 years ago
by
squidfunk
Browse files
Options
Downloads
Patches
Plain Diff
Reset drawer and search upon back button invocation
parent
65a67b29
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
material/base.html
+2
-2
2 additions, 2 deletions
material/base.html
src/base.html
+6
-3
6 additions, 3 deletions
src/base.html
with
8 additions
and
5 deletions
material/base.html
+
2
−
2
View file @
bdaf0430
...
@@ -91,8 +91,8 @@
...
@@ -91,8 +91,8 @@
{% endif %}
{% endif %}
</defs>
</defs>
</svg>
</svg>
<input
class=
"md-toggle"
data-md-toggle=
"drawer"
type=
"checkbox"
id=
"drawer"
>
<input
class=
"md-toggle"
data-md-toggle=
"drawer"
type=
"checkbox"
id=
"drawer"
autocomplete=
"off"
>
<input
class=
"md-toggle"
data-md-toggle=
"search"
type=
"checkbox"
id=
"search"
>
<input
class=
"md-toggle"
data-md-toggle=
"search"
type=
"checkbox"
id=
"search"
autocomplete=
"off"
>
<label
class=
"md-overlay"
data-md-component=
"overlay"
for=
"drawer"
></label>
<label
class=
"md-overlay"
data-md-component=
"overlay"
for=
"drawer"
></label>
{% if page.toc | first is defined %}
{% if page.toc | first is defined %}
<a
href=
"{{ (page.toc | first).url }}"
tabindex=
"1"
class=
"md-skip"
>
<a
href=
"{{ (page.toc | first).url }}"
tabindex=
"1"
class=
"md-skip"
>
...
...
This diff is collapsed.
Click to expand it.
src/base.html
+
6
−
3
View file @
bdaf0430
...
@@ -180,11 +180,14 @@
...
@@ -180,11 +180,14 @@
</defs>
</defs>
</svg>
</svg>
<!-- State toggles -->
<!--
State toggles - we need to set autocomplete="off" in order to reset the
drawer on back button invocation in some browsers
-->
<input
class=
"md-toggle"
data-md-toggle=
"drawer"
<input
class=
"md-toggle"
data-md-toggle=
"drawer"
type=
"checkbox"
id=
"drawer"
/>
type=
"checkbox"
id=
"drawer"
autocomplete=
"off"
/>
<input
class=
"md-toggle"
data-md-toggle=
"search"
<input
class=
"md-toggle"
data-md-toggle=
"search"
type=
"checkbox"
id=
"search"
/>
type=
"checkbox"
id=
"search"
autocomplete=
"off"
/>
<!-- Overlay for expanded drawer -->
<!-- Overlay for expanded drawer -->
<label
class=
"md-overlay"
data-md-component=
"overlay"
for=
"drawer"
></label>
<label
class=
"md-overlay"
data-md-component=
"overlay"
for=
"drawer"
></label>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment