Skip to content
Browse files

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.
  • Loading branch information...
1 parent 76dd8cc commit e4db3c6c052791dae0d41b8797cfd143a75fe7f2 @chillu chillu committed
Showing with 0 additions and 6 deletions.
  1. +0 −1 admin/css/screen.css
  2. +0 −5 admin/scss/_forms.scss
View
1 admin/css/screen.css
@@ -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; }
View
5 admin/scss/_forms.scss
@@ -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);
}

0 comments on commit e4db3c6

Please sign in to comment.
Something went wrong with that request. Please try again.