fully responsive UI

This commit is contained in:
2025-11-24 23:43:51 +01:00
parent bdc4992d16
commit 177a9cbac3
12 changed files with 1297 additions and 865 deletions

View File

@@ -54,13 +54,6 @@ body {
width: var(--sidebar-width-expanded);
}
@media (max-width: 767px) {
.sidebar {
width: 60px;
padding: 1rem 0.5rem;
}
}
.main-wrapper {
flex: 1;
display: flex;
@@ -131,18 +124,6 @@ body {
margin-right: 1rem;
}
@media (max-width: 767px) {
.nav-button {
padding: 0.7rem;
}
.nav-button svg {
min-width: 20px;
width: 20px;
height: 20px;
margin-right: 0;
}
}
a,
a:visited,
a:hover,
@@ -172,13 +153,6 @@ a:active {
z-index: 40;
}
@media (max-width: 767px) {
.top-header {
height: 60px;
padding: 0 1rem;
}
}
.search-box {
display: contents;
}
@@ -199,33 +173,12 @@ a:active {
box-shadow: 0 0 0 2px var(--accent-glow);
}
@media (max-width: 767px) {
#search-input {
width: 100%;
max-width: 350px;
font-size: 0.85rem;
}
}
@media (max-width: 480px) {
#search-input {
width: calc(100vw - 80px);
max-width: 300px;
}
}
.content-view {
flex: 1;
overflow-y: auto;
padding: 0 2rem 2rem 2rem;
}
@media (max-width: 767px) {
.content-view {
padding: 0 1rem 2rem 1rem;
}
}
.page {
max-width: 1600px;
margin: 0 auto;
@@ -272,12 +225,6 @@ a:active {
background: var(--border-hover);
}
@media (max-width: 767px) {
#source-list {
gap: 0.75rem;
}
}
.source-button {
background: var(--bg-surface);
border: 1px solid var(--border);
@@ -310,14 +257,6 @@ a:active {
color: var(--text-primary);
}
@media (max-width: 767px) {
.source-button {
min-width: 160px;
padding: 0.6rem 0.8rem;
gap: 0.75rem;
}
}
.source-button img,
.source-button .brand-icon {
width: 32px;
@@ -327,14 +266,6 @@ a:active {
flex-shrink: 0;
}
@media (max-width: 767px) {
.source-button img,
.source-button .brand-icon {
width: 28px;
height: 28px;
}
}
.source-text-wrapper {
display: flex;
flex-direction: column;
@@ -360,15 +291,6 @@ a:active {
text-overflow: ellipsis;
}
@media (max-width: 767px) {
.source-name {
font-size: 0.85rem;
}
.source-url {
font-size: 0.7rem;
}
}
.gallery-masonry {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
@@ -379,30 +301,6 @@ a:active {
grid-auto-rows: 8px;
}
@media (min-width: 768px) {
.gallery-masonry {
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
}
@media (min-width: 1024px) {
.gallery-masonry {
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
}
@media (min-width: 1400px) {
.gallery-masonry {
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
}
@media (max-width: 480px) {
.gallery-masonry {
grid-template-columns: 1fr;
}
}
.image-entry:not([data-type="book"]) {
margin-bottom: 0;
border-radius: var(--radius-md);
@@ -412,7 +310,7 @@ a:active {
break-inside: avoid;
transition: transform 0.2s;
cursor: zoom-in;
display: inline-block;
display: block;
width: 100%;
}
@@ -422,20 +320,17 @@ a:active {
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
@media (max-width: 767px) {
.image-entry:hover {
transform: none;
}
}
.image-entry img {
width: 100%;
height: auto;
display: block;
aspect-ratio: auto;
}
.image-entry img.loaded {
opacity: 1;
transition: opacity 0.3s ease-in;
min-height: unset;
}
.image-buttons {
@@ -459,13 +354,6 @@ a:active {
opacity: 1;
}
@media (max-width: 767px) {
.image-buttons {
opacity: 0.6;
padding: 1.5rem 0.75rem 0.75rem 0.75rem;
}
}
.image-buttons button {
width: 32px;
height: 32px;
@@ -492,30 +380,12 @@ a:active {
height: 16px;
}
@media (max-width: 767px) {
.image-buttons button {
width: 36px;
height: 36px;
}
.image-buttons button svg {
width: 18px;
height: 18px;
}
}
.settings-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
}
@media (max-width: 640px) {
.settings-grid {
grid-template-columns: 1fr;
gap: 1rem;
}
}
.settings-card {
background: var(--bg-surface);
border: 1px solid var(--border);
@@ -523,12 +393,6 @@ a:active {
padding: 1.5rem;
}
@media (max-width: 767px) {
.settings-card {
padding: 1rem;
}
}
.settings-card h3 {
margin-top: 0;
font-size: 1.1rem;
@@ -579,12 +443,6 @@ input[type="radio"] {
gap: 1rem;
}
@media (max-width: 767px) {
.loading-state {
padding: 2rem 1rem;
}
}
#tag-info-modal {
position: fixed;
inset: 0;
@@ -601,7 +459,7 @@ input[type="radio"] {
display: none;
}
#tag-info-modal > div {
#tag-info-modal>div {
background: var(--bg-surface);
border: 1px solid var(--border);
padding: 2rem;
@@ -614,13 +472,6 @@ input[type="radio"] {
overflow-y: auto;
}
@media (max-width: 767px) {
#tag-info-modal > div {
padding: 1.5rem;
width: 95%;
}
}
#tag-info-close-button {
position: absolute;
top: 1rem;
@@ -672,17 +523,6 @@ input[type="radio"] {
max-width: calc(100vw - 4rem);
}
@media (max-width: 767px) {
.toast {
bottom: 1rem;
right: 1rem;
left: 1rem;
max-width: none;
padding: 0.75rem 1rem;
font-size: 0.9rem;
}
}
.toast:not(.hidden) {
transform: translateY(0);
opacity: 1;
@@ -704,6 +544,7 @@ input[type="radio"] {
padding: 4rem 1rem;
break-inside: avoid;
column-span: all;
grid-column: 1 / -1;
}
#gallery-placeholder p {
@@ -713,12 +554,6 @@ input[type="radio"] {
margin: 0;
}
.image-entry img.loaded {
opacity: 1;
transition: opacity 0.3s ease-in;
min-height: unset;
}
@keyframes fadeInUp {
from {
opacity: 0;
@@ -732,4 +567,254 @@ input[type="radio"] {
.image-entry.newly-added {
animation: fadeInUp 0.4s ease-out;
}
.hamburger {
display: none;
width: 42px;
height: 42px;
border-radius: 12px;
border: 1px solid var(--border);
background: var(--bg-surface);
color: var(--text-primary);
font-size: 1.8rem;
font-weight: bold;
cursor: pointer;
position: absolute;
left: 15px;
top: 50%;
transform: translateY(-50%);
transition: background 0.2s, border-color 0.2s;
align-items: center;
justify-content: center;
z-index: 999;
}
.hamburger:hover {
background: var(--bg-surface-hover);
border-color: var(--accent);
}
@media (min-width: 1400px) {
.gallery-masonry {
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
}
@media (min-width: 1024px) and (max-width: 1399px) {
.gallery-masonry {
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.content-view {
padding: 0 1.5rem 2rem 1.5rem;
}
.top-header {
padding: 0 1.5rem;
}
.gallery-masonry {
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
#search-input {
width: 280px;
}
.source-button {
min-width: 180px;
}
.settings-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 767px) {
html {
font-size: 16px;
}
body {
zoom: 1;
}
.content-view {
overflow-x: hidden !important;
padding: 0 1rem 2rem 1rem;
}
.top-header {
height: 70px;
padding: 0 1rem;
justify-content: flex-start;
}
.hamburger {
display: flex;
position: static;
transform: none;
margin-right: auto;
}
#search-input {
width: 100%;
max-width: none;
font-size: 1rem;
padding: 0.6rem 1rem;
}
.sidebar {
position: fixed;
left: -100%;
top: 0;
width: 280px;
height: 100%;
background: var(--bg-sidebar);
transition: left 0.3s ease;
z-index: 300;
padding: 1.5rem 1rem;
box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
}
.sidebar.active {
left: 0;
}
.sidebar:hover {
width: 280px;
}
.main-wrapper {
margin-left: 0 !important;
width: 100%;
}
.sidebar .nav-button span {
opacity: 1 !important;
transform: translateX(0) !important;
}
.sidebar nav {
gap: 0.75rem !important;
}
.nav-button {
padding: 1rem 1.25rem !important;
font-size: 1rem !important;
}
.nav-button span {
font-size: 1rem !important;
}
.nav-button svg {
width: 24px !important;
height: 24px !important;
stroke-width: 2 !important;
margin-right: 0.75rem !important;
}
.gallery-masonry {
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 0.75rem;
}
.image-entry:not([data-type="book"]):hover {
transform: none;
}
.image-buttons {
opacity: 0.8;
padding: 1.5rem 0.75rem 0.75rem 0.75rem;
}
.image-buttons button {
width: 36px;
height: 36px;
}
.image-buttons button svg {
width: 18px;
height: 18px;
}
#source-list {
gap: 0.75rem;
padding-bottom: 0.75rem;
}
.source-button {
min-width: 160px;
padding: 0.6rem 0.85rem;
gap: 0.75rem;
}
.source-button img,
.source-button .brand-icon {
width: 28px;
height: 28px;
}
.source-name {
font-size: 0.9rem;
}
.source-url {
font-size: 0.7rem;
}
.source-button:hover {
transform: none;
}
.toast {
bottom: 1rem;
right: 1rem;
left: 1rem;
max-width: none;
padding: 0.85rem 1rem;
font-size: 0.9rem;
}
.loading-state {
padding: 2rem 1rem;
}
#tag-info-modal>div {
padding: 1.5rem;
width: 95%;
}
.settings-grid {
grid-template-columns: 1fr;
gap: 1rem;
}
.settings-card {
padding: 1.25rem;
}
h1, h2, h3 {
font-size: 1.25rem;
}
}
@media (max-width: 480px) {
.gallery-masonry {
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
gap: 0.6rem;
}
.source-button {
min-width: 140px;
padding: 0.5rem 0.75rem;
}
.source-name {
font-size: 0.85rem;
}
}