mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-28 01:10:58 +01:00
Improved focus outline for desktop navigation
This commit is contained in:
parent
27fb3c0d0e
commit
2e60bca665
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
material/assets/stylesheets/main.dcbf0b87.min.css
vendored
Normal file
2
material/assets/stylesheets/main.dcbf0b87.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
material/assets/stylesheets/main.dcbf0b87.min.css.map
Normal file
1
material/assets/stylesheets/main.dcbf0b87.min.css.map
Normal file
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.6f955dcd.min.css' | url }}">
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.dcbf0b87.min.css' | url }}">
|
||||
{% if config.theme.palette %}
|
||||
{% set palette = config.theme.palette %}
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.ef6f36e2.min.css' | url }}">
|
||||
|
@ -624,13 +624,13 @@
|
||||
// Modifier for when navigation tabs are rendered
|
||||
&--lifted {
|
||||
|
||||
// Hide nested items on level 1 and site title
|
||||
// Hide nested level 0 items and site title
|
||||
> .md-nav__list > .md-nav__item--nested,
|
||||
> .md-nav__title {
|
||||
display: none;
|
||||
}
|
||||
|
||||
// Hide level 1 items
|
||||
// Hide level 0 items
|
||||
> .md-nav__list > .md-nav__item {
|
||||
display: none;
|
||||
|
||||
@ -652,17 +652,17 @@
|
||||
scroll-snap-align: start;
|
||||
}
|
||||
}
|
||||
|
||||
// Adjust spacing for navigation item on level 2
|
||||
> .md-nav__item {
|
||||
padding-right: px2rem(12px);
|
||||
}
|
||||
}
|
||||
|
||||
// Hack: Always show active navigation tab on breakpoint screen, despite
|
||||
// of checkbox being checked or not. Fixes #1655.
|
||||
.md-nav[data-md-level="1"] {
|
||||
display: block;
|
||||
|
||||
// Adjust spacing for level 1 items
|
||||
> .md-nav__list > .md-nav__item {
|
||||
padding-right: px2rem(12px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user