Skip to content

Commit 4bd9b65

Browse files
Update theme switcher icon and clean up CSS rendering rules
1 parent 4254886 commit 4bd9b65

File tree

3 files changed

+6
-17
lines changed

3 files changed

+6
-17
lines changed

_includes/header.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ <h4>{{ site.heading }}</h4>
5353
<div class="navbar-item navbar-dark-mode__mobile" onclick="modeSwitcher()">
5454
<div class="buttons">
5555
<a class="button is-text">
56-
<span class="theme-toggle-btn" id="theme-toggle-img--mobile"></span>
56+
<span class="theme-toggle-btn" id="theme-toggle-img--mobile"></span>
5757
</a>
5858
</div>
5959
</div>
@@ -111,7 +111,7 @@ <h4>{{ site.heading }}</h4>
111111
</a>
112112
<!-- Theme Switcher Button -->
113113
<a class="button is-text" onclick="modeSwitcher()">
114-
<span class="theme-toggle-btn" id="theme-toggle-img"></span>
114+
<span class="theme-toggle-btn" id="theme-toggle-img"></span>
115115
</a>
116116
</div>
117117
</div>

assets/css/style.css

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1620,17 +1620,6 @@ label.margin-toggle:not(.sidenote-number) {
16201620
font-weight: 600;
16211621
font-size: 1.25rem;
16221622
text-decoration: none;
1623-
/* Force text rendering instead of emoji - multiple approaches */
1624-
font-variant-emoji: text !important;
1625-
font-feature-settings: "liga" off !important;
1626-
-webkit-font-feature-settings: "liga" off !important;
1627-
-moz-font-feature-settings: "liga" off !important;
1628-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
1629-
text-rendering: geometricPrecision !important;
1630-
-webkit-text-rendering: geometricPrecision !important;
1631-
-moz-text-rendering: geometricPrecision !important;
1632-
-webkit-font-variant-ligatures: none !important;
1633-
font-variant-ligatures: none !important;
16341623
}
16351624

16361625
/* Override Bulma button styles with high specificity */

assets/js/modeSwitcher.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ let theme = sessionStorage.getItem('theme');
1919
// Apply theme based on stored value or default to dark
2020
if (theme === "light") {
2121
document.documentElement.setAttribute('data-theme', 'light');
22-
changeIconSymbol("");
22+
changeIconSymbol("");
2323
} else {
2424
// Default to dark if no preference or saved theme is dark
2525
document.documentElement.setAttribute('data-theme', 'dark');
26-
changeIconSymbol("");
26+
changeIconSymbol("");
2727
sessionStorage.setItem('theme', 'dark');
2828
}
2929

@@ -35,10 +35,10 @@ function modeSwitcher() {
3535

3636
if (currentTheme === 'dark') {
3737
newTheme = 'light';
38-
iconSymbol = "";
38+
iconSymbol = "";
3939
} else {
4040
newTheme = 'dark';
41-
iconSymbol = "";
41+
iconSymbol = "";
4242
}
4343

4444
// Apply the new theme and update symbol

0 commit comments

Comments
 (0)