Files
filebrowser/frontend/src/css/_inputs.css
T
2026-11-17 09:17:36 -06:00

130 lines
2.7 KiB
CSS

.input {
box-sizing: border-box;
border-radius: var(--borderRadius);
padding: 0.5em 1em;
border: var(--borderWidth) solid var(--surfaceSecondary);
transition: border-color 0.2s ease;
margin: 0;
width: 100%;
min-height: 2.5em;
background: var(--background);
color: var(--textPrimary);
}
.input:hover {
border-color: color-mix(
in srgb,
var(--surfaceSecondary) 70%,
var(--textPrimary)
);
}
.input:focus {
outline: none;
border-color: var(--primaryColor);
}
.input:disabled {
cursor: not-allowed;
color: var(--textSecondary);
opacity: 0.75;
}
/* ExpandDropdown renders its own surface; avoid double-styling when .input is on the wrapper */
.expand-dropdown.input,
.expand-dropdown.input:hover,
.expand-dropdown.input:focus {
padding: 0;
border: none;
background: transparent;
box-shadow: none;
}
/* Autofill hack to maintain style */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
box-shadow: 0 0 0 1000px var(--background) inset;
-webkit-text-fill-color: var(--textPrimary);
border-color: unset;
}
/* Style for input sliders */
input[type="range"] {
accent-color: var(--primaryColor);
}
input.sizeInput:disabled {
cursor: not-allowed;
}
.sizeInputWrapper {
box-sizing: border-box;
border-radius: var(--borderRadius);
margin: 0.5em;
display: flex;
align-items: center;
background-color: var(--background);
border: var(--borderWidth) solid var(--surfaceSecondary);
box-shadow:
0 1px 1px hsl(0deg 0% 0% / 7.5%),
0 2px 2px hsl(0deg 0% 0% / 7.5%),
0 4px 4px hsl(0deg 0% 0% / 7.5%),
0 8px 8px hsl(0deg 0% 0% / 7.5%),
0 16px 16px hsl(0deg 0% 0% / 7.5%);
padding: 0.25em 0.5em;
justify-content: center;
color: var(--textPrimary);
}
.sizeInputWrapper:focus-within {
border-color: var(--primaryColor);
}
.sizeInput {
text-align: center;
border-radius: 0.5em;
padding: 0.5em;
border: var(--borderWidth) solid var(--surfaceSecondary);
margin-right: 0.5em;
background: var(--background);
height: 2em;
width: 5em;
color: var(--textPrimary);
}
.sizeInputWrapper .sizeInput {
text-align: center;
border: none;
border-radius: var(--borderRadius);
padding: 0.5em;
margin: 0 0.5em 0 0;
background: var(--surfacePrimary);
height: 2em;
width: 5em;
color: var(--textPrimary);
}
.sizeInputWrapper p {
margin: 0 0.35em 0 0;
color: var(--textPrimary);
white-space: nowrap;
}
.sizeInputWrapper .sizeInput:last-child {
margin-right: 0;
}
.roundedInputLeft {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
width: auto;
min-width: 50%;
}
.roundedInputRight {
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}