diff --git a/apps/overlay/src/index.html b/apps/overlay/src/index.html index e68e88c..9835117 100644 --- a/apps/overlay/src/index.html +++ b/apps/overlay/src/index.html @@ -148,6 +148,30 @@ .setting-row input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; } .setting-row input[type="color"]::-webkit-color-swatch { border: none; border-radius: 2px; } + /* Text entry beside each color swatch (#91): type a hex (#RGB / #RRGGBB) or + rgb(r,g,b) value instead of using the native picker. The swatch and text + field stay in sync. */ + .color-combo { display: flex; align-items: center; gap: 6px; } + .color-text { + width: 78px; + background: rgba(255,255,255,0.08); + color: #eee; + border: 1px solid rgba(255,255,255,0.12); + border-radius: 4px; + padding: 3px 5px; + font: 11px ui-monospace, Consolas, 'Courier New', monospace; + text-transform: lowercase; + } + .color-text:focus { outline: none; border-color: #3388ff; } + .color-text.invalid { border-color: #ff5555; color: #ff9999; } + /* Grouped color rows (Roll / Axis): label on its own line, then a full-width + row of swatch-over-text cells so all three fit the narrow panel. */ + .setting-row.color-row-stacked { flex-direction: column; align-items: stretch; gap: 6px; } + .color-group { display: flex; gap: 8px; } + .color-group .color-combo { flex: 1; min-width: 0; flex-direction: column; gap: 3px; align-items: stretch; } + .color-group .color-combo input[type="color"] { width: 100%; } + .color-group .color-text { width: 100%; text-align: center; } + .setting-row input[type="checkbox"] { width: 14px; height: 14px; accent-color: #3388ff; @@ -1020,9 +1044,9 @@