Skip to content

Commit

Permalink
Theme cleanup
Browse files Browse the repository at this point in the history
This isn't technically part of the Jekyllification, but it was bothering me.
  • Loading branch information
cassiancc committed Feb 23, 2025
1 parent d6eae7c commit fe06795
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 23 deletions.
7 changes: 6 additions & 1 deletion _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<footer class="container">
<p class="float-end"><a class="social" href="#top"><i class="fa fa-arrow-up"></i></a></p>
<p id="end-block" class="float-end">
<span id="theme-container">
</span>
<a class="social" href="#top"><i class="fa fa-arrow-up"></i></a>

</p>
<p id="social-block">
<span class="item">&copy; <span id="year">2022-2024</span> Norse IoT Club</span>
· <a href="https://norseiot.club/bylaws" class="item">Club Bylaws</a>
Expand Down
5 changes: 0 additions & 5 deletions css/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@
color: var(--color-tertiary);
}

#iot-theme {
height: 5.4em;

}

#campusgroups {
filter: invert();
}
17 changes: 7 additions & 10 deletions css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,19 @@
}

#iot-theme {
position: fixed;
bottom: 0;
right: 0;
padding: 20px;
margin-bottom: 20px;
margin-right: 20px;
margin-right: 1.2em;
cursor: pointer;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
background-color: var(--body-bg);
filter: drop-shadow(2px 4px 6px var(--shadow-color));
align-items: top;

}

#end-block {
display: flex;
}

body {
background-color: var(--body-bg);
}
Expand Down Expand Up @@ -186,7 +183,7 @@ body {
font-size: 28px;
color: var(--text);
}
.social:hover, .social:active {
.social:hover, .social:active, #iot-theme:hover, #iot-theme:active {
color: var(--social-hover);
}
.social-header {
Expand Down
6 changes: 0 additions & 6 deletions css/light.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,4 @@
--audio-border-color: #eee;
--shadow-color: grey;
--box-shadow-dark: 0 1rem 3rem rgba(0, 0, 0, .6);
}


#iot-theme {
height: 5.2em;

}
2 changes: 1 addition & 1 deletion js/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

//This section of the code handles the Dark Mode popup.
document.querySelector("body").innerHTML += `
document.querySelector("#theme-container").innerHTML = `
<div tabindex=0 onclick="theme('dark')" id="iot-theme" src="/images/dark.webp" class="" alt="Dark Mode">
<i class="fa fa-2x fa-moon-o" aria-hidden="true"></i>
</div>`
Expand Down

0 comments on commit fe06795

Please sign in to comment.