From b97a83aa0e9af8ed5c12d6e5f4ef3877eb1e7ec5 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Wed, 13 Nov 2013 17:35:08 +0100 Subject: [ADD] restyling of select2 integrating it in bootstrap 3 design bzr revid: xmo@openerp.com-20131113163508-epqkmwhowok7ofqu --- .../static/lib/select2-bootstrap-css/README.md | 16 + .../select2-bootstrap-css/select2-bootstrap.css | 420 +++++++++++++++++++++ 2 files changed, 436 insertions(+) create mode 100644 addons/website/static/lib/select2-bootstrap-css/README.md create mode 100644 addons/website/static/lib/select2-bootstrap-css/select2-bootstrap.css (limited to 'addons/website/static/lib/select2-bootstrap-css') diff --git a/addons/website/static/lib/select2-bootstrap-css/README.md b/addons/website/static/lib/select2-bootstrap-css/README.md new file mode 100644 index 00000000000..c4d8fbdb675 --- /dev/null +++ b/addons/website/static/lib/select2-bootstrap-css/README.md @@ -0,0 +1,16 @@ +CSS for making Select2 fit in with Bootstrap a bit better, +**updated for Bootstrap v3.0.0**. + +http://fk.github.io/select2-bootstrap-css/ + +Tested with Bootstrap 3.0.0 and Select2 3.3.2, 3.4.1 and 3.4.2 and in latest Chrome, Safari, Firefox, Opera (Mac) and IE8-IE10. + +Known issues: + + * "Loading Remote Data" and "Infinite Scroll" not addressed yet, the loading indicator position probably needs some adjustments + * IE8/IE9/IE10, Firefox: Select2 in "Bootstrap input group with radio/checkbox addon" and .input-lg misses 1px in height (IE9/IE10, Firefox behave the same for Bootstrap 3's "input group sizing"-demo at http://getbootstrap.com/components/#input-groups-sizing) + * IE9/IE10: Select2 in "Bootstrap input group with button addon" (no height modifier, i. e. .input-sm, .input-lg) also misses 1px in height (bug _not_ inherited from Bootstrap 3) + * box-shadow for .select2-search input do not fit Bootstrap's defaults + * the Select2 dropdown could inherit look-and-feel from Bootstrap dropdowns and/or could honor Bootstrap height sizing classes + * border-radii for opened Select2 dropdowns could consistently be set to be … round ;-) + * checkboxes and radio-buttons in "Bootstrap input groups" could be vertically aligned to the top (instead of center) if combined with a multi Select2 to address variable height of the Select2 container diff --git a/addons/website/static/lib/select2-bootstrap-css/select2-bootstrap.css b/addons/website/static/lib/select2-bootstrap-css/select2-bootstrap.css new file mode 100644 index 00000000000..5497890f6fe --- /dev/null +++ b/addons/website/static/lib/select2-bootstrap-css/select2-bootstrap.css @@ -0,0 +1,420 @@ +/** + * Select2 Bootstrap CSS + * Compatible with Select2 3.3.2, 3.4.1, 3.4.2 and Twitter Bootstrap 3.0.0 + * MIT License + */ +/** + * Reset Bootstrap 3 .form-control styles which - if applied to the + * original