{"id":21332394,"url":"https://github.com/binlabs/twbs-contextual-modals","last_synced_at":"2025-07-12T10:31:20.311Z","repository":{"id":203199083,"uuid":"12813860","full_name":"binlabs/twbs-contextual-modals","owner":"binlabs","description":"The Contextual Modals LESS mix-in for Twitter Bootstrap 3 allow you to use the five contextual styles that you're used to having available for alerts, button, and labels to style your modals.","archived":false,"fork":false,"pushed_at":"2013-09-15T20:13:33.000Z","size":480,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2023-10-24T00:30:06.577Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/binlabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2013-09-13T16:15:09.000Z","updated_at":"2023-10-24T00:30:08.582Z","dependencies_parsed_at":null,"dependency_job_id":"559c1801-6f22-45f9-a9ba-dbec3c839c5f","html_url":"https://github.com/binlabs/twbs-contextual-modals","commit_stats":null,"previous_names":["binlabs/twbs-contextual-modals"],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binlabs%2Ftwbs-contextual-modals","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binlabs%2Ftwbs-contextual-modals/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binlabs%2Ftwbs-contextual-modals/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binlabs%2Ftwbs-contextual-modals/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binlabs","download_url":"https://codeload.github.com/binlabs/twbs-contextual-modals/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225814861,"owners_count":17528295,"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","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":[],"created_at":"2024-11-21T22:47:48.801Z","updated_at":"2024-11-21T22:47:49.227Z","avatar_url":"https://github.com/binlabs.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"twbs-contextual-modals\n=====================\n\nThe Contextual Modals LESS mix-in for [Twitter Bootstrap 3](https://github.com/twbs/bootstrap) allow you to use the five contextual styles that you're used to having available for alerts, button, and labels to style your modals.\n## Examples\nIn addition to the screenshots below, you can view the contextual modal styles by cloning this repository and opening \u003ccode\u003eindex.html\u003c/code\u003e from the examples directory in your browser.\n\n### Screenshots\nThe following images are screenshots of the actual modal styles from the examples file.\n\n#### Default\n![A modal using the .modal-default class](https://raw.github.com/binlabs/twbs-contextual-modals/master/examples/screenshots/modal-default.jpg)\n\n#### Primary\n![A modal using the .modal-primary class](https://raw.github.com/binlabs/twbs-contextual-modals/master/examples/screenshots/modal-primary.jpg)\n\n#### Danger\n![A modal using the .modal-danger class](https://raw.github.com/binlabs/twbs-contextual-modals/master/examples/screenshots/modal-danger.jpg)\n\n#### Warning\n![A modal using the .modal-warning class](https://raw.github.com/binlabs/twbs-contextual-modals/master/examples/screenshots/modal-warning.jpg)\n\n#### Info\n![A modal using the .modal-info class](https://raw.github.com/binlabs/twbs-contextual-modals/master/examples/screenshots/modal-info.jpg)\n\n## Installation\nThere are two ways to install the contextual modal styles for Twitter Bootstrap 3. The first method uses the LESS mix-in, and the second simply uses the CSS file.\n\n### LESS\nInstalling the Contextual Modal styles using the LESS mix-in makes it easier to customize to fit your theme's color scheme.\n\n1. Download twbs-contextual-modals.\n2. Move \u003ccode\u003ebootstrap-contextual-modal.less\u003c/code\u003e to your LESS directory.\n3. Copy and paste the contents of \u003ccode\u003emixins.less\u003c/code\u003e to your own \u003ccode\u003emixins.less\u003c/code\u003e file.\n4. Copy and paste the contents of \u003ccode\u003evariables.less\u003c/code\u003e to your own \u003ccode\u003evariables.less\u003c/code\u003e file, preferably near the existing lines of modal variables.\n5. Compile your theme.\n6. Initiate a modal using the \u003ccode\u003e.modal\u003c/code\u003e class and the class of the contextual style you want to use, such as \u003ccode\u003e.modal-danger\u003c/code\u003e.\n\n### CSS\nTo install the contextual modal styles using just CSS, follow the instructions below.\n\n1. Download twbs-contextual-modals.\n2. Move \u003ccode\u003ebootstrap-contextual-modal.css\u003c/code\u003e to your CSS directory or copy the styles and paste them in to your theme's stylesheet.\n3. Initiate a modal using the \u003ccode\u003e.modal\u003c/code\u003e class and the class of the contextual style you want to use, such as \u003ccode\u003e.modal-danger\u003c/code\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinlabs%2Ftwbs-contextual-modals","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinlabs%2Ftwbs-contextual-modals","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinlabs%2Ftwbs-contextual-modals/lists"}