49 lines
1.1 KiB
CSS
49 lines
1.1 KiB
CSS
@import "../../css/units.css";
|
|
@import "../../css/colors.css";
|
|
|
|
.input-form {
|
|
height: 2rem;
|
|
padding: 0 0.75rem;
|
|
|
|
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
font-size: 0.625rem;
|
|
font-weight: bold;
|
|
color: $text-primary;
|
|
|
|
border-width: 1px;
|
|
border-style: solid;
|
|
border-color: $ui-black-transparent;
|
|
border-radius: 2rem;
|
|
|
|
outline: none;
|
|
cursor: text;
|
|
transition: 0.25s ease-out; /* @todo: standardize with var */
|
|
box-shadow: none;
|
|
|
|
/*
|
|
For truncating overflowing text gracefully
|
|
Min-width is for a bug: https://css-tricks.com/flexbox-truncated-text
|
|
@todo: move this out into a mixin or a helper component
|
|
*/
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
min-width: 0;
|
|
}
|
|
|
|
.input-form:hover {
|
|
border-color: $looks-secondary;
|
|
}
|
|
|
|
.input-form:focus {
|
|
border-color: $looks-secondary;
|
|
box-shadow: 0 0 0 0.25rem $looks-transparent;
|
|
}
|
|
|
|
.input-small {
|
|
width: 3rem;
|
|
padding: 0 0.5rem;
|
|
text-overflow: clip;
|
|
text-align: center;
|
|
}
|