mirror of
https://github.com/greflm13/StaticGalleryBuilder.git
synced 2026-02-05 02:59:27 +00:00
added automatic dark theme detection and dark mode switch
This commit is contained in:
111
templates/default-dark.css
Normal file
111
templates/default-dark.css
Normal file
@@ -0,0 +1,111 @@
|
||||
@import url("https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");
|
||||
|
||||
* {
|
||||
--color1: #262a2b;
|
||||
--color2: #0d0e0e;
|
||||
--color3: #313537;
|
||||
--color4: #181a1b;
|
||||
--color5: #5483ef;
|
||||
--bcolor1: #e8e6e3;
|
||||
--bcolor2: #0c0d0e;
|
||||
}
|
||||
|
||||
.navbar {
|
||||
font-weight: bold;
|
||||
color: var(--bcolor1);
|
||||
background-color: var(--color1);
|
||||
}
|
||||
|
||||
.navbar li a {
|
||||
font-weight: bold;
|
||||
color: var(--bcolor1);
|
||||
}
|
||||
|
||||
/* Change the link color on hover */
|
||||
.navbar li a:hover {
|
||||
background-color: var(--color2);
|
||||
}
|
||||
|
||||
.footer {
|
||||
color: var(--bcolor1);
|
||||
background-color: var(--color3);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.footer a {
|
||||
color: var(--color5);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.foldericon {
|
||||
content: "themes/icons/folder-2.svg.j2";
|
||||
}
|
||||
|
||||
.folders a {
|
||||
font-weight: 700;
|
||||
color: var(--color5);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.tooltiptext {
|
||||
font-weight: 400;
|
||||
background-color: var(--color3);
|
||||
}
|
||||
|
||||
.tagentry label:hover {
|
||||
background-color: var(--color4);
|
||||
}
|
||||
|
||||
.tagentry .tagtoggle:hover {
|
||||
background-color: var(--color4);
|
||||
}
|
||||
|
||||
.column img {
|
||||
background-color: var(--bcolor2);
|
||||
}
|
||||
|
||||
#totop:hover {
|
||||
background-color: var(--color2);
|
||||
}
|
||||
|
||||
#totop {
|
||||
background-color: var(--color1);
|
||||
color: var(--bcolor1);
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.loader {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border-radius: 50%;
|
||||
display: inline-block;
|
||||
border-top: 3px solid var(--bcolor1);
|
||||
border-right: 3px solid transparent;
|
||||
box-sizing: border-box;
|
||||
animation: rotation 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes rotation {
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
color: var(--bcolor1);
|
||||
background-color: var(--color4);
|
||||
font-family: "Ubuntu", sans-serif;
|
||||
font-optical-sizing: auto;
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
body a {
|
||||
font-weight: 400;
|
||||
color: var(--color5);
|
||||
text-decoration: none;
|
||||
}
|
||||
Reference in New Issue
Block a user