Skip to content

Commit

Permalink
feat(themes): definitely remove theme toggle.
Browse files Browse the repository at this point in the history
I just don’t think it’s all that useful.
  • Loading branch information
goshatch committed Feb 23, 2025
1 parent ac657fa commit ca77f74
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 109 deletions.
8 changes: 0 additions & 8 deletions _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,6 @@
alt="A banner showing four icons: a pirate flag, a square ruler, a camera, and a pencil."
title="Link free!"
/></a>
<a href="https://infrequently.org/stickers/">
<img
src="/assets/images/antijsjsclub.png"
width="88"
height="31"
alt="Bare minimum JavaScript used"
title="Anti JavaScript JavaScript Club"
/></a>
</div>
</div>
{% assign lyric = site.data.lyrics | sample: 1 %}
Expand Down
6 changes: 0 additions & 6 deletions _includes/navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -248,12 +248,6 @@
<span class="nav-item-label">Now</span>
</a>
</li>
<!-- <li class="theme-toggle">
<button aria-label="Dark/Light theme toggle" onClick="toggleTheme()">
<i class="twa twa-sun"></i>
<i class="twa twa-moon"></i>
</button>
</li> -->
</ul>
</nav>
</header>
8 changes: 0 additions & 8 deletions _sass/_code.scss
Original file line number Diff line number Diff line change
Expand Up @@ -226,18 +226,10 @@ div.highlighter-rouge {
}
}

:root.dark {
@include dark-code-colors;
}

@media (prefers-color-scheme: dark) {
@include dark-code-colors;
}

:root.light {
@include light-code-colors;
}

@media (prefers-color-scheme: light) {
@include light-code-colors;
}
6 changes: 0 additions & 6 deletions _sass/_emoji.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,6 @@ licensed under MIT: https://ellekasai.mit-license.org/
.twa-flag-ukraine {
background-image: url("/assets/images/icons/ua-flag.svg");
}
.twa-sun {
background-image: url("/assets/images/icons/sun.svg");
}
.twa-moon {
background-image: url("/assets/images/icons/moon.svg");
}
.twa-camera {
background-image: url("/assets/images/icons/camera.svg");
}
10 changes: 0 additions & 10 deletions _sass/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,6 @@ footer {
footer .webring-link {
background-image: url("/assets/images/icons/webring-icon.white.svg");
}

html.light footer .webring-link {
background-image: url("/assets/images/icons/webring-icon.black.svg");
}
}

@media (prefers-color-scheme: light) {
html.dark footer .webring-link {
background-image: url("/assets/images/icons/webring-icon.white.svg");
}
}

@media (prefers-reduced-motion) {
Expand Down
14 changes: 0 additions & 14 deletions _sass/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -363,20 +363,6 @@ ul.task-list {
.newsletter h1.logo-title {
background-image: url(/assets/images/newsletter/logo-white.svg);
}

html.light .newsletter h1.logo-title {
background-image: url(/assets/images/newsletter/logo-black.svg);
}
}

@media (prefers-color-scheme: light) {
.newsletter h1.logo-title {
background-image: url(/assets/images/newsletter/logo-black.svg);
}

html.dark .newsletter h1.logo-title {
background-image: url(/assets/images/newsletter/logo-white.svg);
}
}

@media (max-width: 480px) {
Expand Down
55 changes: 0 additions & 55 deletions _sass/_navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,55 +55,6 @@ body .content > header > nav > ul > li a {
}
}

.theme-toggle {
button {
background: var(--color-emphasis);
border-radius: 2rem;
padding-bottom: 0.5rem;
cursor: pointer;
margin-top: -0.2rem;
}
.twa-moon {
display: none;
}
.twa-sun {
display: inline-block;
}
&:hover button {
background: var(--color-emphasis-reversed);
}
}

.light .theme-toggle,
.dark .theme-toggle:hover {
.twa-moon {
display: none;
}
.twa-sun {
display: inline-block;
}
}

.dark .theme-toggle,
.light .theme-toggle:hover {
.twa-sun {
display: none;
}
.twa-moon {
display: inline-block;
}
}

@media (prefers-color-scheme: dark) {
.theme-toggle {
.twa-sun {
display: none;
}
.twa-moon {
display: inline-block;
}
}
}

@media (max-width: 600px) {
body .content > header > nav > ul {
Expand All @@ -119,12 +70,6 @@ body .content > header > nav > ul > li a {
body .content > header > nav > ul > li a.nav-item {
line-height: 1.5rem;
}
.theme-toggle {
position: absolute;
top: 0.1rem;
right: 0px;
width: 2.5rem !important;
}
}

@media (min-width: 601px) and (max-width: 675px) {
Expand Down
1 change: 0 additions & 1 deletion assets/images/icons/moon.svg

This file was deleted.

1 change: 0 additions & 1 deletion assets/images/icons/sun.svg

This file was deleted.

0 comments on commit ca77f74

Please sign in to comment.