Files
element-call-Github/src/input/Input.module.css
T
ValereandClaude Opus 5.5 8ae8ded970 Use Compound checkboxes in settings
Unchecked settings checkboxes rendered a tick in light theme: the rule
hiding the check icon was dropped with the stopgap colour variables in
de75a69ca. Rather than restore our own checkbox, use Compound's
InlineField + CheckboxControl + Label + HelpMessage, as the radio
groups already do, and remove the checkbox path from InputField.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 20:43:40 +01:00

137 lines
2.8 KiB
CSS

/*
Copyright 2022-2024 New Vector Ltd.
SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
Please see LICENSE in the repository root for full details.
*/
.fieldRow {
display: flex;
margin-bottom: 32px;
align-items: center;
}
.field {
display: flex;
flex: 1;
min-width: 0;
position: relative;
}
.fieldRow.rightAlign {
justify-content: flex-end;
}
.fieldRow > * {
margin-right: 24px;
}
.fieldRow > :last-child {
margin-right: 0;
}
.inputField {
border-radius: 4px;
transition: border-color 0.25s;
border: 1px solid var(--cpd-color-border-interactive-primary);
}
.inputField input,
.inputField textarea {
font-weight: 400;
font-size: var(--font-size-body);
border: none;
border-radius: 4px;
padding: 12px 9px 10px 9px;
color: var(--cpd-color-text-primary);
background-color: var(--cpd-color-bg-canvas-default);
flex: 1;
min-width: 0;
}
.inputField.disabled input,
.inputField.disabled textarea,
.inputField.disabled span {
color: var(--cpd-color-text-disabled);
}
.inputField span {
padding: 11px 9px;
}
.inputField span:first-child {
padding-right: 0;
}
.inputField input::placeholder,
.inputField textarea::placeholder {
transition: color 0.25s ease-in 0s;
color: transparent;
}
.inputField input:placeholder-shown:focus::placeholder,
.inputField textarea:placeholder-shown:focus::placeholder {
transition: color 0.25s ease-in 0.1s;
color: var(--cpd-color-text-placeholder);
}
.inputField label {
transition:
font-size 0.25s ease-out 0.1s,
color 0.25s ease-out 0.1s,
top 0.25s ease-out 0.1s,
background-color 0.25s ease-out 0.1s;
color: var(--cpd-color-text-secondary);
background-color: transparent;
font-size: var(--font-size-body);
position: absolute;
left: 0;
top: 0;
margin: 9px 8px;
padding: 2px;
pointer-events: none;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
max-width: calc(100% - 20px);
}
.inputField:focus-within {
border-color: var(--cpd-color-text-link-external);
}
.inputField input:focus,
.inputField textarea:focus {
outline: 0;
}
.inputField input:focus + label,
.inputField input:not(:placeholder-shown) + label,
.inputField.prefix input + label,
.inputField textarea:focus + label,
.inputField textarea:not(:placeholder-shown) + label,
.inputField.prefix textarea + label {
background-color: var(--cpd-color-bg-canvas-default);
transition:
font-size 0.25s ease-out 0s,
color 0.25s ease-out 0s,
top 0.25s ease-out 0s,
background-color 0.25s ease-out 0s;
font-size: var(--font-size-micro);
top: -13px;
padding: 0 2px;
pointer-events: auto;
}
.inputField input:focus + label,
.inputField textarea:focus + label {
color: var(--cpd-color-border-focused);
}
.errorMessage {
margin: 0;
font-size: var(--font-size-caption);
color: var(--cpd-color-text-critical-primary);
font-weight: 600;
}