Move dark/light/system theme button into header menu.

This commit is contained in:
Benjamin A. Shelton 2026-12-02 19:07:43 -07:00
commit 0664067bd6
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01
3 changed files with 14 additions and 7 deletions

View file

@ -8,7 +8,6 @@ const revCount = import.meta.env.REV_COUNT;
---
<footer>
<ul>
<li><button data-toggle-theme><Icon /></button></li>
<li>&copy; 2026 <a href="https://bashelton.com/">Benjamin A. Shelton</a></li>
<li>Some rights reserved.</li>
<li>Revision <a href={revURL}>r{revCount} (sha1:{rev})</a></li>

View file

@ -19,13 +19,14 @@ const base = import.meta.env.BASE_URL;
<ul id="menu-items">
<li><a href={urlfrag(base, '')}><span class="icon"><Icon name="house-door-fill" /></span> Home</a></li>
<li><a href="#" data-click="config"><span class="icon"><Icon name="universal-access" /></span> Accessibility and Fonts</a></li>
<li><span class="heading">Notes</span>
<!--<li><span class="heading">Notes</span>
<ul>
<li><a href={urlfrag(base, '/notes/by/book/')}><span class="icon"><Icon name="book" /></span> By Book</a></li>
<li><a href={urlfrag(base, '/notes/by/date/')}><span class="icon"><Icon name="calendar2-check-fill" /></span> By Date</a></li>
</ul>
</li>
</li>-->
<li><a href={urlfrag(base, 'copyrights/')}><span class="icon"><Icon name="c-circle" /></span> Copyright Notices</a></li>
<li><button data-toggle-theme><Icon name="circle-half" /></button></li>
</ul>
</label>
</div>

View file

@ -273,6 +273,7 @@ header {
}
footer {
@apply flex justify-center text-center;
@apply bg-sunday-theme font-mono mt-4 p-8 text-gray-500 text-sm;
@apply dark:bg-neutral-950;
@ -283,9 +284,11 @@ footer {
ul li a {
@apply border-b-2 border-gray-500 hover:text-gray-300 hover:border-gray-300;
}
}
header#header {
button {
@apply border-gray-500 rounded-md p-4 font-mono hover:bg-gray-700 hover:border-gray-400 hover:text-gray-400;
@apply cursor-pointer ml-8 mt-8 text-lg;
border-style: solid;
border-width: 1px;
}
@ -703,12 +706,15 @@ article.content {
}
nav#pagination {
@apply flex items-center justify-center mt-6 mb-6 text-xl transition-colors duration-500;
@apply flex items-center justify-center mt-6 mb-6 transition-colors duration-500;
}
nav#pagination {
ul {
@apply grid grid-cols-[1fr_1fr_1fr_1fr];
}
ul, li {
@apply inline;
@apply list-none m-0;
}
ul {
li {
@ -718,7 +724,8 @@ nav#pagination {
@apply mr-0;
}
li a {
@apply bg-gray-100 font-bold mb-2 p-4 rounded-md text-cyan-900 text-sm hover:bg-gray-200 hover:text-black inline;
@apply block ml-1 mr-1 text-center;
@apply bg-gray-100 font-bold p-2 rounded-md text-cyan-900 text-sm hover:bg-gray-200 hover:text-black;
@apply dark:bg-gray-700 dark:text-blue-300 dark:hover:text-gray-300 dark:hover:bg-gray-600;
}
li a.disabled {