Skip to content

Commit

Permalink
Add comment + remove min-width
Browse files Browse the repository at this point in the history
  • Loading branch information
Remco van Herwijnen committed Jun 28, 2018
1 parent 4510228 commit 96a3803
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 8 additions & 0 deletions styles/css/lib/lib.css
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,14 @@ select.form-control {
}
}

@media only screen and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 0) {
input[type=date],
input[type=time],
input[type=datetime-local],
input[type=month] {
line-height: 1;
}
}
/* ==========================================================================
Alerts
Expand Down
5 changes: 3 additions & 2 deletions styles/sass/lib/components/_inputs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,12 @@ select.form-control {
}
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 0) {
// Fixes alignmcode ent bug on iPads / iPhones where datefield is not aligned vertically
@media only screen and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 0) {
input[type=date],
input[type=time],
input[type=datetime-local],
input[type=month] {
line-height: 1;
}
}
}

0 comments on commit 96a3803

Please sign in to comment.