764 lines
12 KiB
CSS
764 lines
12 KiB
CSS
:root {
|
|
--bg-primary: #ffffff;
|
|
--bg-secondary: #fafafa;
|
|
--bg-card: #ffffff;
|
|
--bg-hover: #f5f5f5;
|
|
|
|
--text-primary: #1a1a1a;
|
|
--text-secondary: #666666;
|
|
--text-tertiary: #999999;
|
|
|
|
--border-color: #e5e5e5;
|
|
--border-hover: #d4d4d4;
|
|
|
|
--accent-primary: #6366f1;
|
|
--accent-hover: #4f46e5;
|
|
--accent-light: #eef2ff;
|
|
|
|
--danger: #ef4444;
|
|
|
|
--shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
|
|
--shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
|
|
--radius: 8px;
|
|
--transition: all 0.15s ease;
|
|
}
|
|
|
|
[data-theme="dark"] {
|
|
--bg-primary: #0a0a0a;
|
|
--bg-secondary: #1a1a1a;
|
|
--bg-card: #1a1a1a;
|
|
--bg-hover: #2a2a2a;
|
|
|
|
--text-primary: #f5f5f5;
|
|
--text-secondary: #a3a3a3;
|
|
--text-tertiary: #737373;
|
|
|
|
--border-color: #2a2a2a;
|
|
--border-hover: #3a3a3a;
|
|
|
|
--accent-primary: #818cf8;
|
|
--accent-hover: #6366f1;
|
|
--accent-light: #312e81;
|
|
|
|
--shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
|
|
--shadow-md: 0 2px 8px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
min-height: 100vh;
|
|
padding: 16px;
|
|
transition: var(--transition);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* Header */
|
|
.header {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
padding: 16px 20px;
|
|
border-radius: var(--radius);
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.header-content {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.theme-toggle {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 6px;
|
|
border: none;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: var(--transition);
|
|
position: relative;
|
|
}
|
|
|
|
.theme-toggle:hover {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
.theme-toggle svg {
|
|
width: 18px;
|
|
height: 18px;
|
|
position: absolute;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.sun-icon {
|
|
opacity: 1;
|
|
transform: rotate(0deg);
|
|
}
|
|
|
|
.moon-icon {
|
|
opacity: 0;
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
[data-theme="dark"] .sun-icon {
|
|
opacity: 0;
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
[data-theme="dark"] .moon-icon {
|
|
opacity: 1;
|
|
transform: rotate(0deg);
|
|
}
|
|
|
|
/* Main Grid */
|
|
.main-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 16px;
|
|
}
|
|
|
|
@media (min-width: 1024px) {
|
|
.main-grid {
|
|
grid-template-columns: 1fr 1fr;
|
|
}
|
|
}
|
|
|
|
/* Card */
|
|
.card {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius);
|
|
padding: 16px;
|
|
margin-bottom: 16px;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.card-title {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-bottom: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.card-header-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
/* Badge */
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 20px;
|
|
height: 20px;
|
|
padding: 0 6px;
|
|
background: var(--accent-light);
|
|
color: var(--accent-primary);
|
|
border-radius: 10px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Input Group */
|
|
.input-group {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.text-input {
|
|
flex: 1;
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius);
|
|
font-size: 14px;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
transition: var(--transition);
|
|
font-family: inherit;
|
|
}
|
|
|
|
.text-input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
.text-input::placeholder {
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
padding: 10px 16px;
|
|
border: none;
|
|
border-radius: var(--radius);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-family: inherit;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.btn svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent-primary);
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover:not(:disabled) {
|
|
background: var(--accent-hover);
|
|
}
|
|
|
|
.btn-primary:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--bg-secondary);
|
|
color: var(--text-primary);
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.btn-outline {
|
|
background: transparent;
|
|
color: var(--text-secondary);
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.btn-outline:hover:not(:disabled) {
|
|
background: var(--bg-hover);
|
|
border-color: var(--accent-primary);
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
.btn-outline:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-delete {
|
|
background: var(--danger);
|
|
color: white;
|
|
padding: 6px 10px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
transition: var(--transition);
|
|
min-width: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.btn-delete:hover {
|
|
background: #dc2626;
|
|
}
|
|
|
|
/* Texts List */
|
|
.texts-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.text-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 10px;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius);
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.text-item:hover {
|
|
border-color: var(--border-hover);
|
|
}
|
|
|
|
.text-item input {
|
|
flex: 1;
|
|
padding: 6px 10px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
transition: var(--transition);
|
|
font-family: inherit;
|
|
}
|
|
|
|
.text-item input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
/* Settings */
|
|
.settings-grid {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.setting-row {
|
|
display: grid;
|
|
grid-template-columns: 100px 1fr;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.setting-label {
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.setting-control {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.slider {
|
|
flex: 1;
|
|
height: 4px;
|
|
border-radius: 2px;
|
|
background: var(--bg-secondary);
|
|
outline: none;
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
}
|
|
|
|
.slider::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 50%;
|
|
background: var(--accent-primary);
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.slider::-webkit-slider-thumb:hover {
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.slider::-moz-range-thumb {
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 50%;
|
|
background: var(--accent-primary);
|
|
cursor: pointer;
|
|
border: none;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.slider::-moz-range-thumb:hover {
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.value-display {
|
|
color: var(--text-primary);
|
|
font-weight: 500;
|
|
min-width: 40px;
|
|
text-align: right;
|
|
font-size: 13px;
|
|
padding: 4px 8px;
|
|
background: var(--bg-secondary);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.select-input {
|
|
padding: 8px 10px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius);
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
font-family: inherit;
|
|
width: 100%;
|
|
}
|
|
|
|
.select-input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
.color-input {
|
|
width: 40px;
|
|
height: 32px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius);
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
background: var(--bg-primary);
|
|
}
|
|
|
|
.color-input:hover {
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
.color-value {
|
|
font-family: "Courier New", monospace;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
padding: 4px 8px;
|
|
background: var(--bg-secondary);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.alignment-buttons {
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|
|
|
|
.align-btn {
|
|
flex: 1;
|
|
padding: 8px;
|
|
border: 1px solid var(--border-color);
|
|
background: var(--bg-primary);
|
|
border-radius: var(--radius);
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.align-btn svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
stroke: var(--text-secondary);
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.align-btn:hover {
|
|
background: var(--bg-hover);
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
.align-btn:hover svg {
|
|
stroke: var(--accent-primary);
|
|
}
|
|
|
|
.align-btn.active {
|
|
background: var(--accent-primary);
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
.align-btn.active svg {
|
|
stroke: white;
|
|
}
|
|
|
|
/* Crop Editor */
|
|
.crop-editor {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.crop-canvas-container {
|
|
position: relative;
|
|
width: 100%;
|
|
aspect-ratio: 16 / 5;
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
cursor: crosshair;
|
|
}
|
|
|
|
.crop-canvas {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
}
|
|
|
|
.crop-box {
|
|
position: absolute;
|
|
border: 2px solid var(--accent-primary);
|
|
box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
|
|
cursor: move;
|
|
display: none;
|
|
}
|
|
|
|
.crop-box.active {
|
|
display: block;
|
|
}
|
|
|
|
.crop-handle {
|
|
position: absolute;
|
|
width: 10px;
|
|
height: 10px;
|
|
background: white;
|
|
border: 2px solid var(--accent-primary);
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.crop-handle.nw {
|
|
top: -5px;
|
|
left: -5px;
|
|
cursor: nw-resize;
|
|
}
|
|
|
|
.crop-handle.ne {
|
|
top: -5px;
|
|
right: -5px;
|
|
cursor: ne-resize;
|
|
}
|
|
|
|
.crop-handle.sw {
|
|
bottom: -5px;
|
|
left: -5px;
|
|
cursor: sw-resize;
|
|
}
|
|
|
|
.crop-handle.se {
|
|
bottom: -5px;
|
|
right: -5px;
|
|
cursor: se-resize;
|
|
}
|
|
|
|
.crop-handle.n {
|
|
top: -5px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
cursor: n-resize;
|
|
}
|
|
|
|
.crop-handle.s {
|
|
bottom: -5px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
cursor: s-resize;
|
|
}
|
|
|
|
.crop-handle.w {
|
|
left: -5px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
cursor: w-resize;
|
|
}
|
|
|
|
.crop-handle.e {
|
|
right: -5px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
cursor: e-resize;
|
|
}
|
|
|
|
.crop-controls {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* Panel Viewer */
|
|
.panel-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.nav-btn {
|
|
width: 32px;
|
|
height: 32px;
|
|
padding: 0;
|
|
border: 1px solid var(--border-color);
|
|
background: var(--bg-primary);
|
|
border-radius: var(--radius);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.nav-btn:hover:not(:disabled) {
|
|
background: var(--bg-hover);
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
.nav-btn:hover:not(:disabled) svg {
|
|
stroke: var(--accent-primary);
|
|
}
|
|
|
|
.nav-btn:disabled {
|
|
opacity: 0.3;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.nav-btn svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
stroke: var(--text-secondary);
|
|
}
|
|
|
|
.panel-indicator {
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
font-weight: 500;
|
|
min-width: 50px;
|
|
text-align: center;
|
|
}
|
|
|
|
.panel-viewer {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.panel-display {
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--radius);
|
|
padding: 20px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-height: 150px;
|
|
}
|
|
|
|
.panel-canvas {
|
|
border-radius: var(--radius);
|
|
display: block;
|
|
max-width: 100%;
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.panel-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.panel-actions .btn {
|
|
flex: 1;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* Empty State */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 32px 16px;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.empty-state svg {
|
|
width: 48px;
|
|
height: 48px;
|
|
margin: 0 auto 12px;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.empty-state p {
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
body {
|
|
padding: 12px;
|
|
}
|
|
|
|
.header {
|
|
padding: 12px 16px;
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.setting-row {
|
|
grid-template-columns: 80px 1fr;
|
|
gap: 10px;
|
|
}
|
|
|
|
.crop-controls {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.crop-controls .btn {
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
/* Animations */
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(4px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.text-item {
|
|
animation: fadeIn 0.2s ease-out;
|
|
}
|
|
|
|
/* Scrollbar */
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--border-color);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--border-hover);
|
|
}
|