Skip to content

Commit 66826b8

Browse files
Clean up
2 parents 9834586 + 2e70557 commit 66826b8

File tree

5 files changed

+516
-11
lines changed

5 files changed

+516
-11
lines changed

.github/workflows/jekyll.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Setup Ruby
3636
uses: ruby/setup-ruby@086ffb1a2090c870a3f881cc91ea83aa4243d408 # v1.195.0
3737
with:
38-
ruby-version: '3.1.7' # Not needed with a .ruby-version file
38+
ruby-version: '3.1' # Not needed with a .ruby-version file
3939
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
4040
cache-version: 0 # Increment this number if you need to re-download cached gems
4141
- name: Setup Pages

_includes/header.html

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,23 @@
3434
<a class="navbar-item" href="{{ site.url }}">
3535
<h4>{{ site.heading }}</h4>
3636
</a>
37-
<div class="navbar-item navbar-dark-mode__mobile is-hidden-tablet" onclick="modeSwitcher()">
38-
<div class="buttons">
39-
<a class="button is-text">
40-
<span class="icon is-small">
41-
<img src="../assets/img/moon.svg" id="theme-toggle-img--mobile">
42-
</span>
43-
</a>
37+
<!-- Mobile Buttons Group -->
38+
<div class="mobile-buttons-group is-hidden-tablet">
39+
<div class="navbar-item" onclick="openSearchModal()">
40+
<div class="buttons">
41+
<a class="button is-text">
42+
<span class="cmd-palette-btn">⌘K</span>
43+
</a>
44+
</div>
45+
</div>
46+
<div class="navbar-item navbar-dark-mode__mobile" onclick="modeSwitcher()">
47+
<div class="buttons">
48+
<a class="button is-text">
49+
<span class="icon is-small">
50+
<img src="../assets/img/moon.svg" id="theme-toggle-img--mobile">
51+
</span>
52+
</a>
53+
</div>
4454
</div>
4555
</div>
4656
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbarBasicExample">
@@ -79,13 +89,19 @@ <h4>{{ site.heading }}</h4>
7989
<a href="{{ site.social.linkedin }}" target="_blank" class="navbar-item" data-umami-event="social-linkedin">
8090
LinkedIn
8191
</a>
82-
<a href="mailto:{{ site.social.email }}" class="navbar-item" data-umami-event="social-email"> Email
92+
<a href="mailto:{{ site.social.email }}" class="navbar-item" data-umami-event="social-email">
93+
Email
8394
</a>
8495
</div>
85-
<div class="navbar-end is-hidden-mobile" onclick="modeSwitcher()" >
96+
<div class="navbar-end is-hidden-mobile">
8697
<div class="navbar-item">
8798
<div class="buttons">
88-
<a class="button is-text">
99+
<!-- Command Palette Button -->
100+
<a class="button is-text" onclick="openSearchModal()">
101+
<span class="cmd-palette-btn">⌘K</span>
102+
</a>
103+
<!-- Theme Switcher Button -->
104+
<a class="button is-text" onclick="modeSwitcher()">
89105
<span class="icon is-small">
90106
<img src="../assets/img/moon.svg" id="theme-toggle-img">
91107
</span>

_layouts/post.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,13 @@ <h5 class="block-title">Metadata</h5>
261261

262262
</div>
263263
</section>
264+
<!-- Command Palette -->
265+
<script type="module" src="https://unpkg.com/ninja-keys?module"></script>
266+
<ninja-keys class="dark"></ninja-keys>
267+
<script src="/assets/js/commandPalette.js"></script>
268+
<script src="https://cdn.jsdelivr.net/npm/canvas-confetti@1.9.2/dist/confetti.browser.min.js"></script>
269+
270+
<!-- Other Scripts -->
264271
<script src="/assets/js/copyCode.js"></script>
265272
<script src="/assets/js/headerLinks.js"></script>
266273
<script src="/assets/js/footnoteTooltip.js"></script>

assets/css/style.css

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1599,3 +1599,70 @@ label.margin-toggle:not(.sidenote-number) {
15991599
grid-template-columns: repeat(1, 1fr);
16001600
}
16011601
}
1602+
1603+
/* Command Palette Button Styles */
1604+
.cmd-palette-btn {
1605+
font-weight: 1000;
1606+
font-size: 25px;
1607+
text-decoration: none;
1608+
}
1609+
1610+
/* Override Bulma button styles with high specificity */
1611+
.navbar-item .button.is-text:hover,
1612+
.navbar-item .button.is-text:focus,
1613+
.navbar-item .button.is-text:active,
1614+
.button.is-text:hover,
1615+
.button.is-text:focus,
1616+
.button.is-text:active,
1617+
.button:hover,
1618+
.button:focus,
1619+
.button:active,
1620+
.cmd-palette-btn:hover,
1621+
.cmd-palette-btn:focus,
1622+
.cmd-palette-btn:active {
1623+
outline: none !important;
1624+
box-shadow: none !important;
1625+
background-color: transparent !important;
1626+
background: none !important;
1627+
color: inherit !important;
1628+
}
1629+
1630+
/* Remove underline from command palette button links */
1631+
a:has(.cmd-palette-btn) {
1632+
text-decoration: none !important;
1633+
}
1634+
1635+
a:has(.cmd-palette-btn):hover {
1636+
text-decoration: none !important;
1637+
}
1638+
1639+
/* Mobile navbar positioning - keep command palette next to theme switcher */
1640+
@media screen and (max-width: 1023px) {
1641+
.navbar-brand {
1642+
display: flex;
1643+
align-items: center;
1644+
justify-content: space-between;
1645+
width: 100%;
1646+
}
1647+
1648+
.navbar-brand .navbar-item:first-child {
1649+
flex-grow: 1;
1650+
}
1651+
1652+
.mobile-buttons-group {
1653+
display: flex;
1654+
gap: 0;
1655+
align-items: center;
1656+
margin-left: auto;
1657+
margin-right: 0.5rem;
1658+
}
1659+
1660+
.mobile-buttons-group .navbar-item {
1661+
padding-left: 0;
1662+
padding-right: 0;
1663+
}
1664+
1665+
.navbar-burger {
1666+
margin-left: 0;
1667+
}
1668+
}

0 commit comments

Comments
 (0)