1
1
mirror of https://github.com/primer/css.git synced 2024-12-21 05:01:45 +03:00
css/modules/primer-forms/lib/form-select.scss

39 lines
964 B
SCSS

// Custom select
//
// Apply `.select` to any `<select>` element for custom styles.
.form-select {
display: inline-block;
max-width: 100%;
height: 34px;
// IE9 hacks to reduce padding
padding-right: $spacer-4;
padding-right: $spacer-2 \9;
background: $bg-white url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAUCAMAAACzvE1FAAAADFBMVEUzMzMzMzMzMzMzMzMKAG/3AAAAA3RSTlMAf4C/aSLHAAAAPElEQVR42q3NMQ4AIAgEQTn//2cLdRKppSGzBYwzVXvznNWs8C58CiussPJj8h6NwgorrKRdTvuV9v16Afn0AYFOB7aYAAAAAElFTkSuQmCC") no-repeat right 8px center;
// IE9 hacks to hide the background-image
background-image: none \9;
background-size: 8px 10px;
appearance: none;
// Hides the default caret in IE11
&::-ms-expand {
opacity: 0;
}
&[multiple] {
height: auto;
}
}
.select-sm {
height: 28px;
min-height: 28px;
padding-top: 3px;
padding-bottom: 3px;
font-size: $font-size-small;
&[multiple] {
height: auto;
min-height: 0;
}
}