Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7b29a48

Browse files
dagneliesdaattali
andauthored
* Fixes daattali#765 * Update beautifuljekyll.css * Update beautifuljekyll.css Co-authored-by: Dean Attali <[email protected]>
1 parent 8ff0e55 commit 7b29a48

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

_includes/nav.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
{%- if link[1].first %}
1717
<li class="nav-item dropdown">
1818
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{{ link[0] }}</a>
19-
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
19+
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
2020
{%- for childlink in link[1] -%}
2121
{%- for linkparts in childlink %}
2222
<a class="dropdown-item" href="{{ linkparts[1] | relative_url }}">{{ linkparts[0] }}</a>

assets/css/beautifuljekyll.css

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,20 +247,17 @@ img {
247247
}
248248

249249
.navbar-custom .nav-item.dropdown .dropdown-menu {
250-
min-width: 0;
251250
margin-top: 0;
252251
font-size: 1em;
253252
border: 0;
253+
min-width: 100%;
254254
padding: 0;
255-
width: 100%;
256-
word-break: break-word;
257255
}
256+
258257
.navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item {
259-
white-space: normal;
260258
padding: 0.625rem;
261259
background-color: {{ site.navbar-col | default: "#EAEAEA" }};
262260
text-decoration: none !important;
263-
border-width: 0 1px 1px 1px;
264261
font-weight: normal;
265262
color: {{ site.navbar-text-col | default: "#404040" }};
266263
}
@@ -275,6 +272,10 @@ img {
275272
border: 1px solid {{ site.navbar-border-col | default: "#DDDDDD" }};
276273
border-width: 0 1px 1px;
277274
}
275+
276+
.navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item:first-child {
277+
border-top-width: 1px;
278+
}
278279
}
279280

280281
@media (max-width: 1199px) {

0 commit comments

Comments
 (0)