Files
protocol-bicorder/bicorder-app/src/app.css
Nathan Schneider 50b7821596 Allow text selection in the interface
Remove user-select: none from body, keeping it only on interactive
elements (buttons, sliders, tooltips) where it prevents accidental
selection during interaction.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-20 14:31:43 -06:00

114 lines
2.2 KiB
CSS

:root {
color-scheme: light dark;
font-family: 'Courier New', Courier, monospace;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: 100%;
-moz-text-size-adjust: 100%;
text-size-adjust: 100%;
}
/* Light mode (default) */
@media (prefers-color-scheme: light) {
:root {
--bg-color: #ffffff;
--fg-color: #000000;
--border-color: #000000;
--hover-color: #333333;
--disabled-color: #cccccc;
--input-bg: #f5f5f5;
}
}
/* Dark mode */
@media (prefers-color-scheme: dark) {
:root {
--bg-color: #000000;
--fg-color: #ffffff;
--border-color: #ffffff;
--hover-color: #cccccc;
--disabled-color: #666666;
--input-bg: #1a1a1a;
}
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: var(--bg-color);
color: var(--fg-color);
min-height: 100vh;
touch-action: manipulation;
-webkit-tap-highlight-color: transparent;
font-size: 16px;
}
#app {
width: 100%;
min-height: 100vh;
padding: 1rem;
}
input, textarea {
font-family: 'Courier New', Courier, monospace;
font-size: 1rem;
background-color: var(--input-bg);
color: var(--fg-color);
border: 1px solid var(--border-color);
padding: 0.5rem;
width: 100%;
outline: none;
}
input:focus, textarea:focus {
border-color: var(--hover-color);
box-shadow: 0 0 3px var(--hover-color);
}
button {
font-family: 'Courier New', Courier, monospace;
font-size: 1rem;
background-color: var(--bg-color);
color: var(--fg-color);
border: 2px solid var(--border-color);
padding: 0.5rem 1rem;
cursor: pointer;
touch-action: manipulation;
user-select: none;
min-height: 44px;
min-width: 44px;
}
button:hover:not(:disabled), button:active:not(:disabled) {
background-color: var(--fg-color);
color: var(--bg-color);
border-color: var(--fg-color);
}
button:disabled {
border-color: var(--disabled-color);
color: var(--disabled-color);
cursor: not-allowed;
}
button:disabled:hover {
background-color: var(--bg-color);
color: var(--disabled-color);
}
@media (max-width: 768px) {
body {
font-size: 14px;
}
input, textarea, button {
font-size: 16px; /* Prevent iOS zoom on focus */
}
}