diff options
author | elioat <elioat@tilde.institute> | 2025-02-10 19:00:08 -0500 |
---|---|---|
committer | elioat <elioat@tilde.institute> | 2025-02-10 19:00:08 -0500 |
commit | eaaedcdc7b2a70ca1dc58bf3740bcbb47c25e5df (patch) | |
tree | c24dd964c96181a851d7cb6dd352fddbffb787c0 | |
parent | 445a6619ecda4210b1b0454c4332360f37396fd1 (diff) | |
download | tour-eaaedcdc7b2a70ca1dc58bf3740bcbb47c25e5df.tar.gz |
*
-rw-r--r-- | html/ccc/index.html | 59 |
1 files changed, 51 insertions, 8 deletions
diff --git a/html/ccc/index.html b/html/ccc/index.html index b3ebfa2..5637101 100644 --- a/html/ccc/index.html +++ b/html/ccc/index.html @@ -7,12 +7,60 @@ <meta name="description" content="Give it a list of colors, find accessible combinations."> <style> body { font-family: Arial, sans-serif; padding: 20px; } - .color-input { margin-bottom: 10px; width: 100%; height: 100px; } + .color-input { margin-bottom: 10px; width: 100%; height: 100px; font-size: 16px; /* Prevent iOS zoom */ } .color-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; } .color-box { padding: 10px; text-align: center; border: 1px solid #ccc; } .hidden { display: none; } - .form-controls { display: flex; justify-content: space-between; align-items: center; } - .checkbox-controls { display: flex; gap: 20px; align-items: center; } + .form-controls { + display: flex; + flex-wrap: wrap; + gap: 1rem; + padding: 1rem; + background: #f5f5f5; + border-radius: 4px; + margin-top: 1rem; + justify-content: space-between; + } + .checkbox-controls { + display: flex; + flex-wrap: wrap; + gap: 1rem; + align-items: center; + justify-content: flex-end; + } + @media (max-width: 600px) { + .form-controls { + flex-direction: column; + align-items: stretch; + } + .checkbox-controls { + flex-direction: column; + align-items: stretch; + } + button { + width: 100%; + } + } + button { + padding: 0.5rem 1rem; + border: none; + border-radius: 4px; + background: #007bff; + color: white; + cursor: pointer; + } + button:hover { + background: #0056b3; + } + button[onclick="shareColors()"] { + background: #6c757d; + } + button[onclick="shareColors()"]:hover { + background: #545b62; + } + label { + white-space: nowrap; + } .error { color: #721c24; background-color: #f8d7da; @@ -260,11 +308,6 @@ const duplicates = findDuplicateColors(colors); if (duplicates.length > 0) { console.warn('Duplicate colors found:', duplicates); - // Show warning in UI - const warning = document.createElement('div'); - warning.className = 'warning'; - warning.textContent = `Duplicate colors found (${duplicates.join(', ')})`; - results.insertAdjacentElement('beforebegin', warning); } try { |