Skip to content

Instantly share code, notes, and snippets.

@Doopin
Created April 8, 2015 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Doopin/74817920a3847c198332 to your computer and use it in GitHub Desktop.
Save Doopin/74817920a3847c198332 to your computer and use it in GitHub Desktop.
Modify Select2 CSS
/*Put this CSS declaration in another file which will be loadeed after Select2 Css file*/
/* He we reset the border-radius only for a particular bloc */
#sign-up-form .select2-container .select2-selection--single {
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
/* This css will force select2 box heigth to match with standard Bootstrap input element height*/
.select2-container .select2-selection--single {
height: 35px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
line-height: 33px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
right: 5px;
top: 5px;
}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment