* Fixes #765

* Update beautifuljekyll.css

* Update beautifuljekyll.css

Co-authored-by: Dean Attali <dean@attalitech.com>
This commit is contained in:
Arnaud Dagnelies 2022-07-20 07:23:09 +02:00 committed by GitHub
parent 33032c4895
commit d609efe427
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

View file

@ -16,7 +16,7 @@
{%- if link[1].first %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{{ link[0] }}</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
{%- for childlink in link[1] -%}
{%- for linkparts in childlink %}
<a class="dropdown-item" href="{{ linkparts[1] | relative_url }}">{{ linkparts[0] }}</a>

View file

@ -247,20 +247,17 @@ img {
}
.navbar-custom .nav-item.dropdown .dropdown-menu {
min-width: 0;
margin-top: 0;
font-size: 1em;
border: 0;
min-width: 100%;
padding: 0;
width: 100%;
word-break: break-word;
}
.navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item {
white-space: normal;
padding: 0.625rem;
background-color: {{ site.navbar-col | default: "#EAEAEA" }};
text-decoration: none !important;
border-width: 0 1px 1px 1px;
font-weight: normal;
color: {{ site.navbar-text-col | default: "#404040" }};
}
@ -275,6 +272,10 @@ img {
border: 1px solid {{ site.navbar-border-col | default: "#DDDDDD" }};
border-width: 0 1px 1px;
}
.navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item:first-child {
border-top-width: 1px;
}
}
@media (max-width: 1199px) {