Fixed overflowing navigation tabs not being scrollable

This commit is contained in:
squidfunk 2022-12-18 10:15:08 +01:00
parent dcc50ffc4e
commit 9fb36102df
11 changed files with 22 additions and 11 deletions

View File

@ -16,5 +16,5 @@
{% endblock %}
{% block scripts %}
{{ super() }}
<script src="{{ 'assets/javascripts/custom.794c1817.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/custom.019e56df.min.js' | url }}"></script>
{% endblock %}

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

File diff suppressed because one or more lines are too long

View File

@ -40,7 +40,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.91872f81.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.f79797b0.min.css' | url }}">
{% if config.theme.palette %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.2505c338.min.css' | url }}">
@ -246,7 +246,7 @@
{% endfor %}
{% endblock %}
{% if page.meta and page.meta.ᴴₒᴴₒᴴₒ %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/extra.e437594a.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/extra.a2da3c40.min.css' | url }}">
<script src="{{ 'assets/javascripts/extra/bundle.cfb3feee.min.js' | url }}" defer></script>
{% endif %}
</body>

View File

@ -56,9 +56,20 @@
margin: 0;
margin-inline-start: px2rem(4px);
padding: 0;
overflow: auto;
white-space: nowrap;
list-style: none;
contain: content;
// Hack: don't show scrollbar when tabs overflow, which they should onyl do
// in rate occasions, as adding too many top level sections is discouraged,
// since hiding content on horitontal axis doesn't lead to a good user
// experience. It's just harder to discover.
scrollbar-width: none;
// Hack: see above
&::-webkit-scrollbar {
display: none;
}
}
// Navigation tabs item