mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Removed DateField special width with .hasDatepicker class
Causes field to change width after first display, as the .hasDatepicker class is added dynamically on first field focus. Since we don't add an icon by default, there's no difference between an <input> field with date picker, an input field for dates, and a simple input field. Fall back to global (or CMS specific) rules.
This commit is contained in:
parent
76dd8cca0f
commit
e4db3c6c05
@ -180,7 +180,6 @@ form.small .field input.text, form.small .field textarea, form.small .field sele
|
||||
.field .chzn-container-single .chzn-single:hover, .field .chzn-container-single .chzn-single:focus, .field .chzn-container-single .chzn-single:active { text-decoration: none; outline: none; }
|
||||
.field .chzn-container-single .chzn-single div { width: 24px; }
|
||||
.field .chzn-container-single .chzn-single div b { background-position: 4px 0px; }
|
||||
.field input.hasDatepicker { width: 50%; max-width: 96px; }
|
||||
.field input.month, .field input.day, .field input.year { width: 56px; }
|
||||
.field input.time { width: 64px; }
|
||||
.field.remove-splitter { border-bottom: none; box-shadow: none; }
|
||||
|
@ -236,11 +236,6 @@ form.small .field, .field.small {
|
||||
}
|
||||
|
||||
/* Date Fields */
|
||||
input.hasDatepicker {
|
||||
width: 50%;
|
||||
max-width: ($grid-x * 12);
|
||||
}
|
||||
|
||||
input.month, input.day, input.year {
|
||||
width: ($grid-x * 7);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user