4 Commits
v1.6.3 ... main

Author SHA1 Message Date
0fd39fd2b3 Merge pull request 'Mobile UI Fixes' (#3) from dev into main
Reviewed-on: #3
2025-11-25 01:35:21 +01:00
8c37dc3217 Updated versioning 2025-11-24 19:33:23 -05:00
177a9cbac3 fully responsive UI 2025-11-24 23:43:51 +01:00
bdc4992d16 responsive design and better image handling 2025-11-24 20:59:50 +01:00
15 changed files with 1439 additions and 584 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "waifu-board", "name": "waifu-board",
"version": "v1.6.3", "version": "v1.6.4",
"description": "An image board app to store and browse your favorite waifus!", "description": "An image board app to store and browse your favorite waifus!",
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {

View File

@@ -1,3 +1,11 @@
let masonryTimer = null;
function scheduleMasonryRelayout(grid) {
clearTimeout(masonryTimer);
masonryTimer = setTimeout(() => {
relayoutMasonry(grid);
}, 50);
}
export function createImageCard(id, tags, imageUrl, thumbnailUrl, type, options = {}) { export function createImageCard(id, tags, imageUrl, thumbnailUrl, type, options = {}) {
const { const {
showMessage, showMessage,
@@ -6,7 +14,7 @@ export function createImageCard(id, tags, imageUrl, thumbnailUrl, type, options
} = options; } = options;
const card = document.createElement('div'); const card = document.createElement('div');
card.className = 'image-entry'; card.className = 'image-entry loading newly-added';
card.dataset.id = id; card.dataset.id = id;
card.dataset.type = type; card.dataset.type = type;
card.title = tags.join(', '); card.title = tags.join(', ');
@@ -15,7 +23,25 @@ export function createImageCard(id, tags, imageUrl, thumbnailUrl, type, options
img.src = thumbnailUrl || imageUrl; img.src = thumbnailUrl || imageUrl;
img.loading = 'lazy'; img.loading = 'lazy';
img.alt = tags.join(' '); img.alt = tags.join(' ');
img.onload = () => img.classList.add('loaded');
img.onload = () => {
img.classList.add('loaded');
card.classList.remove('loading');
if (type !== 'book') {
setTimeout(() => resizeMasonryItem(card), 20);
scheduleMasonryRelayout(card.parentElement);
}
setTimeout(() => {
card.classList.remove('newly-added');
}, 400);
};
img.onerror = () => {
card.classList.remove('loading');
img.classList.add('loaded');
};
card.appendChild(img); card.appendChild(img);
@@ -30,7 +56,6 @@ export function createImageCard(id, tags, imageUrl, thumbnailUrl, type, options
<span>Click To Read</span> <span>Click To Read</span>
`; `;
card.appendChild(readOverlay); card.appendChild(readOverlay);
return card; return card;
} }
@@ -99,6 +124,32 @@ export function createImageCard(id, tags, imageUrl, thumbnailUrl, type, options
return card; return card;
} }
function resizeMasonryItem(item) {
if (item.dataset.type === 'book') return;
const grid = item.parentElement;
const rowHeight = parseInt(getComputedStyle(grid).gridAutoRows);
const rowGap = parseInt(getComputedStyle(grid).gap);
const img = item.querySelector("img");
if (!img) return;
if (!img.complete || img.naturalWidth === 0) {
return;
}
const width = img.clientWidth;
const imageHeight = (img.naturalHeight / img.naturalWidth) * width;
const extra = 2;
const totalHeight = imageHeight + extra;
const rowSpan = Math.ceil((totalHeight + rowGap) / (rowHeight + rowGap));
item.style.gridRowEnd = "span " + rowSpan;
item.style.height = totalHeight + "px";
}
function updateHeartIcon(btn, isFavorited) { function updateHeartIcon(btn, isFavorited) {
if (isFavorited) { if (isFavorited) {
btn.innerHTML = `<svg viewBox="0 0 24 24" fill="#ef4444" stroke="#ef4444" stroke-width="2"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path></svg>`; btn.innerHTML = `<svg viewBox="0 0 24 24" fill="#ef4444" stroke="#ef4444" stroke-width="2"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path></svg>`;
@@ -109,6 +160,11 @@ function updateHeartIcon(btn, isFavorited) {
} }
} }
function relayoutMasonry(grid) {
const items = grid.querySelectorAll('.image-entry:not([data-type="book"])');
items.forEach(item => resizeMasonryItem(item));
}
export function populateTagModal(container, tags) { export function populateTagModal(container, tags) {
container.innerHTML = ''; container.innerHTML = '';
if (!tags || tags.length === 0) { if (!tags || tags.length === 0) {

19
src/hamburger.js Normal file
View File

@@ -0,0 +1,19 @@
const btn = document.getElementById("hamburger-btn");
const sidebar = document.querySelector(".sidebar");
btn.addEventListener("click", (e) => {
e.stopPropagation();
sidebar.classList.toggle("active");
btn.textContent = sidebar.classList.contains("active") ? "✕" : "☰";
});
document.addEventListener("click", (e) => {
if (window.innerWidth <= 767) {
const outsideSidebar = !sidebar.contains(e.target);
const outsideBtn = !btn.contains(e.target);
if (outsideSidebar && outsideBtn) {
sidebar.classList.remove("active");
btn.textContent = "☰";
}
}
});

View File

@@ -14,6 +14,7 @@ document.addEventListener('DOMContentLoaded', async () => {
let currentPage = 1; let currentPage = 1;
let isFetching = false; let isFetching = false;
const favoriteIds = new Set(); const favoriteIds = new Set();
const isBooksPage = window.location.pathname.includes('books.html');
try { try {
if (window.api && window.api.getFavorites) { if (window.api && window.api.getFavorites) {
@@ -220,9 +221,10 @@ document.addEventListener('DOMContentLoaded', async () => {
} }
if (domRefs.sourceList) { if (domRefs.sourceList) {
if (domRefs.contentGallery) applyLayoutToGallery(domRefs.contentGallery, currentLayout); if (domRefs.contentGallery) {
applyLayoutToGallery(domRefs.contentGallery, currentLayout);
}
const isBooksPage = window.location.pathname.includes('books.html');
const contentType = isBooksPage ? 'book-board' : 'image-board'; const contentType = isBooksPage ? 'book-board' : 'image-board';
let initialSource = await populateSources(domRefs.sourceList, contentType); let initialSource = await populateSources(domRefs.sourceList, contentType);
@@ -237,6 +239,12 @@ document.addEventListener('DOMContentLoaded', async () => {
currentSource = button.dataset.source; currentSource = button.dataset.source;
updateHeader(); updateHeader();
currentPage = 1; currentPage = 1;
// Apply books-only class when searching on books page
if (isBooksPage && domRefs.contentGallery) {
domRefs.contentGallery.classList.add('books-only');
}
if (domRefs.searchInput?.value.trim()) performSearch(currentSource, domRefs.searchInput, currentLayout, domRefs, callbacks); if (domRefs.searchInput?.value.trim()) performSearch(currentSource, domRefs.searchInput, currentLayout, domRefs, callbacks);
else if (domRefs.searchInput) performSearch(currentSource, { value: "" }, currentLayout, domRefs, callbacks); else if (domRefs.searchInput) performSearch(currentSource, { value: "" }, currentLayout, domRefs, callbacks);
} }

View File

@@ -1,6 +1,6 @@
const Gitea_OWNER = 'ItsSkaiya'; const Gitea_OWNER = 'ItsSkaiya';
const Gitea_REPO = 'WaifuBoard'; const Gitea_REPO = 'WaifuBoard';
const CURRENT_VERSION = 'v1.6.3'; const CURRENT_VERSION = 'v1.6.4';
const UPDATE_CHECK_INTERVAL = 5 * 60 * 1000; const UPDATE_CHECK_INTERVAL = 5 * 60 * 1000;
let currentVersionDisplay; let currentVersionDisplay;

View File

@@ -60,7 +60,8 @@
<div class="main-wrapper"> <div class="main-wrapper">
<header class="top-header"> <header class="top-header">
<div style="position: relative;"> <button id="hamburger-btn" class="hamburger"></button>
<div style="position: relative;margin-left: 50px">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="position: absolute; left: 15px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-tertiary);"> <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="position: absolute; left: 15px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-tertiary);">
<circle cx="11" cy="11" r="8"></circle> <circle cx="11" cy="11" r="8"></circle>
<line x1="21" y1="21" x2="16.65" y2="16.65"></line> <line x1="21" y1="21" x2="16.65" y2="16.65"></line>
@@ -130,5 +131,6 @@
}); });
} }
</script> </script>
<script src="../src/hamburger.js"></script>
</body> </body>
</html> </html>

View File

@@ -34,6 +34,7 @@
<div class="main-wrapper"> <div class="main-wrapper">
<header class="top-header"> <header class="top-header">
<button id="hamburger-btn" class="hamburger"></button>
<h3>Extension Emulator</h3> <h3>Extension Emulator</h3>
</header> </header>
@@ -97,6 +98,7 @@
</div> </div>
<script src="../src/emulator/emulator.js"></script> <script src="../src/emulator/emulator.js"></script>
<script src="../src/hamburger.js"></script>
</body> </body>
</html> </html>

View File

@@ -59,7 +59,8 @@
<div class="main-wrapper"> <div class="main-wrapper">
<header class="top-header"> <header class="top-header">
<div style="position: relative;"> <button id="hamburger-btn" class="hamburger"></button>
<div style="position: relative;margin-left: 50px">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="position: absolute; left: 15px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-tertiary);"> <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="position: absolute; left: 15px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-tertiary);">
<circle cx="11" cy="11" r="8"></circle> <circle cx="11" cy="11" r="8"></circle>
<line x1="21" y1="21" x2="16.65" y2="16.65"></line> <line x1="21" y1="21" x2="16.65" y2="16.65"></line>
@@ -106,5 +107,6 @@
}); });
} }
</script> </script>
<script src="../src/hamburger.js"></script>
</body> </body>
</html> </html>

View File

@@ -65,7 +65,8 @@
<div class="main-wrapper"> <div class="main-wrapper">
<header class="top-header"> <header class="top-header">
<div style="position: relative;"> <button id="hamburger-btn" class="hamburger"></button>
<div style="position: relative;margin-left: 50px">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
style="position: absolute; left: 15px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-tertiary);"> style="position: absolute; left: 15px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-tertiary);">
<circle cx="11" cy="11" r="8"></circle> <circle cx="11" cy="11" r="8"></circle>
@@ -133,7 +134,6 @@
</div> </div>
<script type="module" src="../src/renderer.js"></script> <script type="module" src="../src/renderer.js"></script>
<script type="module" src="../scripts/main.js"></script>
<script src="../src/updateNotification.js"></script> <script src="../src/updateNotification.js"></script>
<script> <script>
const searchInput = document.getElementById('search-input'); const searchInput = document.getElementById('search-input');
@@ -144,6 +144,7 @@
}); });
} }
</script> </script>
<script src="../src/hamburger.js"></script>
</body> </body>
</html> </html>

View File

@@ -10,7 +10,7 @@
</head> </head>
<body> <body>
<aside class="sidebar"> <aside class="sidebar">
<br> <br>
<nav style="display: flex; flex-direction: column; gap: 0.5rem;"> <nav style="display: flex; flex-direction: column; gap: 0.5rem;">
<a href="index.html" class="nav-button" title="Image Boards"> <a href="index.html" class="nav-button" title="Image Boards">
@@ -58,9 +58,14 @@
<span>Settings</span> <span>Settings</span>
</a> </a>
</nav> </nav>
</aside> </aside>
<div class="main-wrapper">
<header class="top-header">
<button id="hamburger-btn" class="hamburger"></button>
<h3>Marketplace</h3>
</header>
<div class="main-wrapper">
<div class="content-view"> <div class="content-view">
<div id="marketplace-page"> <div id="marketplace-page">
@@ -109,10 +114,11 @@
</div> </div>
</div> </div>
</div> </div>
<div id="message-bar" class="toast hidden">Message</div> <div id="message-bar" class="toast hidden">Message</div>
<script type="module" src="../src/marketplace.js"></script> <script type="module" src="../src/marketplace.js"></script>
<script src="../src/hamburger.js"></script>
</body> </body>
</html> </html>

View File

@@ -59,7 +59,8 @@
<div class="main-wrapper"> <div class="main-wrapper">
<header class="top-header"> <header class="top-header">
<div style="position: relative;"> <button id="hamburger-btn" class="hamburger"></button>
<div style="position: relative;margin-left: 50px;">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="position: absolute; left: 15px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-tertiary);"> <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="position: absolute; left: 15px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-tertiary);">
<circle cx="11" cy="11" r="8"></circle> <circle cx="11" cy="11" r="8"></circle>
<line x1="21" y1="21" x2="16.65" y2="16.65"></line> <line x1="21" y1="21" x2="16.65" y2="16.65"></line>
@@ -103,5 +104,6 @@
}); });
} }
</script> </script>
<script src="../src/hamburger.js"></script>
</body> </body>
</html> </html>

View File

@@ -1,214 +1,404 @@
#book-details-view { .image-entry[data-type="book"]::after {
display: flex; content: "";
flex-direction: column; position: absolute;
gap: 1.5rem; inset: 0;
padding-bottom: 4rem; border: 1px solid rgba(255, 255, 255, 0.1);
max-width: 1400px; border-radius: inherit;
margin: 0 auto; pointer-events: none;
}
.gallery-masonry .image-entry[data-type="book"] {
grid-row-end: span 1 !important;
aspect-ratio: 2 / 3 !important;
position: relative !important;
contain: layout style !important;
}
.gallery-masonry .image-entry[data-type="book"]::before {
content: "";
display: block;
padding-top: 150% !important;
}
.gallery-masonry .image-entry[data-type="book"] img {
position: absolute !important;
inset: 0 !important;
width: 100% !important;
height: 100% !important;
object-fit: cover !important;
}
.gallery-masonry:has(.image-entry[data-type="book"]) {
grid-auto-rows: 1fr !important;
}
.gallery-masonry.books-only .image-entry[data-type="book"],
.gallery-masonry .image-entry[data-type="book"] {
aspect-ratio: 2 / 3;
height: auto;
grid-row-end: span 1 !important;
contain: layout style;
background: var(--bg-surface);
border-radius: var(--radius-md);
overflow: hidden;
position: relative;
cursor: pointer;
transition: transform 0.2s;
}
.gallery-masonry .image-entry[data-type="book"]::before {
content: "";
display: block;
padding-top: 150%;
}
.gallery-masonry .image-entry[data-type="book"] img {
position: absolute;
top: 0; left: 0;
width: 100%; width: 100%;
height: 100%;
object-fit: cover;
object-position: center top;
transition: all 0.3s ease;
}
.gallery-masonry .image-entry[data-type="book"] img:not(.loaded) {
background: linear-gradient(90deg, #18181b 0%, #27272a 50%, #18181b 100%);
background-size: 200% 100%;
animation: shimmer 1.8s infinite;
opacity: 1;
}
.gallery-masonry .image-entry[data-type="book"]:hover img {
filter: brightness(0.7) blur(2px);
transform: scale(1.08);
}
.gallery-masonry .image-entry[data-type="book"]:hover .book-read-overlay {
opacity: 1;
} }
.book-top-nav { .book-top-nav {
display: flex; margin-bottom: 2rem;
align-items: center;
padding-bottom: 1rem;
border-bottom: 1px solid var(--border);
} }
.back-btn-large { .back-btn-large {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
gap: 0.75rem; gap: 0.5rem;
font-size: 1.1rem; padding: 0.75rem 1.25rem;
font-weight: 600; background: var(--bg-surface);
color: var(--text-secondary); border: 1px solid var(--border);
border-radius: var(--radius-md);
color: var(--text-primary);
cursor: pointer; cursor: pointer;
transition: 0.2s; transition: 0.2s;
padding: 0.5rem 1rem; font-weight: 500;
border-radius: var(--radius-md);
} }
.back-btn-large:hover { .back-btn-large:hover {
color: var(--text-primary);
background: var(--bg-surface-hover); background: var(--bg-surface-hover);
border-color: var(--accent);
}
.back-btn-large svg {
flex-shrink: 0;
} }
.book-layout-grid { .book-layout-grid {
display: grid; display: grid;
grid-template-columns: 300px 1fr; grid-template-columns: 300px 1fr;
gap: 3rem; gap: 2rem;
align-items: start; align-items: start;
} }
.book-left-col { .book-left-col {
display: flex;
flex-direction: column;
gap: 1.5rem;
position: sticky; position: sticky;
top: 20px; top: 2rem;
} }
.book-poster-large { .book-poster-large {
width: 100%; width: 100%;
border-radius: var(--radius-lg); border-radius: var(--radius-lg);
box-shadow: 0 15px 40px rgba(0,0,0,0.6);
aspect-ratio: 2/3;
object-fit: cover;
border: 1px solid var(--border); border: 1px solid var(--border);
background: #111; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
margin-bottom: 1.5rem;
} }
.book-title-sidebar { .book-title-sidebar {
font-size: 1.5rem; font-size: 1.5rem;
font-weight: 700; font-weight: 700;
line-height: 1.3;
margin: 0;
color: var(--text-primary); color: var(--text-primary);
text-align: center; margin: 0;
word-wrap: break-word; line-height: 1.3;
} }
.book-chapters-column { .book-chapters-column {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 1.5rem; gap: 1rem;
min-width: 0;
} }
.chapter-table-container { .chapter-table-container {
background: var(--bg-surface); background: var(--bg-surface);
border: 1px solid var(--border); border: 1px solid var(--border);
border-radius: var(--radius-md); border-radius: var(--radius-lg);
overflow: hidden; overflow: hidden;
} }
.chapter-row { .chapter-row {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 1.5rem; padding: 1rem 1.5rem;
border-bottom: 1px solid var(--border); border-bottom: 1px solid var(--border);
cursor: pointer; cursor: pointer;
transition: background 0.2s; transition: 0.2s;
display: flex;
align-items: center;
justify-content: space-between;
} }
.chapter-row:last-child { border-bottom: none; }
.chapter-row:hover { background: var(--bg-surface-hover); }
.chapter-main-text { font-weight: 600; font-size: 1rem; color: var(--text-primary); } .chapter-row:last-child {
.chapter-sub-text { font-size: 0.9rem; color: var(--text-tertiary); } border-bottom: none;
}
.chapter-row:hover {
background: var(--bg-surface-hover);
}
.chapter-main-text {
font-weight: 500;
color: var(--text-primary);
font-size: 0.95rem;
}
.pagination-bar { .pagination-bar {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center;
gap: 1.5rem;
margin-top: 1rem;
padding-top: 1rem;
} }
.page-btn { .page-btn {
background: var(--bg-surface); padding: 0.5rem 1rem;
background: var(--bg-base);
border: 1px solid var(--border); border: 1px solid var(--border);
color: var(--text-primary);
padding: 0.5rem 1.5rem;
border-radius: var(--radius-md); border-radius: var(--radius-md);
color: var(--text-primary);
cursor: pointer; cursor: pointer;
font-weight: 500;
transition: 0.2s; transition: 0.2s;
font-weight: 500;
}
.page-btn:hover:not(:disabled) {
background: var(--accent);
border-color: var(--accent);
}
.page-btn:disabled {
opacity: 0.4;
cursor: not-allowed;
} }
.page-btn:hover:not(:disabled) { background: var(--bg-surface-hover); border-color: var(--accent); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
#reader-view { #reader-view {
position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; position: fixed;
z-index: 200; background: #0d0d0d; overflow-y: auto; inset: 0;
display: flex; flex-direction: column; align-items: center; padding-top: 60px; background: #000;
z-index: 100;
overflow-y: auto;
padding: 4rem 0 2rem 0;
} }
.reader-page-img { max-width: 100%; width: auto; display: block; margin-bottom: 0; box-shadow: 0 0 20px rgba(0,0,0,0.5); } .reader-close-btn {
position: fixed;
top: 1rem;
right: 1rem;
background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
color: white;
padding: 0.75rem 1.25rem;
border-radius: var(--radius-md);
cursor: pointer;
display: flex;
align-items: center;
gap: 0.5rem;
font-weight: 500;
z-index: 101;
transition: 0.2s;
}
.reader-close-btn:hover {
background: rgba(139, 92, 246, 0.9);
border-color: var(--accent);
}
#reader-content {
max-width: 900px;
margin: 0 auto;
padding: 0 1rem;
}
.reader-page-img {
width: 100%;
height: auto;
display: block;
margin-bottom: 0;
border-radius: 4px;
}
.reader-text-content { .reader-text-content {
max-width: 900px; background: #1a1a1a;
width: 95%; color: #e5e5e5;
color: #e4e4e7; padding: 3rem;
font-size: 1.1rem; border-radius: var(--radius-lg);
line-height: 1.8; line-height: 1.8;
padding: 2rem; font-size: 1.05rem;
background: #18181b; max-width: 800px;
margin-bottom: 4rem; margin: 0 auto;
border-radius: 8px;
box-shadow: 0 4px 20px rgba(0,0,0,0.5);
} }
.reader-text-content p { .reader-text-content p {
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
} }
.reader-close-btn { .reader-text-content h1,
position: fixed; top: 20px; left: 20px; z-index: 210; .reader-text-content h2,
background: rgba(0,0,0,0.8); color: white; border: 1px solid rgba(255,255,255,0.2); .reader-text-content h3 {
padding: 10px 20px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; backdrop-filter: blur(4px);
}
.reader-close-btn:hover { background: var(--accent); border-color: var(--accent); }
.loading-state { text-align: center; padding: 4rem; color: var(--text-tertiary); }
.image-entry[data-type="book"] {
aspect-ratio: 2/3;
background: #1a1a1a;
display: block;
position: relative;
cursor: pointer;
overflow: hidden;
}
.image-entry[data-type="book"] img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center top;
transition: filter 0.3s ease, transform 0.3s ease;
}
.image-entry[data-type="book"]:hover img {
filter: blur(4px) brightness(0.7);
transform: scale(1.05);
}
.book-read-overlay {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 0.5rem;
opacity: 0;
transition: opacity 0.3s ease;
pointer-events: none;
color: white;
z-index: 10;
}
.image-entry[data-type="book"]:hover .book-read-overlay {
opacity: 1;
}
.book-read-overlay span {
font-weight: 700;
font-size: 1.1rem;
text-transform: uppercase;
letter-spacing: 1px;
text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.book-read-overlay svg {
filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
color: var(--accent); color: var(--accent);
margin-top: 2rem;
margin-bottom: 1rem;
} }
.image-entry[data-type="book"]::after { @media (max-width: 767px) {
content: ""; /* Book Cards */
position: absolute; .gallery-masonry.books-only {
inset: 0; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
border: 1px solid rgba(255,255,255,0.1); gap: 1rem;
border-radius: inherit; }
pointer-events: none;
.image-entry[data-type="book"] img {
height: 200px;
}
.image-entry[data-type="book"]:hover {
transform: none;
}
.image-entry[data-type="book"] .image-buttons {
padding: 0.5rem;
gap: 0.4rem;
opacity: 0.9;
}
.image-entry[data-type="book"] .image-buttons button {
width: 32px;
height: 32px;
}
/* Book Details */
.book-layout-grid {
grid-template-columns: 1fr;
gap: 1.5rem;
}
.book-left-col {
position: relative;
top: 0;
display: grid;
grid-template-columns: 140px 1fr;
gap: 1rem;
align-items: start;
}
.book-poster-large {
width: 100%;
margin-bottom: 0;
}
.book-title-sidebar {
font-size: 1.2rem;
align-self: center;
}
.back-btn-large {
padding: 0.6rem 1rem;
font-size: 0.9rem;
margin-bottom: 1rem;
}
/* Chapter List */
.chapter-row {
padding: 0.85rem 1rem;
}
.chapter-main-text {
font-size: 0.9rem;
}
.pagination-bar {
flex-wrap: wrap;
gap: 0.75rem;
padding: 0.75rem;
}
.page-btn {
padding: 0.5rem 0.85rem;
font-size: 0.85rem;
}
#reader-view {
padding: 3.5rem 0 1rem 0;
}
.reader-close-btn {
top: 0.75rem;
right: 0.75rem;
padding: 0.6rem 1rem;
font-size: 0.9rem;
}
#reader-content {
padding: 0 0.75rem;
}
.reader-text-content {
padding: 1.5rem;
font-size: 1rem;
line-height: 1.7;
}
.reader-page-img {
border-radius: 2px;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.gallery-masonry.books-only {
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.book-layout-grid {
grid-template-columns: 240px 1fr;
gap: 1.5rem;
}
.image-entry[data-type="book"] img {
height: 280px;
}
.book-left-col {
position: sticky;
top: 1rem;
}
}
@media (min-width: 1400px) {
.gallery-masonry.books-only {
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.image-entry[data-type="book"] img {
height: 340px;
}
.book-layout-grid {
grid-template-columns: 320px 1fr;
gap: 2.5rem;
}
} }

View File

@@ -4,7 +4,7 @@
gap: 1.5rem; gap: 1.5rem;
height: calc(100vh - var(--header-height)); height: calc(100vh - var(--header-height));
padding: 1rem 2rem 2rem 2rem; padding: 1rem 2rem 2rem 2rem;
overflow: hidden; overflow: auto;
} }
.editor-pane, .editor-pane,
@@ -51,6 +51,7 @@
flex-direction: column; flex-direction: column;
gap: 0.25rem; gap: 0.25rem;
flex: 1; flex: 1;
min-width: 120px;
} }
.control-group label { .control-group label {
@@ -94,6 +95,12 @@
gap: 0.5rem; gap: 0.5rem;
border-bottom: 1px solid var(--border); border-bottom: 1px solid var(--border);
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
overflow-x: auto;
scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
display: none;
} }
.tab-btn { .tab-btn {
@@ -104,6 +111,8 @@
cursor: pointer; cursor: pointer;
border-bottom: 2px solid transparent; border-bottom: 2px solid transparent;
font-weight: 500; font-weight: 500;
white-space: nowrap;
transition: 0.2s;
} }
.tab-btn.active { .tab-btn.active {
@@ -194,3 +203,168 @@ pre {
.loading-state.hidden { .loading-state.hidden {
display: none; display: none;
} }
@media (max-width: 767px) {
.emulator-container {
grid-template-columns: 1fr;
grid-template-rows: minmax(250px, 40vh) minmax(400px, 1fr);
gap: 1rem;
padding: 1rem;
height: auto;
overflow-y: auto;
}
.editor-pane,
.preview-pane {
gap: 0.75rem;
height: auto;
min-height: 0;
overflow: visible;
}
.editor-pane {
display: flex;
flex-direction: column;
}
.preview-pane {
display: flex;
flex-direction: column;
overflow: visible;
}
.code-editor {
font-size: 13px;
padding: 0.75rem;
min-height: 200px;
max-height: 35vh;
}
.control-bar {
padding: 0.75rem;
gap: 0.5rem;
flex-direction: column;
align-items: stretch;
}
.control-bar[style*="background: transparent"] {
flex-direction: row !important;
padding: 0 !important;
}
.control-group {
flex: unset;
width: 100%;
min-width: 0;
}
.control-group:has(label:contains("Page")) {
max-width: none;
}
.control-input {
font-size: 0.85rem;
padding: 0.6rem;
}
.btn-run {
width: 100%;
height: auto;
padding: 0.75rem;
align-self: stretch;
margin-top: 0.25rem;
}
.tabs {
gap: 0.25rem;
margin-bottom: 0.5rem;
}
.tab-btn {
padding: 0.6rem 0.75rem;
font-size: 0.85rem;
flex: 1;
text-align: center;
}
.output-area {
padding: 0.75rem;
min-height: 300px;
overflow: auto;
}
.visual-card {
width: 130px;
margin: 0.35rem;
}
.visual-card img {
height: 170px;
}
.visual-card .title {
font-size: 0.75rem;
padding: 0.4rem;
}
.visual-chapter {
padding: 0.6rem 0.5rem;
font-size: 0.9rem;
}
pre {
font-size: 0.8rem;
}
.log-entry {
font-size: 0.8rem;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.emulator-container {
grid-template-columns: 1fr;
grid-template-rows: auto 1fr;
gap: 1.25rem;
padding: 1rem 1.5rem;
}
.editor-pane {
max-height: 35vh;
}
.preview-pane {
min-height: 45vh;
}
.code-editor {
font-size: 13px;
}
.control-bar {
flex-wrap: wrap;
}
.control-group {
min-width: 140px;
}
.btn-run {
width: auto;
min-width: 100px;
}
}
@media (min-width: 1024px) and (max-width: 1279px) {
.emulator-container {
gap: 1.25rem;
}
.visual-card {
width: 140px;
}
.visual-card img {
height: 180px;
}
}

View File

@@ -1,28 +1,19 @@
:root { :root {
--bg-base: #09090b; --bg-base: #09090b;
--bg-sidebar: #101012; --bg-sidebar: #101012;
--bg-surface: #18181b; --bg-surface: #18181b;
--bg-surface-hover: #27272a; --bg-surface-hover: #27272a;
--accent: #8b5cf6; --accent: #8b5cf6;
--accent-glow: rgba(139, 92, 246, 0.3); --accent-glow: rgba(139, 92, 246, 0.3);
--accent-gradient: linear-gradient(135deg, #8b5cf6, #6366f1); --accent-gradient: linear-gradient(135deg, #8b5cf6, #6366f1);
--text-primary: #f4f4f5; --text-primary: #f4f4f5;
--text-secondary: #a1a1aa; --text-secondary: #a1a1aa;
--text-tertiary: #52525b; --text-tertiary: #52525b;
--border: #27272a; --border: #27272a;
--border-hover: #3f3f46; --border-hover: #3f3f46;
--radius-md: 8px; --radius-md: 8px;
--radius-lg: 16px; --radius-lg: 16px;
--radius-full: 9999px; --radius-full: 9999px;
--sidebar-width-collapsed: 72px; --sidebar-width-collapsed: 72px;
--sidebar-width-expanded: 240px; --sidebar-width-expanded: 240px;
--header-height: 70px; --header-height: 70px;
@@ -40,13 +31,12 @@ body {
padding: 0; padding: 0;
background-color: var(--bg-base); background-color: var(--bg-base);
color: var(--text-primary); color: var(--text-primary);
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
height: 100vh; height: 100vh;
display: flex; display: flex;
overflow: hidden; overflow: hidden;
} }
.sidebar { .sidebar {
width: var(--sidebar-width-collapsed); width: var(--sidebar-width-collapsed);
background: var(--bg-sidebar); background: var(--bg-sidebar);
@@ -70,9 +60,9 @@ body {
flex-direction: column; flex-direction: column;
height: 100%; height: 100%;
position: relative; position: relative;
min-width: 0;
} }
.brand-logo { .brand-logo {
height: 48px; height: 48px;
display: flex; display: flex;
@@ -102,7 +92,6 @@ body {
} }
.nav-button { .nav-button {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 0.85rem; padding: 0.85rem;
@@ -128,7 +117,6 @@ body {
color: var(--accent); color: var(--accent);
} }
.nav-button svg { .nav-button svg {
min-width: 24px; min-width: 24px;
width: 24px; width: 24px;
@@ -136,7 +124,10 @@ body {
margin-right: 1rem; margin-right: 1rem;
} }
a, a:visited, a:hover, a:active { a,
a:visited,
a:hover,
a:active {
text-decoration: none; text-decoration: none;
} }
@@ -151,7 +142,6 @@ a, a:visited, a:hover, a:active {
transform: translateX(0); transform: translateX(0);
} }
.top-header { .top-header {
height: var(--header-height); height: var(--header-height);
display: flex; display: flex;
@@ -163,12 +153,10 @@ a, a:visited, a:hover, a:active {
z-index: 40; z-index: 40;
} }
.search-box { .search-box {
display: contents; display: contents;
} }
#search-input { #search-input {
background: var(--bg-surface); background: var(--bg-surface);
border: 1px solid var(--border); border: 1px solid var(--border);
@@ -185,7 +173,6 @@ a, a:visited, a:hover, a:active {
box-shadow: 0 0 0 2px var(--accent-glow); box-shadow: 0 0 0 2px var(--accent-glow);
} }
.content-view { .content-view {
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
@@ -193,7 +180,6 @@ a, a:visited, a:hover, a:active {
} }
.page { .page {
max-width: 1600px; max-width: 1600px;
margin: 0 auto; margin: 0 auto;
animation: fadeIn 0.3s ease-out; animation: fadeIn 0.3s ease-out;
@@ -204,56 +190,58 @@ a, a:visited, a:hover, a:active {
opacity: 0; opacity: 0;
transform: translateY(10px); transform: translateY(10px);
} }
to { to {
opacity: 1; opacity: 1;
transform: translateY(0); transform: translateY(0);
} }
} }
#source-list { #source-list {
display: flex; display: flex;
gap: 1rem; gap: 1rem;
overflow-x: auto;
padding-bottom: 1rem; padding-bottom: 1rem;
scrollbar-width: none; scrollbar-width: none;
align-items: center; align-items: center;
flex-direction: row; flex-direction: row;
scroll-behavior: smooth;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
} }
#source-list::-webkit-scrollbar { #source-list::-webkit-scrollbar {
display: none; 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);
} }
.source-button { .source-button {
background: var(--bg-surface); background: var(--bg-surface);
border: 1px solid var(--border); border: 1px solid var(--border);
border-radius: var(--radius-md); border-radius: var(--radius-md);
display: flex; display: flex;
align-items: center; align-items: center;
gap: 1rem; gap: 1rem;
padding: 0.75rem 1rem; padding: 0.75rem 1rem;
min-width: 200px; min-width: 200px;
width: auto; width: auto;
height: auto; height: auto;
cursor: pointer; cursor: pointer;
transition: all 0.2s; transition: all 0.2s;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
text-align: left; text-align: left;
flex-shrink: 0;
} }
.source-button:hover { .source-button:hover {
@@ -269,7 +257,6 @@ a, a:visited, a:hover, a:active {
color: var(--text-primary); color: var(--text-primary);
} }
.source-button img, .source-button img,
.source-button .brand-icon { .source-button .brand-icon {
width: 32px; width: 32px;
@@ -277,10 +264,8 @@ a, a:visited, a:hover, a:active {
border-radius: 6px; border-radius: 6px;
object-fit: cover; object-fit: cover;
flex-shrink: 0; flex-shrink: 0;
} }
.source-text-wrapper { .source-text-wrapper {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@@ -301,38 +286,23 @@ a, a:visited, a:hover, a:active {
.source-url { .source-url {
font-size: 0.75rem; font-size: 0.75rem;
color: var(--text-tertiary); color: var(--text-tertiary);
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.gallery-masonry { .gallery-masonry {
column-count: 2; display: grid;
column-gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: 1rem;
} }
@media (min-width: 768px) { .gallery-masonry:not(.books-only) {
.gallery-masonry { grid-auto-rows: 8px;
column-count: 3;
}
} }
@media (min-width: 1024px) { .image-entry:not([data-type="book"]) {
.gallery-masonry { margin-bottom: 0;
column-count: 4;
}
}
@media (min-width: 1400px) {
.gallery-masonry {
column-count: 5;
}
}
.image-entry {
margin-bottom: 1rem;
border-radius: var(--radius-md); border-radius: var(--radius-md);
overflow: hidden; overflow: hidden;
position: relative; position: relative;
@@ -340,12 +310,11 @@ a, a:visited, a:hover, a:active {
break-inside: avoid; break-inside: avoid;
transition: transform 0.2s; transition: transform 0.2s;
cursor: zoom-in; cursor: zoom-in;
display: inline-block; display: block;
width: 100%; width: 100%;
} }
.image-entry:hover { .image-entry:not([data-type="book"]):hover {
transform: scale(1.02); transform: scale(1.02);
z-index: 2; z-index: 2;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
@@ -355,21 +324,15 @@ a, a:visited, a:hover, a:active {
width: 100%; width: 100%;
height: auto; height: auto;
display: block; display: block;
opacity: 0; aspect-ratio: auto;
transition: opacity 0.3s;
} }
.image-entry img.loaded { .image-entry img.loaded {
opacity: 1; opacity: 1;
transition: opacity 0.3s ease-in;
min-height: unset;
} }
.image-entry img:not(.loaded) {
opacity: 1;
}
.image-buttons { .image-buttons {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
@@ -383,18 +346,14 @@ a, a:visited, a:hover, a:active {
opacity: 0; opacity: 0;
transition: 0.2s; transition: 0.2s;
top: auto; top: auto;
right: auto; right: auto;
flex-direction: row; flex-direction: row;
} }
.image-entry:hover .image-buttons { .image-entry:hover .image-buttons {
opacity: 1; opacity: 1;
} }
.image-buttons button { .image-buttons button {
width: 32px; width: 32px;
height: 32px; height: 32px;
@@ -409,7 +368,6 @@ a, a:visited, a:hover, a:active {
cursor: pointer; cursor: pointer;
transition: 0.2s; transition: 0.2s;
padding: 0; padding: 0;
} }
.image-buttons button:hover { .image-buttons button:hover {
@@ -422,7 +380,6 @@ a, a:visited, a:hover, a:active {
height: 16px; height: 16px;
} }
.settings-grid { .settings-grid {
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
@@ -443,7 +400,6 @@ a, a:visited, a:hover, a:active {
color: var(--text-primary); color: var(--text-primary);
} }
fieldset { fieldset {
border: none; border: none;
padding: 0; padding: 0;
@@ -473,7 +429,6 @@ input[type="radio"] {
height: 1.2em; height: 1.2em;
} }
.hidden { .hidden {
display: none !important; display: none !important;
} }
@@ -488,8 +443,6 @@ input[type="radio"] {
gap: 1rem; gap: 1rem;
} }
#tag-info-modal { #tag-info-modal {
position: fixed; position: fixed;
inset: 0; inset: 0;
@@ -499,6 +452,7 @@ input[type="radio"] {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: 1rem;
} }
#tag-info-modal.hidden { #tag-info-modal.hidden {
@@ -506,7 +460,6 @@ input[type="radio"] {
} }
#tag-info-modal>div { #tag-info-modal>div {
background: var(--bg-surface); background: var(--bg-surface);
border: 1px solid var(--border); border: 1px solid var(--border);
padding: 2rem; padding: 2rem;
@@ -515,6 +468,8 @@ input[type="radio"] {
max-width: 500px; max-width: 500px;
position: relative; position: relative;
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
max-height: 80vh;
overflow-y: auto;
} }
#tag-info-close-button { #tag-info-close-button {
@@ -525,6 +480,12 @@ input[type="radio"] {
border: none; border: none;
color: var(--text-tertiary); color: var(--text-tertiary);
cursor: pointer; cursor: pointer;
font-size: 1.5rem;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
} }
.tag-cloud { .tag-cloud {
@@ -534,7 +495,6 @@ input[type="radio"] {
margin-top: 1rem; margin-top: 1rem;
} }
#tag-info-content span { #tag-info-content span {
background: var(--bg-surface-hover); background: var(--bg-surface-hover);
border: 1px solid var(--border); border: 1px solid var(--border);
@@ -544,7 +504,6 @@ input[type="radio"] {
font-size: 0.8rem; font-size: 0.8rem;
} }
.toast { .toast {
position: fixed; position: fixed;
bottom: 2rem; bottom: 2rem;
@@ -561,6 +520,7 @@ input[type="radio"] {
opacity: 0; opacity: 0;
pointer-events: none; pointer-events: none;
transition: 0.3s; transition: 0.3s;
max-width: calc(100vw - 4rem);
} }
.toast:not(.hidden) { .toast:not(.hidden) {
@@ -574,3 +534,287 @@ input[type="radio"] {
opacity: 1; opacity: 1;
pointer-events: all; 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;
grid-column: 1 / -1;
}
#gallery-placeholder p {
max-width: 300px;
text-align: center;
white-space: normal;
margin: 0;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.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;
}
}

View File

@@ -32,7 +32,7 @@
.hero-content { .hero-content {
z-index: 1; z-index: 1;
max-width: 60%; max-width: 100%;
} }
.hero-title { .hero-title {
@@ -42,6 +42,7 @@
background: linear-gradient(to right, #fff, #a5b4fc); background: linear-gradient(to right, #fff, #a5b4fc);
-webkit-background-clip: text; -webkit-background-clip: text;
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
background-clip: text;
} }
.hero-subtitle { .hero-subtitle {
@@ -53,7 +54,8 @@
.hero-stats { .hero-stats {
display: flex; display: flex;
gap: 2rem; gap: 1.5rem;
flex-wrap: wrap;
} }
.stat-box { .stat-box {
@@ -65,7 +67,7 @@
} }
.stat-value { .stat-value {
font-size: 1.2rem; font-size: 1.5rem;
font-weight: 700; font-weight: 700;
color: #fff; color: #fff;
display: block; display: block;
@@ -120,6 +122,7 @@
.section-icon { .section-icon {
color: var(--accent); color: var(--accent);
flex-shrink: 0;
} }
.section-title { .section-title {
@@ -156,6 +159,7 @@
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: flex-start; align-items: flex-start;
gap: 0.75rem;
} }
.ext-icon-box { .ext-icon-box {
@@ -168,6 +172,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
flex-shrink: 0;
} }
.ext-icon { .ext-icon {
@@ -255,3 +260,147 @@
.hidden { display: none !important; } .hidden { display: none !important; }
.loading-state { text-align: center; padding: 4rem; color: var(--text-tertiary); } .loading-state { text-align: center; padding: 4rem; color: var(--text-tertiary); }
.main-wrapper .top-header {
display: none;
}
@media (max-width: 767px) {
.main-wrapper .top-header {
display: flex;
}
#marketplace-page {
gap: 1.5rem;
padding-bottom: 2rem;
}
.marketplace-hero {
padding: 1.5rem;
border-radius: 12px;
}
.marketplace-hero::before {
width: 250px;
height: 250px;
right: -20%;
top: -30%;
}
.hero-title {
font-size: 1.8rem;
margin-bottom: 0.5rem;
}
.hero-subtitle {
font-size: 0.9rem;
margin-bottom: 1.25rem;
line-height: 1.4;
}
.hero-stats {
gap: 1rem;
}
.stat-box {
padding: 0.6rem 1rem;
flex: 1;
min-width: 0;
}
.stat-value {
font-size: 1.3rem;
}
.stat-label {
font-size: 0.7rem;
}
.marketplace-tabs {
width: 100%;
justify-content: stretch;
gap: 0.5rem;
padding: 0.4rem;
}
.tab-btn {
flex: 1;
padding: 0.7rem 1rem;
font-size: 0.9rem;
}
.section-header {
margin-bottom: 1rem;
}
.section-title {
font-size: 1rem;
}
.section-icon {
width: 18px;
height: 18px;
}
.marketplace-grid {
grid-template-columns: 1fr;
gap: 1rem;
}
.extension-card {
padding: 1.25rem;
gap: 0.75rem;
}
.extension-card:hover {
transform: none;
}
.ext-icon-box {
width: 48px;
height: 48px;
}
.ext-name {
font-size: 1rem;
}
.ext-meta {
font-size: 0.75rem;
}
.type-badge {
font-size: 0.6rem;
padding: 3px 7px;
}
.card-footer {
padding-top: 0.75rem;
}
.ext-size {
font-size: 0.7rem;
}
.install-btn {
padding: 0.5rem 0.85rem;
font-size: 0.8rem;
}
.loading-state {
padding: 2rem 1rem;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.marketplace-grid {
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.hero-title {
font-size: 2rem;
}
.marketplace-tabs {
width: auto;
}
}