Add dark theme variant

This commit is contained in:
2023-11-11 11:37:26 +01:00
parent ad2f6a964e
commit 68b5783a28
5 changed files with 156 additions and 20 deletions

View File

@@ -4,18 +4,20 @@
position: relative;
}
.polaroid a.edit {
background: #fff;
background: var(--bs-body-bg);
border-radius: 3px;
box-shadow: 1px 1px 2px rgba(0,0,0,0.3);
display: none !important;
color: var(--bs-body-color);
opacity: 0;
left: 20px;
line-height: 1.5;
padding: 5px 10px;
position: absolute;
transition: 0.25s;
top: 20px;
}
.polaroid:hover > a.edit {
display: block !important;
opacity: 1;
}

View File

@@ -18,6 +18,11 @@ body {
font-family: "Open Sans", sans-serif;
background: #aaa 0 -50% fixed;
padding: 0 0 3rem;
transition: 0.5s;
}
[data-bs-theme=dark] body {
background-color: #444;
}
#wrapper, header .container {
@@ -34,6 +39,14 @@ a:hover {
color: #262626;
}
[data-bs-theme=dark] .content-box a:not(.btn) {
color: #b94b4b;
}
[data-bs-theme=dark] .content-box a:not(.btn):hover {
color: #963626;
}
.page-link {
color: #b50707;
font-family: 'Coda', sans-serif;
@@ -182,7 +195,7 @@ i.nyan-cat {
/* Content boxes
------------------*/
.content-box {
background-color: #fff;
background-color: var(--bs-body-bg);
margin: 0 auto 2rem;
padding: 2rem;
border-radius: 0.5rem;
@@ -203,10 +216,10 @@ i.nyan-cat {
}
.tiled-header > a {
background: #fff;
background: var(--bs-body-bg);
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
border-radius: 0.5rem;
color: #000;
color: var(--bs-body-color);
display: inline-block;
font: 400 18px/2.2 'Coda', sans-serif;
margin: 0 0 1.5% 0;
@@ -217,7 +230,7 @@ i.nyan-cat {
}
div.polaroid {
background: #fff;
background: var(--bs-body-bg);
box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
line-height: 0;
position: relative;
@@ -227,7 +240,7 @@ div.polaroid:hover {
box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
}
div.polaroid img.normal-photo {
background: #fff url('../images/nothumb.svg') center no-repeat;
background: var(--bs-body-bg) url('../images/nothumb.svg') center no-repeat;
border: none;
left: 0;
object-fit: cover;
@@ -246,13 +259,13 @@ div.polaroid img.blur-photo {
z-index: 0;
}
div.polaroid img.placeholder-image {
background: #fff;
background: var(--bs-body-bg);
z-index: 20;
}
div.polaroid h4 {
background: #fff;
background: var(--bs-body-bg);
bottom: 0;
color: #000;
color: var(--bs-body-color);
margin: 0;
font: 400 18px 'Coda', sans-serif;
padding: 15px 5px;
@@ -278,7 +291,7 @@ div.polaroid a {
width: 100%;
}
.album_title_box > a {
background: #fff;
background: var(--bs-body-bg);
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
border-top-left-radius: 0.5rem;
border-bottom-left-radius: 0.5rem;
@@ -289,7 +302,7 @@ div.polaroid a {
padding: 8px 10px;
}
.album_title_box > div {
background: #fff;
background: var(--bs-body-bg);
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
border-top-right-radius: 0.5rem;
border-bottom-right-radius: 0.5rem;
@@ -300,7 +313,7 @@ div.polaroid a {
margin: 0 0 1.5% 0;
}
.album_title_box h2 {
color: #262626;
color: var(--bs-body-color);
font: 400 18px/2 'Coda', sans-serif !important;
margin: 0;
}
@@ -316,10 +329,18 @@ div.polaroid a {
margin-bottom: 3rem;
}
.album_button_box > a {
background: var(--bs-body-bg);
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
border-color: var( --bs-secondary-bg);
color: var(--bs-body-color);
padding: 8px 10px;
margin-left: 12px;
}
.album_button_box > a:hover {
background: var(--bs-secondary-bg);
border-color: var(--bs-tertiary-bg);
color: var(--bs-secondary-color);
}
/* (Tag) autosuggest
@@ -329,8 +350,9 @@ div.polaroid a {
position: relative;
}
.autosuggest {
background: #fff;
background: var(--bs-body-bg);
border: 1px solid #ccc;
color: var(--bs-body-color);
position: absolute;
left: 2px;
top: 37px;
@@ -459,9 +481,9 @@ figure#photo-figure img.blur-photo {
}
#previous_photo, #next_photo {
background: #fff;
background: var(--bs-body-bg);
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
color: #262626;
color: var(--bs-body-color);
font-size: 3rem;
line-height: 0.5;
padding: 2rem 0.5rem;
@@ -473,8 +495,8 @@ span#previous_photo, span#next_photo {
opacity: 0.25;
}
a#previous_photo:hover, a#next_photo:hover {
background: #eee;
color: #000;
background: var(--bs-secondary-bg);
color: var(--bs-secondary-color);
}
#previous_photo {
border-top-right-radius: 0.5rem;