├── .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 |
80 |
81 |
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",/^[^]+/],["dec",/^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^
12 |
13 |
14 |
15 |
16 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |