├── .gitignore ├── LICENSE ├── Makefile ├── README.md ├── bootstrap.css ├── bootstrap.min.css ├── build.bat ├── build ├── BatchSubstitute.bat ├── less.js └── lessc.wsf ├── docs ├── assets │ ├── css │ │ └── docs.css │ ├── ico │ │ ├── bootstrap-apple-114x114.png │ │ ├── bootstrap-apple-57x57.png │ │ ├── bootstrap-apple-72x72.png │ │ └── favicon.ico │ ├── img │ │ ├── bird.png │ │ ├── browsers.png │ │ ├── example-diagram-01.png │ │ ├── example-diagram-02.png │ │ ├── example-diagram-03.png │ │ ├── grid-18px.png │ │ └── twitter-logo-no-bird.png │ └── js │ │ ├── application.js │ │ └── google-code-prettify │ │ ├── prettify.css │ │ └── prettify.js ├── index.html └── javascript.html ├── examples ├── container-app.html ├── fluid.html └── hero.html ├── fonts ├── iconic_stroke.eot ├── iconic_stroke.svg ├── iconic_stroke.ttf └── iconic_stroke.woff ├── js ├── bootstrap-alerts.js ├── bootstrap-buttons.js ├── bootstrap-dropdown.js ├── bootstrap-modal.js ├── bootstrap-popover.js ├── bootstrap-scrollspy.js ├── bootstrap-tabs.js ├── bootstrap-twipsy.js └── tests │ ├── index.html │ ├── unit │ ├── bootstrap-alerts.js │ ├── bootstrap-buttons.js │ ├── bootstrap-dropdown.js │ ├── bootstrap-modal.js │ ├── bootstrap-popover.js │ ├── bootstrap-scrollspy.js │ ├── bootstrap-tabs.js │ └── bootstrap-twipsy.js │ └── vendor │ ├── qunit.css │ └── qunit.js └── lib ├── bootstrap.less ├── bootstrap_xtra.less ├── forms.less ├── mixins.less ├── mixins_xtra.less ├── patterns.less ├── patterns_xtra.less ├── reset.less ├── scaffolding.less ├── tables.less ├── type.less ├── type_xtra.less ├── variables.less └── variables_xtra.less /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | .DS_Store 3 | thumbs.db 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | VERSION=1.4.0 2 | DATE=$(shell DATE) 3 | BOOTSTRAP = ./bootstrap.css 4 | BOOTSTRAP_MIN = ./bootstrap.min.css 5 | BOOTSTRAP_LESS = ./lib/bootstrap.less 6 | LESS_COMPRESSOR ?= `which lessc` 7 | WATCHR ?= `which watchr` 8 | 9 | build: 10 | @@if test ! -z ${LESS_COMPRESSOR}; then \ 11 | sed -e 's/@VERSION/'"v${VERSION}"'/' -e 's/@DATE/'"${DATE}"'/' <${BOOTSTRAP_LESS} >${BOOTSTRAP_LESS}.tmp; \ 12 | lessc ${BOOTSTRAP_LESS}.tmp > ${BOOTSTRAP}; \ 13 | lessc ${BOOTSTRAP_LESS}.tmp > ${BOOTSTRAP_MIN} --compress; \ 14 | rm -f ${BOOTSTRAP_LESS}.tmp; \ 15 | echo "Bootstrap successfully built! - `date`"; \ 16 | else \ 17 | echo "You must have the LESS compiler installed in order to build Bootstrap."; \ 18 | echo "You can install it by running: npm install less -g"; \ 19 | fi 20 | 21 | watch: 22 | @@if test ! -z ${WATCHR}; then \ 23 | echo "Watching less files..."; \ 24 | watchr -e "watch('lib/.*\.less') { system 'make' }"; \ 25 | else \ 26 | echo "You must have the watchr installed in order to watch Bootstrap less files."; \ 27 | echo "You can install it by running: gem install watchr"; \ 28 | fi 29 | 30 | .PHONY: build watch -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | TWITTER BOOTSTRAP 2 | ================= 3 | 4 | Bootstrap is Twitter's toolkit for kickstarting CSS for websites, apps, and more. It includes base CSS styles for typography, forms, buttons, tables, grids, navigation, alerts, and more. 5 | 6 | To get started -- checkout http://twitter.github.com/bootstrap! 7 | 8 | 9 | Usage 10 | ----- 11 | 12 | You can use Twitter Bootstrap in one of two ways: just drop the compiled CSS into any new project and start cranking, or run LESS on your site and compile on the fly like a boss. 13 | 14 | Here's what the LESS version looks like: 15 | 16 | ``` html 17 | 18 | 19 | ``` 20 | 21 | Or if you prefer, the standard css way: 22 | 23 | ``` html 24 | 25 | ``` 26 | 27 | For more info, refer to the docs! 28 | 29 | 30 | Versioning 31 | ---------- 32 | 33 | For transparency and insight into our release cycle, and for striving to maintain backwards compatibility, Bootstrap will be maintained under the Semantic Versioning guidelines as much as possible. 34 | 35 | Releases will be numbered with the follow format: 36 | 37 | `..` 38 | 39 | And constructed with the following guidelines: 40 | 41 | * Breaking backwards compatibility bumps the major 42 | * New additions without breaking backwards compatibility bumps the minor 43 | * Bug fixes and misc changes bump the patch 44 | 45 | For more information on SemVer, please visit http://semver.org/. 46 | 47 | 48 | Bug tracker 49 | ----------- 50 | 51 | Have a bug? Please create an issue here on GitHub! 52 | 53 | https://github.com/twitter/bootstrap/issues 54 | 55 | 56 | Twitter account 57 | --------------- 58 | 59 | Keep up to date on announcements and more by following Bootstrap on Twitter, @TwBootstrap. 60 | 61 | 62 | Mailing list 63 | ------------ 64 | 65 | Have a question? Ask on our mailing list! 66 | 67 | twitter-bootstrap@googlegroups.com 68 | 69 | http://groups.google.com/group/twitter-bootstrap 70 | 71 | 72 | Developers 73 | ---------- 74 | 75 | We have included a makefile with convenience methods for working with the bootstrap library. 76 | 77 | + **build** - `make build` 78 | This will run the less compiler on the bootstrap lib and generate a bootstrap.css and bootstrap.min.css file. 79 | The lessc compiler is required for this command to run. 80 | 81 | + **watch** - `make watch` 82 | This is a convenience method for watching your less files and automatically building them whenever you save. 83 | Watchr is required for this command to run. 84 | 85 | 86 | Authors 87 | ------- 88 | 89 | **Mark Otto** 90 | 91 | + http://twitter.com/mdo 92 | + http://github.com/markdotto 93 | 94 | **Jacob Thornton** 95 | 96 | + http://twitter.com/fat 97 | + http://github.com/fat 98 | 99 | 100 | License 101 | --------------------- 102 | 103 | Copyright 2011 Twitter, Inc. 104 | 105 | Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 -------------------------------------------------------------------------------- /build.bat: -------------------------------------------------------------------------------- 1 | call .\build\BatchSubstitute.bat "@VERSION" "1.4.0" .\lib\bootstrap_xtra.less > .\lib\bootstrap_xtra.tmp.less 2 | call .\build\BatchSubstitute.bat "@DATE" "%date% %time%" .\lib\bootstrap_xtra.tmp.less > .\lib\bootstrap_xtra.tmp.1.less 3 | cd lib 4 | @cscript //nologo "../build/lessc.wsf" bootstrap_xtra.tmp.1.less ../bootstrap.css 5 | @cscript //nologo "../build/lessc.wsf" bootstrap_xtra.tmp.1.less ../bootstrap.min.css -compress 6 | del /f bootstrap_xtra.tmp.less 7 | del /f bootstrap_xtra.tmp.1.less 8 | cd .. -------------------------------------------------------------------------------- /build/BatchSubstitute.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | REM -- Prepare the Command Processor -- 3 | SETLOCAL ENABLEEXTENSIONS 4 | SETLOCAL DISABLEDELAYEDEXPANSION 5 | 6 | ::BatchSubstitude - parses a File line by line and replaces a substring" 7 | ::syntax: BatchSubstitude.bat OldStr NewStr File 8 | :: OldStr [in] - string to be replaced 9 | :: NewStr [in] - string to replace with 10 | :: File [in] - file to be parsed 11 | :$changed 20100115 12 | :$source http://www.dostips.com 13 | if "%~1"=="" findstr "^::" "%~f0"&GOTO:EOF 14 | for /f "tokens=1,* delims=]" %%A in ('"type %3|find /n /v """') do ( 15 | set "line=%%B" 16 | if defined line ( 17 | call set "line=echo.%%line:%~1=%~2%%" 18 | for /f "delims=" %%X in ('"echo."%%line%%""') do %%~X 19 | ) ELSE echo. 20 | ) 21 | -------------------------------------------------------------------------------- /build/lessc.wsf: -------------------------------------------------------------------------------- 1 | 8 | 9 | 77 | 78 | 79 | 154 | -------------------------------------------------------------------------------- /docs/assets/css/docs.css: -------------------------------------------------------------------------------- 1 | /* Add additional stylesheets below 2 | -------------------------------------------------- */ 3 | /* 4 | Bootstrap's documentation styles 5 | Special styles for presenting Bootstrap's documentation and examples 6 | */ 7 | 8 | /* Body and structure 9 | -------------------------------------------------- */ 10 | body { 11 | background-color: #fff; 12 | position: relative; 13 | } 14 | section { 15 | padding-top: 60px; 16 | } 17 | section > .row { 18 | margin-bottom: 10px; 19 | } 20 | 21 | 22 | /* Jumbotrons 23 | -------------------------------------------------- */ 24 | .jumbotron { 25 | min-width: 940px; 26 | padding-top: 40px; 27 | } 28 | .jumbotron .inner { 29 | background: transparent url(../img/grid-18px.png) top center; 30 | padding: 45px 0; 31 | -webkit-box-shadow: inset 0 10px 30px rgba(0,0,0,.3); 32 | -moz-box-shadow: inset 0 10px 30px rgba(0,0,0,.3); 33 | /* box-shadow: inset 0 10px 30px rgba(0,0,0,.3); 34 | */} 35 | .jumbotron h1, 36 | .jumbotron p { 37 | margin-bottom: 9px; 38 | color: #fff; 39 | text-align: center; 40 | text-shadow: 0 1px 1px rgba(0,0,0,.3); 41 | } 42 | .jumbotron h1 { 43 | font-size: 54px; 44 | line-height: 1; 45 | text-shadow: 0 1px 2px rgba(0,0,0,.5); 46 | } 47 | .jumbotron p { 48 | font-weight: 300; 49 | } 50 | .jumbotron .lead { 51 | font-size: 20px; 52 | line-height: 27px; 53 | } 54 | .jumbotron p a { 55 | color: #fff; 56 | font-weight: bold; 57 | } 58 | 59 | /* Specific jumbotrons 60 | ------------------------- */ 61 | /* main docs page */ 62 | .masthead { 63 | background-color: #049cd9; 64 | background-repeat: no-repeat; 65 | background-image: -webkit-gradient(linear, left top, left bottom, from(#004D9F), to(#049cd9)); 66 | background-image: -webkit-linear-gradient(#004D9F, #049cd9); 67 | background-image: -moz-linear-gradient(#004D9F, #049cd9); 68 | background-image: -o-linear-gradient(top, #004D9F, #049cd9); 69 | background-image: -khtml-gradient(linear, left top, left bottom, from(#004D9F), to(#049cd9)); 70 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#004D9F', endColorstr='#049cd9', GradientType=0); /* IE8 and down */ 71 | } 72 | /* supporting docs pages */ 73 | .subhead { 74 | background-color: #767d80; 75 | background-repeat: no-repeat; 76 | background-image: -webkit-gradient(linear, left top, left bottom, from(#565d60), to(#767d80)); 77 | background-image: -webkit-linear-gradient(#565d60, #767d80); 78 | background-image: -moz-linear-gradient(#565d60, #767d80); 79 | background-image: -o-linear-gradient(top, #565d60, #767d80); 80 | background-image: -khtml-gradient(linear, left top, left bottom, from(#565d60), to(#767d80)); 81 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#565d60', endColorstr='#767d80', GradientType=0); /* IE8 and down */ 82 | } 83 | .subhead .inner { 84 | padding: 36px 0 27px; 85 | } 86 | .subhead h1, 87 | .subhead p { 88 | text-align: left; 89 | } 90 | .subhead h1 { 91 | font-size: 40px; 92 | } 93 | .subhead p a { 94 | font-weight: normal; 95 | } 96 | 97 | 98 | /* Footer 99 | -------------------------------------------------- */ 100 | .footer { 101 | background-color: #eee; 102 | min-width: 940px; 103 | padding: 30px 0; 104 | text-shadow: 0 1px 0 #fff; 105 | border-top: 1px solid #e5e5e5; 106 | -webkit-box-shadow: inset 0 5px 15px rgba(0,0,0,.025); 107 | -moz-box-shadow: inset 0 5px 15px rgba(0,0,0,.025); 108 | /* box-shadow: inset 0 5px 15px rgba(0,0,0,.025); 109 | */} 110 | .footer p { 111 | color: #555; 112 | } 113 | 114 | 115 | /* Quickstart section for getting le code 116 | -------------------------------------------------- */ 117 | .quickstart { 118 | background-color: #f5f5f5; 119 | background-repeat: repeat-x; 120 | background-image: -khtml-gradient(linear, left top, left bottom, from(#f9f9f9), to(#f5f5f5)); 121 | background-image: -moz-linear-gradient(#f9f9f9, #f5f5f5); 122 | background-image: -ms-linear-gradient(#f9f9f9, #f5f5f5); 123 | background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f9f9f9), color-stop(100%, #f5f5f5)); 124 | background-image: -webkit-linear-gradient(#f9f9f9, #f5f5f5); 125 | background-image: -o-linear-gradient(#f9f9f9, #f5f5f5); 126 | -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#f5f5f5', GradientType=0)"; 127 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#f5f5f5', GradientType=0); 128 | background-image: linear-gradient(#f9f9f9, #f5f5f5); 129 | border-top: 1px solid #fff; 130 | border-bottom: 1px solid #eee; 131 | } 132 | .quickstart .container { 133 | margin-bottom: 0; 134 | } 135 | .quickstart .row { 136 | margin: 0 -20px; 137 | -webkit-box-shadow: 1px 0 0 #f9f9f9; 138 | -moz-box-shadow: 1px 0 0 #f9f9f9; 139 | box-shadow: 1px 0 0 #f9f9f9; 140 | } 141 | .quickstart [class*="span"] { 142 | width: 285px; 143 | height: 117px; 144 | margin-left: 0; 145 | padding: 17px 20px 26px; 146 | border-left: 1px solid #eee; 147 | -webkit-box-shadow: inset 1px 0 0 #f9f9f9; 148 | -moz-box-shadow: inset 1px 0 0 #f9f9f9; 149 | box-shadow: inset 1px 0 0 #f9f9f9; 150 | } 151 | .quickstart [class*="span"]:last-child { 152 | border-right: 1px solid #eee; 153 | width: 286px; 154 | } 155 | .quickstart h6, 156 | .quickstart p { 157 | line-height: 18px; 158 | text-align: center; 159 | margin-bottom: 9px; 160 | color: #333; 161 | } 162 | .quickstart .current-version, 163 | .quickstart .current-version a { 164 | color: #999; 165 | } 166 | .quickstart h6 { 167 | color: #999; 168 | } 169 | .quickstart textarea { 170 | display: block; 171 | width: 275px; 172 | height: auto; 173 | margin: 0 0 9px; 174 | line-height: 21px; 175 | white-space: nowrap; 176 | overflow: hidden; 177 | } 178 | 179 | 180 | /* Special grid styles 181 | -------------------------------------------------- */ 182 | .show-grid { 183 | margin-top: 10px; 184 | margin-bottom: 10px; 185 | } 186 | .show-grid [class*="span"] { 187 | background: #eee; 188 | text-align: center; 189 | -webkit-border-radius: 3px; 190 | -moz-border-radius: 3px; 191 | border-radius: 3px; 192 | min-height: 30px; 193 | line-height: 30px; 194 | } 195 | .show-grid:hover [class*="span"] { 196 | background: #ddd; 197 | } 198 | .show-grid .show-grid { 199 | margin-top: 0; 200 | margin-bottom: 0; 201 | } 202 | .show-grid .show-grid [class*="span"] { 203 | background-color: #ccc; 204 | } 205 | 206 | 207 | /* Render mini layout previews 208 | -------------------------------------------------- */ 209 | .mini-layout { 210 | border: 1px solid #ddd; 211 | -webkit-border-radius: 6px; 212 | -moz-border-radius: 6px; 213 | border-radius: 6px; 214 | -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.075); 215 | -moz-box-shadow: 0 1px 2px rgba(0,0,0,.075); 216 | box-shadow: 0 1px 2px rgba(0,0,0,.075); 217 | } 218 | .mini-layout { 219 | height: 240px; 220 | margin-bottom: 20px; 221 | padding: 9px; 222 | } 223 | .mini-layout div { 224 | -webkit-border-radius: 3px; 225 | -moz-border-radius: 3px; 226 | border-radius: 3px; 227 | } 228 | .mini-layout .mini-layout-body { 229 | background-color: #dceaf4; 230 | margin: 0 auto; 231 | width: 240px; 232 | height: 240px; 233 | } 234 | .mini-layout.fluid .mini-layout-sidebar, 235 | .mini-layout.fluid .mini-layout-header, 236 | .mini-layout.fluid .mini-layout-body { 237 | float: left; 238 | } 239 | .mini-layout.fluid .mini-layout-sidebar { 240 | background-color: #bbd8e9; 241 | width: 90px; 242 | height: 240px; 243 | } 244 | .mini-layout.fluid .mini-layout-body { 245 | width: 300px; 246 | margin-left: 10px; 247 | } 248 | 249 | 250 | /* Topbar special styles 251 | -------------------------------------------------- */ 252 | .topbar-wrapper { 253 | position: relative; 254 | height: 40px; 255 | margin: 5px 0 15px; 256 | } 257 | .topbar-wrapper .topbar { 258 | position: absolute; 259 | margin: 0 -20px; 260 | } 261 | .topbar-wrapper .topbar .topbar-inner { 262 | padding-left: 20px; 263 | padding-right: 20px; 264 | -webkit-border-radius: 4px; 265 | -moz-border-radius: 4px; 266 | border-radius: 4px; 267 | } 268 | 269 | /* Topbar in js docs 270 | ------------------------- */ 271 | #bootstrap-js .topbar-wrapper { 272 | z-index: 1; 273 | } 274 | #bootstrap-js .topbar-wrapper .topbar { 275 | position: absolute; 276 | margin: 0 -20px; 277 | } 278 | #bootstrap-js .topbar-wrapper .topbar .topbar-inner { 279 | padding-left: 20px; 280 | padding-right: 20px; 281 | -webkit-border-radius: 4px; 282 | -moz-border-radius: 4px; 283 | border-radius: 4px; 284 | } 285 | #bootstrap-js .topbar-wrapper .container { 286 | width: auto; 287 | } 288 | 289 | 290 | /* Popover docs 291 | -------------------------------------------------- */ 292 | .popover-well { 293 | min-height: 160px; 294 | } 295 | .popover-well .popover { 296 | display: block; 297 | } 298 | .popover-well .popover-wrapper { 299 | width: 50%; 300 | height: 160px; 301 | float: left; 302 | margin-left: 55px; 303 | position: relative; 304 | } 305 | .popover-well .popover-menu-wrapper { 306 | height: 80px; 307 | } 308 | img.large-bird { 309 | margin: 5px 0 0 310px; 310 | opacity: .1; 311 | } 312 | 313 | /* Pretty Print 314 | -------------------------------------------------- */ 315 | pre.prettyprint { 316 | overflow: hidden; 317 | } 318 | 319 | /* Icon Buttons Grid 320 | -------------------------------------------------- */ 321 | .icon-grid { 322 | margin-left: 0px; 323 | } 324 | 325 | .icon-grid li { 326 | background-color: #F5F5F5; 327 | display: block; 328 | float: left; 329 | margin: 5px; 330 | padding: 15px 10px; 331 | text-align: center; 332 | min-width: 110px; 333 | } 334 | 335 | .icon-grid li code { 336 | display: block; 337 | margin-bottom: 15px; 338 | padding: 12px 3px; 339 | font-size: 11px; 340 | } 341 | 342 | .btn.icon.newcolor:before { 343 | color: #FFFF00; 344 | } 345 | -------------------------------------------------------------------------------- /docs/assets/ico/bootstrap-apple-114x114.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lightglitch/bootstrap-xtra/f0930cce924cc6b26b5113ab6f6a8610458fe5a2/docs/assets/ico/bootstrap-apple-114x114.png -------------------------------------------------------------------------------- /docs/assets/ico/bootstrap-apple-57x57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lightglitch/bootstrap-xtra/f0930cce924cc6b26b5113ab6f6a8610458fe5a2/docs/assets/ico/bootstrap-apple-57x57.png -------------------------------------------------------------------------------- /docs/assets/ico/bootstrap-apple-72x72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lightglitch/bootstrap-xtra/f0930cce924cc6b26b5113ab6f6a8610458fe5a2/docs/assets/ico/bootstrap-apple-72x72.png -------------------------------------------------------------------------------- /docs/assets/ico/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lightglitch/bootstrap-xtra/f0930cce924cc6b26b5113ab6f6a8610458fe5a2/docs/assets/ico/favicon.ico -------------------------------------------------------------------------------- /docs/assets/img/bird.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lightglitch/bootstrap-xtra/f0930cce924cc6b26b5113ab6f6a8610458fe5a2/docs/assets/img/bird.png -------------------------------------------------------------------------------- /docs/assets/img/browsers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lightglitch/bootstrap-xtra/f0930cce924cc6b26b5113ab6f6a8610458fe5a2/docs/assets/img/browsers.png -------------------------------------------------------------------------------- /docs/assets/img/example-diagram-01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lightglitch/bootstrap-xtra/f0930cce924cc6b26b5113ab6f6a8610458fe5a2/docs/assets/img/example-diagram-01.png -------------------------------------------------------------------------------- /docs/assets/img/example-diagram-02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lightglitch/bootstrap-xtra/f0930cce924cc6b26b5113ab6f6a8610458fe5a2/docs/assets/img/example-diagram-02.png -------------------------------------------------------------------------------- /docs/assets/img/example-diagram-03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lightglitch/bootstrap-xtra/f0930cce924cc6b26b5113ab6f6a8610458fe5a2/docs/assets/img/example-diagram-03.png -------------------------------------------------------------------------------- /docs/assets/img/grid-18px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lightglitch/bootstrap-xtra/f0930cce924cc6b26b5113ab6f6a8610458fe5a2/docs/assets/img/grid-18px.png -------------------------------------------------------------------------------- /docs/assets/img/twitter-logo-no-bird.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lightglitch/bootstrap-xtra/f0930cce924cc6b26b5113ab6f6a8610458fe5a2/docs/assets/img/twitter-logo-no-bird.png -------------------------------------------------------------------------------- /docs/assets/js/application.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function(){ 2 | 3 | // table sort example 4 | // ================== 5 | 6 | $("#sortTableExample").tablesorter( { sortList: [[ 1, 0 ]] } ) 7 | 8 | 9 | // add on logic 10 | // ============ 11 | 12 | $('.add-on :checkbox').click(function () { 13 | if ($(this).attr('checked')) { 14 | $(this).parents('.add-on').addClass('active') 15 | } else { 16 | $(this).parents('.add-on').removeClass('active') 17 | } 18 | }) 19 | 20 | 21 | // Disable certain links in docs 22 | // ============================= 23 | // Please do not carry these styles over to your projects, it's merely here to prevent button clicks form taking you away from your spot on page 24 | 25 | $('ul.tabs a, ul.pills a, .pagination a, .well .btn, .actions .btn, .alert-message .btn, a.close').click(function (e) { 26 | e.preventDefault() 27 | }) 28 | 29 | // Copy code blocks in docs 30 | $(".copy-code").focus(function () { 31 | var el = this; 32 | // push select to event loop for chrome :{o 33 | setTimeout(function () { $(el).select(); }, 0); 34 | }); 35 | 36 | 37 | // POSITION STATIC TWIPSIES 38 | // ======================== 39 | 40 | $(window).bind( 'load resize', function () { 41 | $(".twipsies a").each(function () { 42 | $(this) 43 | .twipsy({ 44 | live: false 45 | , placement: $(this).attr('title') 46 | , trigger: 'manual' 47 | , offset: 2 48 | }) 49 | .twipsy('show') 50 | }) 51 | }) 52 | }); 53 | -------------------------------------------------------------------------------- /docs/assets/js/google-code-prettify/prettify.css: -------------------------------------------------------------------------------- 1 | .com { color: #93a1a1; } 2 | .lit { color: #195f91; } 3 | .pun, .opn, .clo { color: #93a1a1; } 4 | .fun { color: #dc322f; } 5 | .str, .atv { color: #268bd2; } 6 | .kwd, .tag { color: #195f91; } 7 | .typ, .atn, .dec, .var { color: #CB4B16; } 8 | .pln { color: #93a1a1; } 9 | .prettyprint { 10 | background-color: #fefbf3; 11 | padding: 9px; 12 | border: 1px solid rgba(0,0,0,.2); 13 | -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.1); 14 | -moz-box-shadow: 0 1px 2px rgba(0,0,0,.1); 15 | box-shadow: 0 1px 2px rgba(0,0,0,.1); 16 | } 17 | 18 | /* Specify class=linenums on a pre to get line numbering */ 19 | ol.linenums { 20 | margin: 0 0 0 40px; 21 | } 22 | /* IE indents via margin-left */ 23 | ol.linenums li { 24 | padding: 0 5px; 25 | color: rgba(0,0,0,.15); 26 | line-height: 20px; 27 | -webkit-border-radius: 2px; 28 | -moz-border-radius: 2px; 29 | border-radius: 2px; 30 | } 31 | /* Alternate shading for lines */ 32 | li.L1, li.L3, li.L5, li.L7, li.L9 { } 33 | 34 | /* 35 | $base03: #002b36; 36 | $base02: #073642; 37 | $base01: #586e75; 38 | $base00: #657b83; 39 | $base0: #839496; 40 | $base1: #93a1a1; 41 | $base2: #eee8d5; 42 | $base3: #fdf6e3; 43 | $yellow: #b58900; 44 | $orange: #cb4b16; 45 | $red: #dc322f; 46 | $magenta: #d33682; 47 | $violet: #6c71c4; 48 | $blue: #268bd2; 49 | $cyan: #2aa198; 50 | $green: #859900; 51 | */ 52 | 53 | 54 | /* 55 | #1d1f21 Background 56 | #282a2e Current Line 57 | #373b41 Selection 58 | #c5c8c6 Foreground 59 | #969896 Comment 60 | #cc6666 Red 61 | #de935f Orange 62 | #f0c674 Yellow 63 | #b5bd68 Green 64 | #8abeb7 Aqua 65 | #81a2be Blue 66 | #b294bb Purple 67 | */ 68 | 69 | 70 | /* DARK THEME */ 71 | /* ---------- */ 72 | 73 | .prettyprint-dark { 74 | background-color: #1d1f21; 75 | border: 0; 76 | padding: 10px; 77 | } 78 | .prettyprint-dark .linenums li { 79 | color: #444; 80 | } 81 | .prettyprint-dark .linenums li:hover { 82 | background-color: #282a2e; 83 | } 84 | /* tags in html */ 85 | .prettyprint-dark .kwd, 86 | .prettyprint-dark .tag { color: #cc6666; } 87 | /* html attr */ 88 | .prettyprint-dark .typ, 89 | .prettyprint-dark .atn, 90 | .prettyprint-dark .dec, 91 | .prettyprint-dark .var { color: #de935f; } 92 | /* html attr values */ 93 | .prettyprint-dark .str, 94 | .prettyprint-dark .atv { color: #b5bd68; } 95 | -------------------------------------------------------------------------------- /docs/assets/js/google-code-prettify/prettify.js: -------------------------------------------------------------------------------- 1 | var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; 2 | (function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a= 3 | [],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m), 9 | l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, 10 | q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/, 11 | q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g, 12 | "");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a), 13 | a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e} 14 | for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], 18 | "catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"], 19 | H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], 20 | J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+ 21 | I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), 22 | ["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css", 23 | /^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), 24 | ["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", 25 | hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b= 26 | !k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p 2 | 3 | 4 | 5 | Bootstrap, from Twitter 6 | 7 | 8 | 9 | 10 | 13 | 14 | 15 | 16 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 |
79 |
80 |
81 | Project name 82 | 87 |
88 | 89 | 90 | 91 |
92 |
93 |
94 |
95 | 96 |
97 | 98 |
99 | 102 |
103 |
104 |

Main content

105 |
106 |
107 |

Secondary content

108 |
109 |
110 |
111 | 112 |
113 |

© Company 2011

114 |
115 | 116 |
117 | 118 | 119 | 120 | -------------------------------------------------------------------------------- /examples/fluid.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Bootstrap, from Twitter 6 | 7 | 8 | 9 | 10 | 13 | 14 | 15 | 16 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
32 |
33 |
34 | Project name 35 | 40 |

Logged in as username

41 |
42 |
43 |
44 | 45 |
46 | 71 |
72 | 73 |
74 |

Hello, world!

75 |

Vestibulum id ligula porta felis euismod semper. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.

76 |

Learn more »

77 |
78 | 79 |
80 |
81 |

Heading

82 |

Etiam porta sem malesuada magna mollis euismod. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.

83 |

View details »

84 |
85 |
86 |

Heading

87 |

Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.

88 |

View details »

89 |
90 |
91 |

Heading

92 |

Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.

93 |

View details »

94 |
95 |
96 |
97 | 98 |
99 |
100 |

Heading

101 |

Etiam porta sem malesuada magna mollis euismod. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.

102 |

View details »

103 |
104 |
105 |

Heading

106 |

Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.

107 |

View details »

108 |
109 |
110 |

Heading

111 |

Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.

112 |

View details »

113 |
114 |
115 |
116 |

© Company 2011

117 |
118 |
119 |
120 | 121 | 122 | -------------------------------------------------------------------------------- /examples/hero.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Bootstrap, from Twitter 6 | 7 | 8 | 9 | 10 | 13 | 14 | 15 | 16 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
32 |
33 |
34 | Project name 35 | 40 |
41 |
42 |
43 | 44 |
45 | 46 | 47 |
48 |

Hello, world!

49 |

Vestibulum id ligula porta felis euismod semper. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.

50 |

Learn more »

51 |
52 | 53 | 54 |
55 |
56 |

Heading

57 |

Etiam porta sem malesuada magna mollis euismod. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.

58 |

View details »

59 |
60 |
61 |

Heading

62 |

Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.

63 |

View details »

64 |
65 |
66 |

Heading

67 |

Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.

68 |

View details »

69 |
70 |
71 | 72 |
73 |

© Company 2011

74 |
75 | 76 |
77 | 78 | 79 | 80 | -------------------------------------------------------------------------------- /fonts/iconic_stroke.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lightglitch/bootstrap-xtra/f0930cce924cc6b26b5113ab6f6a8610458fe5a2/fonts/iconic_stroke.eot -------------------------------------------------------------------------------- /fonts/iconic_stroke.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | This is a custom SVG webfont generated by Font Squirrel. 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /fonts/iconic_stroke.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lightglitch/bootstrap-xtra/f0930cce924cc6b26b5113ab6f6a8610458fe5a2/fonts/iconic_stroke.ttf -------------------------------------------------------------------------------- /fonts/iconic_stroke.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lightglitch/bootstrap-xtra/f0930cce924cc6b26b5113ab6f6a8610458fe5a2/fonts/iconic_stroke.woff -------------------------------------------------------------------------------- /js/bootstrap-alerts.js: -------------------------------------------------------------------------------- 1 | /* ========================================================== 2 | * bootstrap-alerts.js v1.4.0 3 | * http://twitter.github.com/bootstrap/javascript.html#alerts 4 | * ========================================================== 5 | * Copyright 2011 Twitter, Inc. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ========================================================== */ 19 | 20 | 21 | !function( $ ){ 22 | 23 | "use strict" 24 | 25 | /* CSS TRANSITION SUPPORT (https://gist.github.com/373874) 26 | * ======================================================= */ 27 | 28 | var transitionEnd 29 | 30 | $(document).ready(function () { 31 | 32 | $.support.transition = (function () { 33 | var thisBody = document.body || document.documentElement 34 | , thisStyle = thisBody.style 35 | , support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined 36 | return support 37 | })() 38 | 39 | // set CSS transition event type 40 | if ( $.support.transition ) { 41 | transitionEnd = "TransitionEnd" 42 | if ( $.browser.webkit ) { 43 | transitionEnd = "webkitTransitionEnd" 44 | } else if ( $.browser.mozilla ) { 45 | transitionEnd = "transitionend" 46 | } else if ( $.browser.opera ) { 47 | transitionEnd = "oTransitionEnd" 48 | } 49 | } 50 | 51 | }) 52 | 53 | /* ALERT CLASS DEFINITION 54 | * ====================== */ 55 | 56 | var Alert = function ( content, options ) { 57 | if (options == 'close') return this.close.call(content) 58 | this.settings = $.extend({}, $.fn.alert.defaults, options) 59 | this.$element = $(content) 60 | .delegate(this.settings.selector, 'click', this.close) 61 | } 62 | 63 | Alert.prototype = { 64 | 65 | close: function (e) { 66 | var $element = $(this) 67 | , className = 'alert-message' 68 | 69 | $element = $element.hasClass(className) ? $element : $element.parent() 70 | 71 | e && e.preventDefault() 72 | $element.removeClass('in') 73 | 74 | function removeElement () { 75 | $element.remove() 76 | } 77 | 78 | $.support.transition && $element.hasClass('fade') ? 79 | $element.bind(transitionEnd, removeElement) : 80 | removeElement() 81 | } 82 | 83 | } 84 | 85 | 86 | /* ALERT PLUGIN DEFINITION 87 | * ======================= */ 88 | 89 | $.fn.alert = function ( options ) { 90 | 91 | if ( options === true ) { 92 | return this.data('alert') 93 | } 94 | 95 | return this.each(function () { 96 | var $this = $(this) 97 | , data 98 | 99 | if ( typeof options == 'string' ) { 100 | 101 | data = $this.data('alert') 102 | 103 | if (typeof data == 'object') { 104 | return data[options].call( $this ) 105 | } 106 | 107 | } 108 | 109 | $(this).data('alert', new Alert( this, options )) 110 | 111 | }) 112 | } 113 | 114 | $.fn.alert.defaults = { 115 | selector: '.close' 116 | } 117 | 118 | $(document).ready(function () { 119 | new Alert($('body'), { 120 | selector: '.alert-message[data-alert] .close' 121 | }) 122 | }) 123 | 124 | }( window.jQuery || window.ender ); -------------------------------------------------------------------------------- /js/bootstrap-buttons.js: -------------------------------------------------------------------------------- 1 | /* ============================================================ 2 | * bootstrap-buttons.js v1.4.0 3 | * http://twitter.github.com/bootstrap/javascript.html#buttons 4 | * ============================================================ 5 | * Copyright 2011 Twitter, Inc. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ============================================================ */ 19 | 20 | !function( $ ){ 21 | 22 | "use strict" 23 | 24 | function setState(el, state) { 25 | var d = 'disabled' 26 | , $el = $(el) 27 | , data = $el.data() 28 | 29 | state = state + 'Text' 30 | data.resetText || $el.data('resetText', $el.html()) 31 | 32 | $el.html( data[state] || $.fn.button.defaults[state] ) 33 | 34 | state == 'loadingText' ? 35 | $el.addClass(d).attr(d, d) : 36 | $el.removeClass(d).removeAttr(d) 37 | } 38 | 39 | function toggle(el) { 40 | $(el).toggleClass('active') 41 | } 42 | 43 | $.fn.button = function(options) { 44 | return this.each(function () { 45 | if (options == 'toggle') { 46 | return toggle(this) 47 | } 48 | options && setState(this, options) 49 | }) 50 | } 51 | 52 | $.fn.button.defaults = { 53 | loadingText: 'loading...' 54 | } 55 | 56 | $(function () { 57 | $('body').delegate('.btn[data-toggle]', 'click', function () { 58 | $(this).button('toggle') 59 | }) 60 | }) 61 | 62 | }( window.jQuery || window.ender ); -------------------------------------------------------------------------------- /js/bootstrap-dropdown.js: -------------------------------------------------------------------------------- 1 | /* ============================================================ 2 | * bootstrap-dropdown.js v1.4.0 3 | * http://twitter.github.com/bootstrap/javascript.html#dropdown 4 | * ============================================================ 5 | * Copyright 2011 Twitter, Inc. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ============================================================ */ 19 | 20 | 21 | !function( $ ){ 22 | 23 | "use strict" 24 | 25 | /* DROPDOWN PLUGIN DEFINITION 26 | * ========================== */ 27 | 28 | $.fn.dropdown = function ( selector ) { 29 | return this.each(function () { 30 | $(this).delegate(selector || d, 'click', function (e) { 31 | var li = $(this).parent('li') 32 | , isActive = li.hasClass('open') 33 | 34 | clearMenus() 35 | !isActive && li.toggleClass('open') 36 | return false 37 | }) 38 | }) 39 | } 40 | 41 | /* APPLY TO STANDARD DROPDOWN ELEMENTS 42 | * =================================== */ 43 | 44 | var d = 'a.menu, .dropdown-toggle' 45 | 46 | function clearMenus() { 47 | $(d).parent('li').removeClass('open') 48 | } 49 | 50 | $(function () { 51 | $('html').bind("click", clearMenus) 52 | $('body').dropdown( '[data-dropdown] a.menu, [data-dropdown] .dropdown-toggle' ) 53 | }) 54 | 55 | }( window.jQuery || window.ender ); 56 | -------------------------------------------------------------------------------- /js/bootstrap-modal.js: -------------------------------------------------------------------------------- 1 | /* ========================================================= 2 | * bootstrap-modal.js v1.4.0 3 | * http://twitter.github.com/bootstrap/javascript.html#modal 4 | * ========================================================= 5 | * Copyright 2011 Twitter, Inc. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | * ========================================================= */ 19 | 20 | 21 | !function( $ ){ 22 | 23 | "use strict" 24 | 25 | /* CSS TRANSITION SUPPORT (https://gist.github.com/373874) 26 | * ======================================================= */ 27 | 28 | var transitionEnd 29 | 30 | $(document).ready(function () { 31 | 32 | $.support.transition = (function () { 33 | var thisBody = document.body || document.documentElement 34 | , thisStyle = thisBody.style 35 | , support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined 36 | return support 37 | })() 38 | 39 | // set CSS transition event type 40 | if ( $.support.transition ) { 41 | transitionEnd = "TransitionEnd" 42 | if ( $.browser.webkit ) { 43 | transitionEnd = "webkitTransitionEnd" 44 | } else if ( $.browser.mozilla ) { 45 | transitionEnd = "transitionend" 46 | } else if ( $.browser.opera ) { 47 | transitionEnd = "oTransitionEnd" 48 | } 49 | } 50 | 51 | }) 52 | 53 | 54 | /* MODAL PUBLIC CLASS DEFINITION 55 | * ============================= */ 56 | 57 | var Modal = function ( content, options ) { 58 | this.settings = $.extend({}, $.fn.modal.defaults, options) 59 | this.$element = $(content) 60 | .delegate('.close', 'click.modal', $.proxy(this.hide, this)) 61 | 62 | if ( this.settings.show ) { 63 | this.show() 64 | } 65 | 66 | return this 67 | } 68 | 69 | Modal.prototype = { 70 | 71 | toggle: function () { 72 | return this[!this.isShown ? 'show' : 'hide']() 73 | } 74 | 75 | , show: function () { 76 | var that = this 77 | this.isShown = true 78 | this.$element.trigger('show') 79 | 80 | escape.call(this) 81 | backdrop.call(this, function () { 82 | var transition = $.support.transition && that.$element.hasClass('fade') 83 | 84 | that.$element 85 | .appendTo(document.body) 86 | .show() 87 | 88 | if (transition) { 89 | that.$element[0].offsetWidth // force reflow 90 | } 91 | 92 | that.$element.addClass('in') 93 | 94 | transition ? 95 | that.$element.one(transitionEnd, function () { that.$element.trigger('shown') }) : 96 | that.$element.trigger('shown') 97 | 98 | }) 99 | 100 | return this 101 | } 102 | 103 | , hide: function (e) { 104 | e && e.preventDefault() 105 | 106 | if ( !this.isShown ) { 107 | return this 108 | } 109 | 110 | var that = this 111 | this.isShown = false 112 | 113 | escape.call(this) 114 | 115 | this.$element 116 | .trigger('hide') 117 | .removeClass('in') 118 | 119 | $.support.transition && this.$element.hasClass('fade') ? 120 | hideWithTransition.call(this) : 121 | hideModal.call(this) 122 | 123 | return this 124 | } 125 | 126 | } 127 | 128 | 129 | /* MODAL PRIVATE METHODS 130 | * ===================== */ 131 | 132 | function hideWithTransition() { 133 | // firefox drops transitionEnd events :{o 134 | var that = this 135 | , timeout = setTimeout(function () { 136 | that.$element.unbind(transitionEnd) 137 | hideModal.call(that) 138 | }, 500) 139 | 140 | this.$element.one(transitionEnd, function () { 141 | clearTimeout(timeout) 142 | hideModal.call(that) 143 | }) 144 | } 145 | 146 | function hideModal (that) { 147 | this.$element 148 | .hide() 149 | .trigger('hidden') 150 | 151 | backdrop.call(this) 152 | } 153 | 154 | function backdrop ( callback ) { 155 | var that = this 156 | , animate = this.$element.hasClass('fade') ? 'fade' : '' 157 | if ( this.isShown && this.settings.backdrop ) { 158 | var doAnimate = $.support.transition && animate 159 | 160 | this.$backdrop = $('