Add navbar-var-length config parameter (#1011)

* add navbar-var-length config option

* fix endif -> endunless
This commit is contained in:
Dean Attali 2022-07-20 22:53:17 -04:00 committed by GitHub
parent 0859158885
commit 685cf73c9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 2 deletions

View file

@ -250,8 +250,14 @@ img {
margin-top: 0;
font-size: 1em;
border: 0;
min-width: 100%;
padding: 0;
{% if site.navbar-var-length %}
min-width: 100%;
{% else %}
min-width: 0;
width: 100%;
word-break: break-word;
{% endif %}
}
.navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item {
@ -260,6 +266,9 @@ img {
text-decoration: none !important;
font-weight: normal;
color: {{ site.navbar-text-col | default: "#404040" }};
{% unless site.navbar-var-length %}
white-space: normal;
{% endunless %}
}
@media (min-width: 1200px) {