Skip to content

Commit

Permalink
Fix CSS for select with other field sizes
Browse files Browse the repository at this point in the history
The select was rendered distorted in Safari, Chrome, Firefox on macos after the fixing TheCoder4eu#1090. The no longer set -webkit-appearance to menubutton-list is no longer overriding the line-height. This was set wrongly for field sizes other than md. Also long text was overlayed by arrow images.

Fixes TheCoder4eu#1097
  • Loading branch information
sebsoftware committed Jan 14, 2020
1 parent a00565b commit fdabfec
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gradleResources/staticResources/css/bsf.css
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,15 @@ background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.
appearance: none;
}

select.input-sm {
line-height: 20px;
}

select.input-lg {
line-height: 26px;
}

select.form-control {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20fill%3D%22%23555555%22%20%0A%09%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%22-261%20145.2%2024%2024%22%20style%3D%22enable-background%3Anew%20-261%20145.2%2024%2024%3B%22%20xml%3Aspace%3D%22preserve%22%3E%0A%3Cpath%20d%3D%22M-245.3%2C156.1l-3.6-6.5l-3.7%2C6.5%20M-252.7%2C159l3.7%2C6.5l3.6-6.5%22%2F%3E%0A%3C%2Fsvg%3E");
padding-right: 25px;
}

0 comments on commit fdabfec

Please sign in to comment.