155 lines
3.1 KiB
CSS
155 lines
3.1 KiB
CSS
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
body {
|
|
font-family: system-ui, sans-serif;
|
|
background: #f5f5f5;
|
|
color: #222;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
header {
|
|
background: #fff;
|
|
border-bottom: 1px solid #ddd;
|
|
padding: 1rem 1.5rem;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
}
|
|
|
|
header h1 { font-size: 1.2rem; margin-bottom: 0.75rem; }
|
|
|
|
nav { display: flex; gap: 0.5rem; }
|
|
|
|
.tab-btn {
|
|
padding: 0.4rem 1rem;
|
|
border: 1px solid #ccc;
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
cursor: pointer;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.tab-btn.active {
|
|
background: #222;
|
|
color: #fff;
|
|
border-color: #222;
|
|
}
|
|
|
|
main { padding: 1.5rem; max-width: 900px; margin: 0 auto; }
|
|
|
|
.tab-content { display: none; }
|
|
.tab-content.active { display: block; }
|
|
|
|
/* --- Shared component classes (used across tabs) --- */
|
|
.color-preview {
|
|
width: 100%;
|
|
height: 80px;
|
|
border-radius: 8px;
|
|
border: 1px solid #ddd;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.color-codes {
|
|
display: flex;
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.color-code-group { display: flex; flex-direction: column; gap: 0.25rem; }
|
|
.color-code-group label { font-size: 0.75rem; color: #666; text-transform: uppercase; }
|
|
.color-code-group input {
|
|
padding: 0.4rem 0.6rem;
|
|
border: 1px solid #ccc;
|
|
border-radius: 6px;
|
|
font-family: monospace;
|
|
font-size: 0.9rem;
|
|
width: 140px;
|
|
}
|
|
|
|
button.action-btn {
|
|
padding: 0.4rem 0.9rem;
|
|
border: 1px solid #ccc;
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
cursor: pointer;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
button.action-btn:hover { background: #f0f0f0; }
|
|
|
|
.swatch {
|
|
display: inline-block;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 6px;
|
|
border: 1px solid #ddd;
|
|
cursor: pointer;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
#picker-dropzone {
|
|
border: 2px dashed #ccc;
|
|
border-radius: 8px;
|
|
padding: 2rem;
|
|
text-align: center;
|
|
margin-bottom: 1rem;
|
|
background: #fafafa;
|
|
}
|
|
|
|
#picker-dropzone.drag-over {
|
|
border-color: #222;
|
|
background: #f0f0f0;
|
|
}
|
|
|
|
#picker-dropzone p { margin-bottom: 0.75rem; color: #666; font-size: 0.9rem; }
|
|
|
|
/* --- Harmonien-Tab --- */
|
|
.subtitle { font-size: 0.85rem; color: #666; margin-bottom: 0.5rem; }
|
|
|
|
.harmony-row h3 { font-size: 0.9rem; margin-bottom: 0.5rem; }
|
|
.harmony-swatches { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: flex-start; }
|
|
.harmony-swatch {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
}
|
|
.harmony-swatch .swatch { width: 56px; height: 56px; }
|
|
.harmony-swatch span { font-size: 0.75rem; font-family: monospace; }
|
|
|
|
/* --- Utility classes --- */
|
|
.swatch-cell {
|
|
display: inline-flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
margin: 0.25rem;
|
|
}
|
|
|
|
.harmony-btn-row {
|
|
display: flex;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.btn-row {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
/* --- Finale Styles --- */
|
|
h2 { font-size: 1.1rem; margin-bottom: 1rem; }
|
|
h3 { font-size: 0.95rem; margin-bottom: 0.5rem; }
|
|
|
|
.tab-content { padding-top: 0.5rem; }
|
|
|
|
.color-preview { transition: background 0.15s; }
|
|
|
|
.action-btn:active { transform: scale(0.97); }
|
|
|
|
@media (max-width: 600px) {
|
|
nav { flex-wrap: wrap; }
|
|
.color-codes { flex-direction: column; }
|
|
.color-code-group input { width: 100%; }
|
|
}
|