Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* Fixes daattali#765

* Update beautifuljekyll.css

* Update beautifuljekyll.css

Co-authored-by: Dean Attali <dean@attalitech.com>
  • Loading branch information
dagnelies and daattali committed Jul 20, 2022
1 parent 33032c4 commit d609efe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion _includes/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
11 changes: 6 additions & 5 deletions assets/css/beautifuljekyll.css
Original file line number Diff line number Diff line change
Expand Up @@ -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" }};
}
Expand All @@ -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) {
Expand Down

0 comments on commit d609efe

Please sign in to comment.