Expanded UI
This commit is contained in:
251
styles.css
251
styles.css
@@ -80,8 +80,8 @@ html, body {
|
||||
|
||||
.swipe-container {
|
||||
position: relative;
|
||||
flex: 3;
|
||||
min-height: 70vh;
|
||||
flex: 1 1 auto;
|
||||
height: calc(100vh - 160px); /* maximise vertical space */
|
||||
perspective: 1000px;
|
||||
border-radius: var(--border-radius);
|
||||
background: var(--card-background);
|
||||
@@ -95,21 +95,17 @@ html, body {
|
||||
}
|
||||
|
||||
.image-card {
|
||||
position: absolute;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: var(--border-radius);
|
||||
overflow: hidden;
|
||||
transition: transform 0.5s ease-out, opacity 0.5s ease-out;
|
||||
transform-origin: center center;
|
||||
background-color: var(--card-background);
|
||||
touch-action: none;
|
||||
cursor: grab;
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
|
||||
.image-card img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
@@ -118,7 +114,17 @@ html, body {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.image-card {
|
||||
border-radius: var(--border-radius);
|
||||
overflow: hidden;
|
||||
background-color: var(--card-background);
|
||||
touch-action: none;
|
||||
cursor: grab;
|
||||
transition: transform 0.5s ease-out, opacity 0.5s ease-out;
|
||||
}
|
||||
|
||||
.loading-indicator, .no-images-message {
|
||||
opacity: 0; /* hidden by default */
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
@@ -131,7 +137,7 @@ html, body {
|
||||
}
|
||||
|
||||
.image-card.loading .loading-indicator {
|
||||
opacity: 1;
|
||||
opacity: 1; /* visible when card has loading class */
|
||||
}
|
||||
|
||||
.image-card.swiping {
|
||||
@@ -380,6 +386,7 @@ html, body {
|
||||
}
|
||||
|
||||
.selection-action {
|
||||
background-color: rgba(0,0,0,0.6); /* fallback to ensure background */
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
@@ -388,6 +395,7 @@ html, body {
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
font-size: 0.8rem;
|
||||
background-color: var(--danger-color);
|
||||
}
|
||||
|
||||
.action-left { background-color: var(--danger-color); }
|
||||
@@ -395,6 +403,12 @@ html, body {
|
||||
.action-up { background-color: var(--primary-color); }
|
||||
.action-down { background-color: var(--warning-color); }
|
||||
|
||||
/* New semantic action colors */
|
||||
.action-discard { background-color: var(--danger-color); }
|
||||
.action-keep { background-color: var(--success-color); }
|
||||
.action-favorite { background-color: var(--primary-color); }
|
||||
.action-review { background-color: var(--warning-color); }
|
||||
|
||||
.selection-checkbox-container {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
@@ -432,7 +446,179 @@ html, body {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
/* Use full vertical space on desktop */
|
||||
.swipe-container {
|
||||
min-height: calc(100vh - 180px); /* header + paddings approx */
|
||||
}
|
||||
.action-btn {
|
||||
padding: 10px 20px;
|
||||
font-size: 1rem;
|
||||
}
|
||||
.action-btn .label {
|
||||
display: none;
|
||||
}
|
||||
.action-btn .symbol {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
.action-btn.left .symbol::before {
|
||||
content: "\2190";
|
||||
}
|
||||
.action-btn.right .symbol::before {
|
||||
content: "\2192";
|
||||
}
|
||||
.action-btn.up .symbol::before {
|
||||
content: "\2191";
|
||||
}
|
||||
.action-btn.down .symbol::before {
|
||||
content: "\2193";
|
||||
}
|
||||
}
|
||||
|
||||
/* ---------------- MOBILE VIEW TWEAKS ---------------- */
|
||||
@media (max-width: 767px) {
|
||||
/* tighter spacing between panels */
|
||||
.side-panel {
|
||||
gap: 10px;
|
||||
}
|
||||
.filter-controls,
|
||||
.action-buttons,
|
||||
.status-area {
|
||||
padding: 10px;
|
||||
}
|
||||
/* combined action buttons */
|
||||
.action-buttons {
|
||||
flex-direction: row;
|
||||
gap: 0;
|
||||
}
|
||||
.action-buttons .action-btn {
|
||||
flex: 1;
|
||||
border-radius: 0;
|
||||
padding: 16px 0;
|
||||
}
|
||||
/* minimal spacing between blocks */
|
||||
.side-panel > * + * {
|
||||
margin-top: 4px;
|
||||
border-top: 1px solid #ccc;
|
||||
}
|
||||
}
|
||||
|
||||
/* ---------------- DESKTOP 2x2 ACTION GRID ---------------- */
|
||||
@media (min-width: 992px) {
|
||||
.action-buttons {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
grid-template-rows: repeat(2, 1fr);
|
||||
gap: 10px;
|
||||
}
|
||||
.action-buttons .action-btn {
|
||||
height: 120px;
|
||||
}
|
||||
.action-buttons .action-icon {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ---------------- MOBILE ORIENTATION BUTTONS ---------------- */
|
||||
@media (max-width: 991px) {
|
||||
.orientation-filters {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 10px;
|
||||
}
|
||||
.orientation-filters .filter-btn {
|
||||
padding: 15px;
|
||||
border: none;
|
||||
border-radius: var(--border-radius);
|
||||
background-color: var(--light-color);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.orientation-filters .filter-btn .orientation-icon {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
.orientation-filters .filter-btn:not(.active) {
|
||||
background-color: #444;
|
||||
opacity: 0.9;
|
||||
}
|
||||
.orientation-filters .filter-btn.active {
|
||||
background-color: var(--primary-color);
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
/* ---------------- DESKTOP VIEW ORIENTATION SYMBOLS ---------------- */
|
||||
@media (min-width: 992px) {
|
||||
.filter-btn .text { display:none; }
|
||||
.filter-btn::after { content: attr(data-symbol); }
|
||||
}
|
||||
|
||||
/* Prompt textarea */
|
||||
.prompt-text {
|
||||
width: 100%;
|
||||
max-height: 200px;
|
||||
min-height: 80px;
|
||||
resize: vertical;
|
||||
font-family: inherit;
|
||||
font-size: 0.9rem;
|
||||
padding: 8px;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: var(--border-radius);
|
||||
background: #fafafa;
|
||||
color: var(--dark-color);
|
||||
}
|
||||
|
||||
/* Orientation icon */
|
||||
.orientation-icon { width: 32px; height: 32px; }
|
||||
|
||||
/* Logo styling */
|
||||
.logo-wide {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
}
|
||||
.logo-half { max-width: 50%; height: auto; display: inline-block; }
|
||||
|
||||
/* -------- Global action button tweaks -------- */
|
||||
.action-btn {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
.action-icon { width: 40px; height: 40px; }
|
||||
|
||||
.action-btn .label { display: none; }
|
||||
|
||||
/* ---------------- HISTORY PAGE OVERRIDES ---------------- */
|
||||
.history-actions .action-btn {
|
||||
height: 80px;
|
||||
padding: 24px 12px;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
.history-actions .action-btn .label { display: inline-block; }
|
||||
|
||||
.history-actions {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 10px;
|
||||
justify-content: center;
|
||||
margin: 12px 0;
|
||||
}
|
||||
.history-actions .action-btn {
|
||||
flex: 1 1 0;
|
||||
padding: 10px;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
/* Hide filter section headers on history page (and anywhere) */
|
||||
.filter-section h4 { display: none; }
|
||||
/* Add spacing between filter rows */
|
||||
.filter-section { margin-bottom: 16px; }
|
||||
|
||||
@media (max-width: 992px) {
|
||||
/* Keep history button row above images on mobile */
|
||||
.history-actions { order: 0; }
|
||||
|
||||
.container {
|
||||
padding: 10px;
|
||||
}
|
||||
@@ -443,20 +629,43 @@ html, body {
|
||||
position: static;
|
||||
width: 100%;
|
||||
}
|
||||
/* Action buttons placed directly below image viewer and compacted */
|
||||
.action-buttons {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
background: var(--card-background);
|
||||
padding: 10px;
|
||||
box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
|
||||
z-index: 1500;
|
||||
order: 1; /* ensure first item in side-panel */
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
border-radius: 0;
|
||||
justify-content: space-around;
|
||||
gap: 6px;
|
||||
padding: 8px 0;
|
||||
}
|
||||
|
||||
/* Other panels follow beneath */
|
||||
.filter-controls {
|
||||
order: 2;
|
||||
margin-top: 12px;
|
||||
}
|
||||
.status-area {
|
||||
order: 3;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
/* Compact button style */
|
||||
.action-btn {
|
||||
flex: 1;
|
||||
padding: 10px;
|
||||
gap: 4px;
|
||||
font-size: 0.85rem; /* slightly smaller text */
|
||||
}
|
||||
/* Keep text labels visible for clarity in mobile view */
|
||||
.action-btn .label {
|
||||
display: inline;
|
||||
}
|
||||
.swipe-container {
|
||||
min-height: 60vh;
|
||||
min-height: 70vh;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.swipe-legend {
|
||||
display: none;
|
||||
|
||||
Reference in New Issue
Block a user