mirror of
https://github.com/GenShibe/website.git
synced 2025-02-12 13:44:49 +00:00
oooo fancy effects go brrr
This commit is contained in:
parent
76f785b3bb
commit
54f2928783
2 changed files with 23 additions and 12 deletions
|
@ -51,7 +51,7 @@
|
|||
>Last updated at <span class="last-updated"></span> | ©️
|
||||
Licensed under GPL V3 |
|
||||
<a href="https://github.com/GenShibe/genshibe.github.io/"
|
||||
>source code</a
|
||||
>Source code</a
|
||||
></span
|
||||
>
|
||||
<select class="theme-selector">
|
||||
|
@ -69,7 +69,7 @@
|
|||
<script>
|
||||
window.addEventListener("DOMContentLoaded", () => {
|
||||
const selector = document.querySelector(".theme-selector");
|
||||
selector.value = localStorage.getItem("theme") || window.matchMedia('(prefers-color-scheme: light)').matches ? "latte" : "frappe";
|
||||
selector.value = localStorage.getItem("theme") || window.matchMedia('(prefers-color-scheme: dark)').matches ? "frappe" : "latte";
|
||||
document.documentElement.setAttribute("theme", selector.value);
|
||||
selector.addEventListener("change", function () {
|
||||
localStorage.setItem("theme", this.value);
|
||||
|
|
31
style.css
31
style.css
|
@ -229,14 +229,33 @@ footer {
|
|||
text-decoration: none;
|
||||
color: var(--ctp-text);
|
||||
background-color: var(--ctp-surface0);
|
||||
border-radius: 5px;
|
||||
font-weight: bold;
|
||||
border-radius: 7px;
|
||||
border: 2px solid;
|
||||
border-color: var(--ctp-mantle);
|
||||
text-align: center;
|
||||
font-size: 1.25em;
|
||||
margin: 5px;
|
||||
line-height: 1.75em;
|
||||
font-family: 'Victor Mono', Courier, monospace;
|
||||
font-style: italic;
|
||||
box-shadow: 0 0 5.5px 0px var(--ctp-peach);
|
||||
}
|
||||
|
||||
|
||||
select {
|
||||
padding: 0.25rem 0.5rem;
|
||||
background-color: var(--ctp-surface0);
|
||||
color: var(--ctp-text);
|
||||
border-radius: 7px;
|
||||
border: 2px solid;
|
||||
border-color: var(--ctp-mantle);
|
||||
text-align: left;
|
||||
font-size: 1em;
|
||||
line-height: 1.25em;
|
||||
border-radius: 7px;
|
||||
font-family: 'Victor Mono', Courier, monospace;
|
||||
font-style: italic;
|
||||
box-shadow: 0 0 5.5px 0px var(--ctp-peach);
|
||||
}
|
||||
|
||||
.socials a:hover {
|
||||
|
@ -252,11 +271,3 @@ hr {
|
|||
margin: 1.5rem auto;
|
||||
box-shadow: 0 0 15px 0px var(--ctp-peach);
|
||||
}
|
||||
|
||||
select {
|
||||
background-color: var(--ctp-base);
|
||||
color: var(--ctp-text);
|
||||
border-width: 2px;
|
||||
border-color: var(--ctp-surface0);
|
||||
border-radius: 0.375rem;
|
||||
}
|
Loading…
Add table
Reference in a new issue