465 lines
9.2 KiB
CSS
465 lines
9.2 KiB
CSS
:root {
|
|
--primary-color: #1e90ff;
|
|
--success-color: #2ed573;
|
|
--danger-color: #ff4757;
|
|
--warning-color: #ffa502;
|
|
--light-color: #f5f5f5;
|
|
--dark-color: #333;
|
|
--background-color: #f0f2f5;
|
|
--card-background: #ffffff;
|
|
--text-color: #333;
|
|
--border-radius: 12px;
|
|
--shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
}
|
|
|
|
html, body {
|
|
background-color: var(--background-color);
|
|
color: var(--text-color);
|
|
height: 100%;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.header {
|
|
text-align: center;
|
|
margin-bottom: 20px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.app-title {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
color: var(--dark-color);
|
|
}
|
|
|
|
.app-title i {
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.history-link {
|
|
padding: 8px 16px;
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
text-decoration: none;
|
|
border-radius: var(--border-radius);
|
|
font-size: 0.9rem;
|
|
transition: background-color 0.3s, transform 0.2s;
|
|
}
|
|
|
|
.history-link:hover {
|
|
background-color: #1c86e3;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.main-section {
|
|
display: flex;
|
|
gap: 24px;
|
|
flex: 1;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.swipe-container {
|
|
position: relative;
|
|
flex: 3;
|
|
min-height: 70vh;
|
|
perspective: 1000px;
|
|
border-radius: var(--border-radius);
|
|
background: var(--card-background);
|
|
box-shadow: var(--shadow);
|
|
border-style: solid;
|
|
border-width: 6px;
|
|
border-left-color: var(--danger-color);
|
|
border-right-color: var(--success-color);
|
|
border-top-color: var(--primary-color);
|
|
border-bottom-color: var(--warning-color);
|
|
}
|
|
|
|
.image-card {
|
|
position: absolute;
|
|
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;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.image-card img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
transition: opacity 0.3s ease;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.loading-indicator, .no-images-message {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
color: #999;
|
|
font-weight: bold;
|
|
font-size: 1.2rem;
|
|
text-align: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
.image-card.loading .loading-indicator {
|
|
opacity: 1;
|
|
}
|
|
|
|
.image-card.swiping {
|
|
transition: none;
|
|
}
|
|
|
|
.action-hint {
|
|
position: absolute;
|
|
background-color: rgba(0, 0, 0, 0.7);
|
|
color: white;
|
|
padding: 8px 15px;
|
|
border-radius: 20px;
|
|
font-weight: bold;
|
|
opacity: 0;
|
|
transition: opacity 0.3s;
|
|
z-index: 10;
|
|
}
|
|
|
|
.left-hint { left: 20px; top: 50%; transform: translateY(-50%); }
|
|
.right-hint { right: 20px; top: 50%; transform: translateY(-50%); }
|
|
.up-hint { top: 20px; left: 50%; transform: translateX(-50%); }
|
|
.down-hint { bottom: 20px; left: 50%; transform: translateX(-50%); }
|
|
|
|
.side-panel {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
position: sticky;
|
|
top: 20px;
|
|
min-width: 300px;
|
|
}
|
|
|
|
.filter-controls, .action-buttons, .status-area {
|
|
background-color: var(--card-background);
|
|
padding: 20px;
|
|
border-radius: var(--border-radius);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.filter-controls h4, .action-buttons h4, .status-area h4 {
|
|
margin-top: 0;
|
|
margin-bottom: 15px;
|
|
color: var(--dark-color);
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.filter-buttons {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.filter-btn {
|
|
flex: 1;
|
|
padding: 10px;
|
|
border: 1px solid #ddd;
|
|
border-radius: var(--border-radius);
|
|
background-color: var(--light-color);
|
|
color: var(--dark-color);
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.filter-btn:hover {
|
|
background-color: #e0e0e0;
|
|
border-color: #ccc;
|
|
}
|
|
|
|
.filter-btn.active {
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
border-color: var(--primary-color);
|
|
}
|
|
|
|
.action-buttons {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.action-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
padding: 15px;
|
|
border: none;
|
|
border-radius: var(--border-radius);
|
|
cursor: pointer;
|
|
font-weight: bold;
|
|
transition: all 0.2s;
|
|
font-size: 1rem;
|
|
color: white;
|
|
}
|
|
|
|
#btn-left { background-color: var(--danger-color); }
|
|
#btn-right { background-color: var(--success-color); }
|
|
#btn-up { background-color: var(--primary-color); }
|
|
#btn-down { background-color: var(--warning-color); }
|
|
|
|
.action-btn:hover {
|
|
transform: scale(1.05);
|
|
filter: brightness(1.1);
|
|
}
|
|
|
|
.status-area {
|
|
text-align: left;
|
|
}
|
|
|
|
#last-action {
|
|
font-weight: bold;
|
|
margin-top: 5px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.swipe-legend {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 10px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.legend-item {
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.legend-color {
|
|
display: inline-block;
|
|
width: 15px;
|
|
height: 15px;
|
|
border-radius: 50%;
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.left-color { background-color: var(--danger-color); }
|
|
.right-color { background-color: var(--success-color); }
|
|
.up-color { background-color: var(--primary-color); }
|
|
.down-color { background-color: var(--warning-color); }
|
|
|
|
.toast {
|
|
position: fixed;
|
|
bottom: 20px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
background-color: rgba(0, 0, 0, 0.85);
|
|
color: #fff;
|
|
padding: 12px 24px;
|
|
border-radius: var(--border-radius);
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease, transform 0.3s ease;
|
|
z-index: 2000;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.toast.show {
|
|
opacity: 1;
|
|
transform: translateX(-50%) translateY(-10px);
|
|
}
|
|
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
z-index: 1000;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.9);
|
|
overflow: auto;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.modal-content {
|
|
position: relative;
|
|
width: 90%;
|
|
max-width: 1200px;
|
|
padding: 20px;
|
|
}
|
|
|
|
#fullscreen-image {
|
|
max-width: 100%;
|
|
max-height: 85vh;
|
|
object-fit: contain;
|
|
border-radius: var(--border-radius);
|
|
box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.close-modal {
|
|
position: absolute;
|
|
top: 15px;
|
|
right: 30px;
|
|
color: white;
|
|
font-size: 40px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.modal-info {
|
|
margin-top: 15px;
|
|
color: white;
|
|
background-color: rgba(0, 0, 0, 0.7);
|
|
padding: 10px 20px;
|
|
border-radius: var(--border-radius);
|
|
text-align: center;
|
|
}
|
|
|
|
.history-container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
.selection-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.selection-item {
|
|
background-color: var(--card-background);
|
|
border-radius: var(--border-radius);
|
|
box-shadow: var(--shadow);
|
|
overflow: hidden;
|
|
position: relative;
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.selection-item.selected {
|
|
box-shadow: 0 0 0 3px var(--primary-color), var(--shadow);
|
|
transform: translateY(-5px);
|
|
}
|
|
|
|
.selection-item img {
|
|
width: 100%;
|
|
height: 200px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.selection-info {
|
|
padding: 15px;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.selection-action {
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 10px;
|
|
padding: 5px 10px;
|
|
border-radius: 20px;
|
|
color: white;
|
|
font-weight: bold;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.action-left { background-color: var(--danger-color); }
|
|
.action-right { background-color: var(--success-color); }
|
|
.action-up { background-color: var(--primary-color); }
|
|
.action-down { background-color: var(--warning-color); }
|
|
|
|
.selection-checkbox-container {
|
|
position: absolute;
|
|
top: 10px;
|
|
left: 10px;
|
|
z-index: 5;
|
|
}
|
|
|
|
.selection-checkbox {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
.selection-controls {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background-color: rgba(0, 0, 0, 0.7);
|
|
display: flex;
|
|
justify-content: space-around;
|
|
padding: 8px 0;
|
|
opacity: 0;
|
|
transition: opacity 0.3s;
|
|
}
|
|
|
|
.selection-item:hover .selection-controls {
|
|
opacity: 1;
|
|
}
|
|
|
|
.control-btn {
|
|
background: none;
|
|
border: none;
|
|
color: white;
|
|
cursor: pointer;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
@media (max-width: 992px) {
|
|
.container {
|
|
padding: 10px;
|
|
}
|
|
.main-section {
|
|
flex-direction: column;
|
|
}
|
|
.side-panel {
|
|
position: static;
|
|
width: 100%;
|
|
}
|
|
.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;
|
|
flex-direction: row;
|
|
border-radius: 0;
|
|
}
|
|
.swipe-container {
|
|
min-height: 60vh;
|
|
}
|
|
.swipe-legend {
|
|
display: none;
|
|
}
|
|
}
|