Skip to content

Commit

Permalink
replace dropdown divider with <hr>
Browse files Browse the repository at this point in the history
  • Loading branch information
rohandebsarkar committed Jul 5, 2022
1 parent 1dc0a05 commit 89cf3e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<div class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
{%- for child in p.children -%}
{%- if child.title == 'divider' %}
<div class="dropdown-divider"></div>
<hr>
{%- else %}
<a class="dropdown-item" href="{{ child.permalink | relative_url }}">{{ child.title }}</a>
{%- endif -%}
Expand Down
4 changes: 2 additions & 2 deletions _sass/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ blockquote {
a:hover {
color: var(--global-hover-color);
}
.dropdown-divider {
border-top: 1px solid var(--global-divider-color) !important;
hr {
margin: 0;
}
}
.dropdown-item {
Expand Down

0 comments on commit 89cf3e7

Please sign in to comment.