Skip to content

Commit

Permalink
add span to hide dropdown on firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
rtsinani committed May 6, 2015
1 parent 491394f commit eee73f5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pretty-select/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<div class="pretty-select">
<div class="select">
<span class="arr"></span>
<select>
<option>All about that bass</option>
<option>Dear Future Husband</option>
Expand Down
14 changes: 12 additions & 2 deletions pretty-select/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,17 @@ body {
display: inline-block;
}

.select:before {
.select .arr {
background: #fff;
bottom: 5px;
position: absolute;
right: 5px;
top: 5px;
width: 50px;
pointer-events: none;
}

.select .arr:before {
content: '';
position: absolute;
top: 50%;
Expand All @@ -23,7 +33,7 @@ body {
border-right: 10px solid transparent;
}

.select:after {
.select .arr:after {
content: '';
position: absolute;
top: 50%;
Expand Down

0 comments on commit eee73f5

Please sign in to comment.