refactor datetime, fix ff flex bug

This commit is contained in:
Felix Niklas 2015-10-08 14:10:54 +02:00
parent c9bcf4fe00
commit a5e39d4799
2 changed files with 20 additions and 9 deletions

View file

@ -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>

View file

@ -1193,14 +1193,10 @@ fieldset > .form-group {
margin-bottom: 0;
}
.controls--bundle {
display: flex;
.controls-label {
margin: 11px 10px 0;
flex-shrink: 0;
}
}
input[type="radio"],
input[type="checkbox"] {
@ -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 wont 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%;
}