Picta rebrand: remove all clone/Imgur UI strings, wire /logo.svg, simplify upload (Share CTA, full-page drag overlay, body-scroll lock), scrollbar elimination (hidden tracks, overflow-x hidden, break-word, modal internal scroll)

This commit is contained in:
krisf
2026-08-22 17:12:06 -04:00
parent 7862ad8e20
commit 911958db69
7 changed files with 142 additions and 17 deletions
+73 -2
View File
@@ -62,6 +62,10 @@
--text-3xl: 24px;
}
html, body {
overflow-x: hidden;
}
body {
font-family: var(--font-family);
background: var(--bg-primary);
@@ -73,6 +77,19 @@ body {
-moz-osx-font-smoothing: grayscale;
}
body.modal-open {
overflow: hidden;
}
/* Hide scrollbar tracks but keep scrollability */
* {
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* IE/Edge */
}
*::-webkit-scrollbar {
display: none; /* WebKit */
}
/* ===== Focus Visible ===== */
:focus-visible {
outline: 2px solid var(--accent-green);
@@ -116,8 +133,11 @@ body {
opacity: 0.85;
}
.logo-icon {
font-size: 28px;
.logo-img {
width: 28px;
height: 28px;
border-radius: 6px;
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.logo-text {
@@ -304,6 +324,8 @@ body {
.post-card-image {
width: 100%;
max-width: 100%;
height: auto;
aspect-ratio: 4/3;
object-fit: cover;
display: block;
@@ -324,6 +346,8 @@ body {
-webkit-box-orient: vertical;
overflow: hidden;
letter-spacing: -0.01em;
overflow-wrap: break-word;
word-break: break-word;
}
.post-card-stats {
@@ -410,9 +434,14 @@ body {
max-width: 560px;
max-height: 90vh;
overflow-y: auto;
overflow-x: hidden;
border: 1px solid var(--border-color);
box-shadow: var(--shadow-lg);
animation: modalIn 200ms ease;
scrollbar-width: none;
}
.modal::-webkit-scrollbar {
display: none;
}
@keyframes modalIn {
@@ -652,6 +681,9 @@ body {
.post-image-container img {
width: 100%;
max-width: 100%;
height: auto;
display: block;
border-radius: var(--radius);
cursor: zoom-in;
box-shadow: var(--shadow);
@@ -815,6 +847,8 @@ body {
font-size: var(--text-base);
color: var(--text-secondary);
line-height: 1.5;
overflow-wrap: break-word;
word-break: break-word;
}
.comment-time {
@@ -922,6 +956,43 @@ body {
}
}
/* ===== Full-Page Drag Overlay ===== */
.drag-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(20, 20, 28, 0.92);
backdrop-filter: blur(6px);
z-index: 5000;
align-items: center;
justify-content: center;
pointer-events: none;
}
.drag-overlay.active {
display: flex;
}
.drag-overlay-inner {
text-align: center;
padding: var(--space-10) var(--space-9);
border: 3px dashed var(--accent-green);
border-radius: var(--radius-xl);
background: rgba(27, 183, 110, 0.06);
}
.drag-overlay-icon {
font-size: 56px;
margin-bottom: var(--space-4);
}
.drag-overlay-text {
font-size: var(--text-2xl);
font-weight: 700;
color: var(--accent-green);
letter-spacing: -0.02em;
}
/* ===== Responsive ===== */
@media (max-width: 1024px) {
.post-detail-grid {