sprinklers3/client/styles/DurationView.scss

43 lines
898 B
SCSS
Raw Permalink Normal View History

2018-09-02 02:57:55 -06:00
$durationInput-spacing: 1em;
2018-07-27 18:56:53 -06:00
$durationInput-inputWidth: 4em;
$durationInput-labelWidth: 2.5em;
2018-07-25 17:40:06 -06:00
2018-07-27 18:56:53 -06:00
.field .durationInputs {
display: flex; // max-width: 100%;
2019-07-20 18:06:07 -06:00
justify-content: flex-start;
flex-wrap: wrap;
2018-07-25 17:40:06 -06:00
margin: -$durationInput-spacing / 2;
2018-07-25 17:40:06 -06:00
width: auto;
2018-09-02 02:57:55 -06:00
.ui.input.durationInput > input {
2018-07-27 18:56:53 -06:00
width: 0 !important;
}
2018-07-27 18:56:53 -06:00
.ui.input.durationInput {
padding: $durationInput-spacing / 2;
max-width: 100%;
width: auto !important;
flex-basis: auto;
2018-07-25 17:40:06 -06:00
flex-shrink: 0;
2018-07-27 18:56:53 -06:00
flex-grow: 1;
2018-09-02 02:57:55 -06:00
> input {
2018-07-27 18:56:53 -06:00
min-width: $durationInput-inputWidth;
width: auto;
flex-basis: $durationInput-inputWidth;
flex-grow: 1;
flex-shrink: 0;
}
2018-09-02 02:57:55 -06:00
> .label {
2018-07-27 18:56:53 -06:00
min-width: $durationInput-labelWidth;
width: $durationInput-labelWidth;
flex: $durationInput-labelWidth;
flex-grow: 0;
flex-shrink: 0;
text-align: center;
}
}
2018-09-02 02:57:55 -06:00
}