From 4d749a757864c2e8c18635d419743890cadd534f Mon Sep 17 00:00:00 2001 From: Dean Sofer Date: Sat, 14 Sep 2013 23:17:20 -0700 Subject: [PATCH] Fixes styling in bootstrap environment Fixes #1588 thanks to @smajl --- select2-bootstrap.css | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 select2-bootstrap.css diff --git a/select2-bootstrap.css b/select2-bootstrap.css new file mode 100644 index 00000000..c57e034b --- /dev/null +++ b/select2-bootstrap.css @@ -0,0 +1,27 @@ +.form-control .select2-choice { + border: 0; + border-radius: 2px; +} + +.form-control .select2-choice .select2-arrow { + border-radius: 0 2px 2px 0; +} + +.form-control.select2-container { + height: auto !important; + padding: 0px; +} + +.form-control.select2-container.select2-dropdown-open { + border-color: #5897FB; + border-radius: 3px 3px 0 0; +} + +.form-control .select2-container.select2-dropdown-open .select2-choices { + border-radius: 3px 3px 0 0; +} + +.form-control.select2-container .select2-choices { + border: 0 !important; + border-radius: 3px; +}