Skip to content

Commit

Permalink
update layout of solutions button
Browse files Browse the repository at this point in the history
  • Loading branch information
cherryblossom000 committed Aug 30, 2024
1 parent 93a9078 commit 67daf75
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
30 changes: 15 additions & 15 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@
</span>
</label>

<div class="trigger">
{%- for path in page_paths -%}
{%- assign my_page = site.pages | where: "path", path | first -%}
{%- if my_page.title -%}
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
{%- endif -%}
{%- endfor -%}
<!-- Radio Switch -->
<div id="toggle-div" style="display: none;">
<p class="page-link" style="margin-bottom: 0px;">Show Solutions?</p>
<label class="switch" style="vertical-align: middle;">
<input type="checkbox" id="toggle-switch">
<span class="slider round"></span>
</label>
</div>
<div id="nav-menu" class="trigger">
{%- for path in page_paths -%}
{%- assign my_page = site.pages | where: "path", path | first -%}
{%- if my_page.title -%}
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
{%- endif -%}
{%- endfor -%}
<!-- Radio Switch -->
<div id="toggle-div" style="display: none;">
<p class="page-link" style="margin-bottom: 0px;">Show Solutions?</p>
<label class="switch" style="vertical-align: middle;">
<input type="checkbox" id="toggle-switch">
<span class="slider round"></span>
</label>
</div>
</div>
</nav>
{%- endif -%}
Expand Down
5 changes: 5 additions & 0 deletions _sass/minima/custom-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ input:checked + .slider:before {
z-index: 1;
}


#nav-menu {
display: flex;
}

.site-nav .trigger {
display: flex;
align-items: center;
Expand Down

0 comments on commit 67daf75

Please sign in to comment.