186 lines
3.5 KiB
CSS
186 lines
3.5 KiB
CSS
.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(--quinary-content);
|
|
}
|
|
|
|
.inputField input,
|
|
.inputField textarea {
|
|
font-weight: 400;
|
|
font-size: 15px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
padding: 12px 9px 10px 9px;
|
|
color: var(--primary-content);
|
|
background-color: var(--background);
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.inputField.disabled input,
|
|
.inputField.disabled textarea,
|
|
.inputField.disabled span {
|
|
color: var(--quaternary-content);
|
|
}
|
|
|
|
.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(--quaternary-content);
|
|
}
|
|
|
|
.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(--tertiary-content);
|
|
background-color: transparent;
|
|
font-size: 15px;
|
|
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(--links);
|
|
}
|
|
|
|
.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(--system);
|
|
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: 10px;
|
|
top: -13px;
|
|
padding: 0 2px;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.inputField input:focus + label,
|
|
.inputField textarea:focus + label {
|
|
color: var(--links);
|
|
}
|
|
|
|
.checkboxField {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.checkboxField label {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-grow: 1;
|
|
font-size: 15px;
|
|
line-height: 24px;
|
|
}
|
|
|
|
.checkboxField input {
|
|
outline: 0;
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.checkbox {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: relative;
|
|
flex-shrink: 0;
|
|
height: 16px;
|
|
width: 16px;
|
|
border: 1.5px solid rgba(185, 190, 198, 0.5);
|
|
box-sizing: border-box;
|
|
border-radius: 4px;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.checkbox svg {
|
|
display: none;
|
|
}
|
|
|
|
.checkbox svg * {
|
|
stroke: var(--primary-content);
|
|
}
|
|
|
|
.checkboxField input[type="checkbox"]:checked + label > .checkbox {
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.checkboxField input[type="checkbox"]:checked + label > .checkbox svg {
|
|
display: flex;
|
|
}
|
|
|
|
.checkboxField:focus-within .checkbox {
|
|
border: 1.5px solid var(--links) !important;
|
|
}
|
|
|
|
.errorMessage {
|
|
margin: 0;
|
|
font-size: 13px;
|
|
color: var(--alert);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.description {
|
|
color: var(--secondary-content);
|
|
margin-left: 26px;
|
|
width: 100%; /* Ensure that it breaks onto the next row */
|
|
}
|