Skip to content
This repository was archived by the owner on Sep 28, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions wtf-forms.css
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,38 @@
.select option {
background-color: white;
}

/* workaround for Firefox 30.0 */
/* It hides the default dropdown arrow with a ':before' element.
If you change the background-color of the <select> , remember to set the
same background-color for the :before element.
*/
.select select{
-moz-border-radius-bottomright: 0.35rem;
-moz-border-radius-topright: 0.35rem;
border-bottom-right-radius: 0.35rem;
border-top-right-radius: 0.35rem;
/*
the border right radius of the <select> element has always to be a little
bigger than the border right radius of the ':before' element, because it has to completly hide it.
On other hand, border left radius of the <select> has to be the same of the border right radius of the ':before' element,
beacuse the corner of the dropdown are used to be symmetric.
*/
}
.select:before {
content: "";
background-color: #eeeeee;
width: 15px;
height: 100%;
position: absolute;
top: 0px;
right: 0px;
-moz-border-radius-bottomright: 0.25rem;
-moz-border-radius-topright: 0.25rem;
border-bottom-right-radius: 0.25rem;
border-top-right-radius: 0.25rem;
pointer-events: none;
}
}

/* IE9 hack to hide the arrow */
Expand Down