Download style.css from ssboost/swq2f: direct link, hf CLI and curl.
- Browser
- Download file 9.45 kB
-
https://huggingface.co/spaces/ssboost/swq2f/resolve/main/style.css
- Command line
-
hf download hf://spaces/ssboost/swq2f/style.css
-
curl -L -o style.css https://huggingface.co/spaces/ssboost/swq2f/resolve/main/style.css
9.45 kB
| 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; /* flex item์ ๋ด์ฉ์ด ๋์น ๋ ์์ถํ๋๋ก ํจ */ | |
| } | |
| .canvas-container { | |
| position: relative; | |
| width: 100%; /* ๋ถ๋ชจ ๋๋น์ ๋ง์ถค */ | |
| /* max-width: 800px; /* ์บ๋ฒ์ค ์ต๋ ๋๋น๋ JS์์ ์ค์ ๋ CANVAS_WIDTH์ ๋ฐ๋ฆ */ | |
| border: 2px solid #333; | |
| border-radius: 4px; | |
| overflow: hidden; /* ์บ๋ฒ์ค๊ฐ ๋์น์ง ์๋๋ก */ | |
| margin-bottom: 20px; /* ์ปจํธ๋กค ํจ๋๊ณผ์ ๊ฐ๊ฒฉ */ | |
| } | |
| #canvas { | |
| display: block; /* ํ๋จ ์ฌ๋ฐฑ ์ ๊ฑฐ */ | |
| width: 100%; /* canvas-container์ ๊ฝ ์ฐจ๊ฒ */ | |
| height: auto; /* ๋น์จ ์ ์ง */ | |
| background-color: #ffffff; | |
| cursor: default; | |
| } | |
| /* ์ปจํธ๋กค ํจ๋๋ค์ ๋ชจ์๋๋ ์ฌ์ด๋๋ฐ ์ญํ (๋๋ ์บ๋ฒ์ค ์๋ ์์ญ) */ | |
| .control-panel-sidebar { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 15px; | |
| /* flex: 1; /* canvas-and-controls ๋ด์์ ๋น์จ (ํ์์) */ | |
| } | |
| .control-group { | |
| display: flex; | |
| flex-direction: column; | |
| /* align-items: center; ํญ๋ชฉ๋ค์ด ์ค์ ์ ๋ ฌ๋์ง ์๋๋ก ์ ๊ฑฐ ๋๋ ์์ */ | |
| border: 1px solid #ddd; | |
| padding: 15px; | |
| border-radius: 5px; | |
| background-color: #f9f9f9; | |
| /* min-width: 250px; /* ์ต์ ๋๋น๋ ์ํฉ์ ๋ฐ๋ผ ์กฐ์ */ | |
| } | |
| .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; /* flex-grow๊ฐ ์๋ํ๋๋ก 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 { | |
| /* width: 100%; /* ๋ถ๋ชจ(.control-panel-sidebar)์ ์ํด ๋๋น ๊ฒฐ์ */ | |
| 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; /* flex item์ ๋ด์ฉ์ด ๋์น ๋ ์์ถํ๋๋ก ํจ */ | |
| } | |
| .preview-container { | |
| width: 100%; /* preview-section ๋๋น์ ๋ง์ถค */ | |
| margin-top: 0; /* workspace-wrapper์์ gap์ผ๋ก ์ฒ๋ฆฌ */ | |
| display: none; /* ์ด๊ธฐ์๋ ์จ๊น (JS๋ก ์ ์ด) */ | |
| 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; /* workspace-wrapper ์์ ๊ฐ๊ฒฉ */ | |
| 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; /* flex ๋น์จ ์ด๊ธฐํ */ | |
| 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; | |
| } | |
| } |