refactor datetime, fix ff flex bug
This commit is contained in:
parent
c9bcf4fe00
commit
a5e39d4799
2 changed files with 20 additions and 9 deletions
|
@ -1,6 +1,6 @@
|
|||
<div class="controls--bundle" data-name="<%= @attribute.nameRaw %>">
|
||||
<div class="horizontal" data-name="<%= @attribute.nameRaw %>">
|
||||
<input type="hidden" value="<%= @attribute.value %>" name="<%= @attribute.name %>">
|
||||
<input type="text" value="" class="form-control js-datepicker" data-item="date">
|
||||
<input type="text" value="" class="form-control flex-shrink-horizontal js-datepicker" data-item="date">
|
||||
<div class="controls-label"><%- @T('at') %></div>
|
||||
<input type="text" value="" class="form-control time js-timepicker" data-item="time">
|
||||
</div>
|
|
@ -1193,13 +1193,9 @@ fieldset > .form-group {
|
|||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.controls--bundle {
|
||||
display: flex;
|
||||
|
||||
.controls-label {
|
||||
.controls-label {
|
||||
margin: 11px 10px 0;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
}
|
||||
|
||||
input[type="radio"],
|
||||
|
@ -6977,6 +6973,21 @@ body.fit {
|
|||
flex: 1;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Firefox minimum content bugfix
|
||||
|
||||
https://github.com/philipwalton/flexbugs#1-minimum-content-sizing-of-flex-items-not-honored
|
||||
|
||||
"By default, flex items won’t shrink below their minimum
|
||||
content size (the length of the longest word or fixed-size element).
|
||||
To change this, set the min-width or min-height property."
|
||||
|
||||
*/
|
||||
.flex-shrink-horizontal {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.flex-full {
|
||||
flex: 1 1 100%;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue