Skip to content

Commit 4a9e9a5

Browse files
authored
Merge pull request #143 from cherryblossom000/menu-bar
fix menu bar (again)
2 parents 97ebafc + 18cadaf commit 4a9e9a5

File tree

4 files changed

+52
-50
lines changed

4 files changed

+52
-50
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ google_analytics: UA-159840333-1
2525
# Build settings
2626
markdown: kramdown
2727
#theme: minima
28-
remote_theme: jekyll/minima
28+
remote_theme: jekyll/minima@0b7ca6b
2929

3030
plugins:
3131
- jekyll-feed

_includes/footer.html

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,38 @@
1+
<link id="fa-stylesheet" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@latest/css/all.min.css">
12
<footer class="site-footer h-card">
23
<data class="u-url" href="{{ "/" | relative_url }}"></data>
3-
4+
45
<div class="wrapper">
5-
6-
<div class="footer-col-wrapper">
7-
<div class="footer-col">
8-
<!-- <p class="feed-subscribe">
9-
<a href="{{ 'feed.xml' | relative_url }}">
10-
<svg class="svg-icon orange">
11-
<use xlink:href="{{ 'assets/minima-social-icons.svg#rss' | relative_url }}"></use>
12-
</svg><span>Subscribe</span>
13-
</a>
14-
</p> -->
15-
{%- if site.author %}
16-
<ul class="contact-list">
17-
{% if site.author.name -%}
18-
<li class="p-name">{{ site.author.name | escape }}</li>
19-
{% endif -%}
20-
{% if site.author.email -%}
21-
<li><a class="u-email" href="mailto:{{ site.author.email }}">{{ site.author.email }}</a></li>
6+
7+
<div class="footer-col-wrapper">
8+
<div class="footer-col">
9+
<!-- <p class="feed-subscribe">
10+
<a href="{{ 'feed.xml' | relative_url }}">
11+
<svg class="svg-icon orange">
12+
<use xlink:href="{{ 'assets/minima-social-icons.svg#rss' | relative_url }}"></use>
13+
</svg><span>Subscribe</span>
14+
</a>
15+
</p> -->
16+
{%- if site.author %}
17+
<ul class="contact-list">
18+
{% if site.author.name -%}
19+
<li class="p-name">{{ site.author.name | escape }}</li>
20+
{% endif -%}
21+
{% if site.author.email -%}
22+
<li><a class="u-email" href="mailto:{{ site.author.email }}">{{ site.author.email }}</a></li>
23+
{%- endif %}
24+
</ul>
2225
{%- endif %}
23-
</ul>
24-
{%- endif %}
2526
</div>
2627
<div class="footer-col">
27-
<p>{{ site.description | escape }}</p>
28+
<p>{{ site.description | escape }}</p>
2829
</div>
29-
</div>
30-
31-
<div class="social-links">
30+
</div>
31+
32+
<div class="social-links">
3233
{%- include social.html -%}
33-
</div>
34-
3534
</div>
36-
37-
</footer>
35+
36+
</div>
37+
38+
</footer>

_includes/header.html

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,24 @@
1212
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
1313
<label for="nav-trigger">
1414
<span class="menu-icon">
15-
<svg viewBox="0 0 18 15" width="18px" height="15px">
16-
<path d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"/>
17-
</svg>
1815
</span>
1916
</label>
2017

21-
<div class="trigger">
22-
<div id="nav-menu">
23-
{%- for path in page_paths -%}
24-
{%- assign my_page = site.pages | where: "path", path | first -%}
25-
{%- if my_page.title -%}
26-
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
27-
{%- endif -%}
28-
{%- endfor -%}
29-
<!-- Radio Switch -->
30-
<div id="toggle-div" style="display: none;">
31-
<div class="solutions-toggle">
32-
<p class="page-link" style="margin-bottom: 0px;">Show Solutions?</p>
33-
<label class="switch" style="vertical-align: middle;">
34-
<input type="checkbox" id="toggle-switch">
35-
<span class="slider round"></span>
36-
</label>
37-
</div>
18+
<div class="nav-items">
19+
{%- for path in page_paths -%}
20+
{%- assign my_page = site.pages | where: "path", path | first -%}
21+
{%- if my_page.title -%}
22+
<a class="page-link nav-item" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
23+
{%- endif -%}
24+
{%- endfor -%}
25+
<!-- Radio Switch -->
26+
<div id="toggle-div" style="display: none;">
27+
<div class="solutions-toggle">
28+
<p class="page-link" style="margin-bottom: 0px;">Show Solutions?</p>
29+
<label class="switch" style="vertical-align: middle;">
30+
<input type="checkbox" id="toggle-switch">
31+
<span class="slider round"></span>
32+
</label>
3833
</div>
3934
</div>
4035
</div>

_sass/minima/custom-styles.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ input:checked + .slider:before {
150150
z-index: 1;
151151
}
152152

153-
.site-nav .trigger {
153+
.nav-items {
154154
display: flex;
155155
align-items: center;
156156
justify-content: space-between; /* Adjust this as needed */
@@ -159,9 +159,15 @@ input:checked + .slider:before {
159159
box-sizing: border-box; /* Ensure padding is included in the width calculation */
160160
}
161161

162+
#nav-items {
163+
display: flex;
164+
gap: 1em;
165+
}
166+
162167
.solutions-toggle {
163168
display: flex;
164169
align-items: center;
170+
gap: 0.5em;
165171
}
166172

167173
.spoiler, .spoiler * {

0 commit comments

Comments
 (0)