{"id":13513660,"url":"https://github.com/select2/select2-bootstrap-theme","last_synced_at":"2025-12-12T04:01:07.415Z","repository":{"id":29743393,"uuid":"33286882","full_name":"select2/select2-bootstrap-theme","owner":"select2","description":"A Select2 v4 Theme for Bootstrap 3","archived":false,"fork":false,"pushed_at":"2022-09-21T11:37:09.000Z","size":527,"stargazers_count":867,"open_issues_count":38,"forks_count":489,"subscribers_count":51,"default_branch":"master","last_synced_at":"2025-11-27T14:28:26.742Z","etag":null,"topics":["bootstrap","sass","select2"],"latest_commit_sha":null,"homepage":"https://select2.github.io/select2-bootstrap-theme/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/select2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-02T03:18:09.000Z","updated_at":"2025-10-04T13:57:23.000Z","dependencies_parsed_at":"2022-06-26T12:05:21.656Z","dependency_job_id":null,"html_url":"https://github.com/select2/select2-bootstrap-theme","commit_stats":null,"previous_names":["fk/select2-bootstrap-theme"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/select2/select2-bootstrap-theme","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/select2%2Fselect2-bootstrap-theme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/select2%2Fselect2-bootstrap-theme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/select2%2Fselect2-bootstrap-theme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/select2%2Fselect2-bootstrap-theme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/select2","download_url":"https://codeload.github.com/select2/select2-bootstrap-theme/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/select2%2Fselect2-bootstrap-theme/sbom","scorecard":{"id":810390,"data":{"date":"2025-08-11","repo":{"name":"github.com/select2/select2-bootstrap-theme","commit":"8f833863dc3bf5c0d8d7113a8da43acb2c7c7c91"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":1,"reason":"Found 5/26 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 9 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T13:00:39.002Z","repository_id":29743393,"created_at":"2025-08-23T13:00:39.014Z","updated_at":"2025-08-23T13:00:39.014Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27676003,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-12T02:00:06.775Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","sass","select2"],"created_at":"2024-08-01T05:00:34.283Z","updated_at":"2025-12-12T04:01:07.086Z","avatar_url":"https://github.com/select2.png","language":"CSS","readme":"A [Select2](https://select2.github.io/) v4 [Theme](https://select2.github.io/examples.html#themes) for Bootstrap 3  \n![select2-bootstrap-theme version](https://img.shields.io/badge/select2--bootstrap--theme-v0.1.0--beta.10-brightgreen.svg)\n[![License](http://img.shields.io/badge/License-MIT-blue.svg)](http://opensource.org/licenses/MIT)\n\nDemonstrations available at\n[select2.github.io/select2-bootstrap-theme](http://select2.github.io/select2-bootstrap-theme/)\n\n#### Compatibility\n\nBuilt and tested with Bootstrap v3.3.7 and Select2 v4.0.3 in latest Chrome, Firefox and Safari (Mac) and Internet Explorer 11, 10 and 9 (should work in IE8).\n\n#### Installation\n\nYou can [download select2-bootstrap-theme from this GitHub repo](https://github.com/select2/select2-bootstrap-theme/releases), install it using Bower or npm – required if you want to integrate the Sass or Less sources in your build process – or source the compiled CSS directly from CDNJS or jsDelivr.\n\n##### Install using Bower or npm/yarn\n\nYou may install select2-bootstrap-theme with [Bower](https://bower.io/), [npm](https://www.npmjs.com/) or [Yarn](https://yarnpkg.com/):\n\n```shell\n// Bower\nbower install select2-bootstrap-theme\n\n// npm\nnpm install select2-bootstrap-theme\n\n// yarn\nyarn add select2-bootstrap-theme\n```\n\n##### Source select2-bootstrap-theme from CDNJS or jsDelivr\n\nselect2-bootstrap-theme [is also available on CDNJS](https://cdnjs.com/libraries/select2-bootstrap-theme/) and [jsDelivr](http://www.jsdelivr.com/projects/select2-bootstrap-theme).\n\n#### Usage\n\nselect2-bootstrap-theme only works with Select2 v4.x. Applying the theme requires `select2-bootstrap.css` referenced after the default `select2.css` that comes with Select2:\n\n```html\n\u003clink rel=\"stylesheet\" href=\"select2.css\"\u003e\n\u003clink rel=\"stylesheet\" href=\"select2-bootstrap.css\"\u003e\n```\n\nTo apply the theme, tell Select2 to do so by passing `bootstrap` to the [`theme`](https://select2.github.io/examples.html#themes) option when initializing Select2:\n\n```js\n$( \"#dropdown\" ).select2({\n    theme: \"bootstrap\"\n});\n```\n\nYou may also set it as the default theme for all Select2 widgets like so:\n\n```js\n$.fn.select2.defaults.set( \"theme\", \"bootstrap\" );\n```\n\n#### Changelog\n\n##### 0.1.0-beta.10\n\n* Compiled with grunt-sass v2.0.0 (was v1.2.1).\n* Merged pull request [#54](https://github.com/select2/select2-bootstrap-theme/pull/54) by @odahcam (and fixed it: `:first-child/:not(:first-child)/:last-child` for `.select2-container--bootstrap` won’t play nice in our case; we have to take the original `\u003cselect\u003e` element (with `.select2-hidden-accessible` applied) into account): Select2’s border-radii now are correctly styled in Bootstrap’s “Input Groups” without the need for helper classes (`.select2-bootstrap-append`, `.select2-bootstrap-prepend`).\n* Fixed [#63](https://github.com/select2/select2-bootstrap-theme/issues/63): \"Cursor position of multiselect in RTL state is in incorrect position\"\n* Fixed [#20](https://github.com/select2/select2-bootstrap-theme/issues/20): \"Select2 inside inline form does not fall back to `display: block` when resizing window to 'extra small'\"\n* Added new Sass/Less variable `$s2bs-btn-default-color`/`@s2bs-btn-default-color` – defaults to Bootstrap’s `$btn-default-color`/`@btn-default-color`.\n* Docs: Updated AnchorJS to v3.2.2 (was v3.2.1).\n* Docs: Fixed layout for mobile devices (add `meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"`).\n* package.json: Fixed `license`-related npm 2.x “SPDX” warning: for npm 2.x and according to https://docs.npmjs.com/files/package.json#license.\n* package.json: Added `bugs`.\n\n##### 0.1.0-beta.9\n\n* Built on Bootstrap 3 v3.3.7 and corresponding bootstrap-sass.\n* Prefixed all Sass and Less variables with `s2bs` to avoid conflicts and improve customizability as select2-bootstrap-theme does not \"force\" you to use (specific) Bootstrap Sass/Less variables anymore; a nice side effect is that we now also provide (a raw) documentation for the inherited Bootstrap variables in one place.\n* Added Sass and Less variables to override select2-bootstrap-themes default `font-size`, `color` and vertical `padding` for `.select2-results__group`. [[#19](https://github.com/select2/select2-bootstrap-theme/issues/19)]\n* Added Sass and Less variables replacing hardcoded values in styles for `.select2-selection__clear`, `.select2-selection__choice__remove` and `.select2-selection__choice`.\n* Added padding to root level `.select2-results__option` – fixes alignment of `.select2-results__message` and `.select2-results__option--load-more`. [[#28](https://github.com/select2/select2-bootstrap-theme/issues/28)]\n* Removed `font-family` definition for `.select2-container--bootstrap .select2-selection`. [[#50](https://github.com/select2/select2-bootstrap-theme/issues/50)]\n* Added Select2 and Bootstrap as dependencies in `bower.json` – fingers crossed, low hopes. [[#52](https://github.com/select2/select2-bootstrap-theme/issues/52)]\n* Added \"repository\" to `bower.json`.\n* Sass is now compiled using [LibSass](https://github.com/sass/libsass/)/[node-sass](https://github.com/sass/node-sass) instead of [Ruby Sass](https://github.com/sass/sass) (and [grunt-sass](https://github.com/sindresorhus/grunt-sass) instead of [grunt-contrib-sass](https://github.com/gruntjs/grunt-contrib-sass)).\n* Decreased Sass number precision from 9 to 8 – now Sass numbers really matches its Less counterpart.\n* Added Grunt task to compile Less and altered Less test (via [grunt-contrib-less](https://github.com/gruntjs/grunt-contrib-less)).\n* Switched Sass and Less source tab size/indention from four to two spaces.\n* Updated development dependencies: Autoprefixer to v6.4.0 (was v6.3.6), diff to v2.2.3 (was v2.2.2), grunt-gh-pages to v1.2.0 (was v1.1.0).\n* Docs: Added \"plain\" (not nested in an `\u003coptgroup\u003e`) options to the \"State\" Select2.\n* Docs: Updated AnchorJS to v3.2.1 (was v3.1.1), Bootstrap to v3.3.7 (was v3.3.6), jQuery to v1.12.4 (was v1.11.2).\n* Docs: Enabled pagination for AJAX examples (in context of [#28](https://github.com/select2/select2-bootstrap-theme/issues/28)).\n* Docs: Brought back demo pages for different Select2 releases (covering all of 4.0.x via [cdnjs](https://cdnjs.com/libraries/select2)).\n* Docs: Removed empty `\u003coption\u003e` from the \"Select2 multi append Radiobutton\" demo (which resulted in problems tracked in [11](https://github.com/select2/select2-bootstrap-theme/issues/11)).\n\n##### 0.1.0-beta.8\n\n* Fixed bower.jsons \"main\" field. [[#45](https://github.com/select2/select2-bootstrap-theme/pull/45)]\n* Do no re-assign the `$form-control-default-box-shadow`, `$form-control-focus-box-shadow`, and `$form-control-transition` Sass variables if they are already assigned. [[#45](https://github.com/select2/select2-bootstrap-theme/pull/45)]\n\n##### 0.1.0-beta.7\n\n* Fixed version number in distribution files.\n\n##### 0.1.0-beta.6\n\n* Fixed a bug where math would not compile correctly in Less v2.6.0. [[#36](https://github.com/select2/select2-bootstrap-theme/pull/36)]\n* Fixed version number for Bower and NPM.\n* Docs: Updated AnchorJS to latest version.\n\n##### 0.1.0-beta.5\n\n* Updated all development dependencies.\n* Added Browsersync, Autoprefixer (as required by bootstrap-sass) and scss2less to the build process.\n* Built on Bootstrap 3 v3.3.6 and corresponding bootstrap-sass.\n* Rewrote the sizing class CSS to work with `containerCssClass` option available with the full Select2 build. [[#34](https://github.com/select2/select2-bootstrap-theme/issues/34)]\n* Added copyright and license information. [[#43](https://github.com/select2/select2-bootstrap-theme/issues/43)]\n\n##### 0.1.0-beta.4\n\n * Added missing styles for `.select2-container--focus`. [[#18](https://github.com/select2/select2-bootstrap-theme/issues/18)]\n * Added support for Bootstrap's [`.form-inline`](http://getbootstrap.com/css/#forms-inline). [[#13](https://github.com/select2/select2-bootstrap-theme/pull/13)]\n * Added basic styles for `.select2-selection__clear` in `.select2-selection--multiple`. [[#11](https://github.com/select2/select2-bootstrap-theme/issues/11)]\n * Brought Less source in line with the Sass version and fixed Less patch file and test. [[3e86f34](https://github.com/select2/select2-bootstrap-theme/commit/3e86f34f6c94302cd8b4d6c3d751c5fb70fe61f6)]\n\n##### 0.1.0-beta.3\n\n * Fixed specifity problems with `.form-control.select2-hidden-accessible`.\n\n##### 0.1.0-beta.2\n\n * Added Less version.\n\n##### 0.1.0-beta.1\n\n#### Contributing\n\nThe project offers [Less](http://lesscss.org/) and [Sass](http://sass-lang.com/) sources for building `select2-bootstrap.css`; both make use of variables from either [Bootstrap](https://github.com/twbs/bootstrap) (Less) or [Bootstrap for Sass](https://github.com/twbs/bootstrap-sass). The demo pages are built using [Jekyll](http://jekyllrb.com/) and there are a bunch of [Grunt](http://gruntjs.com/) tasks to ease development.\n\nWith [Jekyll](http://jekyllrb.com/), [node.js](http://nodejs.org/) and [Less](http://lesscss.org/) installed, run\n\n```sh\nnpm install\n```\n\nto install all necessary development dependencies (Sass is compiled v[LibSass](https://github.com/sass/libsass/)/[node-sass](https://github.com/sass/node-sass)).\n\n * `grunt build` builds `docs`\n * `grunt serve` builds `docs` and serves them via Jekyll's `--watch` flag on http://localhost:3000\n\nDevelop in `src/select2-bootstrap.scss` and test your changes using `grunt serve`. Ideally, port your changes to `lib/select2-bootstrap.less` and make sure tests are passing to verify that both Less and Sass compile down to the target CSS via `npm test`.\n\n`grunt scss2less` helps in converting the Sass source to its Less counterpart (and overwrites the existing `src/select2-bootstrap.less`), but doesn't do the full job – please review the changes to the Less source file and make the necessary adjustments.\n\n#### Copyright and license\n\nThe license is available within the repository in the [LICENSE](LICENSE) file.\n","funding_links":[],"categories":["CSS"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselect2%2Fselect2-bootstrap-theme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fselect2%2Fselect2-bootstrap-theme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselect2%2Fselect2-bootstrap-theme/lists"}