| | body { |
| | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; |
| | line-height: 1.6; |
| | margin: 0; |
| | padding: 0; |
| | background-color: #f0f0f0; |
| | color: #333; |
| | } |
| |
|
| | .container { |
| | max-width: 1200px; |
| | margin: 20px auto; |
| | padding: 20px; |
| | background-color: white; |
| | box-shadow: 0 0 10px rgba(0,0,0,0.1); |
| | border-radius: 8px; |
| | display: flex; |
| | flex-direction: column; |
| | } |
| |
|
| | h1, h2, h3 { |
| | color: #2c3e50; |
| | text-align: center; |
| | } |
| |
|
| | p { |
| | text-align: center; |
| | margin-bottom: 20px; |
| | } |
| |
|
| | .upload-container { |
| | display: flex; |
| | flex-wrap: wrap; |
| | justify-content: space-around; |
| | margin-bottom: 20px; |
| | gap: 20px; |
| | } |
| |
|
| | .upload-box { |
| | flex: 1; |
| | min-width: 300px; |
| | border: 2px dashed #3498db; |
| | border-radius: 5px; |
| | padding: 20px; |
| | text-align: center; |
| | transition: background-color 0.3s; |
| | } |
| |
|
| | .upload-box:hover { |
| | background-color: #ecf0f1; |
| | } |
| |
|
| | .upload-label { |
| | display: block; |
| | font-weight: bold; |
| | margin-bottom: 10px; |
| | color: #2980b9; |
| | } |
| |
|
| | .file-input { |
| | display: none; |
| | } |
| |
|
| | .upload-button { |
| | display: inline-block; |
| | background-color: #3498db; |
| | color: white; |
| | padding: 10px 20px; |
| | border-radius: 5px; |
| | cursor: pointer; |
| | transition: background-color 0.3s; |
| | } |
| |
|
| | .upload-button:hover { |
| | background-color: #2980b9; |
| | } |
| |
|
| | |
| | .workspace-wrapper { |
| | display: flex; |
| | flex-wrap: wrap; |
| | gap: 20px; |
| | margin-bottom: 20px; |
| | } |
| |
|
| | |
| | .canvas-and-controls { |
| | flex: 3; |
| | display: flex; |
| | flex-direction: column; |
| | min-width: 0; |
| | } |
| |
|
| | .canvas-container { |
| | position: relative; |
| | width: 100%; |
| | |
| | border: 2px solid #333; |
| | border-radius: 4px; |
| | overflow: hidden; |
| | margin-bottom: 20px; |
| | } |
| |
|
| | #canvas { |
| | display: block; |
| | width: 100%; |
| | height: auto; |
| | background-color: #ffffff; |
| | cursor: default; |
| | } |
| |
|
| | |
| | .control-panel-sidebar { |
| | display: flex; |
| | flex-direction: column; |
| | gap: 15px; |
| | |
| | } |
| |
|
| |
|
| | .control-group { |
| | display: flex; |
| | flex-direction: column; |
| | |
| | border: 1px solid #ddd; |
| | padding: 15px; |
| | border-radius: 5px; |
| | background-color: #f9f9f9; |
| | |
| | } |
| |
|
| | .control-group h3 { |
| | margin: 0 0 15px 0; |
| | font-size: 1rem; |
| | text-align: center; |
| | width: 100%; |
| | } |
| |
|
| | .slider-container { |
| | display: flex; |
| | align-items: center; |
| | gap: 10px; |
| | margin: 8px 0; |
| | width: 100%; |
| | padding: 0 5px; |
| | box-sizing: border-box; |
| | } |
| |
|
| | .slider-container label { |
| | font-weight: bold; |
| | min-width: 50px; |
| | text-align: left; |
| | flex-shrink: 0; |
| | } |
| |
|
| | .slider-container input[type="range"] { |
| | flex-grow: 1; |
| | width: auto; |
| | margin: 0 5px; |
| | } |
| |
|
| | .slider-container .value-display { |
| | min-width: 40px; |
| | text-align: right; |
| | flex-shrink: 0; |
| | } |
| |
|
| | |
| | .delete-button { |
| | background-color: #e74c3c; |
| | color: white; |
| | border: none; |
| | border-radius: 50%; |
| | width: 22px; |
| | height: 22px; |
| | font-size: 14px; |
| | line-height: 1; |
| | cursor: pointer; |
| | margin-left: 5px; |
| | display: flex; |
| | align-items: center; |
| | justify-content: center; |
| | transition: background-color 0.2s; |
| | } |
| |
|
| | .delete-button:hover { |
| | background-color: #c0392b; |
| | } |
| |
|
| | .layer-option { |
| | margin-bottom: 10px; |
| | display: flex; |
| | justify-content: space-between; |
| | } |
| |
|
| | #delete-layer-btn { |
| | width: 100%; |
| | margin-bottom: 8px; |
| | padding: 8px; |
| | font-size: 14px; |
| | } |
| |
|
| | .delete-button:disabled, |
| | #delete-layer-btn:disabled { |
| | background-color: #ccc; |
| | cursor: not-allowed; |
| | } |
| |
|
| | |
| | .layer-item { |
| | display: flex; |
| | justify-content: space-between; |
| | align-items: center; |
| | padding: 8px 10px; |
| | border-bottom: 1px solid #eee; |
| | cursor: pointer; |
| | transition: background-color 0.2s; |
| | } |
| |
|
| | .layer-item:hover { |
| | background-color: #f5f5f5; |
| | } |
| |
|
| | .layer-item.active { |
| | background-color: #e3f2fd; |
| | border-left: 3px solid #2196F3; |
| | } |
| |
|
| | |
| | .layers-list { |
| | width: 100%; |
| | max-height: 150px; |
| | overflow-y: auto; |
| | border: 1px solid #ddd; |
| | border-radius: 4px; |
| | } |
| |
|
| | .layer-item { |
| | padding: 8px; |
| | border-bottom: 1px solid #eee; |
| | cursor: pointer; |
| | display: flex; |
| | justify-content: space-between; |
| | align-items: center; |
| | } |
| | .layer-item:last-child { border-bottom: none; } |
| | .layer-item:hover { background-color: #f5f5f5; } |
| | .layer-item.active { background-color: #e3f2fd; font-weight: bold; } |
| | .layer-name { flex-grow: 1; padding-left: 5px; } |
| | .layer-controls { display: flex; gap: 5px; } |
| | .layer-button { |
| | background-color: #f0f0f0; border: 1px solid #ddd; border-radius: 3px; |
| | padding: 2px 5px; cursor: pointer; font-size: 11px; color: #555; |
| | transition: all 0.2s ease; |
| | } |
| | .layer-button:hover { background-color: #e0e0e0; } |
| |
|
| |
|
| | |
| | .filter-panel { |
| | |
| | padding: 15px; |
| | border: 1px solid #ddd; |
| | border-radius: 5px; |
| | background-color: #f9f9f9; |
| | } |
| | .filter-panel h3 { margin: 0 0 15px 0; text-align: center; } |
| | .filter-sliders { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; } |
| | .filter-slider-container { display: flex; flex-direction: column; gap: 5px; width: 100%; padding: 0 5px; box-sizing: border-box; } |
| | .filter-slider-container label { font-size: 14px; margin-bottom: 5px; text-align: left; } |
| | .large-slider { width: 100%; height: 20px; } |
| | .filter-slider-container .value-display { text-align: right; font-weight: bold; } |
| | .filter-buttons { display: flex; justify-content: center; margin-top: 15px; } |
| | #reset-filter-btn { width: auto; padding: 8px 15px; flex-grow: 1; max-width: 200px; } |
| |
|
| |
|
| | |
| | .preview-section { |
| | flex: 2; |
| | display: flex; |
| | flex-direction: column; |
| | align-items: center; |
| | min-width: 0; |
| | } |
| |
|
| | .preview-container { |
| | width: 100%; |
| | margin-top: 0; |
| | display: none; |
| | flex-direction: column; |
| | align-items: center; |
| | padding: 10px; |
| | border: 1px dashed #ccc; |
| | border-radius: 4px; |
| | background-color: #f9f9f9; |
| | } |
| |
|
| | .preview-container h3 { |
| | margin-bottom: 10px; |
| | } |
| |
|
| | #preview-img { |
| | max-width: 100%; |
| | max-height: 400px; |
| | border: 2px solid #333; |
| | border-radius: 4px; |
| | object-fit: contain; |
| | } |
| |
|
| | |
| | .button-container { |
| | display: flex; |
| | justify-content: center; |
| | gap: 15px; |
| | margin-top: 20px; |
| | flex-wrap: wrap; |
| | } |
| |
|
| | button { |
| | padding: 10px 20px; |
| | border: none; |
| | border-radius: 5px; |
| | cursor: pointer; |
| | font-weight: bold; |
| | transition: background-color 0.3s; |
| | } |
| | .primary-btn { background-color: #27ae60; color: white; } |
| | .primary-btn:hover { background-color: #219653; } |
| | .danger-btn { background-color: #e74c3c; color: white; } |
| | .danger-btn:hover { background-color: #c0392b; } |
| | .info-btn { background-color: #3498db; color: white; } |
| | .info-btn:hover { background-color: #2980b9; } |
| |
|
| |
|
| | |
| | @media (max-width: 900px) { |
| | .workspace-wrapper { |
| | flex-direction: column; |
| | align-items: center; |
| | } |
| | .canvas-and-controls, .preview-section { |
| | flex-basis: auto; |
| | width: 100%; |
| | max-width: 600px; |
| | } |
| | .control-panel-sidebar { |
| | width: 100%; |
| | } |
| | .filter-sliders { |
| | grid-template-columns: 1fr; |
| | } |
| | } |
| |
|
| | @media (max-width: 768px) { |
| | .upload-container { |
| | flex-direction: column; |
| | } |
| | .upload-box { |
| | width: 100%; |
| | margin-bottom: 10px; |
| | } |
| | } |