CoastalCommitsPastes/client/app/components/input/input.module.css

64 lines
1.2 KiB
CSS

.wrapper {
display: flex;
flex-direction: row;
align-items: center;
height: 100%;
/* font-size: 1rem; */
height: 2.5rem;
}
.input {
height: 2.5rem;
border-radius: var(--inline-radius);
background: var(--bg);
color: var(--fg);
border: 1px solid var(--border);
padding: 0 var(--gap-half);
outline: none;
transition: border-color var(--transition);
display: flex;
justify-content: center;
margin: 0;
width: 100%;
}
.withLabel {
/* if with label, then left border should be flat */
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.input:focus {
border-color: var(--light-gray);
}
.label {
display: inline-flex;
width: initial;
height: 100%;
align-items: center;
pointer-events: none;
margin: 0;
padding: 0 var(--gap-half);
color: var(--darker-gray);
background-color: var(--lighter-gray);
border-top-left-radius: var(--radius);
border-bottom-left-radius: var(--radius);
border-top: 1px solid var(--input-border);
border-left: 1px solid var(--input-border);
border-bottom: 1px solid var(--input-border);
line-height: 1;
white-space: nowrap;
}
@media screen and (max-width: 768px) {
.wrapper {
margin-bottom: var(--gap);
}
}
.input:disabled {
background-color: var(--lighter-gray);
color: var(--fg);
cursor: not-allowed;
}