//
// Replaces the browser default select with a custom one, mostly pulled from
// http://primercss.io.
+//
+// Includes IE9-specific hacks (noted by ` \9`).
.c-select {
display: inline-block;
max-width: 100%;
padding: .375rem 1.75rem .375rem .75rem;
+ padding-right: .75rem \9;
vertical-align: middle;
background: #fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAUCAMAAACzvE1FAAAADFBMVEUzMzMzMzMzMzMzMzMKAG/3AAAAA3RSTlMAf4C/aSLHAAAAPElEQVR42q3NMQ4AIAgEQTn//2cLdRKppSGzBYwzVXvznNWs8C58CiussPJj8h6NwgorrKRdTvuV9v16Afn0AYFOB7aYAAAAAElFTkSuQmCC) no-repeat right .75rem center;
+ background-image: none \9;
background-size: 8px 10px;
border: 1px solid $input-border;
-
- // Have to include vendor prefixes as the `appearance` property isn't part of the CSS spec.
- -webkit-appearance: none;
+ // Use vendor prefixes as `appearance` isn't part of the CSS spec.
-moz-appearance: none;
-
- // IE9 hacks to hide the background-image and reduce padding
- padding-right: .75rem \9;
- background-image: none \9;
+ -webkit-appearance: none;
&:focus {
border-color: #51a7e8;
}
// Links, buttons, and more within the dropdown menu
+//
+// `<button>`-specific styles are denoted with `// for <button>s`
.dropdown-item {
display: block;
+ width: 100%; // For `<button>`s
padding: 3px 20px;
clear: both;
font-weight: normal;
line-height: $line-height;
color: $dropdown-link-color;
+ text-align: inherit; // For `<button>`s
white-space: nowrap; // prevent links from randomly breaking onto new lines
-
- // For `<button>`s
- text-align: inherit;
- width: 100%;
- background: none;
- border: 0;
+ background: none; // For `<button>`s
+ border: 0; // For `<button>`s
@include hover-focus {
color: $dropdown-link-hover-color;
width: 1px;
padding-top: .425rem;
padding-bottom: .425rem;
- margin-left: $navbar-padding-horizontal;
margin-right: $navbar-padding-horizontal;
+ margin-left: $navbar-padding-horizontal;
overflow: hidden;
&:before {