Last active
August 29, 2015 14:26
-
-
Save FirstVertex/3ac54c58b5aa56fc6a9b to your computer and use it in GitHub Desktop.
Select2 with Primary selected item 4/4
This file contains 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
/* http://www.cssportal.com/css-gradient-generator/ */ | |
.select2-container-multi .select2-choices .select2-search-choice.select2-primary { | |
background-color: green; | |
border-color: green; | |
background-image: -ms-linear-gradient(top, #5CBD73 0%, #79EF70 50%, #24E23D 51%, #1F9C49 100%); | |
background-image: -moz-linear-gradient(top, #5CBD73 0%, #79EF70 50%, #24E23D 51%, #1F9C49 100%); | |
background-image: -o-linear-gradient(top, #5CBD73 0%, #79EF70 50%, #24E23D 51%, #1F9C49 100%); | |
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #5CBD73), color-stop(50, #79EF70), color-stop(51, #24E23D), color-stop(100, #1F9C49)); | |
background-image: -webkit-linear-gradient(top, #5CBD73 0%, #79EF70 50%, #24E23D 51%, #1F9C49 100%); | |
background-image: linear-gradient(to bottom, #5CBD73 0%, #79EF70 50%, #24E23D 51%, #1F9C49 100%); | |
} | |
/* visibility is handled by JavaScript */ | |
#TroopsPrimaryDisplay, #TroopsPrimaryDisplayNone { | |
display: none; | |
} | |
#TroopsPrimaryDisplayNone { | |
font-style: italic; | |
color: #888; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
see here for all code