mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-21 18:04:39 -05:00
61 lines
1.1 KiB
CSS
61 lines
1.1 KiB
CSS
.container {
|
|
display: flex;
|
|
font-size: var(--font-sm);
|
|
outline: none;
|
|
border: var(--border-style);
|
|
border-radius: var(--radius-field);
|
|
background-color: var(--color-bg);
|
|
height: var(--field-size);
|
|
width: 100%;
|
|
|
|
& svg {
|
|
color: var(--color-text-high);
|
|
height: calc(var(--field-size) / 2);
|
|
margin: auto;
|
|
margin-right: 15px;
|
|
}
|
|
|
|
&:has(input:user-invalid) {
|
|
outline: var(--focus-ring-error);
|
|
outline-offset: 1px;
|
|
}
|
|
|
|
&:focus-within {
|
|
outline: var(--focus-ring);
|
|
outline-offset: 1px;
|
|
}
|
|
|
|
input {
|
|
border-radius: var(--radius-field);
|
|
padding: 0 var(--field-padding);
|
|
outline: none;
|
|
width: 100%;
|
|
background-color: inherit;
|
|
color: inherit;
|
|
border: none;
|
|
|
|
&::placeholder {
|
|
color: var(--color-text-high);
|
|
}
|
|
}
|
|
}
|
|
|
|
.readOnly {
|
|
pointer-events: none;
|
|
cursor: not-allowed;
|
|
opacity: 0.5;
|
|
outline: none;
|
|
}
|
|
|
|
.addon {
|
|
display: grid;
|
|
border-radius: var(--radius-field) 0 0 var(--radius-field);
|
|
background-color: var(--color-bg-high);
|
|
color: var(--color-text-high);
|
|
font-size: var(--font-xs);
|
|
font-weight: var(--weight-semi);
|
|
padding-inline: var(--s-2);
|
|
place-items: center;
|
|
white-space: nowrap;
|
|
}
|