-
-
Save djodjoni/421e69155ff45fbfd6001a9c1416039f to your computer and use it in GitHub Desktop.
Foundation 5 and Chosen CSS Merger
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Foundation and Chosen CSS Merger | |
// ZURB Foundation v5 - Harvest Chosen v1.1 | |
// Add to the bottom of foundation_and_overrides.scss: `@import 'foundation-chosen';` | |
$chosen-form-spacing: $form-spacing / 4 + rem-calc(1) | |
$chosen-input-height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1)) | |
$chosen-input-height-multi: ($input-font-size + ($form-spacing * 1.5) - rem-calc(5)) | |
$chosen-border-radius: 0 | |
$chosen-highlighted: $primary-color | |
.chosen-container | |
margin: 0 0 $form-spacing 0 | |
font-size: $input-font-size | |
ul, ol, dl | |
font-size: $input-font-size | |
.no-results | |
font-size: 85% | |
.chosen-results | |
li.highlighted | |
background: $chosen-highlighted | |
color: #fff | |
.chosen-container .chosen-results, .chosen-container-active .chosen-choices li.search-field input[type="text"] | |
color: $input-font-color !important | |
.chosen-container-single, .chosen-container-multi, .chosen-container-active | |
.chosen-choices, .chosen-drop, .chosen-single, &.chosen-with-drop .chosen-single | |
border-color: $input-border-color | |
border-radius: $chosen-border-radius | |
.chosen-container-multi | |
.chosen-choices | |
// box-shadow: $input-box-shadow | |
padding: 0 ($form-spacing / 2) | |
li.search-field | |
input[type="text"] | |
padding: 0 | |
height: $chosen-input-height-multi | |
li.search-choice | |
padding-top: $chosen-form-spacing | |
padding-bottom: $chosen-form-spacing | |
margin: $chosen-form-spacing $chosen-form-spacing 0 0 | |
border-color: darken($input-border-color, 10%) | |
background: $secondary-color | |
.search-choice-close | |
top: $input-font-size / 2 | |
.chosen-container-single | |
.chosen-single | |
height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1)) | |
padding-top: $chosen-form-spacing | |
padding-bottom: $chosen-form-spacing | |
.chosen-search | |
input[type="text"] | |
height: $chosen-input-height | |
background-position-y: -20px // TODO: Need to bring down, but breaks Chosen's sprite | |
padding-left: $form-spacing / 2 | |
.chosen-container-single, .chosen-container-active.chosen-with-drop | |
.chosen-single | |
div b | |
background-position-y: $chosen-form-spacing + rem-calc(3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment