735 lines
14 KiB
CSS
735 lines
14 KiB
CSS
:root {
|
|
--bg-base: #09090b;
|
|
--bg-sidebar: #101012;
|
|
--bg-surface: #18181b;
|
|
--bg-surface-hover: #27272a;
|
|
--accent: #8b5cf6;
|
|
--accent-glow: rgba(139, 92, 246, 0.3);
|
|
--accent-gradient: linear-gradient(135deg, #8b5cf6, #6366f1);
|
|
--text-primary: #f4f4f5;
|
|
--text-secondary: #a1a1aa;
|
|
--text-tertiary: #52525b;
|
|
--border: #27272a;
|
|
--border-hover: #3f3f46;
|
|
--radius-md: 8px;
|
|
--radius-lg: 16px;
|
|
--radius-full: 9999px;
|
|
--sidebar-width-collapsed: 72px;
|
|
--sidebar-width-expanded: 240px;
|
|
--header-height: 70px;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
outline: none;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--border) transparent;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
background-color: var(--bg-base);
|
|
color: var(--text-primary);
|
|
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
height: 100vh;
|
|
display: flex;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.sidebar {
|
|
width: var(--sidebar-width-collapsed);
|
|
background: var(--bg-sidebar);
|
|
border-right: 1px solid var(--border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 1.5rem 0.75rem;
|
|
gap: 0.5rem;
|
|
transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
z-index: 50;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sidebar:hover {
|
|
width: var(--sidebar-width-expanded);
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.sidebar {
|
|
width: 60px;
|
|
padding: 1rem 0.5rem;
|
|
}
|
|
}
|
|
|
|
.main-wrapper {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
position: relative;
|
|
min-width: 0;
|
|
}
|
|
|
|
.brand-logo {
|
|
height: 48px;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 0.5rem;
|
|
margin-bottom: 2rem;
|
|
overflow: hidden;
|
|
color: var(--text-primary);
|
|
font-weight: 800;
|
|
font-size: 1.25rem;
|
|
letter-spacing: -0.5px;
|
|
cursor: default;
|
|
}
|
|
|
|
.brand-icon {
|
|
min-width: 32px;
|
|
height: 32px;
|
|
background: var(--accent-gradient);
|
|
border-radius: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 0.9rem;
|
|
margin-right: 1rem;
|
|
box-shadow: 0 0 15px var(--accent-glow);
|
|
color: white;
|
|
}
|
|
|
|
.nav-button {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0.85rem;
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-secondary);
|
|
background: transparent;
|
|
border: 1px solid transparent;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
.nav-button:hover {
|
|
background: var(--bg-surface);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.nav-button.active {
|
|
background: linear-gradient(90deg, rgba(139, 92, 246, 0.1), transparent);
|
|
border-left: 3px solid var(--accent);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.nav-button svg {
|
|
min-width: 24px;
|
|
width: 24px;
|
|
height: 24px;
|
|
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,
|
|
a:active {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.nav-button span {
|
|
opacity: 0;
|
|
transform: translateX(-10px);
|
|
transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
}
|
|
|
|
.sidebar:hover .nav-button span {
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.top-header {
|
|
height: var(--header-height);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0 2rem;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 40;
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.top-header {
|
|
height: 60px;
|
|
padding: 0 1rem;
|
|
}
|
|
}
|
|
|
|
.search-box {
|
|
display: contents;
|
|
}
|
|
|
|
#search-input {
|
|
background: var(--bg-surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-full);
|
|
padding: 0.5rem 1rem;
|
|
color: var(--text-primary);
|
|
width: 350px;
|
|
transition: 0.2s;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
#search-input:focus {
|
|
border-color: var(--accent);
|
|
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;
|
|
animation: fadeIn 0.3s ease-out;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
#source-list {
|
|
display: flex;
|
|
gap: 1rem;
|
|
padding-bottom: 1rem;
|
|
scrollbar-width: none;
|
|
align-items: center;
|
|
flex-direction: row;
|
|
scroll-behavior: smooth;
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
#source-list::-webkit-scrollbar {
|
|
height: 6px;
|
|
}
|
|
|
|
#source-list::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
#source-list::-webkit-scrollbar-thumb {
|
|
background: var(--border);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
#source-list::-webkit-scrollbar-thumb:hover {
|
|
background: var(--border-hover);
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
#source-list {
|
|
gap: 0.75rem;
|
|
}
|
|
}
|
|
|
|
.source-button {
|
|
background: var(--bg-surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
padding: 0.75rem 1rem;
|
|
min-width: 200px;
|
|
width: auto;
|
|
height: auto;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
position: relative;
|
|
overflow: hidden;
|
|
text-align: left;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.source-button:hover {
|
|
background: var(--bg-surface-hover);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.source-button.active {
|
|
border-color: var(--accent);
|
|
background: linear-gradient(to right, rgba(139, 92, 246, 0.05), transparent);
|
|
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;
|
|
height: 32px;
|
|
border-radius: 6px;
|
|
object-fit: cover;
|
|
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;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.source-name {
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
font-size: 0.95rem;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.source-url {
|
|
font-size: 0.75rem;
|
|
color: var(--text-tertiary);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
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));
|
|
gap: 1rem;
|
|
}
|
|
|
|
.gallery-masonry:not(.books-only) {
|
|
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);
|
|
overflow: hidden;
|
|
position: relative;
|
|
background: var(--bg-surface);
|
|
break-inside: avoid;
|
|
transition: transform 0.2s;
|
|
cursor: zoom-in;
|
|
display: inline-block;
|
|
width: 100%;
|
|
}
|
|
|
|
.image-entry:not([data-type="book"]):hover {
|
|
transform: scale(1.02);
|
|
z-index: 2;
|
|
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;
|
|
aspect-ratio: auto;
|
|
}
|
|
|
|
.image-entry img.loaded {
|
|
opacity: 1;
|
|
}
|
|
|
|
.image-buttons {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
padding: 2rem 1rem 1rem 1rem;
|
|
background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 0.5rem;
|
|
opacity: 0;
|
|
transition: 0.2s;
|
|
top: auto;
|
|
right: auto;
|
|
flex-direction: row;
|
|
}
|
|
|
|
.image-entry:hover .image-buttons {
|
|
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;
|
|
border-radius: 50%;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
color: white;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
backdrop-filter: blur(4px);
|
|
cursor: pointer;
|
|
transition: 0.2s;
|
|
padding: 0;
|
|
}
|
|
|
|
.image-buttons button:hover {
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.image-buttons button svg {
|
|
width: 16px;
|
|
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);
|
|
border-radius: var(--radius-lg);
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.settings-card {
|
|
padding: 1rem;
|
|
}
|
|
}
|
|
|
|
.settings-card h3 {
|
|
margin-top: 0;
|
|
font-size: 1.1rem;
|
|
margin-bottom: 1rem;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
fieldset {
|
|
border: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
padding: 0.75rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
cursor: pointer;
|
|
margin-bottom: 0.5rem;
|
|
transition: 0.2s;
|
|
}
|
|
|
|
label:hover {
|
|
background: var(--bg-surface-hover);
|
|
}
|
|
|
|
input[type="radio"] {
|
|
accent-color: var(--accent);
|
|
margin-top: 4px;
|
|
width: 1.2em;
|
|
height: 1.2em;
|
|
}
|
|
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
.loading-state {
|
|
text-align: center;
|
|
padding: 4rem;
|
|
color: var(--text-tertiary);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.loading-state {
|
|
padding: 2rem 1rem;
|
|
}
|
|
}
|
|
|
|
#tag-info-modal {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.8);
|
|
backdrop-filter: blur(8px);
|
|
z-index: 100;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 1rem;
|
|
}
|
|
|
|
#tag-info-modal.hidden {
|
|
display: none;
|
|
}
|
|
|
|
#tag-info-modal > div {
|
|
background: var(--bg-surface);
|
|
border: 1px solid var(--border);
|
|
padding: 2rem;
|
|
border-radius: var(--radius-lg);
|
|
width: 90%;
|
|
max-width: 500px;
|
|
position: relative;
|
|
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
|
|
max-height: 80vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
#tag-info-modal > div {
|
|
padding: 1.5rem;
|
|
width: 95%;
|
|
}
|
|
}
|
|
|
|
#tag-info-close-button {
|
|
position: absolute;
|
|
top: 1rem;
|
|
right: 1rem;
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-tertiary);
|
|
cursor: pointer;
|
|
font-size: 1.5rem;
|
|
width: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.tag-cloud {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
#tag-info-content span {
|
|
background: var(--bg-surface-hover);
|
|
border: 1px solid var(--border);
|
|
color: var(--text-secondary);
|
|
padding: 4px 10px;
|
|
border-radius: 20px;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.toast {
|
|
position: fixed;
|
|
bottom: 2rem;
|
|
right: 2rem;
|
|
background: var(--bg-sidebar);
|
|
border: 1px solid var(--border);
|
|
border-left: 4px solid var(--accent);
|
|
padding: 1rem 1.5rem;
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-primary);
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
|
|
z-index: 1000;
|
|
transform: translateY(20px);
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: 0.3s;
|
|
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;
|
|
pointer-events: all;
|
|
}
|
|
|
|
#message-bar:not(.hidden) {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
pointer-events: all;
|
|
}
|
|
|
|
#gallery-placeholder {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
padding: 4rem 1rem;
|
|
break-inside: avoid;
|
|
column-span: all;
|
|
}
|
|
|
|
#gallery-placeholder p {
|
|
max-width: 300px;
|
|
text-align: center;
|
|
white-space: normal;
|
|
margin: 0;
|
|
}
|
|
|
|
.image-entry img.loaded {
|
|
opacity: 1;
|
|
transition: opacity 0.3s ease-in;
|
|
min-height: unset;
|
|
}
|
|
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.image-entry.newly-added {
|
|
animation: fadeInUp 0.4s ease-out;
|
|
} |