Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
59503e71ff | ||
|
|
8182b1ef69 | ||
|
|
1f7a64aa3d | ||
|
|
664a838cd6 | ||
|
|
6d4867e799 | ||
|
|
56fe54df43 | ||
|
|
cd89c34d99 | ||
|
|
7f3a2b3813 | ||
|
|
e12c66aabe | ||
|
|
40fddffeec | ||
|
|
5dff63d767 | ||
|
|
685039d608 | ||
|
|
c35b04cccd | ||
|
|
debc4b752f | ||
|
|
f4b51b373b | ||
|
|
d36f3d0a59 | ||
|
|
7c2ed0c095 | ||
|
|
5eed370856 | ||
|
|
58cb7c631d | ||
|
|
91eef351e4 | ||
|
|
0630cd62b3 | ||
|
|
0090fa1a6e | ||
|
|
ac7f571e53 | ||
|
|
e5a284d442 | ||
|
|
1a11c526b9 | ||
|
|
5a28bd1e78 | ||
|
|
ee5d2ec91a | ||
|
|
c8f4325c19 | ||
|
|
67714d8347 | ||
|
|
0f23883283 | ||
|
|
2e52946fd3 | ||
|
|
4109c62cf7 | ||
|
|
7154e378b2 | ||
|
|
95cb6f07a8 | ||
|
|
8fd126ba1b | ||
|
|
ce292a8bb8 | ||
|
|
a97b9c1122 | ||
|
|
354252b4b5 | ||
|
|
bf6cdff88a | ||
|
|
ffbed0980c | ||
|
|
ad1e9697ae | ||
|
|
e8ef7d5e7b | ||
|
|
349bdc12a7 | ||
|
|
635ee36e11 | ||
|
|
6e72760de5 | ||
|
|
6a2c519152 | ||
|
|
5de8b277c6 | ||
|
|
a3e9fc547c | ||
|
|
f4ac080f9e | ||
|
|
1dbb942d5b | ||
|
|
95a3cd8732 | ||
|
|
cecfe72060 | ||
|
|
145a36323c | ||
|
|
9c1d8e032b | ||
|
|
700457c62a | ||
|
|
67aa00d0bb | ||
|
|
aef230d40a | ||
|
|
f7d4fb61ce | ||
|
|
dd5cffc308 | ||
|
|
c7eb1ab49a | ||
|
|
a07851d6af | ||
|
|
04851652db | ||
|
|
1fd5e55881 | ||
|
|
1a8d7576e0 | ||
|
|
922b5fba53 | ||
|
|
9ebc6b4c97 | ||
|
|
5d961eaeb3 | ||
|
|
f4e879a936 | ||
|
|
c414e57dcc | ||
|
|
305374ab1a | ||
|
|
b410eeb6dd | ||
|
|
3ff78d138a | ||
|
|
aa8e6b081c | ||
|
|
1cc1852a9a | ||
|
|
1562381114 | ||
|
|
af1dbf6581 | ||
|
|
d3721c504e | ||
|
|
bcef12dfcc | ||
|
|
26e683f1d0 | ||
|
|
426feeef6a | ||
|
|
203d75770c | ||
|
|
d0120c94a0 | ||
|
|
933136d382 | ||
|
|
a613a8ebd0 | ||
|
|
27c3d5a90b | ||
|
|
69e4522a4e | ||
|
|
6b9f70797d | ||
|
|
03bdf82ca2 | ||
|
|
738fac18de | ||
|
|
492ccedcab | ||
|
|
79090ac121 | ||
|
|
bcd9294cc4 | ||
|
|
d98a2e9234 | ||
|
|
ac6eff280d | ||
|
|
9c2b2c589d | ||
|
|
20b10b5d66 | ||
|
|
eaf464a2c5 | ||
|
|
cb9234ba46 | ||
|
|
7a8d6b1976 | ||
|
|
fb1d4a0f04 | ||
|
|
1fa42e2f71 | ||
|
|
235811cd8a | ||
|
|
a95c15a530 | ||
|
|
d3e922f0c8 | ||
|
|
3cbc40b129 | ||
|
|
29c63fdb6a | ||
|
|
3524aa909c | ||
|
|
2f598e35a0 | ||
|
|
1aeca545c8 | ||
|
|
efd5e29ff4 | ||
|
|
0112b56c9c | ||
|
|
6a839fb2c3 | ||
|
|
ff8b997a1f | ||
|
|
7bf3419647 | ||
|
|
bd55824827 | ||
|
|
2087339035 | ||
|
|
a397130669 | ||
|
|
15759d9e7c | ||
|
|
fbebb046f7 | ||
|
|
6c9547f411 | ||
|
|
9ee77f2c11 | ||
|
|
a7b96b3e59 | ||
|
|
5cc4fcf6a2 | ||
|
|
0b78033f0b | ||
|
|
d12737719f | ||
|
|
2c98e18724 | ||
|
|
4e17b1975e | ||
|
|
ca9588c896 | ||
|
|
7525aac830 | ||
|
|
d57598827f | ||
|
|
af8261af93 | ||
|
|
7bdd9551ed | ||
|
|
8615987243 | ||
|
|
ae3382d797 | ||
|
|
163f58ff81 | ||
|
|
dd94f8d509 | ||
|
|
1a781a707e | ||
|
|
ccf7697185 | ||
|
|
0a8efd5320 | ||
|
|
43760eb202 | ||
|
|
fb74018ae2 | ||
|
|
6abb2059eb | ||
|
|
4309153051 | ||
|
|
be9ae70060 | ||
|
|
591908eccf | ||
|
|
1562a8a010 | ||
|
|
34268672be | ||
|
|
74a3c763b4 | ||
|
|
0e8427e7b1 | ||
|
|
3a6f58598c | ||
|
|
70fecd1115 | ||
|
|
80d03e143c | ||
|
|
8609a77bd2 | ||
|
|
0ed6d3b28e | ||
|
|
6f3b4b857f | ||
|
|
a0ec422444 | ||
|
|
b86969f762 | ||
|
|
4410ede8ed | ||
|
|
92a54a7b72 | ||
|
|
f3b6cf1d6d | ||
|
|
5ad5dde1e2 | ||
|
|
a139167489 | ||
|
|
9b524a16e9 | ||
|
|
917df6703c | ||
|
|
8bd67bb124 | ||
|
|
20221a67c2 | ||
|
|
b4cc6c74f5 | ||
|
|
e3ae517555 | ||
|
|
8665fa8c50 | ||
|
|
575072b74b | ||
|
|
bb16b9bef2 | ||
|
|
664a5c4438 | ||
|
|
1cfb3fd03a | ||
|
|
45cec4a6fa | ||
|
|
d908731566 | ||
|
|
187b3bd4bd | ||
|
|
a78faee589 | ||
|
|
80abc50d3e | ||
|
|
f3ad4c7183 | ||
|
|
e423fc2629 | ||
|
|
f50b2c9b92 | ||
|
|
dfd0326186 | ||
|
|
d149a131c1 | ||
|
|
f046c12bd2 | ||
|
|
06d4756114 | ||
|
|
d2630ff84e | ||
|
|
143b3db2c9 | ||
|
|
331c85724a | ||
|
|
9c74f21966 | ||
|
|
91fe8bc0f4 | ||
|
|
2b8fc018ba | ||
|
|
e18a35784a | ||
|
|
7ef7547a14 | ||
|
|
6df925bc75 | ||
|
|
9f608411cb | ||
|
|
f81e5fbe9f | ||
|
|
9b09d1de86 | ||
|
|
1c7d346767 | ||
|
|
8247cb3362 | ||
|
|
f4f34ab12f | ||
|
|
59d570fc16 | ||
|
|
3470c0dc49 | ||
|
|
89ccbdf8d1 | ||
|
|
5f2d2893d2 | ||
|
|
8482cc4cb3 | ||
|
|
adbbf17ee4 | ||
|
|
16d12396d0 | ||
|
|
532242e626 | ||
|
|
f28140897e | ||
|
|
e145619f6d | ||
|
|
82457603b6 | ||
|
|
ad546c9631 | ||
|
|
51ec513b5c | ||
|
|
c1775da187 | ||
|
|
f08b407667 | ||
|
|
df757fb040 | ||
|
|
ac6e667ad9 | ||
|
|
3d58b46226 | ||
|
|
1948e985a3 | ||
|
|
ba97f56912 | ||
|
|
bbb2fb3395 | ||
|
|
fed3b59e46 | ||
|
|
dc4a864aaa | ||
|
|
29e6ef7c70 | ||
|
|
db940b3d8f | ||
|
|
1a1816b5bd | ||
|
|
c900d72857 | ||
|
|
2068b74ea8 | ||
|
|
7609fd4dc6 | ||
|
|
f5bd4b3c8f | ||
|
|
b776cae902 | ||
|
|
ec05ebc5ed | ||
|
|
1455bc9f8f | ||
|
|
b559f2b8d0 | ||
|
|
e7d45184f1 | ||
|
|
5d02b8c3c6 | ||
|
|
7fa1578c49 | ||
|
|
1e6d386b8d | ||
|
|
18760393d7 | ||
|
|
60826077e7 | ||
|
|
19b70dc414 | ||
|
|
97b3057824 | ||
|
|
918a17a30b |
@@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
# OS or Editor folders
|
# OS or Editor folders
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
._*
|
||||||
Thumbs.db
|
Thumbs.db
|
||||||
.cache
|
.cache
|
||||||
.project
|
.project
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ docs: bootstrap
|
|||||||
cp img/* docs/assets/img/
|
cp img/* docs/assets/img/
|
||||||
cp js/*.js docs/assets/js/
|
cp js/*.js docs/assets/js/
|
||||||
cp js/tests/vendor/jquery.js docs/assets/js/
|
cp js/tests/vendor/jquery.js docs/assets/js/
|
||||||
cp js/tests/vendor/jquery.js docs/assets/js/
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# BUILD SIMPLE BOOTSTRAP DIRECTORY
|
# BUILD SIMPLE BOOTSTRAP DIRECTORY
|
||||||
@@ -36,7 +35,10 @@ bootstrap:
|
|||||||
lessc ${BOOTSTRAP_RESPONSIVE_LESS} > bootstrap/css/bootstrap-responsive.css
|
lessc ${BOOTSTRAP_RESPONSIVE_LESS} > bootstrap/css/bootstrap-responsive.css
|
||||||
lessc --compress ${BOOTSTRAP_RESPONSIVE_LESS} > bootstrap/css/bootstrap-responsive.min.css
|
lessc --compress ${BOOTSTRAP_RESPONSIVE_LESS} > bootstrap/css/bootstrap-responsive.min.css
|
||||||
cat js/bootstrap-transition.js js/bootstrap-alert.js js/bootstrap-button.js js/bootstrap-carousel.js js/bootstrap-collapse.js js/bootstrap-dropdown.js js/bootstrap-modal.js js/bootstrap-tooltip.js js/bootstrap-popover.js js/bootstrap-scrollspy.js js/bootstrap-tab.js js/bootstrap-typeahead.js > bootstrap/js/bootstrap.js
|
cat js/bootstrap-transition.js js/bootstrap-alert.js js/bootstrap-button.js js/bootstrap-carousel.js js/bootstrap-collapse.js js/bootstrap-dropdown.js js/bootstrap-modal.js js/bootstrap-tooltip.js js/bootstrap-popover.js js/bootstrap-scrollspy.js js/bootstrap-tab.js js/bootstrap-typeahead.js > bootstrap/js/bootstrap.js
|
||||||
uglifyjs -nc bootstrap/js/bootstrap.js > bootstrap/js/bootstrap.min.js
|
uglifyjs -nc bootstrap/js/bootstrap.js > bootstrap/js/bootstrap.min.tmp.js
|
||||||
|
echo "/**\n* Bootstrap.js by @fat & @mdo\n* Copyright 2012 Twitter, Inc.\n* http://www.apache.org/licenses/LICENSE-2.0.txt\n*/" > bootstrap/js/copyright.js
|
||||||
|
cat bootstrap/js/copyright.js bootstrap/js/bootstrap.min.tmp.js > bootstrap/js/bootstrap.min.js
|
||||||
|
rm bootstrap/js/copyright.js bootstrap/js/bootstrap.min.tmp.js
|
||||||
|
|
||||||
#
|
#
|
||||||
# MAKE FOR GH-PAGES 4 FAT & MDO ONLY (O_O )
|
# MAKE FOR GH-PAGES 4 FAT & MDO ONLY (O_O )
|
||||||
@@ -56,4 +58,4 @@ watch:
|
|||||||
watchr -e "watch('less/.*\.less') { system 'make' }"
|
watchr -e "watch('less/.*\.less') { system 'make' }"
|
||||||
|
|
||||||
|
|
||||||
.PHONY: dist docs watch gh-pages
|
.PHONY: docs watch gh-pages
|
||||||
|
|||||||
@@ -1,9 +1,17 @@
|
|||||||
TWITTER BOOTSTRAP
|
[Twitter Bootstrap](http://twitter.github.com/bootstrap)
|
||||||
=================
|
=================
|
||||||
|
|
||||||
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.
|
Bootstrap provides simple and flexible HTML, CSS, and Javascript for popular user interface components and interactions. In other words, it's a front-end toolkit for faster, more beautiful web development. It's created and maintained by [Mark Otto](http://twitter.com/mdo) and [Jacob Thornton](http://twitter.com/fat) at Twitter.
|
||||||
|
|
||||||
|
To get started, checkout http://twitter.github.com/bootstrap!
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Quick start
|
||||||
|
-----------
|
||||||
|
|
||||||
|
Clone the repo, `git clone git@github.com:twitter/bootstrap.git`, or [download the latest release](https://github.com/twitter/bootstrap/zipball/master).
|
||||||
|
|
||||||
To get started -- checkout http://twitter.github.com/bootstrap!
|
|
||||||
|
|
||||||
|
|
||||||
Versioning
|
Versioning
|
||||||
@@ -24,6 +32,7 @@ And constructed with the following guidelines:
|
|||||||
For more information on SemVer, please visit http://semver.org/.
|
For more information on SemVer, please visit http://semver.org/.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Bug tracker
|
Bug tracker
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
@@ -32,10 +41,12 @@ Have a bug? Please create an issue here on GitHub!
|
|||||||
https://github.com/twitter/bootstrap/issues
|
https://github.com/twitter/bootstrap/issues
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Twitter account
|
Twitter account
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
Keep up to date on announcements and more by following Bootstrap on Twitter, <a href="http://twitter.com/TwBootstrap">@TwBootstrap</a>.
|
Keep up to date on announcements and more by following Bootstrap on Twitter, [@TwBootstrap](http://twitter.com/TwBootstrap).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Mailing list
|
Mailing list
|
||||||
@@ -48,6 +59,7 @@ twitter-bootstrap@googlegroups.com
|
|||||||
http://groups.google.com/group/twitter-bootstrap
|
http://groups.google.com/group/twitter-bootstrap
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
IRC
|
IRC
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -56,6 +68,7 @@ Server: irc.freenode.net
|
|||||||
Channel: ##twitter-bootstrap (the double ## is not a typo)
|
Channel: ##twitter-bootstrap (the double ## is not a typo)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Developers
|
Developers
|
||||||
----------
|
----------
|
||||||
|
|
||||||
@@ -68,6 +81,7 @@ Runs the LESS compiler to rebuild the `/less` files and compiles the docs pages.
|
|||||||
This is a convenience method for watching just Less files and automatically building them whenever you save. Requires the Watchr gem.
|
This is a convenience method for watching just Less files and automatically building them whenever you save. Requires the Watchr gem.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Authors
|
Authors
|
||||||
-------
|
-------
|
||||||
|
|
||||||
@@ -82,6 +96,7 @@ Authors
|
|||||||
+ http://github.com/fat
|
+ http://github.com/fat
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Copyright and license
|
Copyright and license
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap Responsive v2.0.1
|
* Bootstrap Responsive v2.0.2
|
||||||
*
|
*
|
||||||
* Copyright 2012 Twitter, Inc
|
* Copyright 2012 Twitter, Inc
|
||||||
* Licensed under the Apache License v2.0
|
* Licensed under the Apache License v2.0
|
||||||
@@ -10,17 +10,82 @@
|
|||||||
.clearfix {
|
.clearfix {
|
||||||
*zoom: 1;
|
*zoom: 1;
|
||||||
}
|
}
|
||||||
.clearfix:before, .clearfix:after {
|
.clearfix:before,
|
||||||
|
.clearfix:after {
|
||||||
display: table;
|
display: table;
|
||||||
content: "";
|
content: "";
|
||||||
}
|
}
|
||||||
.clearfix:after {
|
.clearfix:after {
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
|
.hide-text {
|
||||||
|
overflow: hidden;
|
||||||
|
text-indent: 100%;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
.input-block-level {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
min-height: 28px;
|
||||||
|
/* Make inputs at least the height of their button counterpart */
|
||||||
|
|
||||||
|
/* Makes inputs behave like true block-level elements */
|
||||||
|
|
||||||
|
-webkit-box-sizing: border-box;
|
||||||
|
-moz-box-sizing: border-box;
|
||||||
|
-ms-box-sizing: border-box;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
.hidden {
|
.hidden {
|
||||||
display: none;
|
display: none;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
|
.visible-phone {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.visible-tablet {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.visible-desktop {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.hidden-phone {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.hidden-tablet {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.hidden-desktop {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
.visible-phone {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.hidden-phone {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.hidden-desktop {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.visible-desktop {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (min-width: 768px) and (max-width: 979px) {
|
||||||
|
.visible-tablet {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.hidden-tablet {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.hidden-desktop {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.visible-desktop {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
@media (max-width: 480px) {
|
@media (max-width: 480px) {
|
||||||
.nav-collapse {
|
.nav-collapse {
|
||||||
-webkit-transform: translate3d(0, 0, 0);
|
-webkit-transform: translate3d(0, 0, 0);
|
||||||
@@ -29,34 +94,8 @@
|
|||||||
display: block;
|
display: block;
|
||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
}
|
}
|
||||||
input[class*="span"],
|
input[type="checkbox"],
|
||||||
select[class*="span"],
|
input[type="radio"] {
|
||||||
textarea[class*="span"],
|
|
||||||
.uneditable-input {
|
|
||||||
display: block;
|
|
||||||
width: 100%;
|
|
||||||
min-height: 28px;
|
|
||||||
/* Make inputs at least the height of their button counterpart */
|
|
||||||
|
|
||||||
/* Makes inputs behave like true block-level elements */
|
|
||||||
|
|
||||||
-webkit-box-sizing: border-box;
|
|
||||||
/* Older Webkit */
|
|
||||||
|
|
||||||
-moz-box-sizing: border-box;
|
|
||||||
/* Older FF */
|
|
||||||
|
|
||||||
-ms-box-sizing: border-box;
|
|
||||||
/* IE8 */
|
|
||||||
|
|
||||||
box-sizing: border-box;
|
|
||||||
/* CSS3 spec*/
|
|
||||||
|
|
||||||
}
|
|
||||||
.input-prepend input[class*="span"], .input-append input[class*="span"] {
|
|
||||||
width: auto;
|
|
||||||
}
|
|
||||||
input[type="checkbox"], input[type="radio"] {
|
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
}
|
}
|
||||||
.form-horizontal .control-group > label {
|
.form-horizontal .control-group > label {
|
||||||
@@ -95,9 +134,16 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
|
body {
|
||||||
|
padding-left: 20px;
|
||||||
|
padding-right: 20px;
|
||||||
|
}
|
||||||
|
.navbar-fixed-top {
|
||||||
|
margin-left: -20px;
|
||||||
|
margin-right: -20px;
|
||||||
|
}
|
||||||
.container {
|
.container {
|
||||||
width: auto;
|
width: auto;
|
||||||
padding: 0 20px;
|
|
||||||
}
|
}
|
||||||
.row-fluid {
|
.row-fluid {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -105,19 +151,44 @@
|
|||||||
.row {
|
.row {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
.row > [class*="span"], .row-fluid > [class*="span"] {
|
.row > [class*="span"],
|
||||||
|
.row-fluid > [class*="span"] {
|
||||||
float: none;
|
float: none;
|
||||||
display: block;
|
display: block;
|
||||||
width: auto;
|
width: auto;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
.thumbnails [class*="span"] {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
input[class*="span"],
|
||||||
|
select[class*="span"],
|
||||||
|
textarea[class*="span"],
|
||||||
|
.uneditable-input {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
min-height: 28px;
|
||||||
|
/* Make inputs at least the height of their button counterpart */
|
||||||
|
|
||||||
|
/* Makes inputs behave like true block-level elements */
|
||||||
|
|
||||||
|
-webkit-box-sizing: border-box;
|
||||||
|
-moz-box-sizing: border-box;
|
||||||
|
-ms-box-sizing: border-box;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
.input-prepend input[class*="span"],
|
||||||
|
.input-append input[class*="span"] {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@media (min-width: 768px) and (max-width: 979px) {
|
@media (min-width: 768px) and (max-width: 979px) {
|
||||||
.row {
|
.row {
|
||||||
margin-left: -20px;
|
margin-left: -20px;
|
||||||
*zoom: 1;
|
*zoom: 1;
|
||||||
}
|
}
|
||||||
.row:before, .row:after {
|
.row:before,
|
||||||
|
.row:after {
|
||||||
display: table;
|
display: table;
|
||||||
content: "";
|
content: "";
|
||||||
}
|
}
|
||||||
@@ -128,80 +199,89 @@
|
|||||||
float: left;
|
float: left;
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
}
|
}
|
||||||
.span1 {
|
.container,
|
||||||
width: 42px;
|
.navbar-fixed-top .container,
|
||||||
|
.navbar-fixed-bottom .container {
|
||||||
|
width: 724px;
|
||||||
}
|
}
|
||||||
.span2 {
|
.span12 {
|
||||||
width: 104px;
|
width: 724px;
|
||||||
}
|
|
||||||
.span3 {
|
|
||||||
width: 166px;
|
|
||||||
}
|
|
||||||
.span4 {
|
|
||||||
width: 228px;
|
|
||||||
}
|
|
||||||
.span5 {
|
|
||||||
width: 290px;
|
|
||||||
}
|
|
||||||
.span6 {
|
|
||||||
width: 352px;
|
|
||||||
}
|
|
||||||
.span7 {
|
|
||||||
width: 414px;
|
|
||||||
}
|
|
||||||
.span8 {
|
|
||||||
width: 476px;
|
|
||||||
}
|
|
||||||
.span9 {
|
|
||||||
width: 538px;
|
|
||||||
}
|
|
||||||
.span10 {
|
|
||||||
width: 600px;
|
|
||||||
}
|
}
|
||||||
.span11 {
|
.span11 {
|
||||||
width: 662px;
|
width: 662px;
|
||||||
}
|
}
|
||||||
.span12, .container {
|
.span10 {
|
||||||
width: 724px;
|
width: 600px;
|
||||||
}
|
}
|
||||||
.offset1 {
|
.span9 {
|
||||||
margin-left: 82px;
|
width: 538px;
|
||||||
}
|
}
|
||||||
.offset2 {
|
.span8 {
|
||||||
margin-left: 144px;
|
width: 476px;
|
||||||
}
|
}
|
||||||
.offset3 {
|
.span7 {
|
||||||
margin-left: 206px;
|
width: 414px;
|
||||||
}
|
}
|
||||||
.offset4 {
|
.span6 {
|
||||||
margin-left: 268px;
|
width: 352px;
|
||||||
}
|
}
|
||||||
.offset5 {
|
.span5 {
|
||||||
margin-left: 330px;
|
width: 290px;
|
||||||
}
|
}
|
||||||
.offset6 {
|
.span4 {
|
||||||
margin-left: 392px;
|
width: 228px;
|
||||||
}
|
}
|
||||||
.offset7 {
|
.span3 {
|
||||||
margin-left: 454px;
|
width: 166px;
|
||||||
}
|
}
|
||||||
.offset8 {
|
.span2 {
|
||||||
margin-left: 516px;
|
width: 104px;
|
||||||
}
|
}
|
||||||
.offset9 {
|
.span1 {
|
||||||
margin-left: 578px;
|
width: 42px;
|
||||||
|
}
|
||||||
|
.offset12 {
|
||||||
|
margin-left: 764px;
|
||||||
|
}
|
||||||
|
.offset11 {
|
||||||
|
margin-left: 702px;
|
||||||
}
|
}
|
||||||
.offset10 {
|
.offset10 {
|
||||||
margin-left: 640px;
|
margin-left: 640px;
|
||||||
}
|
}
|
||||||
.offset11 {
|
.offset9 {
|
||||||
margin-left: 702px;
|
margin-left: 578px;
|
||||||
|
}
|
||||||
|
.offset8 {
|
||||||
|
margin-left: 516px;
|
||||||
|
}
|
||||||
|
.offset7 {
|
||||||
|
margin-left: 454px;
|
||||||
|
}
|
||||||
|
.offset6 {
|
||||||
|
margin-left: 392px;
|
||||||
|
}
|
||||||
|
.offset5 {
|
||||||
|
margin-left: 330px;
|
||||||
|
}
|
||||||
|
.offset4 {
|
||||||
|
margin-left: 268px;
|
||||||
|
}
|
||||||
|
.offset3 {
|
||||||
|
margin-left: 206px;
|
||||||
|
}
|
||||||
|
.offset2 {
|
||||||
|
margin-left: 144px;
|
||||||
|
}
|
||||||
|
.offset1 {
|
||||||
|
margin-left: 82px;
|
||||||
}
|
}
|
||||||
.row-fluid {
|
.row-fluid {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
*zoom: 1;
|
*zoom: 1;
|
||||||
}
|
}
|
||||||
.row-fluid:before, .row-fluid:after {
|
.row-fluid:before,
|
||||||
|
.row-fluid:after {
|
||||||
display: table;
|
display: table;
|
||||||
content: "";
|
content: "";
|
||||||
}
|
}
|
||||||
@@ -215,77 +295,82 @@
|
|||||||
.row-fluid > [class*="span"]:first-child {
|
.row-fluid > [class*="span"]:first-child {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
.row-fluid > .span1 {
|
.row-fluid > .span12 {
|
||||||
width: 5.801104972%;
|
width: 99.999999993%;
|
||||||
}
|
|
||||||
.row-fluid > .span2 {
|
|
||||||
width: 14.364640883%;
|
|
||||||
}
|
|
||||||
.row-fluid > .span3 {
|
|
||||||
width: 22.928176794%;
|
|
||||||
}
|
|
||||||
.row-fluid > .span4 {
|
|
||||||
width: 31.491712705%;
|
|
||||||
}
|
|
||||||
.row-fluid > .span5 {
|
|
||||||
width: 40.055248616%;
|
|
||||||
}
|
|
||||||
.row-fluid > .span6 {
|
|
||||||
width: 48.618784527%;
|
|
||||||
}
|
|
||||||
.row-fluid > .span7 {
|
|
||||||
width: 57.182320438000005%;
|
|
||||||
}
|
|
||||||
.row-fluid > .span8 {
|
|
||||||
width: 65.74585634900001%;
|
|
||||||
}
|
|
||||||
.row-fluid > .span9 {
|
|
||||||
width: 74.30939226%;
|
|
||||||
}
|
|
||||||
.row-fluid > .span10 {
|
|
||||||
width: 82.87292817100001%;
|
|
||||||
}
|
}
|
||||||
.row-fluid > .span11 {
|
.row-fluid > .span11 {
|
||||||
width: 91.436464082%;
|
width: 91.436464082%;
|
||||||
}
|
}
|
||||||
.row-fluid > .span12 {
|
.row-fluid > .span10 {
|
||||||
width: 99.999999993%;
|
width: 82.87292817100001%;
|
||||||
}
|
}
|
||||||
input.span1, textarea.span1, .uneditable-input.span1 {
|
.row-fluid > .span9 {
|
||||||
width: 32px;
|
width: 74.30939226%;
|
||||||
}
|
}
|
||||||
input.span2, textarea.span2, .uneditable-input.span2 {
|
.row-fluid > .span8 {
|
||||||
width: 94px;
|
width: 65.74585634900001%;
|
||||||
}
|
}
|
||||||
input.span3, textarea.span3, .uneditable-input.span3 {
|
.row-fluid > .span7 {
|
||||||
width: 156px;
|
width: 57.182320438000005%;
|
||||||
}
|
}
|
||||||
input.span4, textarea.span4, .uneditable-input.span4 {
|
.row-fluid > .span6 {
|
||||||
width: 218px;
|
width: 48.618784527%;
|
||||||
}
|
}
|
||||||
input.span5, textarea.span5, .uneditable-input.span5 {
|
.row-fluid > .span5 {
|
||||||
width: 280px;
|
width: 40.055248616%;
|
||||||
}
|
}
|
||||||
input.span6, textarea.span6, .uneditable-input.span6 {
|
.row-fluid > .span4 {
|
||||||
width: 342px;
|
width: 31.491712705%;
|
||||||
}
|
}
|
||||||
input.span7, textarea.span7, .uneditable-input.span7 {
|
.row-fluid > .span3 {
|
||||||
width: 404px;
|
width: 22.928176794%;
|
||||||
}
|
}
|
||||||
input.span8, textarea.span8, .uneditable-input.span8 {
|
.row-fluid > .span2 {
|
||||||
width: 466px;
|
width: 14.364640883%;
|
||||||
}
|
}
|
||||||
input.span9, textarea.span9, .uneditable-input.span9 {
|
.row-fluid > .span1 {
|
||||||
width: 528px;
|
width: 5.801104972%;
|
||||||
}
|
}
|
||||||
input.span10, textarea.span10, .uneditable-input.span10 {
|
input,
|
||||||
width: 590px;
|
textarea,
|
||||||
|
.uneditable-input {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
input.span12, textarea.span12, .uneditable-input.span12 {
|
||||||
|
width: 714px;
|
||||||
}
|
}
|
||||||
input.span11, textarea.span11, .uneditable-input.span11 {
|
input.span11, textarea.span11, .uneditable-input.span11 {
|
||||||
width: 652px;
|
width: 652px;
|
||||||
}
|
}
|
||||||
input.span12, textarea.span12, .uneditable-input.span12 {
|
input.span10, textarea.span10, .uneditable-input.span10 {
|
||||||
width: 714px;
|
width: 590px;
|
||||||
|
}
|
||||||
|
input.span9, textarea.span9, .uneditable-input.span9 {
|
||||||
|
width: 528px;
|
||||||
|
}
|
||||||
|
input.span8, textarea.span8, .uneditable-input.span8 {
|
||||||
|
width: 466px;
|
||||||
|
}
|
||||||
|
input.span7, textarea.span7, .uneditable-input.span7 {
|
||||||
|
width: 404px;
|
||||||
|
}
|
||||||
|
input.span6, textarea.span6, .uneditable-input.span6 {
|
||||||
|
width: 342px;
|
||||||
|
}
|
||||||
|
input.span5, textarea.span5, .uneditable-input.span5 {
|
||||||
|
width: 280px;
|
||||||
|
}
|
||||||
|
input.span4, textarea.span4, .uneditable-input.span4 {
|
||||||
|
width: 218px;
|
||||||
|
}
|
||||||
|
input.span3, textarea.span3, .uneditable-input.span3 {
|
||||||
|
width: 156px;
|
||||||
|
}
|
||||||
|
input.span2, textarea.span2, .uneditable-input.span2 {
|
||||||
|
width: 94px;
|
||||||
|
}
|
||||||
|
input.span1, textarea.span1, .uneditable-input.span1 {
|
||||||
|
width: 32px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media (max-width: 979px) {
|
@media (max-width: 979px) {
|
||||||
@@ -328,7 +413,8 @@
|
|||||||
color: #999999;
|
color: #999999;
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
}
|
}
|
||||||
.navbar .nav > li > a, .navbar .dropdown-menu a {
|
.navbar .nav > li > a,
|
||||||
|
.navbar .dropdown-menu a {
|
||||||
padding: 6px 15px;
|
padding: 6px 15px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
@@ -339,7 +425,8 @@
|
|||||||
.navbar .dropdown-menu li + li a {
|
.navbar .dropdown-menu li + li a {
|
||||||
margin-bottom: 2px;
|
margin-bottom: 2px;
|
||||||
}
|
}
|
||||||
.navbar .nav > li > a:hover, .navbar .dropdown-menu a:hover {
|
.navbar .nav > li > a:hover,
|
||||||
|
.navbar .dropdown-menu a:hover {
|
||||||
background-color: #222222;
|
background-color: #222222;
|
||||||
}
|
}
|
||||||
.navbar .dropdown-menu {
|
.navbar .dropdown-menu {
|
||||||
@@ -360,13 +447,15 @@
|
|||||||
-moz-box-shadow: none;
|
-moz-box-shadow: none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
.navbar .dropdown-menu:before, .navbar .dropdown-menu:after {
|
.navbar .dropdown-menu:before,
|
||||||
|
.navbar .dropdown-menu:after {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.navbar .dropdown-menu .divider {
|
.navbar .dropdown-menu .divider {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.navbar-form, .navbar-search {
|
.navbar-form,
|
||||||
|
.navbar-search {
|
||||||
float: none;
|
float: none;
|
||||||
padding: 9px 15px;
|
padding: 9px 15px;
|
||||||
margin: 9px 0;
|
margin: 9px 0;
|
||||||
@@ -395,6 +484,7 @@
|
|||||||
@media (min-width: 980px) {
|
@media (min-width: 980px) {
|
||||||
.nav-collapse.collapse {
|
.nav-collapse.collapse {
|
||||||
height: auto !important;
|
height: auto !important;
|
||||||
|
overflow: visible !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media (min-width: 1200px) {
|
@media (min-width: 1200px) {
|
||||||
@@ -402,7 +492,8 @@
|
|||||||
margin-left: -30px;
|
margin-left: -30px;
|
||||||
*zoom: 1;
|
*zoom: 1;
|
||||||
}
|
}
|
||||||
.row:before, .row:after {
|
.row:before,
|
||||||
|
.row:after {
|
||||||
display: table;
|
display: table;
|
||||||
content: "";
|
content: "";
|
||||||
}
|
}
|
||||||
@@ -413,80 +504,89 @@
|
|||||||
float: left;
|
float: left;
|
||||||
margin-left: 30px;
|
margin-left: 30px;
|
||||||
}
|
}
|
||||||
.span1 {
|
.container,
|
||||||
width: 70px;
|
.navbar-fixed-top .container,
|
||||||
|
.navbar-fixed-bottom .container {
|
||||||
|
width: 1170px;
|
||||||
}
|
}
|
||||||
.span2 {
|
.span12 {
|
||||||
width: 170px;
|
width: 1170px;
|
||||||
}
|
|
||||||
.span3 {
|
|
||||||
width: 270px;
|
|
||||||
}
|
|
||||||
.span4 {
|
|
||||||
width: 370px;
|
|
||||||
}
|
|
||||||
.span5 {
|
|
||||||
width: 470px;
|
|
||||||
}
|
|
||||||
.span6 {
|
|
||||||
width: 570px;
|
|
||||||
}
|
|
||||||
.span7 {
|
|
||||||
width: 670px;
|
|
||||||
}
|
|
||||||
.span8 {
|
|
||||||
width: 770px;
|
|
||||||
}
|
|
||||||
.span9 {
|
|
||||||
width: 870px;
|
|
||||||
}
|
|
||||||
.span10 {
|
|
||||||
width: 970px;
|
|
||||||
}
|
}
|
||||||
.span11 {
|
.span11 {
|
||||||
width: 1070px;
|
width: 1070px;
|
||||||
}
|
}
|
||||||
.span12, .container {
|
.span10 {
|
||||||
width: 1170px;
|
width: 970px;
|
||||||
}
|
}
|
||||||
.offset1 {
|
.span9 {
|
||||||
margin-left: 130px;
|
width: 870px;
|
||||||
}
|
}
|
||||||
.offset2 {
|
.span8 {
|
||||||
margin-left: 230px;
|
width: 770px;
|
||||||
}
|
}
|
||||||
.offset3 {
|
.span7 {
|
||||||
margin-left: 330px;
|
width: 670px;
|
||||||
}
|
}
|
||||||
.offset4 {
|
.span6 {
|
||||||
margin-left: 430px;
|
width: 570px;
|
||||||
}
|
}
|
||||||
.offset5 {
|
.span5 {
|
||||||
margin-left: 530px;
|
width: 470px;
|
||||||
}
|
}
|
||||||
.offset6 {
|
.span4 {
|
||||||
margin-left: 630px;
|
width: 370px;
|
||||||
}
|
}
|
||||||
.offset7 {
|
.span3 {
|
||||||
margin-left: 730px;
|
width: 270px;
|
||||||
}
|
}
|
||||||
.offset8 {
|
.span2 {
|
||||||
margin-left: 830px;
|
width: 170px;
|
||||||
}
|
}
|
||||||
.offset9 {
|
.span1 {
|
||||||
margin-left: 930px;
|
width: 70px;
|
||||||
|
}
|
||||||
|
.offset12 {
|
||||||
|
margin-left: 1230px;
|
||||||
|
}
|
||||||
|
.offset11 {
|
||||||
|
margin-left: 1130px;
|
||||||
}
|
}
|
||||||
.offset10 {
|
.offset10 {
|
||||||
margin-left: 1030px;
|
margin-left: 1030px;
|
||||||
}
|
}
|
||||||
.offset11 {
|
.offset9 {
|
||||||
margin-left: 1130px;
|
margin-left: 930px;
|
||||||
|
}
|
||||||
|
.offset8 {
|
||||||
|
margin-left: 830px;
|
||||||
|
}
|
||||||
|
.offset7 {
|
||||||
|
margin-left: 730px;
|
||||||
|
}
|
||||||
|
.offset6 {
|
||||||
|
margin-left: 630px;
|
||||||
|
}
|
||||||
|
.offset5 {
|
||||||
|
margin-left: 530px;
|
||||||
|
}
|
||||||
|
.offset4 {
|
||||||
|
margin-left: 430px;
|
||||||
|
}
|
||||||
|
.offset3 {
|
||||||
|
margin-left: 330px;
|
||||||
|
}
|
||||||
|
.offset2 {
|
||||||
|
margin-left: 230px;
|
||||||
|
}
|
||||||
|
.offset1 {
|
||||||
|
margin-left: 130px;
|
||||||
}
|
}
|
||||||
.row-fluid {
|
.row-fluid {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
*zoom: 1;
|
*zoom: 1;
|
||||||
}
|
}
|
||||||
.row-fluid:before, .row-fluid:after {
|
.row-fluid:before,
|
||||||
|
.row-fluid:after {
|
||||||
display: table;
|
display: table;
|
||||||
content: "";
|
content: "";
|
||||||
}
|
}
|
||||||
@@ -500,77 +600,82 @@
|
|||||||
.row-fluid > [class*="span"]:first-child {
|
.row-fluid > [class*="span"]:first-child {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
.row-fluid > .span1 {
|
.row-fluid > .span12 {
|
||||||
width: 5.982905983%;
|
width: 100%;
|
||||||
}
|
|
||||||
.row-fluid > .span2 {
|
|
||||||
width: 14.529914530000001%;
|
|
||||||
}
|
|
||||||
.row-fluid > .span3 {
|
|
||||||
width: 23.076923077%;
|
|
||||||
}
|
|
||||||
.row-fluid > .span4 {
|
|
||||||
width: 31.623931624%;
|
|
||||||
}
|
|
||||||
.row-fluid > .span5 {
|
|
||||||
width: 40.170940171000005%;
|
|
||||||
}
|
|
||||||
.row-fluid > .span6 {
|
|
||||||
width: 48.717948718%;
|
|
||||||
}
|
|
||||||
.row-fluid > .span7 {
|
|
||||||
width: 57.264957265%;
|
|
||||||
}
|
|
||||||
.row-fluid > .span8 {
|
|
||||||
width: 65.81196581200001%;
|
|
||||||
}
|
|
||||||
.row-fluid > .span9 {
|
|
||||||
width: 74.358974359%;
|
|
||||||
}
|
|
||||||
.row-fluid > .span10 {
|
|
||||||
width: 82.905982906%;
|
|
||||||
}
|
}
|
||||||
.row-fluid > .span11 {
|
.row-fluid > .span11 {
|
||||||
width: 91.45299145300001%;
|
width: 91.45299145300001%;
|
||||||
}
|
}
|
||||||
.row-fluid > .span12 {
|
.row-fluid > .span10 {
|
||||||
width: 100%;
|
width: 82.905982906%;
|
||||||
}
|
}
|
||||||
input.span1, textarea.span1, .uneditable-input.span1 {
|
.row-fluid > .span9 {
|
||||||
width: 60px;
|
width: 74.358974359%;
|
||||||
}
|
}
|
||||||
input.span2, textarea.span2, .uneditable-input.span2 {
|
.row-fluid > .span8 {
|
||||||
width: 160px;
|
width: 65.81196581200001%;
|
||||||
}
|
}
|
||||||
input.span3, textarea.span3, .uneditable-input.span3 {
|
.row-fluid > .span7 {
|
||||||
width: 260px;
|
width: 57.264957265%;
|
||||||
}
|
}
|
||||||
input.span4, textarea.span4, .uneditable-input.span4 {
|
.row-fluid > .span6 {
|
||||||
width: 360px;
|
width: 48.717948718%;
|
||||||
}
|
}
|
||||||
input.span5, textarea.span5, .uneditable-input.span5 {
|
.row-fluid > .span5 {
|
||||||
width: 460px;
|
width: 40.170940171000005%;
|
||||||
}
|
}
|
||||||
input.span6, textarea.span6, .uneditable-input.span6 {
|
.row-fluid > .span4 {
|
||||||
width: 560px;
|
width: 31.623931624%;
|
||||||
}
|
}
|
||||||
input.span7, textarea.span7, .uneditable-input.span7 {
|
.row-fluid > .span3 {
|
||||||
width: 660px;
|
width: 23.076923077%;
|
||||||
}
|
}
|
||||||
input.span8, textarea.span8, .uneditable-input.span8 {
|
.row-fluid > .span2 {
|
||||||
width: 760px;
|
width: 14.529914530000001%;
|
||||||
}
|
}
|
||||||
input.span9, textarea.span9, .uneditable-input.span9 {
|
.row-fluid > .span1 {
|
||||||
width: 860px;
|
width: 5.982905983%;
|
||||||
}
|
}
|
||||||
input.span10, textarea.span10, .uneditable-input.span10 {
|
input,
|
||||||
width: 960px;
|
textarea,
|
||||||
|
.uneditable-input {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
input.span12, textarea.span12, .uneditable-input.span12 {
|
||||||
|
width: 1160px;
|
||||||
}
|
}
|
||||||
input.span11, textarea.span11, .uneditable-input.span11 {
|
input.span11, textarea.span11, .uneditable-input.span11 {
|
||||||
width: 1060px;
|
width: 1060px;
|
||||||
}
|
}
|
||||||
input.span12, textarea.span12, .uneditable-input.span12 {
|
input.span10, textarea.span10, .uneditable-input.span10 {
|
||||||
width: 1160px;
|
width: 960px;
|
||||||
|
}
|
||||||
|
input.span9, textarea.span9, .uneditable-input.span9 {
|
||||||
|
width: 860px;
|
||||||
|
}
|
||||||
|
input.span8, textarea.span8, .uneditable-input.span8 {
|
||||||
|
width: 760px;
|
||||||
|
}
|
||||||
|
input.span7, textarea.span7, .uneditable-input.span7 {
|
||||||
|
width: 660px;
|
||||||
|
}
|
||||||
|
input.span6, textarea.span6, .uneditable-input.span6 {
|
||||||
|
width: 560px;
|
||||||
|
}
|
||||||
|
input.span5, textarea.span5, .uneditable-input.span5 {
|
||||||
|
width: 460px;
|
||||||
|
}
|
||||||
|
input.span4, textarea.span4, .uneditable-input.span4 {
|
||||||
|
width: 360px;
|
||||||
|
}
|
||||||
|
input.span3, textarea.span3, .uneditable-input.span3 {
|
||||||
|
width: 260px;
|
||||||
|
}
|
||||||
|
input.span2, textarea.span2, .uneditable-input.span2 {
|
||||||
|
width: 160px;
|
||||||
|
}
|
||||||
|
input.span1, textarea.span1, .uneditable-input.span1 {
|
||||||
|
width: 60px;
|
||||||
}
|
}
|
||||||
.thumbnails {
|
.thumbnails {
|
||||||
margin-left: -30px;
|
margin-left: -30px;
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ hr.soften {
|
|||||||
.jumbotron h1 {
|
.jumbotron h1 {
|
||||||
margin-bottom: 9px;
|
margin-bottom: 9px;
|
||||||
font-size: 81px;
|
font-size: 81px;
|
||||||
|
font-weight: bold;
|
||||||
letter-spacing: -1px;
|
letter-spacing: -1px;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
@@ -79,6 +80,9 @@ hr.soften {
|
|||||||
-moz-border-radius: 6px;
|
-moz-border-radius: 6px;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
}
|
}
|
||||||
|
.jumbotron .btn-large small {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
/* Masthead (docs home) */
|
/* Masthead (docs home) */
|
||||||
.masthead {
|
.masthead {
|
||||||
@@ -208,14 +212,20 @@ hr.soften {
|
|||||||
|
|
||||||
/* Quick links
|
/* Quick links
|
||||||
-------------------------------------------------- */
|
-------------------------------------------------- */
|
||||||
|
.bs-links {
|
||||||
|
margin: 36px 0;
|
||||||
|
}
|
||||||
.quick-links {
|
.quick-links {
|
||||||
min-height: 30px;
|
min-height: 30px;
|
||||||
|
margin: 0;
|
||||||
padding: 5px 20px;
|
padding: 5px 20px;
|
||||||
margin: 36px 0;
|
|
||||||
list-style: none;
|
list-style: none;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
.quick-links:first-child {
|
||||||
|
min-height: 0;
|
||||||
|
}
|
||||||
.quick-links li {
|
.quick-links li {
|
||||||
display: inline;
|
display: inline;
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
@@ -427,17 +437,17 @@ hr.soften {
|
|||||||
.download-btn {
|
.download-btn {
|
||||||
margin: 36px 0 108px;
|
margin: 36px 0 108px;
|
||||||
}
|
}
|
||||||
.download p,
|
#download p,
|
||||||
.download h4 {
|
#download h4 {
|
||||||
max-width: 50%;
|
max-width: 50%;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
color: #999;
|
color: #999;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
.download h4 {
|
#download h4 {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
.download p {
|
#download p {
|
||||||
margin-bottom: 18px;
|
margin-bottom: 18px;
|
||||||
}
|
}
|
||||||
.download-btn .btn {
|
.download-btn .btn {
|
||||||
@@ -482,8 +492,7 @@ hr.soften {
|
|||||||
/* Misc
|
/* Misc
|
||||||
-------------------------------------------------- */
|
-------------------------------------------------- */
|
||||||
|
|
||||||
|
img {
|
||||||
.browser-support {
|
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -558,6 +567,70 @@ form.well {
|
|||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Responsive table
|
||||||
|
------------------------- */
|
||||||
|
.responsive-utilities th small {
|
||||||
|
display: block;
|
||||||
|
font-weight: normal;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
.responsive-utilities tbody th {
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
.responsive-utilities td {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.responsive-utilities td.is-visible {
|
||||||
|
color: #468847;
|
||||||
|
background-color: #dff0d8 !important;
|
||||||
|
}
|
||||||
|
.responsive-utilities td.is-hidden {
|
||||||
|
color: #ccc;
|
||||||
|
background-color: #f9f9f9 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Responsive tests
|
||||||
|
------------------------- */
|
||||||
|
.responsive-utilities-test {
|
||||||
|
margin-top: 5px;
|
||||||
|
margin-left: 0;
|
||||||
|
list-style: none;
|
||||||
|
overflow: hidden; /* clear floats */
|
||||||
|
}
|
||||||
|
.responsive-utilities-test li {
|
||||||
|
position: relative;
|
||||||
|
float: left;
|
||||||
|
width: 25%;
|
||||||
|
height: 43px;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
line-height: 43px;
|
||||||
|
color: #999;
|
||||||
|
text-align: center;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
-webkit-border-radius: 4px;
|
||||||
|
-moz-border-radius: 4px;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
.responsive-utilities-test li + li {
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
.responsive-utilities-test span {
|
||||||
|
position: absolute;
|
||||||
|
top: -1px;
|
||||||
|
left: -1px;
|
||||||
|
right: -1px;
|
||||||
|
bottom: -1px;
|
||||||
|
-webkit-border-radius: 4px;
|
||||||
|
-moz-border-radius: 4px;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
.responsive-utilities-test span {
|
||||||
|
color: #468847;
|
||||||
|
background-color: #dff0d8;
|
||||||
|
border: 1px solid #d6e9c6;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Responsive Docs
|
/* Responsive Docs
|
||||||
-------------------------------------------------- */
|
-------------------------------------------------- */
|
||||||
|
|||||||
|
After Width: | Height: | Size: 5.9 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 5.4 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 486 B |
|
Before Width: | Height: | Size: 564 B |
|
Before Width: | Height: | Size: 369 B |
|
Before Width: | Height: | Size: 76 KiB |
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 49 KiB |
|
Before Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 42 KiB |
@@ -1,5 +1,5 @@
|
|||||||
/* ==========================================================
|
/* ==========================================================
|
||||||
* bootstrap-alert.js v2.0.1
|
* bootstrap-alert.js v2.0.2
|
||||||
* http://twitter.github.com/bootstrap/javascript.html#alerts
|
* http://twitter.github.com/bootstrap/javascript.html#alerts
|
||||||
* ==========================================================
|
* ==========================================================
|
||||||
* Copyright 2012 Twitter, Inc.
|
* Copyright 2012 Twitter, Inc.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* ============================================================
|
/* ============================================================
|
||||||
* bootstrap-button.js v2.0.1
|
* bootstrap-button.js v2.0.2
|
||||||
* http://twitter.github.com/bootstrap/javascript.html#buttons
|
* http://twitter.github.com/bootstrap/javascript.html#buttons
|
||||||
* ============================================================
|
* ============================================================
|
||||||
* Copyright 2012 Twitter, Inc.
|
* Copyright 2012 Twitter, Inc.
|
||||||
@@ -91,7 +91,9 @@
|
|||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
$('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) {
|
$('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) {
|
||||||
$(e.currentTarget).button('toggle')
|
var $btn = $(e.target)
|
||||||
|
if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
|
||||||
|
$btn.button('toggle')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* ==========================================================
|
/* ==========================================================
|
||||||
* bootstrap-carousel.js v2.0.1
|
* bootstrap-carousel.js v2.0.2
|
||||||
* http://twitter.github.com/bootstrap/javascript.html#carousel
|
* http://twitter.github.com/bootstrap/javascript.html#carousel
|
||||||
* ==========================================================
|
* ==========================================================
|
||||||
* Copyright 2012 Twitter, Inc.
|
* Copyright 2012 Twitter, Inc.
|
||||||
@@ -29,6 +29,9 @@
|
|||||||
this.$element = $(element)
|
this.$element = $(element)
|
||||||
this.options = $.extend({}, $.fn.carousel.defaults, options)
|
this.options = $.extend({}, $.fn.carousel.defaults, options)
|
||||||
this.options.slide && this.slide(this.options.slide)
|
this.options.slide && this.slide(this.options.slide)
|
||||||
|
this.options.pause == 'hover' && this.$element
|
||||||
|
.on('mouseenter', $.proxy(this.pause, this))
|
||||||
|
.on('mouseleave', $.proxy(this.cycle, this))
|
||||||
}
|
}
|
||||||
|
|
||||||
Carousel.prototype = {
|
Carousel.prototype = {
|
||||||
@@ -83,14 +86,14 @@
|
|||||||
, fallback = type == 'next' ? 'first' : 'last'
|
, fallback = type == 'next' ? 'first' : 'last'
|
||||||
, that = this
|
, that = this
|
||||||
|
|
||||||
if (!$next.length) return
|
|
||||||
|
|
||||||
this.sliding = true
|
this.sliding = true
|
||||||
|
|
||||||
isCycling && this.pause()
|
isCycling && this.pause()
|
||||||
|
|
||||||
$next = $next.length ? $next : this.$element.find('.item')[fallback]()
|
$next = $next.length ? $next : this.$element.find('.item')[fallback]()
|
||||||
|
|
||||||
|
if ($next.hasClass('active')) return
|
||||||
|
|
||||||
if (!$.support.transition && this.$element.hasClass('slide')) {
|
if (!$.support.transition && this.$element.hasClass('slide')) {
|
||||||
this.$element.trigger('slide')
|
this.$element.trigger('slide')
|
||||||
$active.removeClass('active')
|
$active.removeClass('active')
|
||||||
@@ -136,6 +139,7 @@
|
|||||||
|
|
||||||
$.fn.carousel.defaults = {
|
$.fn.carousel.defaults = {
|
||||||
interval: 5000
|
interval: 5000
|
||||||
|
, pause: 'hover'
|
||||||
}
|
}
|
||||||
|
|
||||||
$.fn.carousel.Constructor = Carousel
|
$.fn.carousel.Constructor = Carousel
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* =============================================================
|
/* =============================================================
|
||||||
* bootstrap-collapse.js v2.0.1
|
* bootstrap-collapse.js v2.0.2
|
||||||
* http://twitter.github.com/bootstrap/javascript.html#collapse
|
* http://twitter.github.com/bootstrap/javascript.html#collapse
|
||||||
* =============================================================
|
* =============================================================
|
||||||
* Copyright 2012 Twitter, Inc.
|
* Copyright 2012 Twitter, Inc.
|
||||||
@@ -74,7 +74,9 @@
|
|||||||
[dimension](size || 'auto')
|
[dimension](size || 'auto')
|
||||||
[0].offsetWidth
|
[0].offsetWidth
|
||||||
|
|
||||||
this.$element.addClass('collapse')
|
this.$element[size ? 'addClass' : 'removeClass']('collapse')
|
||||||
|
|
||||||
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
, transition: function ( method, startEvent, completeEvent ) {
|
, transition: function ( method, startEvent, completeEvent ) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* ============================================================
|
/* ============================================================
|
||||||
* bootstrap-dropdown.js v2.0.1
|
* bootstrap-dropdown.js v2.0.2
|
||||||
* http://twitter.github.com/bootstrap/javascript.html#dropdowns
|
* http://twitter.github.com/bootstrap/javascript.html#dropdowns
|
||||||
* ============================================================
|
* ============================================================
|
||||||
* Copyright 2012 Twitter, Inc.
|
* Copyright 2012 Twitter, Inc.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* =========================================================
|
/* =========================================================
|
||||||
* bootstrap-modal.js v2.0.1
|
* bootstrap-modal.js v2.0.2
|
||||||
* http://twitter.github.com/bootstrap/javascript.html#modals
|
* http://twitter.github.com/bootstrap/javascript.html#modals
|
||||||
* =========================================================
|
* =========================================================
|
||||||
* Copyright 2012 Twitter, Inc.
|
* Copyright 2012 Twitter, Inc.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* ===========================================================
|
/* ===========================================================
|
||||||
* bootstrap-popover.js v2.0.1
|
* bootstrap-popover.js v2.0.2
|
||||||
* http://twitter.github.com/bootstrap/javascript.html#popovers
|
* http://twitter.github.com/bootstrap/javascript.html#popovers
|
||||||
* ===========================================================
|
* ===========================================================
|
||||||
* Copyright 2012 Twitter, Inc.
|
* Copyright 2012 Twitter, Inc.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* =============================================================
|
/* =============================================================
|
||||||
* bootstrap-scrollspy.js v2.0.1
|
* bootstrap-scrollspy.js v2.0.2
|
||||||
* http://twitter.github.com/bootstrap/javascript.html#scrollspy
|
* http://twitter.github.com/bootstrap/javascript.html#scrollspy
|
||||||
* =============================================================
|
* =============================================================
|
||||||
* Copyright 2012 Twitter, Inc.
|
* Copyright 2012 Twitter, Inc.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* ========================================================
|
/* ========================================================
|
||||||
* bootstrap-tab.js v2.0.1
|
* bootstrap-tab.js v2.0.2
|
||||||
* http://twitter.github.com/bootstrap/javascript.html#tabs
|
* http://twitter.github.com/bootstrap/javascript.html#tabs
|
||||||
* ========================================================
|
* ========================================================
|
||||||
* Copyright 2012 Twitter, Inc.
|
* Copyright 2012 Twitter, Inc.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* ===========================================================
|
/* ===========================================================
|
||||||
* bootstrap-tooltip.js v2.0.1
|
* bootstrap-tooltip.js v2.0.2
|
||||||
* http://twitter.github.com/bootstrap/javascript.html#tooltips
|
* http://twitter.github.com/bootstrap/javascript.html#tooltips
|
||||||
* Inspired by the original jQuery.tipsy by Jason Frame
|
* Inspired by the original jQuery.tipsy by Jason Frame
|
||||||
* ===========================================================
|
* ===========================================================
|
||||||
@@ -206,7 +206,7 @@
|
|||||||
title = $e.attr('data-original-title')
|
title = $e.attr('data-original-title')
|
||||||
|| (typeof o.title == 'function' ? o.title.call($e[0]) : o.title)
|
|| (typeof o.title == 'function' ? o.title.call($e[0]) : o.title)
|
||||||
|
|
||||||
title = title.toString().replace(/(^\s*|\s*$)/, "")
|
title = (title || '').toString().replace(/(^\s*|\s*$)/, "")
|
||||||
|
|
||||||
return title
|
return title
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* ===================================================
|
/* ===================================================
|
||||||
* bootstrap-transition.js v2.0.1
|
* bootstrap-transition.js v2.0.2
|
||||||
* http://twitter.github.com/bootstrap/javascript.html#transitions
|
* http://twitter.github.com/bootstrap/javascript.html#transitions
|
||||||
* ===================================================
|
* ===================================================
|
||||||
* Copyright 2012 Twitter, Inc.
|
* Copyright 2012 Twitter, Inc.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* =============================================================
|
/* =============================================================
|
||||||
* bootstrap-typeahead.js v2.0.1
|
* bootstrap-typeahead.js v2.0.2
|
||||||
* http://twitter.github.com/bootstrap/javascript.html#typeahead
|
* http://twitter.github.com/bootstrap/javascript.html#typeahead
|
||||||
* =============================================================
|
* =============================================================
|
||||||
* Copyright 2012 Twitter, Inc.
|
* Copyright 2012 Twitter, Inc.
|
||||||
@@ -40,6 +40,7 @@
|
|||||||
, select: function () {
|
, select: function () {
|
||||||
var val = this.$menu.find('.active').attr('data-value')
|
var val = this.$menu.find('.active').attr('data-value')
|
||||||
this.$element.val(val)
|
this.$element.val(val)
|
||||||
|
this.$element.change();
|
||||||
return this.hide()
|
return this.hide()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -165,9 +166,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
, keyup: function (e) {
|
, keyup: function (e) {
|
||||||
e.stopPropagation()
|
|
||||||
e.preventDefault()
|
|
||||||
|
|
||||||
switch(e.keyCode) {
|
switch(e.keyCode) {
|
||||||
case 40: // down arrow
|
case 40: // down arrow
|
||||||
case 38: // up arrow
|
case 38: // up arrow
|
||||||
@@ -180,6 +178,7 @@
|
|||||||
break
|
break
|
||||||
|
|
||||||
case 27: // escape
|
case 27: // escape
|
||||||
|
if (!this.shown) return
|
||||||
this.hide()
|
this.hide()
|
||||||
break
|
break
|
||||||
|
|
||||||
@@ -187,10 +186,11 @@
|
|||||||
this.lookup()
|
this.lookup()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
e.stopPropagation()
|
||||||
|
e.preventDefault()
|
||||||
}
|
}
|
||||||
|
|
||||||
, keypress: function (e) {
|
, keypress: function (e) {
|
||||||
e.stopPropagation()
|
|
||||||
if (!this.shown) return
|
if (!this.shown) return
|
||||||
|
|
||||||
switch(e.keyCode) {
|
switch(e.keyCode) {
|
||||||
@@ -210,12 +210,12 @@
|
|||||||
this.next()
|
this.next()
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
e.stopPropagation()
|
||||||
}
|
}
|
||||||
|
|
||||||
, blur: function (e) {
|
, blur: function (e) {
|
||||||
var that = this
|
var that = this
|
||||||
e.stopPropagation()
|
|
||||||
e.preventDefault()
|
|
||||||
setTimeout(function () { that.hide() }, 150)
|
setTimeout(function () { that.hide() }, 150)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>Bootstrap, from Twitter</title>
|
<title>Base · Twitter Bootstrap</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta name="description" content="">
|
<meta name="description" content="">
|
||||||
<meta name="author" content="">
|
<meta name="author" content="">
|
||||||
@@ -20,9 +20,9 @@
|
|||||||
|
|
||||||
<!-- Le fav and touch icons -->
|
<!-- Le fav and touch icons -->
|
||||||
<link rel="shortcut icon" href="assets/ico/favicon.ico">
|
<link rel="shortcut icon" href="assets/ico/favicon.ico">
|
||||||
<link rel="apple-touch-icon" href="assets/ico/apple-touch-icon.png">
|
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png">
|
||||||
<link rel="apple-touch-icon" sizes="72x72" href="assets/ico/apple-touch-icon-72x72.png">
|
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png">
|
||||||
<link rel="apple-touch-icon" sizes="114x114" href="assets/ico/apple-touch-icon-114x114.png">
|
<link rel="apple-touch-icon-precomposed" href="assets/ico/apple-touch-icon-57-precomposed.png">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body data-spy="scroll" data-target=".subnav" data-offset="50">
|
<body data-spy="scroll" data-target=".subnav" data-offset="50">
|
||||||
@@ -166,7 +166,8 @@
|
|||||||
Wraps abbreviations and acronyms to show the expanded version on hover
|
Wraps abbreviations and acronyms to show the expanded version on hover
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
Include optional <code>title</code> for expanded text
|
<p>Include optional <code>title</code> attribute for expanded text</p>
|
||||||
|
Use <code>.initialism</code> class for uppercase abbreviations.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -205,8 +206,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>Example abbreviations</h3>
|
<h3>Example abbreviations</h3>
|
||||||
<p>Abbreviations are styled with uppercase text and a light dotted bottom border. They also have a help cursor on hover so users have extra indication something will be shown on hover.</p>
|
<p>Abbreviations with a <code>title</code> attribute have a light dotted bottom border and a help cursor on hover. This gives users extra indication something will be shown on hover.</p>
|
||||||
<p><abbr title="HyperText Markup Language">HTML</abbr> is the best thing since sliced bread.</p>
|
<p>Add the <code>initialism</code> class to an abbreviation to increase typographic harmony by giving it a slightly smaller text size.</p>
|
||||||
|
<p><abbr title="HyperText Markup Language" class="initialism">HTML</abbr> is the best thing since sliced bread.</p>
|
||||||
<p>An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.</p>
|
<p>An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -285,8 +287,8 @@
|
|||||||
<!-- Lists -->
|
<!-- Lists -->
|
||||||
<h2>Lists</h2>
|
<h2>Lists</h2>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span3">
|
<div class="span4">
|
||||||
<h4>Unordered</h4>
|
<h3>Unordered</h3>
|
||||||
<p><code><ul></code></p>
|
<p><code><ul></code></p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Lorem ipsum dolor sit amet</li>
|
<li>Lorem ipsum dolor sit amet</li>
|
||||||
@@ -306,8 +308,8 @@
|
|||||||
<li>Eget porttitor lorem</li>
|
<li>Eget porttitor lorem</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="span3">
|
<div class="span4">
|
||||||
<h4>Unstyled</h4>
|
<h3>Unstyled</h3>
|
||||||
<p><code><ul class="unstyled"></code></p>
|
<p><code><ul class="unstyled"></code></p>
|
||||||
<ul class="unstyled">
|
<ul class="unstyled">
|
||||||
<li>Lorem ipsum dolor sit amet</li>
|
<li>Lorem ipsum dolor sit amet</li>
|
||||||
@@ -327,8 +329,8 @@
|
|||||||
<li>Eget porttitor lorem</li>
|
<li>Eget porttitor lorem</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="span3">
|
<div class="span4">
|
||||||
<h4>Ordered</h4>
|
<h3>Ordered</h3>
|
||||||
<p><code><ol></code></p>
|
<p><code><ol></code></p>
|
||||||
<ol>
|
<ol>
|
||||||
<li>Lorem ipsum dolor sit amet</li>
|
<li>Lorem ipsum dolor sit amet</li>
|
||||||
@@ -341,8 +343,11 @@
|
|||||||
<li>Eget porttitor lorem</li>
|
<li>Eget porttitor lorem</li>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
<div class="span3">
|
</div><!-- /row -->
|
||||||
<h4>Description</h4>
|
<br>
|
||||||
|
<div class="row">
|
||||||
|
<div class="span4">
|
||||||
|
<h3>Description</h3>
|
||||||
<p><code><dl></code></p>
|
<p><code><dl></code></p>
|
||||||
<dl>
|
<dl>
|
||||||
<dt>Description lists</dt>
|
<dt>Description lists</dt>
|
||||||
@@ -354,6 +359,19 @@
|
|||||||
<dd>Etiam porta sem malesuada magna mollis euismod.</dd>
|
<dd>Etiam porta sem malesuada magna mollis euismod.</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="span8">
|
||||||
|
<h3>Horizontal description</h3>
|
||||||
|
<p><code><dl class="dl-horizontal"></code></p>
|
||||||
|
<dl class="dl-horizontal">
|
||||||
|
<dt>Description lists</dt>
|
||||||
|
<dd>A description list is perfect for defining terms.</dd>
|
||||||
|
<dt>Euismod</dt>
|
||||||
|
<dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
|
||||||
|
<dd>Donec id elit non mi porta gravida at eget metus.</dd>
|
||||||
|
<dt>Malesuada porta</dt>
|
||||||
|
<dd>Etiam porta sem malesuada magna mollis euismod.</dd>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
</div><!-- /row -->
|
</div><!-- /row -->
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -417,6 +435,10 @@ For example, <code>section</code> should be wrapped as inline.
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span8">
|
<div class="span8">
|
||||||
<table class="table table-bordered table-striped">
|
<table class="table table-bordered table-striped">
|
||||||
|
<colgroup>
|
||||||
|
<col class="span1">
|
||||||
|
<col class="span7">
|
||||||
|
</colgroup>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Tag</th>
|
<th>Tag</th>
|
||||||
@@ -569,7 +591,7 @@ For example, <code>section</code> should be wrapped as inline.
|
|||||||
<th>#</th>
|
<th>#</th>
|
||||||
<th>First Name</th>
|
<th>First Name</th>
|
||||||
<th>Last Name</th>
|
<th>Last Name</th>
|
||||||
<th>Language</th>
|
<th>Username</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -577,19 +599,19 @@ For example, <code>section</code> should be wrapped as inline.
|
|||||||
<td>1</td>
|
<td>1</td>
|
||||||
<td>Mark</td>
|
<td>Mark</td>
|
||||||
<td>Otto</td>
|
<td>Otto</td>
|
||||||
<td>CSS</td>
|
<td>@mdo</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>2</td>
|
<td>2</td>
|
||||||
<td>Jacob</td>
|
<td>Jacob</td>
|
||||||
<td>Thornton</td>
|
<td>Thornton</td>
|
||||||
<td>Javascript</td>
|
<td>@fat</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>3</td>
|
<td>3</td>
|
||||||
<td>Stu</td>
|
<td>Larry</td>
|
||||||
<td>Dent</td>
|
<td>the Bird</td>
|
||||||
<td>HTML</td>
|
<td>@twitter</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -614,7 +636,7 @@ For example, <code>section</code> should be wrapped as inline.
|
|||||||
<th>#</th>
|
<th>#</th>
|
||||||
<th>First Name</th>
|
<th>First Name</th>
|
||||||
<th>Last Name</th>
|
<th>Last Name</th>
|
||||||
<th>Language</th>
|
<th>Username</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -622,19 +644,19 @@ For example, <code>section</code> should be wrapped as inline.
|
|||||||
<td>1</td>
|
<td>1</td>
|
||||||
<td>Mark</td>
|
<td>Mark</td>
|
||||||
<td>Otto</td>
|
<td>Otto</td>
|
||||||
<td>CSS</td>
|
<td>@mdo</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>2</td>
|
<td>2</td>
|
||||||
<td>Jacob</td>
|
<td>Jacob</td>
|
||||||
<td>Thornton</td>
|
<td>Thornton</td>
|
||||||
<td>Javascript</td>
|
<td>@fat</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>3</td>
|
<td>3</td>
|
||||||
<td>Stu</td>
|
<td>Larry</td>
|
||||||
<td>Dent</td>
|
<td>the Bird</td>
|
||||||
<td>HTML</td>
|
<td>@twitter</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -658,31 +680,31 @@ For example, <code>section</code> should be wrapped as inline.
|
|||||||
<th>#</th>
|
<th>#</th>
|
||||||
<th>First Name</th>
|
<th>First Name</th>
|
||||||
<th>Last Name</th>
|
<th>Last Name</th>
|
||||||
<th>Language</th>
|
<th>Username</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>1</td>
|
<td rowspan="2">1</td>
|
||||||
<td colspan="2">Mark Otto</td>
|
<td>Mark</td>
|
||||||
<td>CSS</td>
|
<td>Otto</td>
|
||||||
|
<td>@mdo</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Mark</td>
|
||||||
|
<td>Otto</td>
|
||||||
|
<td>@TwBootstrap</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>2</td>
|
<td>2</td>
|
||||||
<td>Jacob</td>
|
<td>Jacob</td>
|
||||||
<td>Thornton</td>
|
<td>Thornton</td>
|
||||||
<td rowspan="2">Javascript</td>
|
<td>@fat</td>
|
||||||
</tr>
|
|
||||||
</tr>
|
|
||||||
<td>3</td>
|
|
||||||
<td>Stu</td>
|
|
||||||
<td>Dent</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>3</td>
|
<td>3</td>
|
||||||
<td>Brosef</td>
|
<td colspan="2">Larry the Bird</td>
|
||||||
<td>Stalin</td>
|
<td>@twitter</td>
|
||||||
<td>HTML</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -706,7 +728,7 @@ For example, <code>section</code> should be wrapped as inline.
|
|||||||
<th>#</th>
|
<th>#</th>
|
||||||
<th>First Name</th>
|
<th>First Name</th>
|
||||||
<th>Last Name</th>
|
<th>Last Name</th>
|
||||||
<th>Language</th>
|
<th>Username</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -714,19 +736,18 @@ For example, <code>section</code> should be wrapped as inline.
|
|||||||
<td>1</td>
|
<td>1</td>
|
||||||
<td>Mark</td>
|
<td>Mark</td>
|
||||||
<td>Otto</td>
|
<td>Otto</td>
|
||||||
<td>CSS</td>
|
<td>@mdo</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>2</td>
|
<td>2</td>
|
||||||
<td>Jacob</td>
|
<td>Jacob</td>
|
||||||
<td>Thornton</td>
|
<td>Thornton</td>
|
||||||
<td>Javascript</td>
|
<td>@fat</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>3</td>
|
<td>3</td>
|
||||||
<td>Stu</td>
|
<td colspan="2">Larry the Bird</td>
|
||||||
<td>Dent</td>
|
<td>@twitter</td>
|
||||||
<td>HTML</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -747,37 +768,36 @@ For example, <code>section</code> should be wrapped as inline.
|
|||||||
<div class="span8">
|
<div class="span8">
|
||||||
<table class="table table-striped table-bordered table-condensed">
|
<table class="table table-striped table-bordered table-condensed">
|
||||||
<thead>
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th></th>
|
||||||
|
<th colspan="2">Full name</th>
|
||||||
|
<th></th>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>#</th>
|
<th>#</th>
|
||||||
<th class="yellow">First Name</th>
|
<th>First Name</th>
|
||||||
<th class="blue">Last Name</th>
|
<th>Last Name</th>
|
||||||
<th class="green">Language</th>
|
<th>Username</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>1</td>
|
<td>1</td>
|
||||||
<td>Mark</td>
|
<td>Mark</td>
|
||||||
<td>Otto</td>
|
<td>Otto</td>
|
||||||
<td>CSS</td>
|
<td>@mdo</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>2</td>
|
<td>2</td>
|
||||||
<td>Jacob</td>
|
<td>Jacob</td>
|
||||||
<td>Thornton</td>
|
<td>Thornton</td>
|
||||||
<td>Javascript</td>
|
<td>@fat</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>3</td>
|
<td>3</td>
|
||||||
<td>Stu</td>
|
<td colspan="2">Larry the Bird</td>
|
||||||
<td>Dent</td>
|
<td>@twitter</td>
|
||||||
<td>HTML</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>4</td>
|
|
||||||
<td>Brosef</td>
|
|
||||||
<td>Stalin</td>
|
|
||||||
<td>HTML</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -862,6 +882,7 @@ For example, <code>section</code> should be wrapped as inline.
|
|||||||
<form class="well">
|
<form class="well">
|
||||||
<label>Label name</label>
|
<label>Label name</label>
|
||||||
<input type="text" class="span3" placeholder="Type something…"> <span class="help-inline">Associated help text!</span>
|
<input type="text" class="span3" placeholder="Type something…"> <span class="help-inline">Associated help text!</span>
|
||||||
|
<p class="help-block">Example block-level help text here.</p>
|
||||||
<label class="checkbox">
|
<label class="checkbox">
|
||||||
<input type="checkbox"> Check me out
|
<input type="checkbox"> Check me out
|
||||||
</label>
|
</label>
|
||||||
@@ -908,7 +929,7 @@ For example, <code>section</code> should be wrapped as inline.
|
|||||||
<input type="text" class="input-small" placeholder="Email">
|
<input type="text" class="input-small" placeholder="Email">
|
||||||
<input type="password" class="input-small" placeholder="Password">
|
<input type="password" class="input-small" placeholder="Password">
|
||||||
<label class="checkbox">
|
<label class="checkbox">
|
||||||
<input type="checkbox"> Remember?
|
<input type="checkbox"> Remember me
|
||||||
</label>
|
</label>
|
||||||
<button type="submit" class="btn">Sign in</button>
|
<button type="submit" class="btn">Sign in</button>
|
||||||
</form>
|
</form>
|
||||||
@@ -916,7 +937,10 @@ For example, <code>section</code> should be wrapped as inline.
|
|||||||
<form class="well form-inline">
|
<form class="well form-inline">
|
||||||
<input type="text" class="input-small" placeholder="Email">
|
<input type="text" class="input-small" placeholder="Email">
|
||||||
<input type="password" class="input-small" placeholder="Password">
|
<input type="password" class="input-small" placeholder="Password">
|
||||||
<button type="submit" class="btn">Go</button>
|
<label class="checkbox">
|
||||||
|
<input type="checkbox"> Remember me
|
||||||
|
</label>
|
||||||
|
<button type="submit" class="btn">Sign in</button>
|
||||||
</form>
|
</form>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
@@ -1163,8 +1187,7 @@ For example, <code>section</code> should be wrapped as inline.
|
|||||||
<label class="control-label" for="prependedInput">Prepended text</label>
|
<label class="control-label" for="prependedInput">Prepended text</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<div class="input-prepend">
|
<div class="input-prepend">
|
||||||
<span class="add-on">@</span>
|
<span class="add-on">@</span><input class="span2" id="prependedInput" size="16" type="text">
|
||||||
<input class="span2" id="prependedInput" size="16" type="text">
|
|
||||||
</div>
|
</div>
|
||||||
<p class="help-block">Here's some help text</p>
|
<p class="help-block">Here's some help text</p>
|
||||||
</div>
|
</div>
|
||||||
@@ -1173,10 +1196,25 @@ For example, <code>section</code> should be wrapped as inline.
|
|||||||
<label class="control-label" for="appendedInput">Appended text</label>
|
<label class="control-label" for="appendedInput">Appended text</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<div class="input-append">
|
<div class="input-append">
|
||||||
<input class="span2" id="appendedInput" size="16" type="text">
|
<input class="span2" id="appendedInput" size="16" type="text"><span class="add-on">.00</span>
|
||||||
<span class="add-on">.00</span>
|
</div>
|
||||||
|
<span class="help-inline">Here's more help text</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="control-group">
|
||||||
|
<label class="control-label" for="appendedPrependedInput">Append and prepend</label>
|
||||||
|
<div class="controls">
|
||||||
|
<div class="input-prepend input-append">
|
||||||
|
<span class="add-on">$</span><input class="span2" id="appendedPrependedInput" size="16" type="text"><span class="add-on">.00</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="control-group">
|
||||||
|
<label class="control-label" for="appendedPrependedInput">Append with button</label>
|
||||||
|
<div class="controls">
|
||||||
|
<div class="input-append">
|
||||||
|
<input class="span2" id="appendedPrependedInput" size="16" type="text"><button class="btn" type="button">Go!</button>
|
||||||
</div>
|
</div>
|
||||||
<p class="help-block">Here's more help text</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
@@ -1260,44 +1298,44 @@ For example, <code>section</code> should be wrapped as inline.
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Button</th>
|
<th>Button</th>
|
||||||
<th>Class</th>
|
<th>class=""</th>
|
||||||
<th>Description</th>
|
<th>Description</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td><button class="btn" href="#">Default</button></td>
|
<td><button class="btn" href="#">Default</button></td>
|
||||||
<td><code>.btn</code></td>
|
<td><code>btn</code></td>
|
||||||
<td>Standard gray button with gradient</td>
|
<td>Standard gray button with gradient</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><button class="btn btn-primary" href="#">Primary</button></td>
|
<td><button class="btn btn-primary" href="#">Primary</button></td>
|
||||||
<td><code>.btn-primary</code></td>
|
<td><code>btn btn-primary</code></td>
|
||||||
<td>Provides extra visual weight and identifies the primary action in a set of buttons</td>
|
<td>Provides extra visual weight and identifies the primary action in a set of buttons</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><button class="btn btn-info" href="#">Info</button></td>
|
<td><button class="btn btn-info" href="#">Info</button></td>
|
||||||
<td><code>.btn-info</code></td>
|
<td><code>btn btn-info</code></td>
|
||||||
<td>Used as an alternate to the default styles</td>
|
<td>Used as an alternate to the default styles</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><button class="btn btn-success" href="#">Success</button></td>
|
<td><button class="btn btn-success" href="#">Success</button></td>
|
||||||
<td><code>.btn-success</code></td>
|
<td><code>btn btn-success</code></td>
|
||||||
<td>Indicates a successful or positive action</td>
|
<td>Indicates a successful or positive action</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><button class="btn btn-warning" href="#">Warning</button></td>
|
<td><button class="btn btn-warning" href="#">Warning</button></td>
|
||||||
<td><code>.btn-warning</code></td>
|
<td><code>btn btn-warning</code></td>
|
||||||
<td>Indicates caution should be taken with this action</td>
|
<td>Indicates caution should be taken with this action</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><button class="btn btn-danger" href="#">Danger</button></td>
|
<td><button class="btn btn-danger" href="#">Danger</button></td>
|
||||||
<td><code>.btn-danger</code></td>
|
<td><code>btn btn-danger</code></td>
|
||||||
<td>Indicates a dangerous or potentially negative action</td>
|
<td>Indicates a dangerous or potentially negative action</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><button class="btn btn-inverse" href="#">Inverse</button></td>
|
<td><button class="btn btn-inverse" href="#">Inverse</button></td>
|
||||||
<td><code>.btn-inverse</code></td>
|
<td><code>btn btn-inverse</code></td>
|
||||||
<td>Alternate dark gray button, not tied to a semantic action or use</td>
|
<td>Alternate dark gray button, not tied to a semantic action or use</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
@@ -1512,9 +1550,6 @@ For example, <code>section</code> should be wrapped as inline.
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="alert alert-info">
|
|
||||||
<strong>Heads up!</strong> Icon classes are echoed via CSS <code>:after</code>. In the docs, we show a light red background color on hover to highlight the icon's size.
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
@@ -1527,7 +1562,7 @@ For example, <code>section</code> should be wrapped as inline.
|
|||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>How to use</h3>
|
<h3>How to use</h3>
|
||||||
<p>With v2.0.1, we have opted to use an <code><i></code> tag for all our icons, but they have no case class—only a shared prefix. To use, place the following code just about anywhere:</p>
|
<p>Bootstrap uses an <code><i></code> tag for all icons, but they have no case class—only a shared prefix. To use, place the following code just about anywhere:</p>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<i class="icon-search"></i>
|
<i class="icon-search"></i>
|
||||||
</pre>
|
</pre>
|
||||||
@@ -1536,6 +1571,10 @@ For example, <code>section</code> should be wrapped as inline.
|
|||||||
<i class="icon-search icon-white"></i>
|
<i class="icon-search icon-white"></i>
|
||||||
</pre>
|
</pre>
|
||||||
<p>There are 120 classes to choose from for your icons. Just add an <code><i></code> tag with the right classes and you're set. You can find the full list in <strong>sprites.less</strong> or right here in this document.</p>
|
<p>There are 120 classes to choose from for your icons. Just add an <code><i></code> tag with the right classes and you're set. You can find the full list in <strong>sprites.less</strong> or right here in this document.</p>
|
||||||
|
<p>
|
||||||
|
<span class="label label-info">Heads up!</span>
|
||||||
|
When using beside strings of text, as in buttons or nav links, be sure to leave a space after the <code><i></code> tag for proper spacing.
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>Use cases</h3>
|
<h3>Use cases</h3>
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
var hogan = require('hogan.js')
|
var hogan = require('hogan.js')
|
||||||
, fs = require('fs')
|
, fs = require('fs')
|
||||||
, prod = process.argv[2] == 'production'
|
, prod = process.argv[2] == 'production'
|
||||||
|
, title = 'Twitter Bootstrap'
|
||||||
|
|
||||||
var layout, pages
|
var layout, pages
|
||||||
|
|
||||||
@@ -23,6 +24,16 @@ pages.forEach(function (name) {
|
|||||||
context[name.replace(/\.mustache$/, '')] = 'active'
|
context[name.replace(/\.mustache$/, '')] = 'active'
|
||||||
context._i = true
|
context._i = true
|
||||||
context.production = prod
|
context.production = prod
|
||||||
|
context.title = name
|
||||||
|
.replace(/\.mustache/, '')
|
||||||
|
.replace(/\-.*/, '')
|
||||||
|
.replace(/(.)/, function ($1) { return $1.toUpperCase() })
|
||||||
|
|
||||||
|
if (context.title == 'Index') {
|
||||||
|
context.title = title
|
||||||
|
} else {
|
||||||
|
context.title += ' · ' + title
|
||||||
|
}
|
||||||
|
|
||||||
page = hogan.compile(page, { sectionTags: [{o:'_i', c:'i'}] })
|
page = hogan.compile(page, { sectionTags: [{o:'_i', c:'i'}] })
|
||||||
page = layout.render(context, {
|
page = layout.render(context, {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>Bootstrap, from Twitter</title>
|
<title>Components · Twitter Bootstrap</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta name="description" content="">
|
<meta name="description" content="">
|
||||||
<meta name="author" content="">
|
<meta name="author" content="">
|
||||||
@@ -20,9 +20,9 @@
|
|||||||
|
|
||||||
<!-- Le fav and touch icons -->
|
<!-- Le fav and touch icons -->
|
||||||
<link rel="shortcut icon" href="assets/ico/favicon.ico">
|
<link rel="shortcut icon" href="assets/ico/favicon.ico">
|
||||||
<link rel="apple-touch-icon" href="assets/ico/apple-touch-icon.png">
|
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png">
|
||||||
<link rel="apple-touch-icon" sizes="72x72" href="assets/ico/apple-touch-icon-72x72.png">
|
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png">
|
||||||
<link rel="apple-touch-icon" sizes="114x114" href="assets/ico/apple-touch-icon-114x114.png">
|
<link rel="apple-touch-icon-precomposed" href="assets/ico/apple-touch-icon-57-precomposed.png">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body data-spy="scroll" data-target=".subnav" data-offset="50">
|
<body data-spy="scroll" data-target=".subnav" data-offset="50">
|
||||||
@@ -98,6 +98,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#labels">Labels</a></li>
|
<li><a href="#labels">Labels</a></li>
|
||||||
|
<li><a href="#badges">Badges</a></li>
|
||||||
<li><a href="#typography">Typography</a></li>
|
<li><a href="#typography">Typography</a></li>
|
||||||
<li><a href="#thumbnails">Thumbnails</a></li>
|
<li><a href="#thumbnails">Thumbnails</a></li>
|
||||||
<li><a href="#alerts">Alerts</a></li>
|
<li><a href="#alerts">Alerts</a></li>
|
||||||
@@ -133,34 +134,34 @@
|
|||||||
<p>Here's how the HTML looks for a standard button group built with anchor tag buttons:</p>
|
<p>Here's how the HTML looks for a standard button group built with anchor tag buttons:</p>
|
||||||
<div class="">
|
<div class="">
|
||||||
<div class="btn-group" style="margin: 9px 0;">
|
<div class="btn-group" style="margin: 9px 0;">
|
||||||
<a class="btn" href="#">Left</a>
|
<button class="btn">Left</button>
|
||||||
<a class="btn" href="#">Middle</a>
|
<button class="btn">Middle</button>
|
||||||
<a class="btn" href="#">Right</a>
|
<button class="btn">Right</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn" href="#">1</a>
|
<button class="btn">1</button>
|
||||||
<a class="btn" href="#">2</a>
|
<button class="btn">2</button>
|
||||||
<a class="btn" href="#">3</a>
|
<button class="btn">3</button>
|
||||||
</div>
|
</div>
|
||||||
</pre>
|
</pre>
|
||||||
<h3>Toolbar example</h3>
|
<h3>Toolbar example</h3>
|
||||||
<p>Combine sets of <code><div class="btn-group"></code> into a <code><div class="btn-toolbar"></code> for more complex components.</p>
|
<p>Combine sets of <code><div class="btn-group"></code> into a <code><div class="btn-toolbar"></code> for more complex components.</p>
|
||||||
<div class="btn-toolbar">
|
<div class="btn-toolbar">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn" href="#">1</a>
|
<button class="btn">1</button>
|
||||||
<a class="btn" href="#">2</a>
|
<button class="btn">2</button>
|
||||||
<a class="btn" href="#">3</a>
|
<button class="btn">3</button>
|
||||||
<a class="btn" href="#">4</a>
|
<button class="btn">4</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn" href="#">5</a>
|
<button class="btn">5</button>
|
||||||
<a class="btn" href="#">6</a>
|
<button class="btn">6</button>
|
||||||
<a class="btn" href="#">7</a>
|
<button class="btn">7</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn" href="#">8</a>
|
<button class="btn">8</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
@@ -175,9 +176,8 @@
|
|||||||
<h3>Checkbox and radio flavors</h3>
|
<h3>Checkbox and radio flavors</h3>
|
||||||
<p>Button groups can also function as radios, where only one button may be active, or checkboxes, where any number of buttons may be active. View <a href="./javascript.html#buttons">the Javascript docs</a> for that.</p>
|
<p>Button groups can also function as radios, where only one button may be active, or checkboxes, where any number of buttons may be active. View <a href="./javascript.html#buttons">the Javascript docs</a> for that.</p>
|
||||||
<p><a class="btn js-btn" href="./javascript.html#buttons">Get the javascript »</a></p>
|
<p><a class="btn js-btn" href="./javascript.html#buttons">Get the javascript »</a></p>
|
||||||
<hr>
|
<h3>Dropdowns in button groups</h3>
|
||||||
<h4 class="muted">Heads up</h4>
|
<p><span class="label label-info">Heads up!</span> Buttons with dropdowns must be individually wrapped in their own <code>.btn-group</code> within a <code>.btn-toolbar</code> for proper rendering.</p>
|
||||||
<p class="muted">CSS for button groups is in a separate file, button-groups.less.</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@@ -188,16 +188,17 @@
|
|||||||
================================================== -->
|
================================================== -->
|
||||||
<section id="buttonDropdowns">
|
<section id="buttonDropdowns">
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h1>Buttons dropdowns <small>Contextual dropdown menus built on button groups</small></h1>
|
<h1>Button dropdown menus <small>Built on button groups to provide contextual menus</small></h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<h2>Button dropdowns</h2>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>Button dropdowns</h3>
|
<h3>Overview and examples</h3>
|
||||||
<p>Use any button to trigger a dropdown menu by placing it within a <code>.btn-group</code> and providing the proper menu markup.</p>
|
<p>Use any button to trigger a dropdown menu by placing it within a <code>.btn-group</code> and providing the proper menu markup.</p>
|
||||||
<div class="btn-toolbar" style="margin-top: 18px;">
|
<div class="btn-toolbar" style="margin-top: 18px;">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">Action <span class="caret"></span></a>
|
<button class="btn dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="#">Action</a></li>
|
<li><a href="#">Action</a></li>
|
||||||
<li><a href="#">Another action</a></li>
|
<li><a href="#">Another action</a></li>
|
||||||
@@ -207,7 +208,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div><!-- /btn-group -->
|
</div><!-- /btn-group -->
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#">Action <span class="caret"></span></a>
|
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="#">Action</a></li>
|
<li><a href="#">Action</a></li>
|
||||||
<li><a href="#">Another action</a></li>
|
<li><a href="#">Another action</a></li>
|
||||||
@@ -217,7 +218,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div><!-- /btn-group -->
|
</div><!-- /btn-group -->
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn btn-danger dropdown-toggle" data-toggle="dropdown" href="#">Danger <span class="caret"></span></a>
|
<button class="btn btn-danger dropdown-toggle" data-toggle="dropdown">Danger <span class="caret"></span></button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="#">Action</a></li>
|
<li><a href="#">Action</a></li>
|
||||||
<li><a href="#">Another action</a></li>
|
<li><a href="#">Another action</a></li>
|
||||||
@@ -229,7 +230,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="btn-toolbar">
|
<div class="btn-toolbar">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn btn-success dropdown-toggle" data-toggle="dropdown" href="#">Success <span class="caret"></span></a>
|
<button class="btn btn-warning dropdown-toggle" data-toggle="dropdown">Warning <span class="caret"></span></button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="#">Action</a></li>
|
<li><a href="#">Action</a></li>
|
||||||
<li><a href="#">Another action</a></li>
|
<li><a href="#">Another action</a></li>
|
||||||
@@ -239,7 +240,27 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div><!-- /btn-group -->
|
</div><!-- /btn-group -->
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn btn-info dropdown-toggle" data-toggle="dropdown" href="#">Info <span class="caret"></span></a>
|
<button class="btn btn-success dropdown-toggle" data-toggle="dropdown">Success <span class="caret"></span></button>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<li><a href="#">Action</a></li>
|
||||||
|
<li><a href="#">Another action</a></li>
|
||||||
|
<li><a href="#">Something else here</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#">Separated link</a></li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /btn-group -->
|
||||||
|
<div class="btn-group">
|
||||||
|
<button class="btn btn-info dropdown-toggle" data-toggle="dropdown">Info <span class="caret"></span></button>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<li><a href="#">Action</a></li>
|
||||||
|
<li><a href="#">Another action</a></li>
|
||||||
|
<li><a href="#">Something else here</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#">Separated link</a></li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /btn-group -->
|
||||||
|
<div class="btn-group">
|
||||||
|
<button class="btn btn-inverse dropdown-toggle" data-toggle="dropdown">Inverse <span class="caret"></span></button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="#">Action</a></li>
|
<li><a href="#">Action</a></li>
|
||||||
<li><a href="#">Another action</a></li>
|
<li><a href="#">Another action</a></li>
|
||||||
@@ -249,8 +270,6 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div><!-- /btn-group -->
|
</div><!-- /btn-group -->
|
||||||
</div><!-- /btn-toolbar -->
|
</div><!-- /btn-toolbar -->
|
||||||
<hr>
|
|
||||||
<p><span class="label label-info">Heads up!</span> Button dropdowns require the <a href="./javascript.html#dropdowns">Bootstrap dropdown plugin</a> to function.</p>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="span8">
|
<div class="span8">
|
||||||
<h3>Example markup</h3>
|
<h3>Example markup</h3>
|
||||||
@@ -268,15 +287,60 @@
|
|||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>Split button dropdowns</h3>
|
<h3>Works with all button sizes</h3>
|
||||||
|
<p>Button dropdowns work at any size. your button sizes to <code>.btn-large</code>, <code>.btn-small</code>, or <code>.btn-mini</code>.</p>
|
||||||
|
<div class="btn-toolbar" style="margin-top: 18px;">
|
||||||
|
<div class="btn-group">
|
||||||
|
<button class="btn btn-large dropdown-toggle" data-toggle="dropdown">Large button <span class="caret"></span></button>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<li><a href="#">Action</a></li>
|
||||||
|
<li><a href="#">Another action</a></li>
|
||||||
|
<li><a href="#">Something else here</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#">Separated link</a></li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /btn-group -->
|
||||||
|
<div class="btn-group">
|
||||||
|
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown">Small button <span class="caret"></span></button>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<li><a href="#">Action</a></li>
|
||||||
|
<li><a href="#">Another action</a></li>
|
||||||
|
<li><a href="#">Something else here</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#">Separated link</a></li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /btn-group -->
|
||||||
|
<div class="btn-group">
|
||||||
|
<button class="btn btn-mini dropdown-toggle" data-toggle="dropdown">Mini button <span class="caret"></span></button>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<li><a href="#">Action</a></li>
|
||||||
|
<li><a href="#">Another action</a></li>
|
||||||
|
<li><a href="#">Something else here</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#">Separated link</a></li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /btn-group -->
|
||||||
|
</div><!-- /btn-toolbar -->
|
||||||
|
</div><!--/span-->
|
||||||
|
<div class="span4">
|
||||||
|
<h3>Requires javascript</h3>
|
||||||
|
<p>Button dropdowns require the <a href="./javascript.html#dropdowns">Bootstrap dropdown plugin</a> to function.</p>
|
||||||
|
<p>In some cases—like mobile—dropdown menus will extend outside the viewport. You need to resolve the alignment manually or with custom javascript.</p>
|
||||||
|
</div><!--/span-->
|
||||||
|
</div><!--/row-->
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<h2>Split button dropdowns</h2>
|
||||||
|
<div class="row">
|
||||||
|
<div class="span4">
|
||||||
|
<h3>Overview and examples</h3>
|
||||||
<p>Building on the button group styles and markup, we can easily create a split button. Split buttons feature a standard action on the left and a dropdown toggle on the right with contextual links.</p>
|
<p>Building on the button group styles and markup, we can easily create a split button. Split buttons feature a standard action on the left and a dropdown toggle on the right with contextual links.</p>
|
||||||
<div class="btn-toolbar" style="margin-top: 18px;">
|
<div class="btn-toolbar" style="margin-top: 18px;">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn" href="#">Action</a>
|
<button class="btn">Action</button>
|
||||||
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
|
<button class="btn dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="#">Action</a></li>
|
<li><a href="#">Action</a></li>
|
||||||
<li><a href="#">Another action</a></li>
|
<li><a href="#">Another action</a></li>
|
||||||
@@ -286,8 +350,8 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div><!-- /btn-group -->
|
</div><!-- /btn-group -->
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn btn-primary" href="#">Action</a>
|
<button class="btn btn-primary">Action</button>
|
||||||
<a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
|
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="#">Action</a></li>
|
<li><a href="#">Action</a></li>
|
||||||
<li><a href="#">Another action</a></li>
|
<li><a href="#">Another action</a></li>
|
||||||
@@ -297,8 +361,8 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div><!-- /btn-group -->
|
</div><!-- /btn-group -->
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn btn-danger" href="#">Danger</a>
|
<button class="btn btn-danger">Danger</button>
|
||||||
<a class="btn btn-danger dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
|
<button class="btn btn-danger dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="#">Action</a></li>
|
<li><a href="#">Action</a></li>
|
||||||
<li><a href="#">Another action</a></li>
|
<li><a href="#">Another action</a></li>
|
||||||
@@ -310,8 +374,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="btn-toolbar">
|
<div class="btn-toolbar">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn btn-success" href="#">Success</a>
|
<button class="btn btn-warning">Warning</button>
|
||||||
<a class="btn btn-success dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
|
<button class="btn btn-warning dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="#">Action</a></li>
|
<li><a href="#">Action</a></li>
|
||||||
<li><a href="#">Another action</a></li>
|
<li><a href="#">Another action</a></li>
|
||||||
@@ -321,8 +385,19 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div><!-- /btn-group -->
|
</div><!-- /btn-group -->
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn btn-info" href="#">Info</a>
|
<button class="btn btn-success">Success</button>
|
||||||
<a class="btn btn-info dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
|
<button class="btn btn-success dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<li><a href="#">Action</a></li>
|
||||||
|
<li><a href="#">Another action</a></li>
|
||||||
|
<li><a href="#">Something else here</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#">Separated link</a></li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /btn-group -->
|
||||||
|
<div class="btn-group">
|
||||||
|
<button class="btn btn-info">Info</button>
|
||||||
|
<button class="btn btn-info dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="#">Action</a></li>
|
<li><a href="#">Action</a></li>
|
||||||
<li><a href="#">Another action</a></li>
|
<li><a href="#">Another action</a></li>
|
||||||
@@ -332,21 +407,121 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div><!-- /btn-group -->
|
</div><!-- /btn-group -->
|
||||||
</div>
|
</div>
|
||||||
|
<div class="btn-toolbar">
|
||||||
|
<div class="btn-group">
|
||||||
|
<button class="btn btn-inverse">Inverse</button>
|
||||||
|
<button class="btn btn-inverse dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<li><a href="#">Action</a></li>
|
||||||
|
<li><a href="#">Another action</a></li>
|
||||||
|
<li><a href="#">Something else here</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#">Separated link</a></li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /btn-group -->
|
||||||
|
</div><!-- /btn-toolbar -->
|
||||||
|
<h3>Sizes</h3>
|
||||||
|
<p>Utilize the extra button classe <code>.btn-mini</code>, <code>.btn-small</code>, or <code>.btn-large</code> for sizing.</p>
|
||||||
|
<div class="btn-toolbar">
|
||||||
|
<div class="btn-group">
|
||||||
|
<button class="btn btn-large">Large action</button>
|
||||||
|
<button class="btn btn-large dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<li><a href="#">Action</a></li>
|
||||||
|
<li><a href="#">Another action</a></li>
|
||||||
|
<li><a href="#">Something else here</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#">Separated link</a></li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /btn-group -->
|
||||||
|
</div><!-- /btn-toolbar -->
|
||||||
|
<div class="btn-toolbar">
|
||||||
|
<div class="btn-group">
|
||||||
|
<button class="btn btn-small">Small action</button>
|
||||||
|
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<li><a href="#">Action</a></li>
|
||||||
|
<li><a href="#">Another action</a></li>
|
||||||
|
<li><a href="#">Something else here</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#">Separated link</a></li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /btn-group -->
|
||||||
|
</div><!-- /btn-toolbar -->
|
||||||
|
<div class="btn-toolbar">
|
||||||
|
<div class="btn-group">
|
||||||
|
<button class="btn btn-mini">Mini action</button>
|
||||||
|
<button class="btn btn-mini dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<li><a href="#">Action</a></li>
|
||||||
|
<li><a href="#">Another action</a></li>
|
||||||
|
<li><a href="#">Something else here</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#">Separated link</a></li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /btn-group -->
|
||||||
|
</div><!-- /btn-toolbar -->
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
<div class="btn-group">
|
||||||
|
...
|
||||||
|
<ul class="dropdown-menu pull-right">
|
||||||
|
<!-- dropdown menu links -->
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="span8">
|
<div class="span8">
|
||||||
<h3>Example markup</h3>
|
<h3>Example markup</h3>
|
||||||
<p>We expand on the normal button dropdowns to provide a second button action that operates as a separate dropdown trigger.</p>
|
<p>We expand on the normal button dropdowns to provide a second button action that operates as a separate dropdown trigger.</p>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn" href="#">Action</a>
|
<button class="btn">Action</button>
|
||||||
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
|
<button class="btn dropdown-toggle" data-toggle="dropdown">
|
||||||
<span class="caret"></span>
|
<span class="caret"></span>
|
||||||
</a>
|
</button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<!-- dropdown menu links -->
|
<!-- dropdown menu links -->
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</pre>
|
</pre>
|
||||||
|
<h3>Dropup menus</h3>
|
||||||
|
<p>Dropdown menus can also be toggled from the bottom up by adding a single class to the immediate parent of <code>.dropdown-menu</code>. It will flip the direction of the <code>.caret</code> and reposition the menu itself to move from the bottom up instead of top down.</p>
|
||||||
|
<div class="btn-toolbar" style="margin-top: 9px;">
|
||||||
|
<div class="btn-group dropup">
|
||||||
|
<button class="btn">Dropup</button>
|
||||||
|
<button class="btn dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<li><a href="#">Action</a></li>
|
||||||
|
<li><a href="#">Another action</a></li>
|
||||||
|
<li><a href="#">Something else here</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#">Separated link</a></li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /btn-group -->
|
||||||
|
<div class="btn-group dropup">
|
||||||
|
<button class="btn primary">Right dropup</button>
|
||||||
|
<button class="btn primary dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||||||
|
<ul class="dropdown-menu pull-right">
|
||||||
|
<li><a href="#">Action</a></li>
|
||||||
|
<li><a href="#">Another action</a></li>
|
||||||
|
<li><a href="#">Something else here</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#">Separated link</a></li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /btn-group -->
|
||||||
|
</div>
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
<div class="btn-group dropup">
|
||||||
|
<button class="btn">Dropup</button>
|
||||||
|
<button class="btn dropdown-toggle" data-toggle="dropdown">
|
||||||
|
<span class="caret"></span>
|
||||||
|
</button>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<!-- dropdown menu links -->
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</pre>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@@ -453,7 +628,7 @@
|
|||||||
<h3>Tabs with dropdowns</h3>
|
<h3>Tabs with dropdowns</h3>
|
||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs">
|
||||||
<li class="active"><a href="#">Home</a></li>
|
<li class="active"><a href="#">Home</a></li>
|
||||||
<li><a href="#">Profile</a></li>
|
<li><a href="#">Help</a></li>
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Dropdown <b class="caret"></b></a>
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Dropdown <b class="caret"></b></a>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
@@ -464,6 +639,16 @@
|
|||||||
<li><a href="#">Separated link</a></li>
|
<li><a href="#">Separated link</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="dropdown">
|
||||||
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Dropup <b class="caret bottom-up"></b></a>
|
||||||
|
<ul class="dropdown-menu bottom-up pull-right">
|
||||||
|
<li><a href="#">Action</a></li>
|
||||||
|
<li><a href="#">Another action</a></li>
|
||||||
|
<li><a href="#">Something else here</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#">Separated link</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs">
|
||||||
@@ -485,7 +670,7 @@
|
|||||||
<h3>Pills with dropdowns</h3>
|
<h3>Pills with dropdowns</h3>
|
||||||
<ul class="nav nav-pills">
|
<ul class="nav nav-pills">
|
||||||
<li class="active"><a href="#">Home</a></li>
|
<li class="active"><a href="#">Home</a></li>
|
||||||
<li><a href="#">Profile</a></li>
|
<li><a href="#">Help</a></li>
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Dropdown <b class="caret"></b></a>
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Dropdown <b class="caret"></b></a>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
@@ -496,6 +681,16 @@
|
|||||||
<li><a href="#">Separated link</a></li>
|
<li><a href="#">Separated link</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="dropdown">
|
||||||
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Dropup <b class="caret bottom-up"></b></a>
|
||||||
|
<ul class="dropdown-menu bottom-up pull-right">
|
||||||
|
<li><a href="#">Action</a></li>
|
||||||
|
<li><a href="#">Another action</a></li>
|
||||||
|
<li><a href="#">Something else here</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#">Separated link</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<ul class="nav nav-pills">
|
<ul class="nav nav-pills">
|
||||||
@@ -521,8 +716,18 @@
|
|||||||
<h3>Application-style navigation</h3>
|
<h3>Application-style navigation</h3>
|
||||||
<p>Nav lists provide a simple and easy way to build groups of nav links with optional headers. They're best used in sidebars like the Finder in OS X.</p>
|
<p>Nav lists provide a simple and easy way to build groups of nav links with optional headers. They're best used in sidebars like the Finder in OS X.</p>
|
||||||
<p>Structurally, they're built on the same core nav styles as tabs and pills, so usage and customization are straightforward.</p>
|
<p>Structurally, they're built on the same core nav styles as tabs and pills, so usage and customization are straightforward.</p>
|
||||||
|
<hr>
|
||||||
<h4>With icons</h4>
|
<h4>With icons</h4>
|
||||||
<p>Nav lists are also easy to equip with icons. Add the proper <code><i></code> tag with class and you're set.</p>
|
<p>Nav lists are also easy to equip with icons. Add the proper <code><i></code> tag with class and you're set.</p>
|
||||||
|
<h4>Horizontal dividers</h4>
|
||||||
|
<p>Add a horizontal divider by creating an empty list item with the class <code>.divider</code>, like so:</p>
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
<ul class="nav nav-list">
|
||||||
|
...
|
||||||
|
<li class="divider"></li>
|
||||||
|
...
|
||||||
|
</ul>
|
||||||
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>Example nav list</h3>
|
<h3>Example nav list</h3>
|
||||||
@@ -536,6 +741,7 @@
|
|||||||
<li class="nav-header">Another list header</li>
|
<li class="nav-header">Another list header</li>
|
||||||
<li><a href="#">Profile</a></li>
|
<li><a href="#">Profile</a></li>
|
||||||
<li><a href="#">Settings</a></li>
|
<li><a href="#">Settings</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
<li><a href="#">Help</a></li>
|
<li><a href="#">Help</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div> <!-- /well -->
|
</div> <!-- /well -->
|
||||||
@@ -566,6 +772,7 @@
|
|||||||
<li class="nav-header">Another list header</li>
|
<li class="nav-header">Another list header</li>
|
||||||
<li><a href="#"><i class="icon-user"></i> Profile</a></li>
|
<li><a href="#"><i class="icon-user"></i> Profile</a></li>
|
||||||
<li><a href="#"><i class="icon-cog"></i> Settings</a></li>
|
<li><a href="#"><i class="icon-cog"></i> Settings</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
<li><a href="#"><i class="icon-flag"></i> Help</a></li>
|
<li><a href="#"><i class="icon-flag"></i> Help</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div> <!-- /well -->
|
</div> <!-- /well -->
|
||||||
@@ -754,7 +961,7 @@
|
|||||||
<p>An example of a static (not fixed to the top) navbar with project name, navigation, and search form.</p>
|
<p>An example of a static (not fixed to the top) navbar with project name, navigation, and search form.</p>
|
||||||
<div class="navbar">
|
<div class="navbar">
|
||||||
<div class="navbar-inner">
|
<div class="navbar-inner">
|
||||||
<div class="container" style="width: auto;">
|
<div class="container">
|
||||||
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
@@ -816,13 +1023,24 @@
|
|||||||
</div>
|
</div>
|
||||||
</pre>
|
</pre>
|
||||||
<h3>Fixed navbar</h3>
|
<h3>Fixed navbar</h3>
|
||||||
<p>To make the navbar fixed to the top of the viewport, add <code>.navbar-fixed-top</code> to the outermost div, <code>.navbar</code>.</p>
|
<p>Fix the navbar to the top or bottom of the viewport with an additional class on the outermost div, <code>.navbar</code>.</p>
|
||||||
|
<div class="row">
|
||||||
|
<div class="span4">
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<div class="navbar navbar-fixed-top">
|
<div class="navbar navbar-fixed-top">
|
||||||
...
|
...
|
||||||
</div>
|
</div>
|
||||||
</pre>
|
</pre>
|
||||||
<p>In your CSS, you will also need to account for the overlap it causes by adding 40px or more of padding to your <code><body></code>. Be sure to add this after the core Bootstrap CSS and before the optional responsive CSS.</p>
|
</div><!--/span-->
|
||||||
|
<div class="span4">
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
<div class="navbar navbar-fixed-bottom">
|
||||||
|
...
|
||||||
|
</div>
|
||||||
|
</pre>
|
||||||
|
</div><!--/span-->
|
||||||
|
</div><!--/row-->
|
||||||
|
<p>When you affix the navbar, remember to account for the hidden area underneath. Add 40px or more of apdding to the <code><body></code>. Be sure to add this after the core Bootstrap CSS and before the optional responsive CSS.</p>
|
||||||
<h3>Brand name</h3>
|
<h3>Brand name</h3>
|
||||||
<p>A simple link to show your brand or project name only requires an anchor tag.</p>
|
<p>A simple link to show your brand or project name only requires an anchor tag.</p>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
@@ -830,8 +1048,14 @@
|
|||||||
Project name
|
Project name
|
||||||
</a>
|
</a>
|
||||||
</pre>
|
</pre>
|
||||||
<h3>Search form</h3>
|
<h3>Forms in navbar</h3>
|
||||||
<p>Search forms receive custom styles in the navbar with the <code>.navbar-search</code> class. Include <code>.pull-left</code> or <code>.pull-right</code> on the <code>form</code> to align it.</p>
|
<p>To properly style and position a form within the navbar, add the appropriate classes as shown below. For a default form, include <code>.navbar-form</code> and either <code>.pull-left</code> or <code>.pull-right</code> to properly align it.</p>
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
<form class="navbar-form pull-left">
|
||||||
|
<input type="text" class="span2">
|
||||||
|
</form>
|
||||||
|
</pre>
|
||||||
|
<p>For a more customized search form, add the <code>.navbar-search</code> class to receive specialized styles in the navbar.</p>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<form class="navbar-search pull-left">
|
<form class="navbar-search pull-left">
|
||||||
<input type="text" class="search-query" placeholder="Search">
|
<input type="text" class="search-query" placeholder="Search">
|
||||||
@@ -890,8 +1114,8 @@
|
|||||||
</pre>
|
</pre>
|
||||||
<h3>Component alignment</h3>
|
<h3>Component alignment</h3>
|
||||||
<p>To align a nav, search form, or text, use the <code>.pull-left</code> or <code>.pull-right</code> utility classes. Both classes will add a CSS float in the specified direction.</p>
|
<p>To align a nav, search form, or text, use the <code>.pull-left</code> or <code>.pull-right</code> utility classes. Both classes will add a CSS float in the specified direction.</p>
|
||||||
<h3>Adding dropdowns</h3>
|
<h3>Adding dropdown menus</h3>
|
||||||
<p>Adding dropdowns to the nav is super simple, but does require the use of <a href="./javascript.html#dropdowns">our javascript plugin</a>.</p>
|
<p>Adding dropdowns and dropups to the nav is super simple, but does require the use of <a href="./javascript.html/#dropdown">our javascript plugin</a>.</p>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
@@ -908,6 +1132,9 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</pre>
|
</pre>
|
||||||
<p><a class="btn" href="./javascript.html#dropdowns">Get the javascript →</a></p>
|
<p><a class="btn" href="./javascript.html#dropdowns">Get the javascript →</a></p>
|
||||||
|
<hr>
|
||||||
|
<h3>Text in the navbar</h3>
|
||||||
|
<p>Wrap strings of text in a <code><p></code> tag for proper leading and color.</p>
|
||||||
</div><!-- /.span -->
|
</div><!-- /.span -->
|
||||||
</div><!-- /.row -->
|
</div><!-- /.row -->
|
||||||
|
|
||||||
@@ -953,9 +1180,7 @@
|
|||||||
<li>
|
<li>
|
||||||
<a href="#">Library</a> <span class="divider">/</span>
|
<a href="#">Library</a> <span class="divider">/</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="active">
|
<li class="active">Data</li>
|
||||||
<a href="#">Data</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
@@ -1048,6 +1273,8 @@
|
|||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>About pager</h3>
|
<h3>About pager</h3>
|
||||||
<p>The pager component is a set of links for simple pagination implementations with light markup and even lighter styles. It's great for simple sites like blogs or magazines.</p>
|
<p>The pager component is a set of links for simple pagination implementations with light markup and even lighter styles. It's great for simple sites like blogs or magazines.</p>
|
||||||
|
<h4>Optional disabled state</h4>
|
||||||
|
<p>Pager links also use the general <code>.disabled</code> class from the pagination.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>Default example</h3>
|
<h3>Default example</h3>
|
||||||
@@ -1144,12 +1371,116 @@
|
|||||||
<code><span class="label label-info">Info</span></code>
|
<code><span class="label label-info">Info</span></code>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<span class="label label-inverse">Inverse</span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<code><span class="label label-inverse">Inverse</span></code>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Badges
|
||||||
|
================================================== -->
|
||||||
|
<section id="badges">
|
||||||
|
<div class="page-header">
|
||||||
|
<h1>Badges <small>Indicators and unread counts</small></h1>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="span4">
|
||||||
|
<h3>About</h3>
|
||||||
|
<p>Badges are small, simple components for displaying an indicator or count of some sort. They're commonly found in email clients like Mail.app or on mobile apps for push notifications.</p>
|
||||||
|
</div><!-- /.span -->
|
||||||
|
<div class="span8">
|
||||||
|
<h3>Available classes</h3>
|
||||||
|
<table class="table table-bordered table-striped">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Name</th>
|
||||||
|
<th>Example</th>
|
||||||
|
<th>Markup</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
Default
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span class="badge">1</span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<code><span class="badge">1</span></code>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
Success
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span class="badge badge-success">2</span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<code><span class="badge badge-success">2</span></code>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
Warning
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span class="badge badge-warning">4</span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<code><span class="badge badge-warning">4</span></code>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
Error
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span class="badge badge-error">6</span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<code><span class="badge badge-error">6</span></code>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
Info
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span class="badge badge-info">8</span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<code><span class="badge badge-info">8</span></code>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
Inverse
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span class="badge badge-inverse">10</span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<code><span class="badge badge-inverse">10</span></code>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div><!-- /.span -->
|
||||||
|
</div><!-- /.row -->
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Typographic components
|
<!-- Typographic components
|
||||||
================================================== -->
|
================================================== -->
|
||||||
<section id="typography">
|
<section id="typography">
|
||||||
@@ -1188,8 +1519,11 @@
|
|||||||
<p>A simple shell for an <code>h1</code> to appropratiely space out and segment sections of content on a page. It can utilize the <code>h1</code>'s default <code>small</code>, element as well most other components (with additional styles).</p>
|
<p>A simple shell for an <code>h1</code> to appropratiely space out and segment sections of content on a page. It can utilize the <code>h1</code>'s default <code>small</code>, element as well most other components (with additional styles).</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="span8">
|
<div class="span8">
|
||||||
|
<div class="page-header">
|
||||||
|
<h1>Example page header <small>Subtext for header</small></h1>
|
||||||
|
</div>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<div class="page-haeder">
|
<div class="page-header">
|
||||||
<h1>Example page header</h1>
|
<h1>Example page header</h1>
|
||||||
</div>
|
</div>
|
||||||
</pre>
|
</pre>
|
||||||
@@ -1462,13 +1796,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>Striped</h3>
|
<h3>Striped</h3>
|
||||||
<p>Uses a gradient to create a striped effect.</p>
|
<p>Uses a gradient to create a striped effect (no IE).</p>
|
||||||
<div class="progress progress-info progress-striped">
|
<div class="progress progress-striped">
|
||||||
<div class="bar" style="width: 20%;"></div>
|
<div class="bar" style="width: 20%;"></div>
|
||||||
</div>
|
</div>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<div class="progress progress-info
|
<div class="progress progress-striped">
|
||||||
progress-striped">
|
|
||||||
<div class="bar"
|
<div class="bar"
|
||||||
style="width: 20%;"></div>
|
style="width: 20%;"></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1476,13 +1809,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>Animated</h3>
|
<h3>Animated</h3>
|
||||||
<p>Takes the striped example and animates it.</p>
|
<p>Takes the striped example and animates it (no IE).</p>
|
||||||
<div class="progress progress-danger progress-striped active">
|
<div class="progress progress-striped active">
|
||||||
<div class="bar" style="width: 45%"></div>
|
<div class="bar" style="width: 45%"></div>
|
||||||
</div>
|
</div>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<div class="progress progress-danger
|
<div class="progress progress-striped
|
||||||
progress-striped active">
|
active">
|
||||||
<div class="bar"
|
<div class="bar"
|
||||||
style="width: 40%;"></div>
|
style="width: 40%;"></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1492,25 +1825,47 @@
|
|||||||
|
|
||||||
<h2>Options and browser support</h2>
|
<h2>Options and browser support</h2>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span4">
|
<div class="span3">
|
||||||
<h3>Additional colors</h3>
|
<h3>Additional colors</h3>
|
||||||
<p>Progress bars utilize some of the same class names as buttons and alerts for similar styling.</p>
|
<p>Progress bars use some of the same button and alert classes for consistent styles.</p>
|
||||||
<ul>
|
<div class="progress progress-info" style="margin-bottom: 9px;">
|
||||||
<li><code>.progress-info</code></li>
|
<div class="bar" style="width: 20%"></div>
|
||||||
<li><code>.progress-success</code></li>
|
</div>
|
||||||
<li><code>.progress-danger</code></li>
|
<div class="progress progress-success" style="margin-bottom: 9px;">
|
||||||
</ul>
|
<div class="bar" style="width: 40%"></div>
|
||||||
<p>Alternatively, you can customize the LESS files and roll your own colors and sizes.</p>
|
</div>
|
||||||
|
<div class="progress progress-warning" style="margin-bottom: 9px;">
|
||||||
|
<div class="bar" style="width: 60%"></div>
|
||||||
|
</div>
|
||||||
|
<div class="progress progress-danger" style="margin-bottom: 9px;">
|
||||||
|
<div class="bar" style="width: 80%"></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span3">
|
||||||
|
<h3>Striped bars</h3>
|
||||||
|
<p>Similar to the solid colors, we have varied striped progress bars.</p>
|
||||||
|
<div class="progress progress-info progress-striped" style="margin-bottom: 9px;">
|
||||||
|
<div class="bar" style="width: 20%"></div>
|
||||||
|
</div>
|
||||||
|
<div class="progress progress-success progress-striped" style="margin-bottom: 9px;">
|
||||||
|
<div class="bar" style="width: 40%"></div>
|
||||||
|
</div>
|
||||||
|
<div class="progress progress-warning progress-striped" style="margin-bottom: 9px;">
|
||||||
|
<div class="bar" style="width: 60%"></div>
|
||||||
|
</div>
|
||||||
|
<div class="progress progress-danger progress-striped" style="margin-bottom: 9px;">
|
||||||
|
<div class="bar" style="width: 80%"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="span3">
|
||||||
<h3>Behavior</h3>
|
<h3>Behavior</h3>
|
||||||
<p>Progress bars use CSS3 transitions, so if you dynamically adjust the width via javascript, it will smoothly resize.</p>
|
<p>Progress bars use CSS3 transitions, so if you dynamically adjust the width via javascript, it will smoothly resize.</p>
|
||||||
<p>If you use the <code>.active</code> class, your <code>.progress-striped</code> progress bars will animate the stripes left to right.</p>
|
<p>If you use the <code>.active</code> class, your <code>.progress-striped</code> progress bars will animate the stripes left to right.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span3">
|
||||||
<h3>Browser support</h3>
|
<h3>Browser support</h3>
|
||||||
<p>Progress bars use CSS3 gradients, transitions, and animations to achieve all their effects. These features are not supported in IE7-8 or older versions of Firefox.</p>
|
<p>Progress bars use CSS3 gradients, transitions, and animations to achieve all their effects. These features are not supported in IE7-9 or older versions of Firefox.</p>
|
||||||
<p>Opera does not support animations at this time.</p>
|
<p>Opera and IE do not support animations at this time.</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1524,7 +1879,7 @@
|
|||||||
================================================== -->
|
================================================== -->
|
||||||
<section id="misc">
|
<section id="misc">
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h1>Miscellaneous <small>Wells, badges, and close icon</small></h1>
|
<h1>Miscellaneous <small>Lightweight utility components</small></h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
@@ -1538,11 +1893,6 @@
|
|||||||
...
|
...
|
||||||
</div>
|
</div>
|
||||||
</pre>
|
</pre>
|
||||||
</div><!--/span-->
|
|
||||||
<div class="span4" style="display: none;">
|
|
||||||
<h2>Badges</h2>
|
|
||||||
<p>Use a badge on an element for an unread count or as a simple indicator.</p>
|
|
||||||
<pre class="prettyprint linenums"><span class="badge">3</div></pre>
|
|
||||||
</div><!--/span-->
|
</div><!--/span-->
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h2>Close icon</h2>
|
<h2>Close icon</h2>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>Bootstrap, from Twitter</title>
|
<title>Download · Twitter Bootstrap</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta name="description" content="">
|
<meta name="description" content="">
|
||||||
<meta name="author" content="">
|
<meta name="author" content="">
|
||||||
@@ -20,9 +20,9 @@
|
|||||||
|
|
||||||
<!-- Le fav and touch icons -->
|
<!-- Le fav and touch icons -->
|
||||||
<link rel="shortcut icon" href="assets/ico/favicon.ico">
|
<link rel="shortcut icon" href="assets/ico/favicon.ico">
|
||||||
<link rel="apple-touch-icon" href="assets/ico/apple-touch-icon.png">
|
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png">
|
||||||
<link rel="apple-touch-icon" sizes="72x72" href="assets/ico/apple-touch-icon-72x72.png">
|
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png">
|
||||||
<link rel="apple-touch-icon" sizes="114x114" href="assets/ico/apple-touch-icon-114x114.png">
|
<link rel="apple-touch-icon-precomposed" href="assets/ico/apple-touch-icon-57-precomposed.png">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body data-spy="scroll" data-target=".subnav" data-offset="50">
|
<body data-spy="scroll" data-target=".subnav" data-offset="50">
|
||||||
@@ -108,6 +108,7 @@
|
|||||||
<label class="checkbox"><input checked="checked" type="checkbox" value="type.less"> Headings, body, etc</label>
|
<label class="checkbox"><input checked="checked" type="checkbox" value="type.less"> Headings, body, etc</label>
|
||||||
<label class="checkbox"><input checked="checked" type="checkbox" value="code.less"> Code and pre</label>
|
<label class="checkbox"><input checked="checked" type="checkbox" value="code.less"> Code and pre</label>
|
||||||
<label class="checkbox"><input checked="checked" type="checkbox" value="labels.less"> Labels</label>
|
<label class="checkbox"><input checked="checked" type="checkbox" value="labels.less"> Labels</label>
|
||||||
|
<label class="checkbox"><input checked="checked" type="checkbox" value="badges.less"> Badges</label>
|
||||||
<label class="checkbox"><input checked="checked" type="checkbox" value="tables.less"> Tables</label>
|
<label class="checkbox"><input checked="checked" type="checkbox" value="tables.less"> Tables</label>
|
||||||
<label class="checkbox"><input checked="checked" type="checkbox" value="forms.less"> Forms</label>
|
<label class="checkbox"><input checked="checked" type="checkbox" value="forms.less"> Forms</label>
|
||||||
<label class="checkbox"><input checked="checked" type="checkbox" value="buttons.less"> Buttons</label>
|
<label class="checkbox"><input checked="checked" type="checkbox" value="buttons.less"> Buttons</label>
|
||||||
@@ -210,7 +211,7 @@
|
|||||||
</div><!-- /span -->
|
</div><!-- /span -->
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h4 class="muted">Heads up!</h4>
|
<h4 class="muted">Heads up!</h4>
|
||||||
<p class="muted">All plugins require the latest version of <a href="http://jquery.com/" target="_blank">jQuery</a> to be included.</p>
|
<p class="muted">All checked plugins will be compiled into a single file, bootstrap.js. All plugins require the latest version of <a href="http://jquery.com/" target="_blank">jQuery</a> to be included.</p>
|
||||||
</div><!-- /span -->
|
</div><!-- /span -->
|
||||||
</div><!-- /row -->
|
</div><!-- /row -->
|
||||||
</section>
|
</section>
|
||||||
@@ -226,6 +227,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row download-builder">
|
<div class="row download-builder">
|
||||||
<div class="span3">
|
<div class="span3">
|
||||||
|
<h3>Scaffolding</h3>
|
||||||
|
<label>@bodyBackground</label>
|
||||||
|
<input type="text" class="span3" placeholder="@white">
|
||||||
|
<label>@textColor</label>
|
||||||
|
<input type="text" class="span3" placeholder="@grayDark">
|
||||||
|
|
||||||
<h3>Links</h3>
|
<h3>Links</h3>
|
||||||
<label>@linkColor</label>
|
<label>@linkColor</label>
|
||||||
<input type="text" class="span3" placeholder="#08c">
|
<input type="text" class="span3" placeholder="#08c">
|
||||||
@@ -246,6 +253,13 @@
|
|||||||
<input type="text" class="span3" placeholder="#c3325f">
|
<input type="text" class="span3" placeholder="#c3325f">
|
||||||
<label>@purple</label>
|
<label>@purple</label>
|
||||||
<input type="text" class="span3" placeholder="#7a43b6">
|
<input type="text" class="span3" placeholder="#7a43b6">
|
||||||
|
|
||||||
|
<h3>Sprites</h3>
|
||||||
|
<label>@iconSpritePath</label>
|
||||||
|
<input type="text" class="span3" placeholder="'../img/glyphicons-halflings.png'">
|
||||||
|
<label>@iconWhiteSpritePath</label>
|
||||||
|
<input type="text" class="span3" placeholder="'../img/glyphicons-halflings-white.png'">
|
||||||
|
|
||||||
</div><!-- /span -->
|
</div><!-- /span -->
|
||||||
<div class="span3">
|
<div class="span3">
|
||||||
<h3>Grid system</h3>
|
<h3>Grid system</h3>
|
||||||
@@ -260,6 +274,7 @@
|
|||||||
<input type="text" class="span3" placeholder="6.382978723%">
|
<input type="text" class="span3" placeholder="6.382978723%">
|
||||||
<label>@fluidGridGutterWidth</label>
|
<label>@fluidGridGutterWidth</label>
|
||||||
<input type="text" class="span3" placeholder="2.127659574%">
|
<input type="text" class="span3" placeholder="2.127659574%">
|
||||||
|
|
||||||
<h3>Typography</h3>
|
<h3>Typography</h3>
|
||||||
<label>@baseFontSize</label>
|
<label>@baseFontSize</label>
|
||||||
<input type="text" class="span3" placeholder="13px">
|
<input type="text" class="span3" placeholder="13px">
|
||||||
@@ -267,13 +282,32 @@
|
|||||||
<input type="text" class="span3" placeholder="'Helvetica Neue', Helvetica, Arial, sans-serif">
|
<input type="text" class="span3" placeholder="'Helvetica Neue', Helvetica, Arial, sans-serif">
|
||||||
<label>@baseLineHeight</label>
|
<label>@baseLineHeight</label>
|
||||||
<input type="text" class="span3" placeholder="18px">
|
<input type="text" class="span3" placeholder="18px">
|
||||||
|
<label>@altFontFamily</label>
|
||||||
|
<input type="text" class="span3" placeholder="Georgia, 'Times New Roman', Times, serif;">
|
||||||
|
<label>@headingsFontFamily</label>
|
||||||
|
<input type="text" class="span3" placeholder="inherit">
|
||||||
|
<label>@headingsFontWeight</label>
|
||||||
|
<input type="text" class="span3" placeholder="bold">
|
||||||
|
<label>@headingsColor</label>
|
||||||
|
<input type="text" class="span3" placeholder="inherit">
|
||||||
|
<label>@heroUnitBackground</label>
|
||||||
|
<input type="text" class="span3" placeholder="@grayLighter">
|
||||||
|
<label>@heroUnitHeadingColor</label>
|
||||||
|
<input type="text" class="span3" placeholder="inherit">
|
||||||
|
<label>@heroUnitLeadColor</label>
|
||||||
|
<input type="text" class="span3" placeholder="inherit">
|
||||||
</div><!-- /span -->
|
</div><!-- /span -->
|
||||||
<div class="span3">
|
<div class="span3">
|
||||||
<h3>Forms</h3>
|
<h3>Tables</h3>
|
||||||
<label>@primaryButtonColor</label>
|
<label>@tableBackground</label>
|
||||||
<input type="text" class="span3" placeholder="@blue">
|
<input type="text" class="span3" placeholder="transparent">
|
||||||
<label>@placeholderText</label>
|
<label>@tableBackgroundAccent</label>
|
||||||
<input type="text" class="span3" placeholder="@grayLight">
|
<input type="text" class="span3" placeholder="#f9f9f9">
|
||||||
|
<label>@tableBackgroundHover</label>
|
||||||
|
<input type="text" class="span3" placeholder="#f5f5f5">
|
||||||
|
<label>@tableBorder</label>
|
||||||
|
<input type="text" class="span3" placeholder="#ddd">
|
||||||
|
|
||||||
<h3>Navbar</h3>
|
<h3>Navbar</h3>
|
||||||
<label>@navbarHeight</label>
|
<label>@navbarHeight</label>
|
||||||
<input type="text" class="span3" placeholder="40px">
|
<input type="text" class="span3" placeholder="40px">
|
||||||
@@ -287,8 +321,49 @@
|
|||||||
<input type="text" class="span3" placeholder="@grayLight">
|
<input type="text" class="span3" placeholder="@grayLight">
|
||||||
<label>@navbarLinkColorHover</label>
|
<label>@navbarLinkColorHover</label>
|
||||||
<input type="text" class="span3" placeholder="@white">
|
<input type="text" class="span3" placeholder="@white">
|
||||||
|
<label>@navbarLinkColorActive</label>
|
||||||
|
<input type="text" class="span3" placeholder="@navbarLinkColorHover">
|
||||||
|
<label>@navbarLinkBackgroundHover</label>
|
||||||
|
<input type="text" class="span3" placeholder="transparent">
|
||||||
|
<label>@navbarLinkBackgroundActive</label>
|
||||||
|
<input type="text" class="span3" placeholder="@navbarBackground">
|
||||||
|
<label>@navbarSearchBackground</label>
|
||||||
|
<input type="text" class="span3" placeholder="lighten(@navbarBackground, 25%)">
|
||||||
|
<label>@navbarSearchBackgroundFocus</label>
|
||||||
|
<input type="text" class="span3" placeholder="@white">
|
||||||
|
<label>@navbarSearchBorder</label>
|
||||||
|
<input type="text" class="span3" placeholder="darken(@navbarSearchBackground, 30%)">
|
||||||
|
<label>@navbarSearchPlaceholderColor</label>
|
||||||
|
<input type="text" class="span3" placeholder="#ccc">
|
||||||
|
|
||||||
|
<h3>Dropdowns</h3>
|
||||||
|
<label>@dropdownBackground</label>
|
||||||
|
<input type="text" class="span3" placeholder="@white">
|
||||||
|
<label>@dropdownBorder</label>
|
||||||
|
<input type="text" class="span3" placeholder="rgba(0,0,0,.2)">
|
||||||
|
<label>@dropdownLinkColor</label>
|
||||||
|
<input type="text" class="span3" placeholder="@grayDark">
|
||||||
|
<label>@dropdownLinkColorHover</label>
|
||||||
|
<input type="text" class="span3" placeholder="@white">
|
||||||
|
<label>@dropdownLinkBackgroundHover</label>
|
||||||
|
<input type="text" class="span3" placeholder="@linkColor">
|
||||||
</div><!-- /span -->
|
</div><!-- /span -->
|
||||||
<div class="span3">
|
<div class="span3">
|
||||||
|
<h3>Forms</h3>
|
||||||
|
<label>@placeholderText</label>
|
||||||
|
<input type="text" class="span3" placeholder="@grayLight">
|
||||||
|
<label>@inputBackground</label>
|
||||||
|
<input type="text" class="span3" placeholder="@white">
|
||||||
|
<label>@inputBorder</label>
|
||||||
|
<input type="text" class="span3" placeholder="#ccc">
|
||||||
|
<label>@inputDisabledBackground</label>
|
||||||
|
<input type="text" class="span3" placeholder="@grayLighter">
|
||||||
|
|
||||||
|
<label>@btnPrimaryBackground</label>
|
||||||
|
<input type="text" class="span3" placeholder="@linkColor">
|
||||||
|
<label>@btnPrimaryBackgroundHighlight</label>
|
||||||
|
<input type="text" class="span3" placeholder="darken(@white, 10%);">
|
||||||
|
|
||||||
<h3>Form states & alerts</h3>
|
<h3>Form states & alerts</h3>
|
||||||
<label>@warningText</label>
|
<label>@warningText</label>
|
||||||
<input type="text" class="span3" placeholder="#c09853">
|
<input type="text" class="span3" placeholder="#c09853">
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>Bootstrap, from Twitter</title>
|
<title>Examples · Twitter Bootstrap</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta name="description" content="">
|
<meta name="description" content="">
|
||||||
<meta name="author" content="">
|
<meta name="author" content="">
|
||||||
@@ -20,9 +20,9 @@
|
|||||||
|
|
||||||
<!-- Le fav and touch icons -->
|
<!-- Le fav and touch icons -->
|
||||||
<link rel="shortcut icon" href="assets/ico/favicon.ico">
|
<link rel="shortcut icon" href="assets/ico/favicon.ico">
|
||||||
<link rel="apple-touch-icon" href="assets/ico/apple-touch-icon.png">
|
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png">
|
||||||
<link rel="apple-touch-icon" sizes="72x72" href="assets/ico/apple-touch-icon-72x72.png">
|
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png">
|
||||||
<link rel="apple-touch-icon" sizes="114x114" href="assets/ico/apple-touch-icon-114x114.png">
|
<link rel="apple-touch-icon-precomposed" href="assets/ico/apple-touch-icon-57-precomposed.png">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body data-spy="scroll" data-target=".subnav" data-offset="50">
|
<body data-spy="scroll" data-target=".subnav" data-offset="50">
|
||||||
@@ -95,7 +95,7 @@
|
|||||||
<img src="assets/img/examples/bootstrap-example-fluid.jpg" alt="">
|
<img src="assets/img/examples/bootstrap-example-fluid.jpg" alt="">
|
||||||
</a>
|
</a>
|
||||||
<h3>Fluid layout</h3>
|
<h3>Fluid layout</h3>
|
||||||
<p>Uses our new responsive, fluid grid system to create seamless liquid layout.</p>
|
<p>Uses our new responsive, fluid grid system to create a seamless liquid layout.</p>
|
||||||
</li>
|
</li>
|
||||||
<li class="span4">
|
<li class="span4">
|
||||||
<a class="thumbnail" href="examples/starter-template.html">
|
<a class="thumbnail" href="examples/starter-template.html">
|
||||||
|
|||||||
@@ -22,14 +22,14 @@
|
|||||||
|
|
||||||
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
|
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
|
|
||||||
<!-- Le fav and touch icons -->
|
<!-- Le fav and touch icons -->
|
||||||
<link rel="shortcut icon" href="images/favicon.ico">
|
<link rel="shortcut icon" href="../assets/ico/favicon.ico">
|
||||||
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
|
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
|
||||||
<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
|
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
|
||||||
<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
|
<link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
@@ -129,7 +129,7 @@
|
|||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</div><!--/.fluid-container-->
|
</div><!--/.fluid-container-->
|
||||||
|
|
||||||
<!-- Le javascript
|
<!-- Le javascript
|
||||||
================================================== -->
|
================================================== -->
|
||||||
<!-- Placed at the end of the document so the pages load faster -->
|
<!-- Placed at the end of the document so the pages load faster -->
|
||||||
|
|||||||
@@ -19,14 +19,14 @@
|
|||||||
|
|
||||||
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
|
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
|
|
||||||
<!-- Le fav and touch icons -->
|
<!-- Le fav and touch icons -->
|
||||||
<link rel="shortcut icon" href="images/favicon.ico">
|
<link rel="shortcut icon" href="../assets/ico/favicon.ico">
|
||||||
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
|
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
|
||||||
<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
|
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
|
||||||
<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
|
<link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -18,14 +18,14 @@
|
|||||||
|
|
||||||
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
|
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
|
|
||||||
<!-- Le fav and touch icons -->
|
<!-- Le fav and touch icons -->
|
||||||
<link rel="shortcut icon" href="images/favicon.ico">
|
<link rel="shortcut icon" href="../assets/ico/favicon.ico">
|
||||||
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
|
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
|
||||||
<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
|
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
|
||||||
<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
|
<link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>Bootstrap, from Twitter</title>
|
<title>Twitter Bootstrap</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta name="description" content="">
|
<meta name="description" content="">
|
||||||
<meta name="author" content="">
|
<meta name="author" content="">
|
||||||
@@ -20,9 +20,9 @@
|
|||||||
|
|
||||||
<!-- Le fav and touch icons -->
|
<!-- Le fav and touch icons -->
|
||||||
<link rel="shortcut icon" href="assets/ico/favicon.ico">
|
<link rel="shortcut icon" href="assets/ico/favicon.ico">
|
||||||
<link rel="apple-touch-icon" href="assets/ico/apple-touch-icon.png">
|
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png">
|
||||||
<link rel="apple-touch-icon" sizes="72x72" href="assets/ico/apple-touch-icon-72x72.png">
|
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png">
|
||||||
<link rel="apple-touch-icon" sizes="114x114" href="assets/ico/apple-touch-icon-114x114.png">
|
<link rel="apple-touch-icon-precomposed" href="assets/ico/apple-touch-icon-57-precomposed.png">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body data-spy="scroll" data-target=".subnav" data-offset="50">
|
<body data-spy="scroll" data-target=".subnav" data-offset="50">
|
||||||
@@ -82,29 +82,32 @@
|
|||||||
<p>Simple and flexible HTML, CSS, and Javascript for popular user interface components and interactions.</p>
|
<p>Simple and flexible HTML, CSS, and Javascript for popular user interface components and interactions.</p>
|
||||||
<p class="download-info">
|
<p class="download-info">
|
||||||
<a href="https://github.com/twitter/bootstrap/" class="btn btn-primary btn-large">View project on GitHub</a>
|
<a href="https://github.com/twitter/bootstrap/" class="btn btn-primary btn-large">View project on GitHub</a>
|
||||||
<a href="assets/bootstrap.zip" class="btn btn-large">Download Bootstrap</a>
|
<a href="assets/bootstrap.zip" class="btn btn-large">Download Bootstrap <small>(v2.0.2)</small></a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="quick-links">
|
<div class="bs-links">
|
||||||
<li><a href="./upgrading.html">Upgrading from 1.4</a></li>
|
<ul class="quick-links">
|
||||||
<li><a href="https://github.com/twitter/bootstrap/issues?state=open">Issues</a></li>
|
<li><a href="./upgrading.html">Upgrading from 1.4</a></li>
|
||||||
<li><a href="https://github.com/twitter/bootstrap/wiki">Roadmap & changelog</a></li>
|
<li><a href="https://github.com/twitter/bootstrap/zipball/master">Download with docs</a></li>
|
||||||
<li class="divider">·</li>
|
<li><a href="https://github.com/twitter/bootstrap/issues?state=open">Submit issues</a></li>
|
||||||
<li>
|
<li><a href="https://github.com/twitter/bootstrap/wiki">Roadmap and changelog</a></li>
|
||||||
<iframe class="github-btn" src="http://markdotto.github.com/github-buttons/github-btn.html?user=twitter&repo=bootstrap&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="112px" height="20px"></iframe>
|
</ul>
|
||||||
</li>
|
<ul class="quick-links">
|
||||||
<li>
|
<li>
|
||||||
<iframe class="github-btn" src="http://markdotto.github.com/github-buttons/github-btn.html?user=twitter&repo=bootstrap&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="95px" height="20px"></iframe>
|
<iframe class="github-btn" src="http://markdotto.github.com/github-buttons/github-btn.html?user=twitter&repo=bootstrap&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="112px" height="20px"></iframe>
|
||||||
</li>
|
</li>
|
||||||
<li class="divider">·</li>
|
<li>
|
||||||
<li class="follow-btn">
|
<iframe class="github-btn" src="http://markdotto.github.com/github-buttons/github-btn.html?user=twitter&repo=bootstrap&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="98px" height="20px"></iframe>
|
||||||
<a href="https://twitter.com/twbootstrap" class="twitter-follow-button" data-width="225px" data-link-color="#0069D6" data-show-count="true">Follow @twbootstrap</a>
|
</li>
|
||||||
</li>
|
<li class="follow-btn">
|
||||||
<li class="tweet-btn">
|
<a href="https://twitter.com/twbootstrap" class="twitter-follow-button" data-link-color="#0069D6" data-show-count="true">Follow @twbootstrap</a>
|
||||||
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://twitter.github.com/bootstrap/" data-count="horizontal" data-via="twbootstrap" data-related="mdo:Creator of Twitter Bootstrap">Tweet</a>
|
</li>
|
||||||
</li>
|
<li class="tweet-btn">
|
||||||
</ul>
|
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://twitter.github.com/bootstrap/" data-count="horizontal" data-via="twbootstrap" data-related="mdo:Creator of Twitter Bootstrap">Tweet</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<hr class="soften">
|
<hr class="soften">
|
||||||
@@ -191,17 +194,22 @@
|
|||||||
<h1>Built with Bootstrap.</h1>
|
<h1>Built with Bootstrap.</h1>
|
||||||
<p class="marketing-byline">For even more sites built with Bootstrap, <a href="http://builtwithbootstrap.tumblr.com/" target="_blank">visit the unofficial Tumblr</a> or <a href="./examples.html">browse the examples</a>.</p>
|
<p class="marketing-byline">For even more sites built with Bootstrap, <a href="http://builtwithbootstrap.tumblr.com/" target="_blank">visit the unofficial Tumblr</a> or <a href="./examples.html">browse the examples</a>.</p>
|
||||||
<ul class="thumbnails example-sites">
|
<ul class="thumbnails example-sites">
|
||||||
<li class="span4">
|
<li class="span3">
|
||||||
|
<a class="thumbnail" href="http://soundready.fm/" target="_blank">
|
||||||
|
<img src="assets/img/example-sites/soundready.png" alt="SoundReady.fm">
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="span3">
|
||||||
<a class="thumbnail" href="http://kippt.com/" target="_blank">
|
<a class="thumbnail" href="http://kippt.com/" target="_blank">
|
||||||
<img src="assets/img/example-sites/kippt.png" alt="Kippt">
|
<img src="assets/img/example-sites/kippt.png" alt="Kippt">
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="span4">
|
<li class="span3">
|
||||||
<a class="thumbnail" href="http://www.fleetio.com/" target="_blank">
|
<a class="thumbnail" href="http://www.fleetio.com/" target="_blank">
|
||||||
<img src="assets/img/example-sites/fleetio.png" alt="Fleetio">
|
<img src="assets/img/example-sites/fleetio.png" alt="Fleetio">
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="span4">
|
<li class="span3">
|
||||||
<a class="thumbnail" href="http://www.jshint.com/" target="_blank">
|
<a class="thumbnail" href="http://www.jshint.com/" target="_blank">
|
||||||
<img src="assets/img/example-sites/jshint.png" alt="JS Hint">
|
<img src="assets/img/example-sites/jshint.png" alt="JS Hint">
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>Bootstrap, from Twitter</title>
|
<title>Javascript · Twitter Bootstrap</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta name="description" content="">
|
<meta name="description" content="">
|
||||||
<meta name="author" content="">
|
<meta name="author" content="">
|
||||||
@@ -20,9 +20,9 @@
|
|||||||
|
|
||||||
<!-- Le fav and touch icons -->
|
<!-- Le fav and touch icons -->
|
||||||
<link rel="shortcut icon" href="assets/ico/favicon.ico">
|
<link rel="shortcut icon" href="assets/ico/favicon.ico">
|
||||||
<link rel="apple-touch-icon" href="assets/ico/apple-touch-icon.png">
|
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png">
|
||||||
<link rel="apple-touch-icon" sizes="72x72" href="assets/ico/apple-touch-icon-72x72.png">
|
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png">
|
||||||
<link rel="apple-touch-icon" sizes="114x114" href="assets/ico/apple-touch-icon-114x114.png">
|
<link rel="apple-touch-icon-precomposed" href="assets/ico/apple-touch-icon-57-precomposed.png">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body data-spy="scroll" data-target=".subnav" data-offset="50">
|
<body data-spy="scroll" data-target=".subnav" data-offset="50">
|
||||||
@@ -214,8 +214,8 @@
|
|||||||
<p>One fine body…</p>
|
<p>One fine body…</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<a href="#" class="btn btn-primary">Save changes</a>
|
|
||||||
<a href="#" class="btn">Close</a>
|
<a href="#" class="btn">Close</a>
|
||||||
|
<a href="#" class="btn btn-primary">Save changes</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div> <!-- /well -->
|
</div> <!-- /well -->
|
||||||
@@ -237,10 +237,21 @@
|
|||||||
|
|
||||||
<h4>Tooltips in a modal</h4>
|
<h4>Tooltips in a modal</h4>
|
||||||
<p><a href="#" class="tooltip-test" title="Tooltip">This link</a> and <a href="#" class="tooltip-test" title="Tooltip">that link</a> should have tooltips on hover.</p>
|
<p><a href="#" class="tooltip-test" title="Tooltip">This link</a> and <a href="#" class="tooltip-test" title="Tooltip">that link</a> should have tooltips on hover.</p>
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
<h4>Overflowing text to show optional scrollbar</h4>
|
||||||
|
<p>We set a fixed <code>max-height</code> on the <code>.modal-body</code>. Watch it overflow with all this extra lorem ipsum text we've included.</p>
|
||||||
|
<p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
|
||||||
|
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
|
||||||
|
<p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p>
|
||||||
|
<p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
|
||||||
|
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
|
||||||
|
<p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<a href="#" class="btn btn-primary">Save changes</a>
|
|
||||||
<a href="#" class="btn" data-dismiss="modal" >Close</a>
|
<a href="#" class="btn" data-dismiss="modal" >Close</a>
|
||||||
|
<a href="#" class="btn btn-primary">Save changes</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a data-toggle="modal" href="#myModal" class="btn btn-primary btn-large">Launch demo modal</a>
|
<a data-toggle="modal" href="#myModal" class="btn btn-primary btn-large">Launch demo modal</a>
|
||||||
@@ -265,7 +276,7 @@
|
|||||||
<td>backdrop</td>
|
<td>backdrop</td>
|
||||||
<td>boolean</td>
|
<td>boolean</td>
|
||||||
<td>true</td>
|
<td>true</td>
|
||||||
<td>Includes a modal-backdrop element</td>
|
<td>Includes a modal-backdrop element. Alternatively, specify <code>static</code> for a backdrop which doesn't close the modal on click.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>keyboard</td>
|
<td>keyboard</td>
|
||||||
@@ -298,8 +309,8 @@
|
|||||||
<p>One fine body…</p>
|
<p>One fine body…</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<a href="#" class="btn btn-primary">Save changes</a>
|
|
||||||
<a href="#" class="btn">Close</a>
|
<a href="#" class="btn">Close</a>
|
||||||
|
<a href="#" class="btn btn-primary">Save changes</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</pre>
|
</pre>
|
||||||
@@ -464,7 +475,7 @@ $('#myModal').on('hidden', function () {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<ul class="nav pills">
|
<ul class="nav nav-pills">
|
||||||
<li class="active"><a href="#">Regular link</a></li>
|
<li class="active"><a href="#">Regular link</a></li>
|
||||||
<li class="dropdown" id="menu1">
|
<li class="dropdown" id="menu1">
|
||||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#menu1">
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#menu1">
|
||||||
@@ -780,13 +791,13 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
|
|||||||
<h4>$().tooltip(options)</h4>
|
<h4>$().tooltip(options)</h4>
|
||||||
<p>Attaches a tooltip handler to an element collection.</p>
|
<p>Attaches a tooltip handler to an element collection.</p>
|
||||||
<h4>.tooltip('show')</h4>
|
<h4>.tooltip('show')</h4>
|
||||||
<p>Reveals an elements tooltip.</p>
|
<p>Reveals an element's tooltip.</p>
|
||||||
<pre class="prettyprint linenums">$('#element').tooltip('show')</pre>
|
<pre class="prettyprint linenums">$('#element').tooltip('show')</pre>
|
||||||
<h4>.tooltip('hide')</h4>
|
<h4>.tooltip('hide')</h4>
|
||||||
<p>Hides an elements tooltip.</p>
|
<p>Hides an element's tooltip.</p>
|
||||||
<pre class="prettyprint linenums">$('#element').tooltip('hide')</pre>
|
<pre class="prettyprint linenums">$('#element').tooltip('hide')</pre>
|
||||||
<h4>.tooltip('toggle')</h4>
|
<h4>.tooltip('toggle')</h4>
|
||||||
<p>Toggles an elements tooltip.</p>
|
<p>Toggles an element's tooltip.</p>
|
||||||
<pre class="prettyprint linenums">$('#element').tooltip('toggle')</pre>
|
<pre class="prettyprint linenums">$('#element').tooltip('toggle')</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1051,7 +1062,7 @@ $('#my-alert').bind('closed', function () {
|
|||||||
</pre>
|
</pre>
|
||||||
<h3>Methods</h3>
|
<h3>Methods</h3>
|
||||||
<h4>$().button('toggle')</h4>
|
<h4>$().button('toggle')</h4>
|
||||||
<p>Toggles push state. Gives btn the look that it hass been activated.</p>
|
<p>Toggles push state. Gives the button the appearance that it has been activated.</p>
|
||||||
<div class="alert alert-info">
|
<div class="alert alert-info">
|
||||||
<strong>Heads up!</strong>
|
<strong>Heads up!</strong>
|
||||||
You can enable auto toggling of a button by using the <code>data-toggle</code> attribute.
|
You can enable auto toggling of a button by using the <code>data-toggle</code> attribute.
|
||||||
@@ -1299,10 +1310,16 @@ $('#myCollapsible').on('hidden', function () {
|
|||||||
<td>5000</td>
|
<td>5000</td>
|
||||||
<td>The amount of time to delay between automatically cycling an item.</td>
|
<td>The amount of time to delay between automatically cycling an item.</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>pause</td>
|
||||||
|
<td>string</td>
|
||||||
|
<td>"hover"</td>
|
||||||
|
<td>Pauses the cycling of the carousel on mouseenter and resumes the cycling of the carousel on mouseleave.</td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<h3>Markup</h3>
|
<h3>Markup</h3>
|
||||||
<p>Data attributes are integral to the carousel plugin. Check out the example code below for the various markup types.</p>
|
<p>Data attributes are used for the previous and next conrols. Check out the example markup below.</p>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<div id="myCarousel" class="carousel">
|
<div id="myCarousel" class="carousel">
|
||||||
<!-- Carousel items -->
|
<!-- Carousel items -->
|
||||||
@@ -1320,7 +1337,7 @@ $('#myCollapsible').on('hidden', function () {
|
|||||||
<h4>.carousel(options)</h4>
|
<h4>.carousel(options)</h4>
|
||||||
<p>Initializes the carousel with an optional options <code>object</code> and starts cycling through items.</p>
|
<p>Initializes the carousel with an optional options <code>object</code> and starts cycling through items.</p>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
$('.myCarousel').carousel({
|
$('.carousel').carousel({
|
||||||
interval: 2000
|
interval: 2000
|
||||||
})
|
})
|
||||||
</pre>
|
</pre>
|
||||||
@@ -1335,7 +1352,7 @@ $('.myCarousel').carousel({
|
|||||||
<h4>.carousel('next')</h4>
|
<h4>.carousel('next')</h4>
|
||||||
<p>Cycles to the next item.</p>
|
<p>Cycles to the next item.</p>
|
||||||
<h3>Events</h3>
|
<h3>Events</h3>
|
||||||
<p>Bootstrap's modal class exposes a few events for hooking into modal functionality.</p>
|
<p>Bootstrap's carousel class exposes two events for hooking into carousel functionality.</p>
|
||||||
<table class="table table-bordered table-striped">
|
<table class="table table-bordered table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>Bootstrap, from Twitter</title>
|
<title>Less · Twitter Bootstrap</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta name="description" content="">
|
<meta name="description" content="">
|
||||||
<meta name="author" content="">
|
<meta name="author" content="">
|
||||||
@@ -20,9 +20,9 @@
|
|||||||
|
|
||||||
<!-- Le fav and touch icons -->
|
<!-- Le fav and touch icons -->
|
||||||
<link rel="shortcut icon" href="assets/ico/favicon.ico">
|
<link rel="shortcut icon" href="assets/ico/favicon.ico">
|
||||||
<link rel="apple-touch-icon" href="assets/ico/apple-touch-icon.png">
|
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png">
|
||||||
<link rel="apple-touch-icon" sizes="72x72" href="assets/ico/apple-touch-icon-72x72.png">
|
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png">
|
||||||
<link rel="apple-touch-icon" sizes="114x114" href="assets/ico/apple-touch-icon-114x114.png">
|
<link rel="apple-touch-icon-precomposed" href="assets/ico/apple-touch-icon-57-precomposed.png">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body data-spy="scroll" data-target=".subnav" data-offset="50">
|
<body data-spy="scroll" data-target=".subnav" data-offset="50">
|
||||||
@@ -552,22 +552,17 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td><code>.container-fixed()</code></td>
|
<td><code>.container-fixed()</code></td>
|
||||||
<td><em class="muted">none</em></td>
|
<td><em class="muted">none</em></td>
|
||||||
<td>Provide a fixed-width (set with <code>@siteWidth</code>) container for holding your content</td>
|
<td>Create a horizontally centered container for holding your content</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>.columns()</code></td>
|
<td><code>#grid > .core()</code></td>
|
||||||
<td><code>@columns: 1</code></td>
|
<td><code>@gridColumnWidth, @gridGutterWidth</code></td>
|
||||||
<td>Build a grid column that spans any number of columns (defaults to 1 column)</td>
|
<td>Generate a pixel grid system (container, row, and columns) with <em>n</em> columns and <em>x</em> pixel wide gutter</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>.offset()</code></td>
|
<td><code>#grid > .fluid()</code></td>
|
||||||
<td><code>@columns: 1</code></td>
|
<td><code>@fluidGridColumnWidth, @fluidGridGutterWidth</code></td>
|
||||||
<td>Offset a grid column with left margin that spans any number of columns</td>
|
<td>Generate a precent grid system with <em>n</em> columns and <em>x</em> % wide gutter</td>
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><code>.gridColumn()</code></td>
|
|
||||||
<td><em class="muted">none</em></td>
|
|
||||||
<td>Make an element float like a grid column</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -654,47 +649,47 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>.#translucent > .background()</code></td>
|
<td><code>#translucent > .background()</code></td>
|
||||||
<td><code>@color: @white, @alpha: 1</code></td>
|
<td><code>@color: @white, @alpha: 1</code></td>
|
||||||
<td>Give an element a translucent background color</td>
|
<td>Give an element a translucent background color</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>.#translucent > .border()</code></td>
|
<td><code>#translucent > .border()</code></td>
|
||||||
<td><code>@color: @white, @alpha: 1</code></td>
|
<td><code>@color: @white, @alpha: 1</code></td>
|
||||||
<td>Give an element a translucent border color</td>
|
<td>Give an element a translucent border color</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>.#gradient > .vertical()</code></td>
|
<td><code>#gradient > .vertical()</code></td>
|
||||||
<td><code>@startColor, @endColor</code></td>
|
<td><code>@startColor, @endColor</code></td>
|
||||||
<td>Create a cross-browser vertical background gradient</td>
|
<td>Create a cross-browser vertical background gradient</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>.#gradient > .horizontal()</code></td>
|
<td><code>#gradient > .horizontal()</code></td>
|
||||||
<td><code>@startColor, @endColor</code></td>
|
<td><code>@startColor, @endColor</code></td>
|
||||||
<td>Create a cross-browser horizontal background gradient</td>
|
<td>Create a cross-browser horizontal background gradient</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>.#gradient > .directional()</code></td>
|
<td><code>#gradient > .directional()</code></td>
|
||||||
<td><code>@startColor, @endColor, @deg</code></td>
|
<td><code>@startColor, @endColor, @deg</code></td>
|
||||||
<td>Create a cross-browser directional background gradient</td>
|
<td>Create a cross-browser directional background gradient</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>.#gradient > .vertical-three-colors()</code></td>
|
<td><code>#gradient > .vertical-three-colors()</code></td>
|
||||||
<td><code>@startColor, @midColor, @colorStop, @endColor</code></td>
|
<td><code>@startColor, @midColor, @colorStop, @endColor</code></td>
|
||||||
<td>Create a cross-browser three-color background gradient</td>
|
<td>Create a cross-browser three-color background gradient</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>.#gradient > .radial()</code></td>
|
<td><code>#gradient > .radial()</code></td>
|
||||||
<td><code>@innerColor, @outerColor</code></td>
|
<td><code>@innerColor, @outerColor</code></td>
|
||||||
<td>Create a cross-browser radial background gradient</td>
|
<td>Create a cross-browser radial background gradient</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>.#gradient > .striped()</code></td>
|
<td><code>#gradient > .striped()</code></td>
|
||||||
<td><code>@color, @angle</code></td>
|
<td><code>@color, @angle</code></td>
|
||||||
<td>Create a cross-browser striped background gradient</td>
|
<td>Create a cross-browser striped background gradient</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>.#gradientBar()</code></td>
|
<td><code>#gradientBar()</code></td>
|
||||||
<td><code>@primaryColor, @secondaryColor</code></td>
|
<td><code>@primaryColor, @secondaryColor</code></td>
|
||||||
<td>Used for buttons to assign a gradient and slightly darker border</td>
|
<td>Used for buttons to assign a gradient and slightly darker border</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -717,8 +712,8 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>Node with makefile</h3>
|
<h3>Node with makefile</h3>
|
||||||
<p>Install the LESS command line compiler globally with npm by running the following command:</p>
|
<p>Install the LESS command line compiler and uglify-js globally with npm by running the following command:</p>
|
||||||
<pre>$ npm install -g less</pre>
|
<pre>$ npm install -g less uglify-js</pre>
|
||||||
<p>Once installed just run <code>make</code> from the root of your bootstrap directory and you're all set.</p>
|
<p>Once installed just run <code>make</code> from the root of your bootstrap directory and you're all set.</p>
|
||||||
<p>Additionally, if you have <a href="https://github.com/mynyml/watchr">watchr</a> installed, you may run <code>make watch</code> to have bootstrap automatically rebuilt every time you edit a file in the bootstrap lib (this isn't required, just a convenience method).</p>
|
<p>Additionally, if you have <a href="https://github.com/mynyml/watchr">watchr</a> installed, you may run <code>make watch</code> to have bootstrap automatically rebuilt every time you edit a file in the bootstrap lib (this isn't required, just a convenience method).</p>
|
||||||
</div><!-- /span4 -->
|
</div><!-- /span4 -->
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>Bootstrap, from Twitter</title>
|
<title>Scaffolding · Twitter Bootstrap</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta name="description" content="">
|
<meta name="description" content="">
|
||||||
<meta name="author" content="">
|
<meta name="author" content="">
|
||||||
@@ -20,9 +20,9 @@
|
|||||||
|
|
||||||
<!-- Le fav and touch icons -->
|
<!-- Le fav and touch icons -->
|
||||||
<link rel="shortcut icon" href="assets/ico/favicon.ico">
|
<link rel="shortcut icon" href="assets/ico/favicon.ico">
|
||||||
<link rel="apple-touch-icon" href="assets/ico/apple-touch-icon.png">
|
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png">
|
||||||
<link rel="apple-touch-icon" sizes="72x72" href="assets/ico/apple-touch-icon-72x72.png">
|
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png">
|
||||||
<link rel="apple-touch-icon" sizes="114x114" href="assets/ico/apple-touch-icon-114x114.png">
|
<link rel="apple-touch-icon-precomposed" href="assets/ico/apple-touch-icon-57-precomposed.png">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body data-spy="scroll" data-target=".subnav" data-offset="50">
|
<body data-spy="scroll" data-target=".subnav" data-offset="50">
|
||||||
@@ -81,8 +81,9 @@
|
|||||||
<p class="lead">Bootstrap is built on a responsive 12-column grid. We've also included fixed- and fluid-width layouts based on that system.</p>
|
<p class="lead">Bootstrap is built on a responsive 12-column grid. We've also included fixed- and fluid-width layouts based on that system.</p>
|
||||||
<div class="subnav">
|
<div class="subnav">
|
||||||
<ul class="nav nav-pills">
|
<ul class="nav nav-pills">
|
||||||
|
<li><a href="#global">Global styles</a></li>
|
||||||
<li><a href="#gridSystem">Grid system</a></li>
|
<li><a href="#gridSystem">Grid system</a></li>
|
||||||
<li><a href="#fluidGridSystem">Fluid gird system</a></li>
|
<li><a href="#fluidGridSystem">Fluid grid system</a></li>
|
||||||
<li><a href="#gridCustomization">Customizing</a></li>
|
<li><a href="#gridCustomization">Customizing</a></li>
|
||||||
<li><a href="#layouts">Layouts</a></li>
|
<li><a href="#layouts">Layouts</a></li>
|
||||||
<li><a href="#responsive">Responsive design</a></li>
|
<li><a href="#responsive">Responsive design</a></li>
|
||||||
@@ -92,6 +93,45 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Global Bootstrap settings
|
||||||
|
================================================== -->
|
||||||
|
<section id="global">
|
||||||
|
<div class="page-header">
|
||||||
|
<h1>Global styles <small>for CSS reset, typography, and links</small></h1>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="span4">
|
||||||
|
<h2>Requires HTML5 doctype</h2>
|
||||||
|
<p>Bootstrap makes use of HTML elements and CSS properties that require the use of the HTML5 doctype. Be sure to include it at the beginning of every Bootstrapped page in your project.</p>
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
...
|
||||||
|
</html>
|
||||||
|
</pre>
|
||||||
|
</div><!-- /.span -->
|
||||||
|
<div class="span4">
|
||||||
|
<h2>Typography and links</h2>
|
||||||
|
<p>Within the <strong>scaffolding.less</strong> file, we set basic global display, typography, and link styles. Specifically, we:</p>
|
||||||
|
<ul>
|
||||||
|
<li>Remove margin on the body</li>
|
||||||
|
<li>Set <code>background-color: white;</code> on the <code>body</code></li>
|
||||||
|
<li>Use the <code>@baseFontFamily</code>, <code>@baseFontSize</code>, and <code>@baseLineHeight</code> attributes as our typographyic base</li>
|
||||||
|
<li>Set the global link color via <code>@linkColor</code> and apply link underlines only on <code>:hover</code></li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /.span -->
|
||||||
|
<div class="span4">
|
||||||
|
<h2>Reset via Normalize</h2>
|
||||||
|
<p>As of Bootstrap 2, the traditional CSS reset has evolved to make use of elements from <a href="http://necolas.github.com/normalize.css/" target="_blank">Normalize.css</a>, a project by <a href="http://twitter.com/necolas" target="_blank">Nicolas Gallagher</a> that also powers the <a href="http://html5boilerplate.com" target="_blank">HTML5 Boilerplate</a>.</p>
|
||||||
|
<p>The new reset can still be found in <strong>reset.less</strong>, but with many elements removed for brevity and accuracy.</p>
|
||||||
|
</div><!-- /.span -->
|
||||||
|
</div><!-- /.row -->
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Grid system
|
<!-- Grid system
|
||||||
================================================== -->
|
================================================== -->
|
||||||
<section id="gridSystem">
|
<section id="gridSystem">
|
||||||
@@ -133,7 +173,7 @@
|
|||||||
<div class="span4">
|
<div class="span4">
|
||||||
<p>The default grid system provided as part of Bootstrap is a <strong>940px-wide, 12-column grid</strong>.</p>
|
<p>The default grid system provided as part of Bootstrap is a <strong>940px-wide, 12-column grid</strong>.</p>
|
||||||
<p>It also has four responsive variations for various devices and resolutions: phone, tablet portrait, table landscape and small desktops, and large widescreen desktops.</p>
|
<p>It also has four responsive variations for various devices and resolutions: phone, tablet portrait, table landscape and small desktops, and large widescreen desktops.</p>
|
||||||
</div>
|
</div><!-- /.span -->
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -141,11 +181,11 @@
|
|||||||
<div class="span8">...</div>
|
<div class="span8">...</div>
|
||||||
</div>
|
</div>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div><!-- /.span -->
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<p>As shown here, a basic layout can be created with two "columns," each spanning a number of the 12 foundational columns we defined as part of our grid system.</p>
|
<p>As shown here, a basic layout can be created with two "columns," each spanning a number of the 12 foundational columns we defined as part of our grid system.</p>
|
||||||
</div>
|
</div><!-- /.span -->
|
||||||
</div><!-- /row -->
|
</div><!-- /.row -->
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
@@ -189,7 +229,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- /span6 -->
|
</div><!-- /.span -->
|
||||||
<div class="span6">
|
<div class="span6">
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -202,8 +242,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div><!-- /.span -->
|
||||||
</div>
|
</div><!-- /.row -->
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
@@ -251,11 +291,11 @@
|
|||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>Percents, not pixels</h3>
|
<h3>Percents, not pixels</h3>
|
||||||
<p>The fluid grid system uses percents for column widths instead of fixed pixels. It also has the same responsive variations as our fixed grid system, ensuring proper proportions for key screen resolutions and devices.</p>
|
<p>The fluid grid system uses percents for column widths instead of fixed pixels. It also has the same responsive variations as our fixed grid system, ensuring proper proportions for key screen resolutions and devices.</p>
|
||||||
</div>
|
</div><!-- /.span -->
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>Fluid rows</h3>
|
<h3>Fluid rows</h3>
|
||||||
<p>Make any row fluid simply by changing <code>.row</code> to <code>.row-fluid</code>. The columns stay the exact same, making it super straightforward to flip between fixed and fluid layouts.</p>
|
<p>Make any row fluid simply by changing <code>.row</code> to <code>.row-fluid</code>. The columns stay the exact same, making it super straightforward to flip between fixed and fluid layouts.</p>
|
||||||
</div>
|
</div><!-- /.span -->
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>Markup</h3>
|
<h3>Markup</h3>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
@@ -264,8 +304,8 @@
|
|||||||
<div class="span8">...</div>
|
<div class="span8">...</div>
|
||||||
</div>
|
</div>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div><!-- /.span -->
|
||||||
</div><!-- /row -->
|
</div><!-- /.row -->
|
||||||
|
|
||||||
<h2>Fluid nesting</h2>
|
<h2>Fluid nesting</h2>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -284,7 +324,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div><!-- /.span -->
|
||||||
<div class="span6">
|
<div class="span6">
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
@@ -297,8 +337,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div><!-- /.span -->
|
||||||
</div>
|
</div><!-- /.row -->
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -345,16 +385,16 @@
|
|||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>Variables in LESS</h3>
|
<h3>Variables in LESS</h3>
|
||||||
<p>Built into Bootstrap are a handful of variables for customizing the default 940px grid system, documented above. All variables for the grid are stored in variables.less.</p>
|
<p>Built into Bootstrap are a handful of variables for customizing the default 940px grid system, documented above. All variables for the grid are stored in variables.less.</p>
|
||||||
</div>
|
</div><!-- /.span -->
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>How to customize</h3>
|
<h3>How to customize</h3>
|
||||||
<p>Modifying the grid means changing the three <code>@grid*</code> variables and recompiling Bootstrap. Change the grid variables in variables.less and use one of the <a href="less.html#compiling">four ways documented to recompile</a>. If you're adding more columns, be sure to add the CSS for those in grid.less.</p>
|
<p>Modifying the grid means changing the three <code>@grid*</code> variables and recompiling Bootstrap. Change the grid variables in variables.less and use one of the <a href="less.html#compiling">four ways documented to recompile</a>. If you're adding more columns, be sure to add the CSS for those in grid.less.</p>
|
||||||
</div>
|
</div><!-- /.span -->
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>Staying responsive</h3>
|
<h3>Staying responsive</h3>
|
||||||
<p>Customization of the grid only works at the default level, the 940px grid. To maintain the responsive aspects of Bootstrap, you'll also have to customize the grids in responsive.less.</p>
|
<p>Customization of the grid only works at the default level, the 940px grid. To maintain the responsive aspects of Bootstrap, you'll also have to customize the grids in responsive.less.</p>
|
||||||
</div>
|
</div><!-- /.span -->
|
||||||
</div><!-- /row -->
|
</div><!-- /.row -->
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -381,7 +421,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</pre>
|
</pre>
|
||||||
</div><!-- /col -->
|
</div><!-- /.span -->
|
||||||
<div class="span6">
|
<div class="span6">
|
||||||
<h2>Fluid layout</h2>
|
<h2>Fluid layout</h2>
|
||||||
<p><code><div class="container-fluid"></code> gives flexible page structure, min- and max-widths, and a left-hand sidebar. It's great for apps and docs.</p>
|
<p><code><div class="container-fluid"></code> gives flexible page structure, min- and max-widths, and a left-hand sidebar. It's great for apps and docs.</p>
|
||||||
@@ -401,8 +441,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</pre>
|
</pre>
|
||||||
</div><!-- /col -->
|
</div><!-- /.span -->
|
||||||
</div><!-- /row -->
|
</div><!-- /.row -->
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
@@ -417,8 +457,16 @@
|
|||||||
<!-- Supported devices -->
|
<!-- Supported devices -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<img src="assets/img/responsive-illustrations.png" alt="Responsive devices">
|
<p><img src="assets/img/responsive-illustrations.png" alt="Responsive devices"></p>
|
||||||
</div>
|
<h3>What they do</h3>
|
||||||
|
<p>Media queries allow for custom CSS based on a number of conditions—ratios, widths, display type, etc—but usually focuses around <code>min-width</code> and <code>max-width</code>.</p>
|
||||||
|
<ul>
|
||||||
|
<li>Modify the width of column in our grid</li>
|
||||||
|
<li>Stack elements instead of float wherever necessary</li>
|
||||||
|
<li>Resize headings and text to be more appropriate for devices</li>
|
||||||
|
</ul>
|
||||||
|
<p>Use media queries responsibly and only as a start to your mobile audiences. For larger projects, do consider dedicated code bases and not layers of media queries.</p>
|
||||||
|
</div><!-- /.span -->
|
||||||
<div class="span8">
|
<div class="span8">
|
||||||
<h2>Supported devices</h2>
|
<h2>Supported devices</h2>
|
||||||
<p>Bootstrap supports a handful of media queries in a single file to help make your projects more appropriate on different devices and screen resolutions. Here's what's included:</p>
|
<p>Bootstrap supports a handful of media queries in a single file to help make your projects more appropriate on different devices and screen resolutions. Here's what's included:</p>
|
||||||
@@ -438,13 +486,13 @@
|
|||||||
<td class="muted" colspan="2">Fluid columns, no fixed widths</td>
|
<td class="muted" colspan="2">Fluid columns, no fixed widths</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Portrait tablets</td>
|
<td>Smartphones to tablets</td>
|
||||||
<td>480px to 768px</td>
|
<td>767px and below</td>
|
||||||
<td class="muted" colspan="2">Fluid columns, no fixed widths</td>
|
<td class="muted" colspan="2">Fluid columns, no fixed widths</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Landscape tablets</td>
|
<td>Portrait tablets</td>
|
||||||
<td>768px to 979px</td>
|
<td>768px and above</td>
|
||||||
<td>42px</td>
|
<td>42px</td>
|
||||||
<td>20px</td>
|
<td>20px</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -456,7 +504,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Large display</td>
|
<td>Large display</td>
|
||||||
<td>1210px and up</td>
|
<td>1200px and up</td>
|
||||||
<td>70px</td>
|
<td>70px</td>
|
||||||
<td>30px</td>
|
<td>30px</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -466,23 +514,15 @@
|
|||||||
<h3>Requires meta tag</h3>
|
<h3>Requires meta tag</h3>
|
||||||
<p>To ensure devices display responsive pages properly, include the viewport meta tag.</p>
|
<p>To ensure devices display responsive pages properly, include the viewport meta tag.</p>
|
||||||
<pre class="prettyprint linenums"><meta name="viewport" content="width=device-width, initial-scale=1.0"></pre>
|
<pre class="prettyprint linenums"><meta name="viewport" content="width=device-width, initial-scale=1.0"></pre>
|
||||||
|
</div><!-- /.span -->
|
||||||
<h3>What they do</h3>
|
</div><!-- /.row -->
|
||||||
<p>Media queries allow for custom CSS based on a number of conditions—ratios, widths, display type, etc—but usually focuses around <code>min-width</code> and <code>max-width</code>.</p>
|
|
||||||
<ul>
|
|
||||||
<li>Modify the width of column in our grid</li>
|
|
||||||
<li>Stack elements instead of float wherever necessary</li>
|
|
||||||
<li>Resize headings and text to be more appropriate for devices</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<!-- Media query code -->
|
<!-- Media query code -->
|
||||||
<h2>Using the media queries</h2>
|
<h2>Using the media queries</h2>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span5">
|
<div class="span4">
|
||||||
<p>Bootstrap doesn't automatically include these media queries, but understanding and adding them is very easy and requires minimal setup. You have a few options for including the responsive features of Bootstrap:</p>
|
<p>Bootstrap doesn't automatically include these media queries, but understanding and adding them is very easy and requires minimal setup. You have a few options for including the responsive features of Bootstrap:</p>
|
||||||
<ol>
|
<ol>
|
||||||
<li>Use the compiled responsive version, bootstrap-responsive.css</li>
|
<li>Use the compiled responsive version, bootstrap-responsive.css</li>
|
||||||
@@ -490,8 +530,8 @@
|
|||||||
<li>Modify and recompile responsive.less as a separate file</li>
|
<li>Modify and recompile responsive.less as a separate file</li>
|
||||||
</ol>
|
</ol>
|
||||||
<p><strong>Why not just include it?</strong> Truth be told, not everything needs to be responsive. Instead of encouraging developers to remove this feature, we figure it best to enable it.</p>
|
<p><strong>Why not just include it?</strong> Truth be told, not everything needs to be responsive. Instead of encouraging developers to remove this feature, we figure it best to enable it.</p>
|
||||||
</div>
|
</div><!-- /.span -->
|
||||||
<div class="span7">
|
<div class="span8">
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
// Landscape phones and down
|
// Landscape phones and down
|
||||||
@media (max-width: 480px) { ... }
|
@media (max-width: 480px) { ... }
|
||||||
@@ -505,8 +545,93 @@
|
|||||||
// Large desktop
|
// Large desktop
|
||||||
@media (min-width: 1200px) { .. }
|
@media (min-width: 1200px) { .. }
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div><!-- /.span -->
|
||||||
</div>
|
</div><!-- /.row -->
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<!-- Responsive utility classes -->
|
||||||
|
<h2>Responsive utility classes</h2>
|
||||||
|
<div class="row">
|
||||||
|
<div class="span4">
|
||||||
|
<h3>What are they</h2>
|
||||||
|
<p>For faster mobile-friendly development, use these basic utility classes for showing and hidding content by device.</p>
|
||||||
|
<h3>When to use</h2>
|
||||||
|
<p>Use on a limited basis and avoid creating entirely different versions of the same site. Instead, use them to complement each device's presentation.</p>
|
||||||
|
<p>For example, you might show a <code><select></code> element for nav on mobile layouts, but not on tablets or desktops.</p>
|
||||||
|
</div><!-- /.span -->
|
||||||
|
<div class="span8">
|
||||||
|
<h3>Support classes</h3>
|
||||||
|
<p>Shown here is a table of the classes we support and their effect on a given media query layout (labeled by device). They can be found in <code>responsive.less</code>.</p>
|
||||||
|
<table class="table table-bordered table-striped responsive-utilities">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Class</th>
|
||||||
|
<th>Phones <small>480px and below</small></th>
|
||||||
|
<th>Tablets <small>767px and below</small></th>
|
||||||
|
<th>Desktops <small>768px and above</small></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th><code>.visible-phone</code></th>
|
||||||
|
<td class="is-visible">Visible</td>
|
||||||
|
<td class="is-hidden">Hidden</td>
|
||||||
|
<td class="is-hidden">Hidden</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><code>.visible-tablet</code></th>
|
||||||
|
<td class="is-hidden">Hidden</td>
|
||||||
|
<td class="is-visible">Visible</td>
|
||||||
|
<td class="is-hidden">Hidden</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><code>.visible-desktop</code></th>
|
||||||
|
<td class="is-hidden">Hidden</td>
|
||||||
|
<td class="is-hidden">Hidden</td>
|
||||||
|
<td class="is-visible">Visible</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><code>.hidden-phone</code></th>
|
||||||
|
<td class="is-hidden">Hidden</td>
|
||||||
|
<td class="is-visible">Visible</td>
|
||||||
|
<td class="is-visible">Visible</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><code>.hidden-tablet</code></th>
|
||||||
|
<td class="is-visible">Visible</td>
|
||||||
|
<td class="is-hidden">Hidden</td>
|
||||||
|
<td class="is-visible">Visible</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><code>.hidden-desktop</code></th>
|
||||||
|
<td class="is-visible">Visible</td>
|
||||||
|
<td class="is-visible">Visible</td>
|
||||||
|
<td class="is-hidden">Hidden</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<h3>Test case</h3>
|
||||||
|
<p>Resize your browser or load on different devices to test the above clases.</p>
|
||||||
|
<h4>Visible on...</h4>
|
||||||
|
<ul class="responsive-utilities-test">
|
||||||
|
<li>Phone<span class="visible-phone">✔ Phone</span></li>
|
||||||
|
<li>Tablet<span class="visible-tablet">✔ Tablet</span></li>
|
||||||
|
<li>Desktop<span class="visible-desktop">✔ Desktop</span></li>
|
||||||
|
</ul>
|
||||||
|
<h4>Hidden on...</h4>
|
||||||
|
<ul class="responsive-utilities-test hidden-on">
|
||||||
|
<li>Phone<span class="hidden-phone">✔ Phone</span></li>
|
||||||
|
<li>Tablet<span class="hidden-tablet">✔ Tablet</span></li>
|
||||||
|
<li>Desktop<span class="hidden-desktop">✔ Desktop</span></li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /.span -->
|
||||||
|
</div><!-- /.row -->
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="span4">
|
||||||
|
</div><!-- /.span -->
|
||||||
|
</div><!-- /.row -->
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>Bootstrap, from Twitter</title>
|
<title>{{title}}</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta name="description" content="">
|
<meta name="description" content="">
|
||||||
<meta name="author" content="">
|
<meta name="author" content="">
|
||||||
@@ -20,9 +20,9 @@
|
|||||||
|
|
||||||
<!-- Le fav and touch icons -->
|
<!-- Le fav and touch icons -->
|
||||||
<link rel="shortcut icon" href="assets/ico/favicon.ico">
|
<link rel="shortcut icon" href="assets/ico/favicon.ico">
|
||||||
<link rel="apple-touch-icon" href="assets/ico/apple-touch-icon.png">
|
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png">
|
||||||
<link rel="apple-touch-icon" sizes="72x72" href="assets/ico/apple-touch-icon-72x72.png">
|
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png">
|
||||||
<link rel="apple-touch-icon" sizes="114x114" href="assets/ico/apple-touch-icon-114x114.png">
|
<link rel="apple-touch-icon-precomposed" href="assets/ico/apple-touch-icon-57-precomposed.png">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body data-spy="scroll" data-target=".subnav" data-offset="50">
|
<body data-spy="scroll" data-target=".subnav" data-offset="50">
|
||||||
|
|||||||
@@ -90,7 +90,8 @@
|
|||||||
{{_i}}Wraps abbreviations and acronyms to show the expanded version on hover{{/i}}
|
{{_i}}Wraps abbreviations and acronyms to show the expanded version on hover{{/i}}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{_i}}Include optional <code>title</code> for expanded text{{/i}}
|
<p>{{_i}}Include optional <code>title</code> attribute for expanded text{{/i}}</p>
|
||||||
|
{{_i}}Use <code>.initialism</code> class for uppercase abbreviations.{{/i}}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -129,8 +130,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>{{_i}}Example abbreviations{{/i}}</h3>
|
<h3>{{_i}}Example abbreviations{{/i}}</h3>
|
||||||
<p>{{_i}}Abbreviations are styled with uppercase text and a light dotted bottom border. They also have a help cursor on hover so users have extra indication something will be shown on hover.{{/i}}</p>
|
<p>{{_i}}Abbreviations with a <code>title</code> attribute have a light dotted bottom border and a help cursor on hover. This gives users extra indication something will be shown on hover.{{/i}}</p>
|
||||||
<p>{{_i}}<abbr title="HyperText Markup Language">HTML</abbr> is the best thing since sliced bread.{{/i}}</p>
|
<p>{{_i}}Add the <code>initialism</code> class to an abbreviation to increase typographic harmony by giving it a slightly smaller text size.{{/i}}</p>
|
||||||
|
<p>{{_i}}<abbr title="HyperText Markup Language" class="initialism">HTML</abbr> is the best thing since sliced bread.{{/i}}</p>
|
||||||
<p>{{_i}}An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.{{/i}}</p>
|
<p>{{_i}}An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.{{/i}}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -209,8 +211,8 @@
|
|||||||
<!-- Lists -->
|
<!-- Lists -->
|
||||||
<h2>{{_i}}Lists{{/i}}</h2>
|
<h2>{{_i}}Lists{{/i}}</h2>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span3">
|
<div class="span4">
|
||||||
<h4>{{_i}}Unordered{{/i}}</h4>
|
<h3>{{_i}}Unordered{{/i}}</h3>
|
||||||
<p><code><ul></code></p>
|
<p><code><ul></code></p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Lorem ipsum dolor sit amet</li>
|
<li>Lorem ipsum dolor sit amet</li>
|
||||||
@@ -230,8 +232,8 @@
|
|||||||
<li>Eget porttitor lorem</li>
|
<li>Eget porttitor lorem</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="span3">
|
<div class="span4">
|
||||||
<h4>{{_i}}Unstyled{{/i}}</h4>
|
<h3>{{_i}}Unstyled{{/i}}</h3>
|
||||||
<p><code><ul class="unstyled"></code></p>
|
<p><code><ul class="unstyled"></code></p>
|
||||||
<ul class="unstyled">
|
<ul class="unstyled">
|
||||||
<li>Lorem ipsum dolor sit amet</li>
|
<li>Lorem ipsum dolor sit amet</li>
|
||||||
@@ -251,8 +253,8 @@
|
|||||||
<li>Eget porttitor lorem</li>
|
<li>Eget porttitor lorem</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="span3">
|
<div class="span4">
|
||||||
<h4>{{_i}}Ordered{{/i}}</h4>
|
<h3>{{_i}}Ordered{{/i}}</h3>
|
||||||
<p><code><ol></code></p>
|
<p><code><ol></code></p>
|
||||||
<ol>
|
<ol>
|
||||||
<li>Lorem ipsum dolor sit amet</li>
|
<li>Lorem ipsum dolor sit amet</li>
|
||||||
@@ -265,8 +267,11 @@
|
|||||||
<li>Eget porttitor lorem</li>
|
<li>Eget porttitor lorem</li>
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
<div class="span3">
|
</div><!-- /row -->
|
||||||
<h4>{{_i}}Description{{/i}}</h4>
|
<br>
|
||||||
|
<div class="row">
|
||||||
|
<div class="span4">
|
||||||
|
<h3>{{_i}}Description{{/i}}</h3>
|
||||||
<p><code><dl></code></p>
|
<p><code><dl></code></p>
|
||||||
<dl>
|
<dl>
|
||||||
<dt>{{_i}}Description lists{{/i}}</dt>
|
<dt>{{_i}}Description lists{{/i}}</dt>
|
||||||
@@ -278,6 +283,19 @@
|
|||||||
<dd>Etiam porta sem malesuada magna mollis euismod.</dd>
|
<dd>Etiam porta sem malesuada magna mollis euismod.</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="span8">
|
||||||
|
<h3>{{_i}}Horizontal description{{/i}}</h3>
|
||||||
|
<p><code><dl class="dl-horizontal"></code></p>
|
||||||
|
<dl class="dl-horizontal">
|
||||||
|
<dt>{{_i}}Description lists{{/i}}</dt>
|
||||||
|
<dd>{{_i}}A description list is perfect for defining terms.{{/i}}</dd>
|
||||||
|
<dt>Euismod</dt>
|
||||||
|
<dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
|
||||||
|
<dd>Donec id elit non mi porta gravida at eget metus.</dd>
|
||||||
|
<dt>Malesuada porta</dt>
|
||||||
|
<dd>Etiam porta sem malesuada magna mollis euismod.</dd>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
</div><!-- /row -->
|
</div><!-- /row -->
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -341,6 +359,10 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span8">
|
<div class="span8">
|
||||||
<table class="table table-bordered table-striped">
|
<table class="table table-bordered table-striped">
|
||||||
|
<colgroup>
|
||||||
|
<col class="span1">
|
||||||
|
<col class="span7">
|
||||||
|
</colgroup>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{_i}}Tag{{/i}}</th>
|
<th>{{_i}}Tag{{/i}}</th>
|
||||||
@@ -493,7 +515,7 @@
|
|||||||
<th>#</th>
|
<th>#</th>
|
||||||
<th>{{_i}}First Name{{/i}}</th>
|
<th>{{_i}}First Name{{/i}}</th>
|
||||||
<th>{{_i}}Last Name{{/i}}</th>
|
<th>{{_i}}Last Name{{/i}}</th>
|
||||||
<th>{{_i}}Language{{/i}}</th>
|
<th>{{_i}}Username{{/i}}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -501,19 +523,19 @@
|
|||||||
<td>1</td>
|
<td>1</td>
|
||||||
<td>Mark</td>
|
<td>Mark</td>
|
||||||
<td>Otto</td>
|
<td>Otto</td>
|
||||||
<td>CSS</td>
|
<td>@mdo</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>2</td>
|
<td>2</td>
|
||||||
<td>Jacob</td>
|
<td>Jacob</td>
|
||||||
<td>Thornton</td>
|
<td>Thornton</td>
|
||||||
<td>Javascript</td>
|
<td>@fat</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>3</td>
|
<td>3</td>
|
||||||
<td>Stu</td>
|
<td>Larry</td>
|
||||||
<td>Dent</td>
|
<td>the Bird</td>
|
||||||
<td>HTML</td>
|
<td>@twitter</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -538,7 +560,7 @@
|
|||||||
<th>#</th>
|
<th>#</th>
|
||||||
<th>{{_i}}First Name{{/i}}</th>
|
<th>{{_i}}First Name{{/i}}</th>
|
||||||
<th>{{_i}}Last Name{{/i}}</th>
|
<th>{{_i}}Last Name{{/i}}</th>
|
||||||
<th>{{_i}}Language{{/i}}</th>
|
<th>{{_i}}Username{{/i}}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -546,19 +568,19 @@
|
|||||||
<td>1</td>
|
<td>1</td>
|
||||||
<td>Mark</td>
|
<td>Mark</td>
|
||||||
<td>Otto</td>
|
<td>Otto</td>
|
||||||
<td>CSS</td>
|
<td>@mdo</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>2</td>
|
<td>2</td>
|
||||||
<td>Jacob</td>
|
<td>Jacob</td>
|
||||||
<td>Thornton</td>
|
<td>Thornton</td>
|
||||||
<td>Javascript</td>
|
<td>@fat</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>3</td>
|
<td>3</td>
|
||||||
<td>Stu</td>
|
<td>Larry</td>
|
||||||
<td>Dent</td>
|
<td>the Bird</td>
|
||||||
<td>HTML</td>
|
<td>@twitter</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -582,31 +604,31 @@
|
|||||||
<th>#</th>
|
<th>#</th>
|
||||||
<th>{{_i}}First Name{{/i}}</th>
|
<th>{{_i}}First Name{{/i}}</th>
|
||||||
<th>{{_i}}Last Name{{/i}}</th>
|
<th>{{_i}}Last Name{{/i}}</th>
|
||||||
<th>{{_i}}Language{{/i}}</th>
|
<th>{{_i}}Username{{/i}}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>1</td>
|
<td rowspan="2">1</td>
|
||||||
<td colspan="2">Mark Otto</td>
|
<td>Mark</td>
|
||||||
<td>CSS</td>
|
<td>Otto</td>
|
||||||
|
<td>@mdo</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Mark</td>
|
||||||
|
<td>Otto</td>
|
||||||
|
<td>@TwBootstrap</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>2</td>
|
<td>2</td>
|
||||||
<td>Jacob</td>
|
<td>Jacob</td>
|
||||||
<td>Thornton</td>
|
<td>Thornton</td>
|
||||||
<td rowspan="2">Javascript</td>
|
<td>@fat</td>
|
||||||
</tr>
|
|
||||||
</tr>
|
|
||||||
<td>3</td>
|
|
||||||
<td>Stu</td>
|
|
||||||
<td>Dent</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>3</td>
|
<td>3</td>
|
||||||
<td>Brosef</td>
|
<td colspan="2">Larry the Bird</td>
|
||||||
<td>Stalin</td>
|
<td>@twitter</td>
|
||||||
<td>HTML</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -630,7 +652,7 @@
|
|||||||
<th>#</th>
|
<th>#</th>
|
||||||
<th>{{_i}}First Name{{/i}}</th>
|
<th>{{_i}}First Name{{/i}}</th>
|
||||||
<th>{{_i}}Last Name{{/i}}</th>
|
<th>{{_i}}Last Name{{/i}}</th>
|
||||||
<th>{{_i}}Language{{/i}}</th>
|
<th>{{_i}}Username{{/i}}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -638,19 +660,18 @@
|
|||||||
<td>1</td>
|
<td>1</td>
|
||||||
<td>Mark</td>
|
<td>Mark</td>
|
||||||
<td>Otto</td>
|
<td>Otto</td>
|
||||||
<td>CSS</td>
|
<td>@mdo</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>2</td>
|
<td>2</td>
|
||||||
<td>Jacob</td>
|
<td>Jacob</td>
|
||||||
<td>Thornton</td>
|
<td>Thornton</td>
|
||||||
<td>Javascript</td>
|
<td>@fat</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>3</td>
|
<td>3</td>
|
||||||
<td>Stu</td>
|
<td colspan="2">Larry the Bird</td>
|
||||||
<td>Dent</td>
|
<td>@twitter</td>
|
||||||
<td>HTML</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -671,37 +692,36 @@
|
|||||||
<div class="span8">
|
<div class="span8">
|
||||||
<table class="table table-striped table-bordered table-condensed">
|
<table class="table table-striped table-bordered table-condensed">
|
||||||
<thead>
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th></th>
|
||||||
|
<th colspan="2">{{_i}}Full name{{/i}}</th>
|
||||||
|
<th></th>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>#</th>
|
<th>#</th>
|
||||||
<th class="yellow">{{_i}}First Name{{/i}}</th>
|
<th>{{_i}}First Name{{/i}}</th>
|
||||||
<th class="blue">{{_i}}Last Name{{/i}}</th>
|
<th>{{_i}}Last Name{{/i}}</th>
|
||||||
<th class="green">{{_i}}Language{{/i}}</th>
|
<th>{{_i}}Username{{/i}}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>1</td>
|
<td>1</td>
|
||||||
<td>Mark</td>
|
<td>Mark</td>
|
||||||
<td>Otto</td>
|
<td>Otto</td>
|
||||||
<td>CSS</td>
|
<td>@mdo</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>2</td>
|
<td>2</td>
|
||||||
<td>Jacob</td>
|
<td>Jacob</td>
|
||||||
<td>Thornton</td>
|
<td>Thornton</td>
|
||||||
<td>Javascript</td>
|
<td>@fat</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>3</td>
|
<td>3</td>
|
||||||
<td>Stu</td>
|
<td colspan="2">Larry the Bird</td>
|
||||||
<td>Dent</td>
|
<td>@twitter</td>
|
||||||
<td>HTML</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>4</td>
|
|
||||||
<td>Brosef</td>
|
|
||||||
<td>Stalin</td>
|
|
||||||
<td>HTML</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -786,6 +806,7 @@
|
|||||||
<form class="well">
|
<form class="well">
|
||||||
<label>{{_i}}Label name{{/i}}</label>
|
<label>{{_i}}Label name{{/i}}</label>
|
||||||
<input type="text" class="span3" placeholder="{{_i}}Type something…{{/i}}"> <span class="help-inline">Associated help text!</span>
|
<input type="text" class="span3" placeholder="{{_i}}Type something…{{/i}}"> <span class="help-inline">Associated help text!</span>
|
||||||
|
<p class="help-block">{{_i}}Example block-level help text here.{{/i}}</p>
|
||||||
<label class="checkbox">
|
<label class="checkbox">
|
||||||
<input type="checkbox"> {{_i}}Check me out{{/i}}
|
<input type="checkbox"> {{_i}}Check me out{{/i}}
|
||||||
</label>
|
</label>
|
||||||
@@ -832,7 +853,7 @@
|
|||||||
<input type="text" class="input-small" placeholder="{{_i}}Email{{/i}}">
|
<input type="text" class="input-small" placeholder="{{_i}}Email{{/i}}">
|
||||||
<input type="password" class="input-small" placeholder="{{_i}}Password{{/i}}">
|
<input type="password" class="input-small" placeholder="{{_i}}Password{{/i}}">
|
||||||
<label class="checkbox">
|
<label class="checkbox">
|
||||||
<input type="checkbox"> {{_i}}Remember?{{/i}}
|
<input type="checkbox"> {{_i}}Remember me{{/i}}
|
||||||
</label>
|
</label>
|
||||||
<button type="submit" class="btn">{{_i}}Sign in{{/i}}</button>
|
<button type="submit" class="btn">{{_i}}Sign in{{/i}}</button>
|
||||||
</form>
|
</form>
|
||||||
@@ -840,7 +861,10 @@
|
|||||||
<form class="well form-inline">
|
<form class="well form-inline">
|
||||||
<input type="text" class="input-small" placeholder="{{_i}}Email{{/i}}">
|
<input type="text" class="input-small" placeholder="{{_i}}Email{{/i}}">
|
||||||
<input type="password" class="input-small" placeholder="{{_i}}Password{{/i}}">
|
<input type="password" class="input-small" placeholder="{{_i}}Password{{/i}}">
|
||||||
<button type="submit" class="btn">{{_i}}Go{{/i}}</button>
|
<label class="checkbox">
|
||||||
|
<input type="checkbox"> {{_i}}Remember me{{/i}}
|
||||||
|
</label>
|
||||||
|
<button type="submit" class="btn">{{_i}}Sign in{{/i}}</button>
|
||||||
</form>
|
</form>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
@@ -1087,8 +1111,7 @@
|
|||||||
<label class="control-label" for="prependedInput">{{_i}}Prepended text{{/i}}</label>
|
<label class="control-label" for="prependedInput">{{_i}}Prepended text{{/i}}</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<div class="input-prepend">
|
<div class="input-prepend">
|
||||||
<span class="add-on">@</span>
|
<span class="add-on">@</span><input class="span2" id="prependedInput" size="16" type="text">
|
||||||
<input class="span2" id="prependedInput" size="16" type="text">
|
|
||||||
</div>
|
</div>
|
||||||
<p class="help-block">{{_i}}Here's some help text{{/i}}</p>
|
<p class="help-block">{{_i}}Here's some help text{{/i}}</p>
|
||||||
</div>
|
</div>
|
||||||
@@ -1097,10 +1120,25 @@
|
|||||||
<label class="control-label" for="appendedInput">{{_i}}Appended text{{/i}}</label>
|
<label class="control-label" for="appendedInput">{{_i}}Appended text{{/i}}</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<div class="input-append">
|
<div class="input-append">
|
||||||
<input class="span2" id="appendedInput" size="16" type="text">
|
<input class="span2" id="appendedInput" size="16" type="text"><span class="add-on">.00</span>
|
||||||
<span class="add-on">.00</span>
|
</div>
|
||||||
|
<span class="help-inline">{{_i}}Here's more help text{{/i}}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="control-group">
|
||||||
|
<label class="control-label" for="appendedPrependedInput">{{_i}}Append and prepend{{/i}}</label>
|
||||||
|
<div class="controls">
|
||||||
|
<div class="input-prepend input-append">
|
||||||
|
<span class="add-on">$</span><input class="span2" id="appendedPrependedInput" size="16" type="text"><span class="add-on">.00</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="control-group">
|
||||||
|
<label class="control-label" for="appendedPrependedInput">{{_i}}Append with button{{/i}}</label>
|
||||||
|
<div class="controls">
|
||||||
|
<div class="input-append">
|
||||||
|
<input class="span2" id="appendedPrependedInput" size="16" type="text"><button class="btn" type="button">Go!</button>
|
||||||
</div>
|
</div>
|
||||||
<p class="help-block">{{_i}}Here's more help text{{/i}}</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
@@ -1184,44 +1222,44 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{_i}}Button{{/i}}</th>
|
<th>{{_i}}Button{{/i}}</th>
|
||||||
<th>{{_i}}Class{{/i}}</th>
|
<th>{{_i}}class=""{{/i}}</th>
|
||||||
<th>{{_i}}Description{{/i}}</th>
|
<th>{{_i}}Description{{/i}}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td><button class="btn" href="#">{{_i}}Default{{/i}}</button></td>
|
<td><button class="btn" href="#">{{_i}}Default{{/i}}</button></td>
|
||||||
<td><code>.btn</code></td>
|
<td><code>btn</code></td>
|
||||||
<td>{{_i}}Standard gray button with gradient{{/i}}</td>
|
<td>{{_i}}Standard gray button with gradient{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><button class="btn btn-primary" href="#">{{_i}}Primary{{/i}}</button></td>
|
<td><button class="btn btn-primary" href="#">{{_i}}Primary{{/i}}</button></td>
|
||||||
<td><code>.btn-primary</code></td>
|
<td><code>btn btn-primary</code></td>
|
||||||
<td>{{_i}}Provides extra visual weight and identifies the primary action in a set of buttons{{/i}}</td>
|
<td>{{_i}}Provides extra visual weight and identifies the primary action in a set of buttons{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><button class="btn btn-info" href="#">{{_i}}Info{{/i}}</button></td>
|
<td><button class="btn btn-info" href="#">{{_i}}Info{{/i}}</button></td>
|
||||||
<td><code>.btn-info</code></td>
|
<td><code>btn btn-info</code></td>
|
||||||
<td>{{_i}}Used as an alternate to the default styles{{/i}}</td>
|
<td>{{_i}}Used as an alternate to the default styles{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><button class="btn btn-success" href="#">{{_i}}Success{{/i}}</button></td>
|
<td><button class="btn btn-success" href="#">{{_i}}Success{{/i}}</button></td>
|
||||||
<td><code>.btn-success</code></td>
|
<td><code>btn btn-success</code></td>
|
||||||
<td>{{_i}}Indicates a successful or positive action{{/i}}</td>
|
<td>{{_i}}Indicates a successful or positive action{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><button class="btn btn-warning" href="#">{{_i}}Warning{{/i}}</button></td>
|
<td><button class="btn btn-warning" href="#">{{_i}}Warning{{/i}}</button></td>
|
||||||
<td><code>.btn-warning</code></td>
|
<td><code>btn btn-warning</code></td>
|
||||||
<td>{{_i}}Indicates caution should be taken with this action{{/i}}</td>
|
<td>{{_i}}Indicates caution should be taken with this action{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><button class="btn btn-danger" href="#">{{_i}}Danger{{/i}}</button></td>
|
<td><button class="btn btn-danger" href="#">{{_i}}Danger{{/i}}</button></td>
|
||||||
<td><code>.btn-danger</code></td>
|
<td><code>btn btn-danger</code></td>
|
||||||
<td>{{_i}}Indicates a dangerous or potentially negative action{{/i}}</td>
|
<td>{{_i}}Indicates a dangerous or potentially negative action{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><button class="btn btn-inverse" href="#">{{_i}}Inverse{{/i}}</button></td>
|
<td><button class="btn btn-inverse" href="#">{{_i}}Inverse{{/i}}</button></td>
|
||||||
<td><code>.btn-inverse</code></td>
|
<td><code>btn btn-inverse</code></td>
|
||||||
<td>{{_i}}Alternate dark gray button, not tied to a semantic action or use{{/i}}</td>
|
<td>{{_i}}Alternate dark gray button, not tied to a semantic action or use{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
@@ -1436,9 +1474,6 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="alert alert-info">
|
|
||||||
{{_i}}<strong>Heads up!</strong> Icon classes are echoed via CSS <code>:after</code>. In the docs, we show a light red background color on hover to highlight the icon's size.{{/i}}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
@@ -1451,7 +1486,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>{{_i}}How to use{{/i}}</h3>
|
<h3>{{_i}}How to use{{/i}}</h3>
|
||||||
<p>{{_i}}With v2.0.1, we have opted to use an <code><i></code> tag for all our icons, but they have no case class—only a shared prefix. To use, place the following code just about anywhere:{{/i}}</p>
|
<p>{{_i}}Bootstrap uses an <code><i></code> tag for all icons, but they have no case class—only a shared prefix. To use, place the following code just about anywhere:{{/i}}</p>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<i class="icon-search"></i>
|
<i class="icon-search"></i>
|
||||||
</pre>
|
</pre>
|
||||||
@@ -1460,6 +1495,10 @@
|
|||||||
<i class="icon-search icon-white"></i>
|
<i class="icon-search icon-white"></i>
|
||||||
</pre>
|
</pre>
|
||||||
<p>{{_i}}There are 120 classes to choose from for your icons. Just add an <code><i></code> tag with the right classes and you're set. You can find the full list in <strong>sprites.less</strong> or right here in this document.{{/i}}</p>
|
<p>{{_i}}There are 120 classes to choose from for your icons. Just add an <code><i></code> tag with the right classes and you're set. You can find the full list in <strong>sprites.less</strong> or right here in this document.{{/i}}</p>
|
||||||
|
<p>
|
||||||
|
<span class="label label-info">{{_i}}Heads up!{{/i}}</span>
|
||||||
|
{{_i}}When using beside strings of text, as in buttons or nav links, be sure to leave a space after the <code><i></code> tag for proper spacing.{{/i}}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>{{_i}}Use cases{{/i}}</h3>
|
<h3>{{_i}}Use cases{{/i}}</h3>
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#labels">{{_i}}Labels{{/i}}</a></li>
|
<li><a href="#labels">{{_i}}Labels{{/i}}</a></li>
|
||||||
|
<li><a href="#badges">{{_i}}Badges{{/i}}</a></li>
|
||||||
<li><a href="#typography">{{_i}}Typography{{/i}}</a></li>
|
<li><a href="#typography">{{_i}}Typography{{/i}}</a></li>
|
||||||
<li><a href="#thumbnails">{{_i}}Thumbnails{{/i}}</a></li>
|
<li><a href="#thumbnails">{{_i}}Thumbnails{{/i}}</a></li>
|
||||||
<li><a href="#alerts">{{_i}}Alerts{{/i}}</a></li>
|
<li><a href="#alerts">{{_i}}Alerts{{/i}}</a></li>
|
||||||
@@ -57,34 +58,34 @@
|
|||||||
<p>{{_i}}Here's how the HTML looks for a standard button group built with anchor tag buttons:{{/i}}</p>
|
<p>{{_i}}Here's how the HTML looks for a standard button group built with anchor tag buttons:{{/i}}</p>
|
||||||
<div class="">
|
<div class="">
|
||||||
<div class="btn-group" style="margin: 9px 0;">
|
<div class="btn-group" style="margin: 9px 0;">
|
||||||
<a class="btn" href="#">{{_i}}Left{{/i}}</a>
|
<button class="btn">{{_i}}Left{{/i}}</button>
|
||||||
<a class="btn" href="#">{{_i}}Middle{{/i}}</a>
|
<button class="btn">{{_i}}Middle{{/i}}</button>
|
||||||
<a class="btn" href="#">{{_i}}Right{{/i}}</a>
|
<button class="btn">{{_i}}Right{{/i}}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn" href="#">1</a>
|
<button class="btn">1</button>
|
||||||
<a class="btn" href="#">2</a>
|
<button class="btn">2</button>
|
||||||
<a class="btn" href="#">3</a>
|
<button class="btn">3</button>
|
||||||
</div>
|
</div>
|
||||||
</pre>
|
</pre>
|
||||||
<h3>{{_i}}Toolbar example{{/i}}</h3>
|
<h3>{{_i}}Toolbar example{{/i}}</h3>
|
||||||
<p>{{_i}}Combine sets of <code><div class="btn-group"></code> into a <code><div class="btn-toolbar"></code> for more complex components.{{/i}}</p>
|
<p>{{_i}}Combine sets of <code><div class="btn-group"></code> into a <code><div class="btn-toolbar"></code> for more complex components.{{/i}}</p>
|
||||||
<div class="btn-toolbar">
|
<div class="btn-toolbar">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn" href="#">1</a>
|
<button class="btn">1</button>
|
||||||
<a class="btn" href="#">2</a>
|
<button class="btn">2</button>
|
||||||
<a class="btn" href="#">3</a>
|
<button class="btn">3</button>
|
||||||
<a class="btn" href="#">4</a>
|
<button class="btn">4</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn" href="#">5</a>
|
<button class="btn">5</button>
|
||||||
<a class="btn" href="#">6</a>
|
<button class="btn">6</button>
|
||||||
<a class="btn" href="#">7</a>
|
<button class="btn">7</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn" href="#">8</a>
|
<button class="btn">8</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
@@ -99,9 +100,8 @@
|
|||||||
<h3>{{_i}}Checkbox and radio flavors{{/i}}</h3>
|
<h3>{{_i}}Checkbox and radio flavors{{/i}}</h3>
|
||||||
<p>{{_i}}Button groups can also function as radios, where only one button may be active, or checkboxes, where any number of buttons may be active. View <a href="./javascript.html#buttons">the Javascript docs</a> for that.{{/i}}</p>
|
<p>{{_i}}Button groups can also function as radios, where only one button may be active, or checkboxes, where any number of buttons may be active. View <a href="./javascript.html#buttons">the Javascript docs</a> for that.{{/i}}</p>
|
||||||
<p><a class="btn js-btn" href="./javascript.html#buttons">{{_i}}Get the javascript »{{/i}}</a></p>
|
<p><a class="btn js-btn" href="./javascript.html#buttons">{{_i}}Get the javascript »{{/i}}</a></p>
|
||||||
<hr>
|
<h3>{{_i}}Dropdowns in button groups{{/i}}</h3>
|
||||||
<h4 class="muted">{{_i}}Heads up{{/i}}</h4>
|
<p><span class="label label-info">{{_i}}Heads up!{{/i}}</span> {{_i}}Buttons with dropdowns must be individually wrapped in their own <code>.btn-group</code> within a <code>.btn-toolbar</code> for proper rendering.{{/i}}</p>
|
||||||
<p class="muted">{{_i}}CSS for button groups is in a separate file, button-groups.less.{{/i}}</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@@ -112,16 +112,17 @@
|
|||||||
================================================== -->
|
================================================== -->
|
||||||
<section id="buttonDropdowns">
|
<section id="buttonDropdowns">
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h1>{{_i}}Buttons dropdowns{{/i}} <small>{{_i}}Contextual dropdown menus built on button groups{{/i}}</small></h1>
|
<h1>{{_i}}Button dropdown menus{{/i}} <small>{{_i}}Built on button groups to provide contextual menus{{/i}}</small></h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<h2>{{_i}}Button dropdowns{{/i}}</h2>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>{{_i}}Button dropdowns{{/i}}</h3>
|
<h3>{{_i}}Overview and examples{{/i}}</h3>
|
||||||
<p>{{_i}}Use any button to trigger a dropdown menu by placing it within a <code>.btn-group</code> and providing the proper menu markup.{{/i}}</p>
|
<p>{{_i}}Use any button to trigger a dropdown menu by placing it within a <code>.btn-group</code> and providing the proper menu markup.{{/i}}</p>
|
||||||
<div class="btn-toolbar" style="margin-top: 18px;">
|
<div class="btn-toolbar" style="margin-top: 18px;">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Action{{/i}} <span class="caret"></span></a>
|
<button class="btn dropdown-toggle" data-toggle="dropdown">{{_i}}Action{{/i}} <span class="caret"></span></button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
||||||
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
||||||
@@ -131,7 +132,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div><!-- /btn-group -->
|
</div><!-- /btn-group -->
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Action{{/i}} <span class="caret"></span></a>
|
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">{{_i}}Action{{/i}} <span class="caret"></span></button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
||||||
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
||||||
@@ -141,7 +142,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div><!-- /btn-group -->
|
</div><!-- /btn-group -->
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn btn-danger dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Danger{{/i}} <span class="caret"></span></a>
|
<button class="btn btn-danger dropdown-toggle" data-toggle="dropdown">{{_i}}Danger{{/i}} <span class="caret"></span></button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
||||||
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
||||||
@@ -153,7 +154,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="btn-toolbar">
|
<div class="btn-toolbar">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn btn-success dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Success{{/i}} <span class="caret"></span></a>
|
<button class="btn btn-warning dropdown-toggle" data-toggle="dropdown">{{_i}}Warning{{/i}} <span class="caret"></span></button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
||||||
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
||||||
@@ -163,7 +164,27 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div><!-- /btn-group -->
|
</div><!-- /btn-group -->
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn btn-info dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Info{{/i}} <span class="caret"></span></a>
|
<button class="btn btn-success dropdown-toggle" data-toggle="dropdown">{{_i}}Success{{/i}} <span class="caret"></span></button>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
||||||
|
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
||||||
|
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /btn-group -->
|
||||||
|
<div class="btn-group">
|
||||||
|
<button class="btn btn-info dropdown-toggle" data-toggle="dropdown">{{_i}}Info{{/i}} <span class="caret"></span></button>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
||||||
|
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
||||||
|
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /btn-group -->
|
||||||
|
<div class="btn-group">
|
||||||
|
<button class="btn btn-inverse dropdown-toggle" data-toggle="dropdown">{{_i}}Inverse{{/i}} <span class="caret"></span></button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
||||||
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
||||||
@@ -173,8 +194,6 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div><!-- /btn-group -->
|
</div><!-- /btn-group -->
|
||||||
</div><!-- /btn-toolbar -->
|
</div><!-- /btn-toolbar -->
|
||||||
<hr>
|
|
||||||
<p><span class="label label-info">{{_i}}Heads up!{{/i}}</span> {{_i}}Button dropdowns require the <a href="./javascript.html#dropdowns">Bootstrap dropdown plugin</a> to function.{{/i}}</p>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="span8">
|
<div class="span8">
|
||||||
<h3>{{_i}}Example markup{{/i}}</h3>
|
<h3>{{_i}}Example markup{{/i}}</h3>
|
||||||
@@ -192,15 +211,60 @@
|
|||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>{{_i}}Split button dropdowns{{/i}}</h3>
|
<h3>{{_i}}Works with all button sizes{{/i}}</h3>
|
||||||
|
<p>{{_i}}Button dropdowns work at any size. your button sizes to <code>.btn-large</code>, <code>.btn-small</code>, or <code>.btn-mini</code>.{{/i}}</p>
|
||||||
|
<div class="btn-toolbar" style="margin-top: 18px;">
|
||||||
|
<div class="btn-group">
|
||||||
|
<button class="btn btn-large dropdown-toggle" data-toggle="dropdown">{{_i}}Large button{{/i}} <span class="caret"></span></button>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
||||||
|
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
||||||
|
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /btn-group -->
|
||||||
|
<div class="btn-group">
|
||||||
|
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown">{{_i}}Small button{{/i}} <span class="caret"></span></button>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
||||||
|
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
||||||
|
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /btn-group -->
|
||||||
|
<div class="btn-group">
|
||||||
|
<button class="btn btn-mini dropdown-toggle" data-toggle="dropdown">{{_i}}Mini button{{/i}} <span class="caret"></span></button>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
||||||
|
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
||||||
|
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /btn-group -->
|
||||||
|
</div><!-- /btn-toolbar -->
|
||||||
|
</div><!--/span-->
|
||||||
|
<div class="span4">
|
||||||
|
<h3>{{_i}}Requires javascript{{/i}}</h3>
|
||||||
|
<p>{{_i}}Button dropdowns require the <a href="./javascript.html#dropdowns">Bootstrap dropdown plugin</a> to function.{{/i}}</p>
|
||||||
|
<p>{{_i}}In some cases—like mobile—dropdown menus will extend outside the viewport. You need to resolve the alignment manually or with custom javascript.{{/i}}</p>
|
||||||
|
</div><!--/span-->
|
||||||
|
</div><!--/row-->
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<h2>{{_i}}Split button dropdowns{{/i}}</h2>
|
||||||
|
<div class="row">
|
||||||
|
<div class="span4">
|
||||||
|
<h3>{{_i}}Overview and examples{{/i}}</h3>
|
||||||
<p>{{_i}}Building on the button group styles and markup, we can easily create a split button. Split buttons feature a standard action on the left and a dropdown toggle on the right with contextual links.{{/i}}</p>
|
<p>{{_i}}Building on the button group styles and markup, we can easily create a split button. Split buttons feature a standard action on the left and a dropdown toggle on the right with contextual links.{{/i}}</p>
|
||||||
<div class="btn-toolbar" style="margin-top: 18px;">
|
<div class="btn-toolbar" style="margin-top: 18px;">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn" href="#">{{_i}}Action{{/i}}</a>
|
<button class="btn">{{_i}}Action{{/i}}</button>
|
||||||
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
|
<button class="btn dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
||||||
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
||||||
@@ -210,8 +274,8 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div><!-- /btn-group -->
|
</div><!-- /btn-group -->
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn btn-primary" href="#">{{_i}}Action{{/i}}</a>
|
<button class="btn btn-primary">{{_i}}Action{{/i}}</button>
|
||||||
<a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
|
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
||||||
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
||||||
@@ -221,8 +285,8 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div><!-- /btn-group -->
|
</div><!-- /btn-group -->
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn btn-danger" href="#">{{_i}}Danger{{/i}}</a>
|
<button class="btn btn-danger">{{_i}}Danger{{/i}}</button>
|
||||||
<a class="btn btn-danger dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
|
<button class="btn btn-danger dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
||||||
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
||||||
@@ -234,8 +298,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="btn-toolbar">
|
<div class="btn-toolbar">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn btn-success" href="#">{{_i}}Success{{/i}}</a>
|
<button class="btn btn-warning">{{_i}}Warning{{/i}}</button>
|
||||||
<a class="btn btn-success dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
|
<button class="btn btn-warning dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
||||||
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
||||||
@@ -245,8 +309,19 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div><!-- /btn-group -->
|
</div><!-- /btn-group -->
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn btn-info" href="#">{{_i}}Info{{/i}}</a>
|
<button class="btn btn-success">{{_i}}Success{{/i}}</button>
|
||||||
<a class="btn btn-info dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
|
<button class="btn btn-success dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
||||||
|
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
||||||
|
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /btn-group -->
|
||||||
|
<div class="btn-group">
|
||||||
|
<button class="btn btn-info">{{_i}}Info{{/i}}</button>
|
||||||
|
<button class="btn btn-info dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
||||||
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
||||||
@@ -256,21 +331,121 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div><!-- /btn-group -->
|
</div><!-- /btn-group -->
|
||||||
</div>
|
</div>
|
||||||
|
<div class="btn-toolbar">
|
||||||
|
<div class="btn-group">
|
||||||
|
<button class="btn btn-inverse">{{_i}}Inverse{{/i}}</button>
|
||||||
|
<button class="btn btn-inverse dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
||||||
|
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
||||||
|
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /btn-group -->
|
||||||
|
</div><!-- /btn-toolbar -->
|
||||||
|
<h3>{{_i}}Sizes{{/i}}</h3>
|
||||||
|
<p>{{_i}}Utilize the extra button classe <code>.btn-mini</code>, <code>.btn-small</code>, or <code>.btn-large</code> for sizing.{{/i}}</p>
|
||||||
|
<div class="btn-toolbar">
|
||||||
|
<div class="btn-group">
|
||||||
|
<button class="btn btn-large">{{_i}}Large action{{/i}}</button>
|
||||||
|
<button class="btn btn-large dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
||||||
|
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
||||||
|
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /btn-group -->
|
||||||
|
</div><!-- /btn-toolbar -->
|
||||||
|
<div class="btn-toolbar">
|
||||||
|
<div class="btn-group">
|
||||||
|
<button class="btn btn-small">{{_i}}Small action{{/i}}</button>
|
||||||
|
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
||||||
|
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
||||||
|
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /btn-group -->
|
||||||
|
</div><!-- /btn-toolbar -->
|
||||||
|
<div class="btn-toolbar">
|
||||||
|
<div class="btn-group">
|
||||||
|
<button class="btn btn-mini">{{_i}}Mini action{{/i}}</button>
|
||||||
|
<button class="btn btn-mini dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
||||||
|
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
||||||
|
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /btn-group -->
|
||||||
|
</div><!-- /btn-toolbar -->
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
<div class="btn-group">
|
||||||
|
...
|
||||||
|
<ul class="dropdown-menu pull-right">
|
||||||
|
<!-- {{_i}}dropdown menu links{{/i}} -->
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="span8">
|
<div class="span8">
|
||||||
<h3>{{_i}}Example markup{{/i}}</h3>
|
<h3>{{_i}}Example markup{{/i}}</h3>
|
||||||
<p>{{_i}}We expand on the normal button dropdowns to provide a second button action that operates as a separate dropdown trigger.{{/i}}</p>
|
<p>{{_i}}We expand on the normal button dropdowns to provide a second button action that operates as a separate dropdown trigger.{{/i}}</p>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a class="btn" href="#">{{_i}}Action{{/i}}</a>
|
<button class="btn">{{_i}}Action{{/i}}</button>
|
||||||
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
|
<button class="btn dropdown-toggle" data-toggle="dropdown">
|
||||||
<span class="caret"></span>
|
<span class="caret"></span>
|
||||||
</a>
|
</button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<!-- {{_i}}dropdown menu links{{/i}} -->
|
<!-- {{_i}}dropdown menu links{{/i}} -->
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</pre>
|
</pre>
|
||||||
|
<h3>{{_i}}Dropup menus{{/i}}</h3>
|
||||||
|
<p>{{_i}}Dropdown menus can also be toggled from the bottom up by adding a single class to the immediate parent of <code>.dropdown-menu</code>. It will flip the direction of the <code>.caret</code> and reposition the menu itself to move from the bottom up instead of top down.{{/i}}</p>
|
||||||
|
<div class="btn-toolbar" style="margin-top: 9px;">
|
||||||
|
<div class="btn-group dropup">
|
||||||
|
<button class="btn">{{_i}}Dropup{{/i}}</button>
|
||||||
|
<button class="btn dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
||||||
|
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
||||||
|
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /btn-group -->
|
||||||
|
<div class="btn-group dropup">
|
||||||
|
<button class="btn primary">{{_i}}Right dropup{{/i}}</button>
|
||||||
|
<button class="btn primary dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
|
||||||
|
<ul class="dropdown-menu pull-right">
|
||||||
|
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
||||||
|
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
||||||
|
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /btn-group -->
|
||||||
|
</div>
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
<div class="btn-group dropup">
|
||||||
|
<button class="btn">{{_i}}Dropup{{/i}}</button>
|
||||||
|
<button class="btn dropdown-toggle" data-toggle="dropdown">
|
||||||
|
<span class="caret"></span>
|
||||||
|
</button>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<!-- {{_i}}dropdown menu links{{/i}} -->
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</pre>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@@ -377,7 +552,7 @@
|
|||||||
<h3>{{_i}}Tabs with dropdowns{{/i}}</h3>
|
<h3>{{_i}}Tabs with dropdowns{{/i}}</h3>
|
||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs">
|
||||||
<li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
|
<li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
|
||||||
<li><a href="#">{{_i}}Profile{{/i}}</a></li>
|
<li><a href="#">{{_i}}Help{{/i}}</a></li>
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
@@ -388,6 +563,16 @@
|
|||||||
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
|
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="dropdown">
|
||||||
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Dropup{{/i}} <b class="caret bottom-up"></b></a>
|
||||||
|
<ul class="dropdown-menu bottom-up pull-right">
|
||||||
|
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
||||||
|
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
||||||
|
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs">
|
||||||
@@ -409,7 +594,7 @@
|
|||||||
<h3>{{_i}}Pills with dropdowns{{/i}}</h3>
|
<h3>{{_i}}Pills with dropdowns{{/i}}</h3>
|
||||||
<ul class="nav nav-pills">
|
<ul class="nav nav-pills">
|
||||||
<li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
|
<li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
|
||||||
<li><a href="#">{{_i}}Profile{{/i}}</a></li>
|
<li><a href="#">{{_i}}Help{{/i}}</a></li>
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
@@ -420,6 +605,16 @@
|
|||||||
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
|
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="dropdown">
|
||||||
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Dropup{{/i}} <b class="caret bottom-up"></b></a>
|
||||||
|
<ul class="dropdown-menu bottom-up pull-right">
|
||||||
|
<li><a href="#">{{_i}}Action{{/i}}</a></li>
|
||||||
|
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
|
||||||
|
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<ul class="nav nav-pills">
|
<ul class="nav nav-pills">
|
||||||
@@ -445,8 +640,18 @@
|
|||||||
<h3>{{_i}}Application-style navigation{{/i}}</h3>
|
<h3>{{_i}}Application-style navigation{{/i}}</h3>
|
||||||
<p>{{_i}}Nav lists provide a simple and easy way to build groups of nav links with optional headers. They're best used in sidebars like the Finder in OS X.{{/i}}</p>
|
<p>{{_i}}Nav lists provide a simple and easy way to build groups of nav links with optional headers. They're best used in sidebars like the Finder in OS X.{{/i}}</p>
|
||||||
<p>{{_i}}Structurally, they're built on the same core nav styles as tabs and pills, so usage and customization are straightforward.{{/i}}</p>
|
<p>{{_i}}Structurally, they're built on the same core nav styles as tabs and pills, so usage and customization are straightforward.{{/i}}</p>
|
||||||
|
<hr>
|
||||||
<h4>{{_i}}With icons{{/i}}</h4>
|
<h4>{{_i}}With icons{{/i}}</h4>
|
||||||
<p>{{_i}}Nav lists are also easy to equip with icons. Add the proper <code><i></code> tag with class and you're set.{{/i}}</p>
|
<p>{{_i}}Nav lists are also easy to equip with icons. Add the proper <code><i></code> tag with class and you're set.{{/i}}</p>
|
||||||
|
<h4>{{_i}}Horizontal dividers{{/i}}</h4>
|
||||||
|
<p>{{_i}}Add a horizontal divider by creating an empty list item with the class <code>.divider</code>, like so:{{/i}}</p>
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
<ul class="nav nav-list">
|
||||||
|
...
|
||||||
|
<li class="divider"></li>
|
||||||
|
...
|
||||||
|
</ul>
|
||||||
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>{{_i}}Example nav list{{/i}}</h3>
|
<h3>{{_i}}Example nav list{{/i}}</h3>
|
||||||
@@ -460,6 +665,7 @@
|
|||||||
<li class="nav-header">{{_i}}Another list header{{/i}}</li>
|
<li class="nav-header">{{_i}}Another list header{{/i}}</li>
|
||||||
<li><a href="#">{{_i}}Profile{{/i}}</a></li>
|
<li><a href="#">{{_i}}Profile{{/i}}</a></li>
|
||||||
<li><a href="#">{{_i}}Settings{{/i}}</a></li>
|
<li><a href="#">{{_i}}Settings{{/i}}</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
<li><a href="#">{{_i}}Help{{/i}}</a></li>
|
<li><a href="#">{{_i}}Help{{/i}}</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div> <!-- /well -->
|
</div> <!-- /well -->
|
||||||
@@ -490,6 +696,7 @@
|
|||||||
<li class="nav-header">{{_i}}Another list header{{/i}}</li>
|
<li class="nav-header">{{_i}}Another list header{{/i}}</li>
|
||||||
<li><a href="#"><i class="icon-user"></i> {{_i}}Profile{{/i}}</a></li>
|
<li><a href="#"><i class="icon-user"></i> {{_i}}Profile{{/i}}</a></li>
|
||||||
<li><a href="#"><i class="icon-cog"></i> {{_i}}Settings{{/i}}</a></li>
|
<li><a href="#"><i class="icon-cog"></i> {{_i}}Settings{{/i}}</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
<li><a href="#"><i class="icon-flag"></i> {{_i}}Help{{/i}}</a></li>
|
<li><a href="#"><i class="icon-flag"></i> {{_i}}Help{{/i}}</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div> <!-- /well -->
|
</div> <!-- /well -->
|
||||||
@@ -678,7 +885,7 @@
|
|||||||
<p>{{_i}}An example of a static (not fixed to the top) navbar with project name, navigation, and search form.{{/i}}</p>
|
<p>{{_i}}An example of a static (not fixed to the top) navbar with project name, navigation, and search form.{{/i}}</p>
|
||||||
<div class="navbar">
|
<div class="navbar">
|
||||||
<div class="navbar-inner">
|
<div class="navbar-inner">
|
||||||
<div class="container" style="width: auto;">
|
<div class="container">
|
||||||
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
@@ -740,13 +947,24 @@
|
|||||||
</div>
|
</div>
|
||||||
</pre>
|
</pre>
|
||||||
<h3>{{_i}}Fixed navbar{{/i}}</h3>
|
<h3>{{_i}}Fixed navbar{{/i}}</h3>
|
||||||
<p>{{_i}}To make the navbar fixed to the top of the viewport, add <code>.navbar-fixed-top</code> to the outermost div, <code>.navbar</code>.{{/i}}</p>
|
<p>{{_i}}Fix the navbar to the top or bottom of the viewport with an additional class on the outermost div, <code>.navbar</code>.{{/i}}</p>
|
||||||
|
<div class="row">
|
||||||
|
<div class="span4">
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<div class="navbar navbar-fixed-top">
|
<div class="navbar navbar-fixed-top">
|
||||||
...
|
...
|
||||||
</div>
|
</div>
|
||||||
</pre>
|
</pre>
|
||||||
<p>{{_i}}In your CSS, you will also need to account for the overlap it causes by adding 40px or more of padding to your <code><body></code>. Be sure to add this after the core Bootstrap CSS and before the optional responsive CSS.{{/i}}</p>
|
</div><!--/span-->
|
||||||
|
<div class="span4">
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
<div class="navbar navbar-fixed-bottom">
|
||||||
|
...
|
||||||
|
</div>
|
||||||
|
</pre>
|
||||||
|
</div><!--/span-->
|
||||||
|
</div><!--/row-->
|
||||||
|
<p>{{_i}}When you affix the navbar, remember to account for the hidden area underneath. Add 40px or more of apdding to the <code><body></code>. Be sure to add this after the core Bootstrap CSS and before the optional responsive CSS.{{/i}}</p>
|
||||||
<h3>{{_i}}Brand name{{/i}}</h3>
|
<h3>{{_i}}Brand name{{/i}}</h3>
|
||||||
<p>{{_i}}A simple link to show your brand or project name only requires an anchor tag.{{/i}}</p>
|
<p>{{_i}}A simple link to show your brand or project name only requires an anchor tag.{{/i}}</p>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
@@ -754,8 +972,14 @@
|
|||||||
{{_i}}Project name{{/i}}
|
{{_i}}Project name{{/i}}
|
||||||
</a>
|
</a>
|
||||||
</pre>
|
</pre>
|
||||||
<h3>{{_i}}Search form{{/i}}</h3>
|
<h3>{{_i}}Forms in navbar{{/i}}</h3>
|
||||||
<p>{{_i}}Search forms receive custom styles in the navbar with the <code>.navbar-search</code> class. Include <code>.pull-left</code> or <code>.pull-right</code> on the <code>form</code> to align it.{{/i}}</p>
|
<p>{{_i}}To properly style and position a form within the navbar, add the appropriate classes as shown below. For a default form, include <code>.navbar-form</code> and either <code>.pull-left</code> or <code>.pull-right</code> to properly align it.{{/i}}</p>
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
<form class="navbar-form pull-left">
|
||||||
|
<input type="text" class="span2">
|
||||||
|
</form>
|
||||||
|
</pre>
|
||||||
|
<p>{{_i}}For a more customized search form, add the <code>.navbar-search</code> class to receive specialized styles in the navbar.{{/i}}</p>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<form class="navbar-search pull-left">
|
<form class="navbar-search pull-left">
|
||||||
<input type="text" class="search-query" placeholder="{{_i}}Search{{/i}}">
|
<input type="text" class="search-query" placeholder="{{_i}}Search{{/i}}">
|
||||||
@@ -814,8 +1038,8 @@
|
|||||||
</pre>
|
</pre>
|
||||||
<h3>{{_i}}Component alignment{{/i}}</h3>
|
<h3>{{_i}}Component alignment{{/i}}</h3>
|
||||||
<p>{{_i}}To align a nav, search form, or text, use the <code>.pull-left</code> or <code>.pull-right</code> utility classes. Both classes will add a CSS float in the specified direction.{{/i}}</p>
|
<p>{{_i}}To align a nav, search form, or text, use the <code>.pull-left</code> or <code>.pull-right</code> utility classes. Both classes will add a CSS float in the specified direction.{{/i}}</p>
|
||||||
<h3>{{_i}}Adding dropdowns{{/i}}</h3>
|
<h3>{{_i}}Adding dropdown menus{{/i}}</h3>
|
||||||
<p>{{_i}}Adding dropdowns to the nav is super simple, but does require the use of <a href="./javascript.html#dropdowns">our javascript plugin</a>.{{/i}}</p>
|
<p>{{_i}}Adding dropdowns and dropups to the nav is super simple, but does require the use of <a href="./javascript.html/#dropdown">our javascript plugin</a>.{{/i}}</p>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
@@ -832,6 +1056,9 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</pre>
|
</pre>
|
||||||
<p><a class="btn" href="./javascript.html#dropdowns">{{_i}}Get the javascript →{{/i}}</a></p>
|
<p><a class="btn" href="./javascript.html#dropdowns">{{_i}}Get the javascript →{{/i}}</a></p>
|
||||||
|
<hr>
|
||||||
|
<h3>{{_i}}Text in the navbar{{/i}}</h3>
|
||||||
|
<p>{{_i}}Wrap strings of text in a <code><p></code> tag for proper leading and color.{{/i}}</p>
|
||||||
</div><!-- /.span -->
|
</div><!-- /.span -->
|
||||||
</div><!-- /.row -->
|
</div><!-- /.row -->
|
||||||
|
|
||||||
@@ -877,9 +1104,7 @@
|
|||||||
<li>
|
<li>
|
||||||
<a href="#">{{_i}}Library{{/i}}</a> <span class="divider">/</span>
|
<a href="#">{{_i}}Library{{/i}}</a> <span class="divider">/</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="active">
|
<li class="active">{{_i}}Data{{/i}}</li>
|
||||||
<a href="#">{{_i}}Data{{/i}}</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
@@ -972,6 +1197,8 @@
|
|||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>{{_i}}About pager{{/i}}</h3>
|
<h3>{{_i}}About pager{{/i}}</h3>
|
||||||
<p>{{_i}}The pager component is a set of links for simple pagination implementations with light markup and even lighter styles. It's great for simple sites like blogs or magazines.{{/i}}</p>
|
<p>{{_i}}The pager component is a set of links for simple pagination implementations with light markup and even lighter styles. It's great for simple sites like blogs or magazines.{{/i}}</p>
|
||||||
|
<h4>{{_i}}Optional disabled state{{/i}}</h4>
|
||||||
|
<p>{{_i}}Pager links also use the general <code>.disabled</code> class from the pagination.{{/i}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>{{_i}}Default example{{/i}}</h3>
|
<h3>{{_i}}Default example{{/i}}</h3>
|
||||||
@@ -1068,12 +1295,116 @@
|
|||||||
<code><span class="label label-info">{{_i}}Info{{/i}}</span></code>
|
<code><span class="label label-info">{{_i}}Info{{/i}}</span></code>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<span class="label label-inverse">{{_i}}Inverse{{/i}}</span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<code><span class="label label-inverse">{{_i}}Inverse{{/i}}</span></code>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Badges
|
||||||
|
================================================== -->
|
||||||
|
<section id="badges">
|
||||||
|
<div class="page-header">
|
||||||
|
<h1>{{_i}}Badges{{/i}} <small>{{_i}}Indicators and unread counts{{/i}}</small></h1>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="span4">
|
||||||
|
<h3>About</h3>
|
||||||
|
<p>{{_i}}Badges are small, simple components for displaying an indicator or count of some sort. They're commonly found in email clients like Mail.app or on mobile apps for push notifications.{{/i}}</p>
|
||||||
|
</div><!-- /.span -->
|
||||||
|
<div class="span8">
|
||||||
|
<h3>Available classes</h3>
|
||||||
|
<table class="table table-bordered table-striped">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>{{_i}}Name{{/i}}</th>
|
||||||
|
<th>{{_i}}Example{{/i}}</th>
|
||||||
|
<th>{{_i}}Markup{{/i}}</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
{{_i}}Default{{/i}}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span class="badge">1</span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<code><span class="badge">1</span></code>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
{{_i}}Success{{/i}}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span class="badge badge-success">2</span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<code><span class="badge badge-success">2</span></code>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
{{_i}}Warning{{/i}}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span class="badge badge-warning">4</span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<code><span class="badge badge-warning">4</span></code>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
{{_i}}Error{{/i}}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span class="badge badge-error">6</span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<code><span class="badge badge-error">6</span></code>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
{{_i}}Info{{/i}}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span class="badge badge-info">8</span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<code><span class="badge badge-info">8</span></code>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
{{_i}}Inverse{{/i}}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span class="badge badge-inverse">10</span>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<code><span class="badge badge-inverse">10</span></code>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div><!-- /.span -->
|
||||||
|
</div><!-- /.row -->
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Typographic components
|
<!-- Typographic components
|
||||||
================================================== -->
|
================================================== -->
|
||||||
<section id="typography">
|
<section id="typography">
|
||||||
@@ -1112,8 +1443,11 @@
|
|||||||
<p>{{_i}}A simple shell for an <code>h1</code> to appropratiely space out and segment sections of content on a page. It can utilize the <code>h1</code>'s default <code>small</code>, element as well most other components (with additional styles).{{/i}}</p>
|
<p>{{_i}}A simple shell for an <code>h1</code> to appropratiely space out and segment sections of content on a page. It can utilize the <code>h1</code>'s default <code>small</code>, element as well most other components (with additional styles).{{/i}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="span8">
|
<div class="span8">
|
||||||
|
<div class="page-header">
|
||||||
|
<h1>{{_i}}Example page header{{/i}} <small>{{_i}}Subtext for header{{/i}}</small></h1>
|
||||||
|
</div>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<div class="page-haeder">
|
<div class="page-header">
|
||||||
<h1>{{_i}}Example page header{{/i}}</h1>
|
<h1>{{_i}}Example page header{{/i}}</h1>
|
||||||
</div>
|
</div>
|
||||||
</pre>
|
</pre>
|
||||||
@@ -1386,13 +1720,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>{{_i}}Striped{{/i}}</h3>
|
<h3>{{_i}}Striped{{/i}}</h3>
|
||||||
<p>{{_i}}Uses a gradient to create a striped effect.{{/i}}</p>
|
<p>{{_i}}Uses a gradient to create a striped effect (no IE).{{/i}}</p>
|
||||||
<div class="progress progress-info progress-striped">
|
<div class="progress progress-striped">
|
||||||
<div class="bar" style="width: 20%;"></div>
|
<div class="bar" style="width: 20%;"></div>
|
||||||
</div>
|
</div>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<div class="progress progress-info
|
<div class="progress progress-striped">
|
||||||
progress-striped">
|
|
||||||
<div class="bar"
|
<div class="bar"
|
||||||
style="width: 20%;"></div>
|
style="width: 20%;"></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1400,13 +1733,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>{{_i}}Animated{{/i}}</h3>
|
<h3>{{_i}}Animated{{/i}}</h3>
|
||||||
<p>{{_i}}Takes the striped example and animates it.{{/i}}</p>
|
<p>{{_i}}Takes the striped example and animates it (no IE).{{/i}}</p>
|
||||||
<div class="progress progress-danger progress-striped active">
|
<div class="progress progress-striped active">
|
||||||
<div class="bar" style="width: 45%"></div>
|
<div class="bar" style="width: 45%"></div>
|
||||||
</div>
|
</div>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<div class="progress progress-danger
|
<div class="progress progress-striped
|
||||||
progress-striped active">
|
active">
|
||||||
<div class="bar"
|
<div class="bar"
|
||||||
style="width: 40%;"></div>
|
style="width: 40%;"></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1416,25 +1749,47 @@
|
|||||||
|
|
||||||
<h2>{{_i}}Options and browser support{{/i}}</h2>
|
<h2>{{_i}}Options and browser support{{/i}}</h2>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span4">
|
<div class="span3">
|
||||||
<h3>{{_i}}Additional colors{{/i}}</h3>
|
<h3>{{_i}}Additional colors{{/i}}</h3>
|
||||||
<p>{{_i}}Progress bars utilize some of the same class names as buttons and alerts for similar styling.{{/i}}</p>
|
<p>{{_i}}Progress bars use some of the same button and alert classes for consistent styles.{{/i}}</p>
|
||||||
<ul>
|
<div class="progress progress-info" style="margin-bottom: 9px;">
|
||||||
<li><code>.progress-info</code></li>
|
<div class="bar" style="width: 20%"></div>
|
||||||
<li><code>.progress-success</code></li>
|
</div>
|
||||||
<li><code>.progress-danger</code></li>
|
<div class="progress progress-success" style="margin-bottom: 9px;">
|
||||||
</ul>
|
<div class="bar" style="width: 40%"></div>
|
||||||
<p>{{_i}}Alternatively, you can customize the LESS files and roll your own colors and sizes.{{/i}}</p>
|
</div>
|
||||||
|
<div class="progress progress-warning" style="margin-bottom: 9px;">
|
||||||
|
<div class="bar" style="width: 60%"></div>
|
||||||
|
</div>
|
||||||
|
<div class="progress progress-danger" style="margin-bottom: 9px;">
|
||||||
|
<div class="bar" style="width: 80%"></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span3">
|
||||||
|
<h3>{{_i}}Striped bars{{/i}}</h3>
|
||||||
|
<p>{{_i}}Similar to the solid colors, we have varied striped progress bars.{{/i}}</p>
|
||||||
|
<div class="progress progress-info progress-striped" style="margin-bottom: 9px;">
|
||||||
|
<div class="bar" style="width: 20%"></div>
|
||||||
|
</div>
|
||||||
|
<div class="progress progress-success progress-striped" style="margin-bottom: 9px;">
|
||||||
|
<div class="bar" style="width: 40%"></div>
|
||||||
|
</div>
|
||||||
|
<div class="progress progress-warning progress-striped" style="margin-bottom: 9px;">
|
||||||
|
<div class="bar" style="width: 60%"></div>
|
||||||
|
</div>
|
||||||
|
<div class="progress progress-danger progress-striped" style="margin-bottom: 9px;">
|
||||||
|
<div class="bar" style="width: 80%"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="span3">
|
||||||
<h3>{{_i}}Behavior{{/i}}</h3>
|
<h3>{{_i}}Behavior{{/i}}</h3>
|
||||||
<p>{{_i}}Progress bars use CSS3 transitions, so if you dynamically adjust the width via javascript, it will smoothly resize.{{/i}}</p>
|
<p>{{_i}}Progress bars use CSS3 transitions, so if you dynamically adjust the width via javascript, it will smoothly resize.{{/i}}</p>
|
||||||
<p>{{_i}}If you use the <code>.active</code> class, your <code>.progress-striped</code> progress bars will animate the stripes left to right.{{/i}}</p>
|
<p>{{_i}}If you use the <code>.active</code> class, your <code>.progress-striped</code> progress bars will animate the stripes left to right.{{/i}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span3">
|
||||||
<h3>{{_i}}Browser support{{/i}}</h3>
|
<h3>{{_i}}Browser support{{/i}}</h3>
|
||||||
<p>{{_i}}Progress bars use CSS3 gradients, transitions, and animations to achieve all their effects. These features are not supported in IE7-8 or older versions of Firefox.{{/i}}</p>
|
<p>{{_i}}Progress bars use CSS3 gradients, transitions, and animations to achieve all their effects. These features are not supported in IE7-9 or older versions of Firefox.{{/i}}</p>
|
||||||
<p>{{_i}}Opera does not support animations at this time.{{/i}}</p>
|
<p>{{_i}}Opera and IE do not support animations at this time.{{/i}}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1448,7 +1803,7 @@
|
|||||||
================================================== -->
|
================================================== -->
|
||||||
<section id="misc">
|
<section id="misc">
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h1>{{_i}}Miscellaneous{{/i}} <small>{{_i}}Wells, badges, and close icon{{/i}}</small></h1>
|
<h1>{{_i}}Miscellaneous{{/i}} <small>{{_i}}Lightweight utility components{{/i}}</small></h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
@@ -1462,11 +1817,6 @@
|
|||||||
...
|
...
|
||||||
</div>
|
</div>
|
||||||
</pre>
|
</pre>
|
||||||
</div><!--/span-->
|
|
||||||
<div class="span4" style="display: none;">
|
|
||||||
<h2>{{_i}}Badges{{/i}}</h2>
|
|
||||||
<p>{{_i}}Use a badge on an element for an unread count or as a simple indicator.{{/i}}</p>
|
|
||||||
<pre class="prettyprint linenums"><span class="badge">3</div></pre>
|
|
||||||
</div><!--/span-->
|
</div><!--/span-->
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h2>{{_i}}Close icon{{/i}}</h2>
|
<h2>{{_i}}Close icon{{/i}}</h2>
|
||||||
|
|||||||
@@ -32,6 +32,7 @@
|
|||||||
<label class="checkbox"><input checked="checked" type="checkbox" value="type.less"> {{_i}}Headings, body, etc{{/i}}</label>
|
<label class="checkbox"><input checked="checked" type="checkbox" value="type.less"> {{_i}}Headings, body, etc{{/i}}</label>
|
||||||
<label class="checkbox"><input checked="checked" type="checkbox" value="code.less"> {{_i}}Code and pre{{/i}}</label>
|
<label class="checkbox"><input checked="checked" type="checkbox" value="code.less"> {{_i}}Code and pre{{/i}}</label>
|
||||||
<label class="checkbox"><input checked="checked" type="checkbox" value="labels.less"> {{_i}}Labels{{/i}}</label>
|
<label class="checkbox"><input checked="checked" type="checkbox" value="labels.less"> {{_i}}Labels{{/i}}</label>
|
||||||
|
<label class="checkbox"><input checked="checked" type="checkbox" value="badges.less"> {{_i}}Badges{{/i}}</label>
|
||||||
<label class="checkbox"><input checked="checked" type="checkbox" value="tables.less"> {{_i}}Tables{{/i}}</label>
|
<label class="checkbox"><input checked="checked" type="checkbox" value="tables.less"> {{_i}}Tables{{/i}}</label>
|
||||||
<label class="checkbox"><input checked="checked" type="checkbox" value="forms.less"> {{_i}}Forms{{/i}}</label>
|
<label class="checkbox"><input checked="checked" type="checkbox" value="forms.less"> {{_i}}Forms{{/i}}</label>
|
||||||
<label class="checkbox"><input checked="checked" type="checkbox" value="buttons.less"> {{_i}}Buttons{{/i}}</label>
|
<label class="checkbox"><input checked="checked" type="checkbox" value="buttons.less"> {{_i}}Buttons{{/i}}</label>
|
||||||
@@ -134,7 +135,7 @@
|
|||||||
</div><!-- /span -->
|
</div><!-- /span -->
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h4 class="muted">{{_i}}Heads up!{{/i}}</h4>
|
<h4 class="muted">{{_i}}Heads up!{{/i}}</h4>
|
||||||
<p class="muted">{{_i}}All plugins require the latest version of <a href="http://jquery.com/" target="_blank">jQuery</a> to be included.{{/i}}</p>
|
<p class="muted">{{_i}}All checked plugins will be compiled into a single file, bootstrap.js. All plugins require the latest version of <a href="http://jquery.com/" target="_blank">jQuery</a> to be included.{{/i}}</p>
|
||||||
</div><!-- /span -->
|
</div><!-- /span -->
|
||||||
</div><!-- /row -->
|
</div><!-- /row -->
|
||||||
</section>
|
</section>
|
||||||
@@ -150,6 +151,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row download-builder">
|
<div class="row download-builder">
|
||||||
<div class="span3">
|
<div class="span3">
|
||||||
|
<h3>{{_i}}Scaffolding{{/i}}</h3>
|
||||||
|
<label>@bodyBackground</label>
|
||||||
|
<input type="text" class="span3" placeholder="@white">
|
||||||
|
<label>@textColor</label>
|
||||||
|
<input type="text" class="span3" placeholder="@grayDark">
|
||||||
|
|
||||||
<h3>{{_i}}Links{{/i}}</h3>
|
<h3>{{_i}}Links{{/i}}</h3>
|
||||||
<label>@linkColor</label>
|
<label>@linkColor</label>
|
||||||
<input type="text" class="span3" placeholder="#08c">
|
<input type="text" class="span3" placeholder="#08c">
|
||||||
@@ -170,6 +177,13 @@
|
|||||||
<input type="text" class="span3" placeholder="#c3325f">
|
<input type="text" class="span3" placeholder="#c3325f">
|
||||||
<label>@purple</label>
|
<label>@purple</label>
|
||||||
<input type="text" class="span3" placeholder="#7a43b6">
|
<input type="text" class="span3" placeholder="#7a43b6">
|
||||||
|
|
||||||
|
<h3>{{_i}}Sprites{{/i}}</h3>
|
||||||
|
<label>@iconSpritePath</label>
|
||||||
|
<input type="text" class="span3" placeholder="'../img/glyphicons-halflings.png'">
|
||||||
|
<label>@iconWhiteSpritePath</label>
|
||||||
|
<input type="text" class="span3" placeholder="'../img/glyphicons-halflings-white.png'">
|
||||||
|
|
||||||
</div><!-- /span -->
|
</div><!-- /span -->
|
||||||
<div class="span3">
|
<div class="span3">
|
||||||
<h3>{{_i}}Grid system{{/i}}</h3>
|
<h3>{{_i}}Grid system{{/i}}</h3>
|
||||||
@@ -184,6 +198,7 @@
|
|||||||
<input type="text" class="span3" placeholder="6.382978723%">
|
<input type="text" class="span3" placeholder="6.382978723%">
|
||||||
<label>@fluidGridGutterWidth</label>
|
<label>@fluidGridGutterWidth</label>
|
||||||
<input type="text" class="span3" placeholder="2.127659574%">
|
<input type="text" class="span3" placeholder="2.127659574%">
|
||||||
|
|
||||||
<h3>{{_i}}Typography{{/i}}</h3>
|
<h3>{{_i}}Typography{{/i}}</h3>
|
||||||
<label>@baseFontSize</label>
|
<label>@baseFontSize</label>
|
||||||
<input type="text" class="span3" placeholder="13px">
|
<input type="text" class="span3" placeholder="13px">
|
||||||
@@ -191,13 +206,32 @@
|
|||||||
<input type="text" class="span3" placeholder="'Helvetica Neue', Helvetica, Arial, sans-serif">
|
<input type="text" class="span3" placeholder="'Helvetica Neue', Helvetica, Arial, sans-serif">
|
||||||
<label>@baseLineHeight</label>
|
<label>@baseLineHeight</label>
|
||||||
<input type="text" class="span3" placeholder="18px">
|
<input type="text" class="span3" placeholder="18px">
|
||||||
|
<label>@altFontFamily</label>
|
||||||
|
<input type="text" class="span3" placeholder="Georgia, 'Times New Roman', Times, serif;">
|
||||||
|
<label>@headingsFontFamily</label>
|
||||||
|
<input type="text" class="span3" placeholder="inherit">
|
||||||
|
<label>@headingsFontWeight</label>
|
||||||
|
<input type="text" class="span3" placeholder="bold">
|
||||||
|
<label>@headingsColor</label>
|
||||||
|
<input type="text" class="span3" placeholder="inherit">
|
||||||
|
<label>@heroUnitBackground</label>
|
||||||
|
<input type="text" class="span3" placeholder="@grayLighter">
|
||||||
|
<label>@heroUnitHeadingColor</label>
|
||||||
|
<input type="text" class="span3" placeholder="inherit">
|
||||||
|
<label>@heroUnitLeadColor</label>
|
||||||
|
<input type="text" class="span3" placeholder="inherit">
|
||||||
</div><!-- /span -->
|
</div><!-- /span -->
|
||||||
<div class="span3">
|
<div class="span3">
|
||||||
<h3>{{_i}}Forms{{/i}}</h3>
|
<h3>{{_i}}Tables{{/i}}</h3>
|
||||||
<label>@primaryButtonColor</label>
|
<label>@tableBackground</label>
|
||||||
<input type="text" class="span3" placeholder="@blue">
|
<input type="text" class="span3" placeholder="transparent">
|
||||||
<label>@placeholderText</label>
|
<label>@tableBackgroundAccent</label>
|
||||||
<input type="text" class="span3" placeholder="@grayLight">
|
<input type="text" class="span3" placeholder="#f9f9f9">
|
||||||
|
<label>@tableBackgroundHover</label>
|
||||||
|
<input type="text" class="span3" placeholder="#f5f5f5">
|
||||||
|
<label>@tableBorder</label>
|
||||||
|
<input type="text" class="span3" placeholder="#ddd">
|
||||||
|
|
||||||
<h3>{{_i}}Navbar{{/i}}</h3>
|
<h3>{{_i}}Navbar{{/i}}</h3>
|
||||||
<label>@navbarHeight</label>
|
<label>@navbarHeight</label>
|
||||||
<input type="text" class="span3" placeholder="40px">
|
<input type="text" class="span3" placeholder="40px">
|
||||||
@@ -211,8 +245,49 @@
|
|||||||
<input type="text" class="span3" placeholder="@grayLight">
|
<input type="text" class="span3" placeholder="@grayLight">
|
||||||
<label>@navbarLinkColorHover</label>
|
<label>@navbarLinkColorHover</label>
|
||||||
<input type="text" class="span3" placeholder="@white">
|
<input type="text" class="span3" placeholder="@white">
|
||||||
|
<label>@navbarLinkColorActive</label>
|
||||||
|
<input type="text" class="span3" placeholder="@navbarLinkColorHover">
|
||||||
|
<label>@navbarLinkBackgroundHover</label>
|
||||||
|
<input type="text" class="span3" placeholder="transparent">
|
||||||
|
<label>@navbarLinkBackgroundActive</label>
|
||||||
|
<input type="text" class="span3" placeholder="@navbarBackground">
|
||||||
|
<label>@navbarSearchBackground</label>
|
||||||
|
<input type="text" class="span3" placeholder="lighten(@navbarBackground, 25%)">
|
||||||
|
<label>@navbarSearchBackgroundFocus</label>
|
||||||
|
<input type="text" class="span3" placeholder="@white">
|
||||||
|
<label>@navbarSearchBorder</label>
|
||||||
|
<input type="text" class="span3" placeholder="darken(@navbarSearchBackground, 30%)">
|
||||||
|
<label>@navbarSearchPlaceholderColor</label>
|
||||||
|
<input type="text" class="span3" placeholder="#ccc">
|
||||||
|
|
||||||
|
<h3>{{_i}}Dropdowns{{/i}}</h3>
|
||||||
|
<label>@dropdownBackground</label>
|
||||||
|
<input type="text" class="span3" placeholder="@white">
|
||||||
|
<label>@dropdownBorder</label>
|
||||||
|
<input type="text" class="span3" placeholder="rgba(0,0,0,.2)">
|
||||||
|
<label>@dropdownLinkColor</label>
|
||||||
|
<input type="text" class="span3" placeholder="@grayDark">
|
||||||
|
<label>@dropdownLinkColorHover</label>
|
||||||
|
<input type="text" class="span3" placeholder="@white">
|
||||||
|
<label>@dropdownLinkBackgroundHover</label>
|
||||||
|
<input type="text" class="span3" placeholder="@linkColor">
|
||||||
</div><!-- /span -->
|
</div><!-- /span -->
|
||||||
<div class="span3">
|
<div class="span3">
|
||||||
|
<h3>{{_i}}Forms{{/i}}</h3>
|
||||||
|
<label>@placeholderText</label>
|
||||||
|
<input type="text" class="span3" placeholder="@grayLight">
|
||||||
|
<label>@inputBackground</label>
|
||||||
|
<input type="text" class="span3" placeholder="@white">
|
||||||
|
<label>@inputBorder</label>
|
||||||
|
<input type="text" class="span3" placeholder="#ccc">
|
||||||
|
<label>@inputDisabledBackground</label>
|
||||||
|
<input type="text" class="span3" placeholder="@grayLighter">
|
||||||
|
|
||||||
|
<label>@btnPrimaryBackground</label>
|
||||||
|
<input type="text" class="span3" placeholder="@linkColor">
|
||||||
|
<label>@btnPrimaryBackgroundHighlight</label>
|
||||||
|
<input type="text" class="span3" placeholder="darken(@white, 10%);">
|
||||||
|
|
||||||
<h3>{{_i}}Form states & alerts{{/i}}</h3>
|
<h3>{{_i}}Form states & alerts{{/i}}</h3>
|
||||||
<label>@warningText</label>
|
<label>@warningText</label>
|
||||||
<input type="text" class="span3" placeholder="#c09853">
|
<input type="text" class="span3" placeholder="#c09853">
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
<img src="assets/img/examples/bootstrap-example-fluid.jpg" alt="">
|
<img src="assets/img/examples/bootstrap-example-fluid.jpg" alt="">
|
||||||
</a>
|
</a>
|
||||||
<h3>{{_i}}Fluid layout{{/i}}</h3>
|
<h3>{{_i}}Fluid layout{{/i}}</h3>
|
||||||
<p>{{_i}}Uses our new responsive, fluid grid system to create seamless liquid layout.{{/i}}</p>
|
<p>{{_i}}Uses our new responsive, fluid grid system to create a seamless liquid layout.{{/i}}</p>
|
||||||
</li>
|
</li>
|
||||||
<li class="span4">
|
<li class="span4">
|
||||||
<a class="thumbnail" href="examples/starter-template.html">
|
<a class="thumbnail" href="examples/starter-template.html">
|
||||||
|
|||||||
@@ -6,29 +6,32 @@
|
|||||||
<p>{{_i}}Simple and flexible HTML, CSS, and Javascript for popular user interface components and interactions.{{/i}}</p>
|
<p>{{_i}}Simple and flexible HTML, CSS, and Javascript for popular user interface components and interactions.{{/i}}</p>
|
||||||
<p class="download-info">
|
<p class="download-info">
|
||||||
<a href="https://github.com/twitter/bootstrap/" class="btn btn-primary btn-large">{{_i}}View project on GitHub{{/i}}</a>
|
<a href="https://github.com/twitter/bootstrap/" class="btn btn-primary btn-large">{{_i}}View project on GitHub{{/i}}</a>
|
||||||
<a href="assets/bootstrap.zip" class="btn btn-large">{{_i}}Download Bootstrap{{/i}}</a>
|
<a href="assets/bootstrap.zip" class="btn btn-large">{{_i}}Download Bootstrap <small>(v2.0.2)</small>{{/i}}</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="quick-links">
|
<div class="bs-links">
|
||||||
<li><a href="./upgrading.html">{{_i}}Upgrading from 1.4{{/i}}</a></li>
|
<ul class="quick-links">
|
||||||
<li><a href="https://github.com/twitter/bootstrap/issues?state=open">{{_i}}Issues{{/i}}</a></li>
|
<li><a href="./upgrading.html">{{_i}}Upgrading from 1.4{{/i}}</a></li>
|
||||||
<li><a href="https://github.com/twitter/bootstrap/wiki">{{_i}}Roadmap & changelog{{/i}}</a></li>
|
<li><a href="https://github.com/twitter/bootstrap/zipball/master">{{_i}}Download with docs{{/i}}</a></li>
|
||||||
<li class="divider">·</li>
|
<li><a href="https://github.com/twitter/bootstrap/issues?state=open">{{_i}}Submit issues{{/i}}</a></li>
|
||||||
<li>
|
<li><a href="https://github.com/twitter/bootstrap/wiki">{{_i}}Roadmap and changelog{{/i}}</a></li>
|
||||||
<iframe class="github-btn" src="http://markdotto.github.com/github-buttons/github-btn.html?user=twitter&repo=bootstrap&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="112px" height="20px"></iframe>
|
</ul>
|
||||||
</li>
|
<ul class="quick-links">
|
||||||
<li>
|
<li>
|
||||||
<iframe class="github-btn" src="http://markdotto.github.com/github-buttons/github-btn.html?user=twitter&repo=bootstrap&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="95px" height="20px"></iframe>
|
<iframe class="github-btn" src="http://markdotto.github.com/github-buttons/github-btn.html?user=twitter&repo=bootstrap&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="112px" height="20px"></iframe>
|
||||||
</li>
|
</li>
|
||||||
<li class="divider">·</li>
|
<li>
|
||||||
<li class="follow-btn">
|
<iframe class="github-btn" src="http://markdotto.github.com/github-buttons/github-btn.html?user=twitter&repo=bootstrap&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="98px" height="20px"></iframe>
|
||||||
<a href="https://twitter.com/twbootstrap" class="twitter-follow-button" data-width="225px" data-link-color="#0069D6" data-show-count="true">{{_i}}Follow @twbootstrap{{/i}}</a>
|
</li>
|
||||||
</li>
|
<li class="follow-btn">
|
||||||
<li class="tweet-btn">
|
<a href="https://twitter.com/twbootstrap" class="twitter-follow-button" data-link-color="#0069D6" data-show-count="true">{{_i}}Follow @twbootstrap{{/i}}</a>
|
||||||
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://twitter.github.com/bootstrap/" data-count="horizontal" data-via="twbootstrap" data-related="mdo:Creator of Twitter Bootstrap">Tweet</a>
|
</li>
|
||||||
</li>
|
<li class="tweet-btn">
|
||||||
</ul>
|
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://twitter.github.com/bootstrap/" data-count="horizontal" data-via="twbootstrap" data-related="mdo:Creator of Twitter Bootstrap">Tweet</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<hr class="soften">
|
<hr class="soften">
|
||||||
@@ -115,17 +118,22 @@
|
|||||||
<h1>{{_i}}Built with Bootstrap.{{/i}}</h1>
|
<h1>{{_i}}Built with Bootstrap.{{/i}}</h1>
|
||||||
<p class="marketing-byline">{{_i}}For even more sites built with Bootstrap, <a href="http://builtwithbootstrap.tumblr.com/" target="_blank">visit the unofficial Tumblr</a> or <a href="./examples.html">browse the examples</a>.{{/i}}</p>
|
<p class="marketing-byline">{{_i}}For even more sites built with Bootstrap, <a href="http://builtwithbootstrap.tumblr.com/" target="_blank">visit the unofficial Tumblr</a> or <a href="./examples.html">browse the examples</a>.{{/i}}</p>
|
||||||
<ul class="thumbnails example-sites">
|
<ul class="thumbnails example-sites">
|
||||||
<li class="span4">
|
<li class="span3">
|
||||||
|
<a class="thumbnail" href="http://soundready.fm/" target="_blank">
|
||||||
|
<img src="assets/img/example-sites/soundready.png" alt="SoundReady.fm">
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="span3">
|
||||||
<a class="thumbnail" href="http://kippt.com/" target="_blank">
|
<a class="thumbnail" href="http://kippt.com/" target="_blank">
|
||||||
<img src="assets/img/example-sites/kippt.png" alt="Kippt">
|
<img src="assets/img/example-sites/kippt.png" alt="Kippt">
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="span4">
|
<li class="span3">
|
||||||
<a class="thumbnail" href="http://www.fleetio.com/" target="_blank">
|
<a class="thumbnail" href="http://www.fleetio.com/" target="_blank">
|
||||||
<img src="assets/img/example-sites/fleetio.png" alt="Fleetio">
|
<img src="assets/img/example-sites/fleetio.png" alt="Fleetio">
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="span4">
|
<li class="span3">
|
||||||
<a class="thumbnail" href="http://www.jshint.com/" target="_blank">
|
<a class="thumbnail" href="http://www.jshint.com/" target="_blank">
|
||||||
<img src="assets/img/example-sites/jshint.png" alt="JS Hint">
|
<img src="assets/img/example-sites/jshint.png" alt="JS Hint">
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -138,8 +138,8 @@
|
|||||||
<p>{{_i}}One fine body…{{/i}}</p>
|
<p>{{_i}}One fine body…{{/i}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<a href="#" class="btn btn-primary">{{_i}}Save changes{{/i}}</a>
|
|
||||||
<a href="#" class="btn">{{_i}}Close{{/i}}</a>
|
<a href="#" class="btn">{{_i}}Close{{/i}}</a>
|
||||||
|
<a href="#" class="btn btn-primary">{{_i}}Save changes{{/i}}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div> <!-- /well -->
|
</div> <!-- /well -->
|
||||||
@@ -161,10 +161,21 @@
|
|||||||
|
|
||||||
<h4>{{_i}}Tooltips in a modal{{/i}}</h4>
|
<h4>{{_i}}Tooltips in a modal{{/i}}</h4>
|
||||||
<p>{{_i}}<a href="#" class="tooltip-test" title="Tooltip">This link</a> and <a href="#" class="tooltip-test" title="Tooltip">that link</a> should have tooltips on hover.{{/i}}</p>
|
<p>{{_i}}<a href="#" class="tooltip-test" title="Tooltip">This link</a> and <a href="#" class="tooltip-test" title="Tooltip">that link</a> should have tooltips on hover.{{/i}}</p>
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
<h4>{{_i}}Overflowing text to show optional scrollbar{{/i}}</h4>
|
||||||
|
<p>{{_i}}We set a fixed <code>max-height</code> on the <code>.modal-body</code>. Watch it overflow with all this extra lorem ipsum text we've included.{{/i}}</p>
|
||||||
|
<p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
|
||||||
|
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
|
||||||
|
<p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p>
|
||||||
|
<p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
|
||||||
|
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
|
||||||
|
<p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<a href="#" class="btn btn-primary">{{_i}}Save changes{{/i}}</a>
|
|
||||||
<a href="#" class="btn" data-dismiss="modal" >{{_i}}Close{{/i}}</a>
|
<a href="#" class="btn" data-dismiss="modal" >{{_i}}Close{{/i}}</a>
|
||||||
|
<a href="#" class="btn btn-primary">{{_i}}Save changes{{/i}}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a data-toggle="modal" href="#myModal" class="btn btn-primary btn-large">{{_i}}Launch demo modal{{/i}}</a>
|
<a data-toggle="modal" href="#myModal" class="btn btn-primary btn-large">{{_i}}Launch demo modal{{/i}}</a>
|
||||||
@@ -189,7 +200,7 @@
|
|||||||
<td>{{_i}}backdrop{{/i}}</td>
|
<td>{{_i}}backdrop{{/i}}</td>
|
||||||
<td>{{_i}}boolean{{/i}}</td>
|
<td>{{_i}}boolean{{/i}}</td>
|
||||||
<td>{{_i}}true{{/i}}</td>
|
<td>{{_i}}true{{/i}}</td>
|
||||||
<td>{{_i}}Includes a modal-backdrop element{{/i}}</td>
|
<td>{{_i}}Includes a modal-backdrop element. Alternatively, specify <code>static</code> for a backdrop which doesn't close the modal on click.{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{_i}}keyboard{{/i}}</td>
|
<td>{{_i}}keyboard{{/i}}</td>
|
||||||
@@ -222,8 +233,8 @@
|
|||||||
<p>{{_i}}One fine body…{{/i}}</p>
|
<p>{{_i}}One fine body…{{/i}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<a href="#" class="btn btn-primary">{{_i}}Save changes{{/i}}</a>
|
|
||||||
<a href="#" class="btn">{{_i}}Close{{/i}}</a>
|
<a href="#" class="btn">{{_i}}Close{{/i}}</a>
|
||||||
|
<a href="#" class="btn btn-primary">{{_i}}Save changes{{/i}}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</pre>
|
</pre>
|
||||||
@@ -388,7 +399,7 @@ $('#myModal').on('hidden', function () {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<ul class="nav pills">
|
<ul class="nav nav-pills">
|
||||||
<li class="active"><a href="#">Regular link</a></li>
|
<li class="active"><a href="#">Regular link</a></li>
|
||||||
<li class="dropdown" id="menu1">
|
<li class="dropdown" id="menu1">
|
||||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#menu1">
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#menu1">
|
||||||
@@ -704,13 +715,13 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
|
|||||||
<h4>$().tooltip({{_i}}options{{/i}})</h4>
|
<h4>$().tooltip({{_i}}options{{/i}})</h4>
|
||||||
<p>{{_i}}Attaches a tooltip handler to an element collection.{{/i}}</p>
|
<p>{{_i}}Attaches a tooltip handler to an element collection.{{/i}}</p>
|
||||||
<h4>.tooltip('show')</h4>
|
<h4>.tooltip('show')</h4>
|
||||||
<p>{{_i}}Reveals an elements tooltip.{{/i}}</p>
|
<p>{{_i}}Reveals an element's tooltip.{{/i}}</p>
|
||||||
<pre class="prettyprint linenums">$('#element').tooltip('show')</pre>
|
<pre class="prettyprint linenums">$('#element').tooltip('show')</pre>
|
||||||
<h4>.tooltip('hide')</h4>
|
<h4>.tooltip('hide')</h4>
|
||||||
<p>{{_i}}Hides an elements tooltip.{{/i}}</p>
|
<p>{{_i}}Hides an element's tooltip.{{/i}}</p>
|
||||||
<pre class="prettyprint linenums">$('#element').tooltip('hide')</pre>
|
<pre class="prettyprint linenums">$('#element').tooltip('hide')</pre>
|
||||||
<h4>.tooltip('toggle')</h4>
|
<h4>.tooltip('toggle')</h4>
|
||||||
<p>{{_i}}Toggles an elements tooltip.{{/i}}</p>
|
<p>{{_i}}Toggles an element's tooltip.{{/i}}</p>
|
||||||
<pre class="prettyprint linenums">$('#element').tooltip('toggle')</pre>
|
<pre class="prettyprint linenums">$('#element').tooltip('toggle')</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -975,7 +986,7 @@ $('#my-alert').bind('closed', function () {
|
|||||||
</pre>
|
</pre>
|
||||||
<h3>{{_i}}Methods{{/i}}</h3>
|
<h3>{{_i}}Methods{{/i}}</h3>
|
||||||
<h4>$().button('toggle')</h4>
|
<h4>$().button('toggle')</h4>
|
||||||
<p>{{_i}}Toggles push state. Gives btn the look that it hass been activated.{{/i}}</p>
|
<p>{{_i}}Toggles push state. Gives the button the appearance that it has been activated.{{/i}}</p>
|
||||||
<div class="alert alert-info">
|
<div class="alert alert-info">
|
||||||
<strong>{{_i}}Heads up!{{/i}}</strong>
|
<strong>{{_i}}Heads up!{{/i}}</strong>
|
||||||
{{_i}}You can enable auto toggling of a button by using the <code>data-toggle</code> attribute.{{/i}}
|
{{_i}}You can enable auto toggling of a button by using the <code>data-toggle</code> attribute.{{/i}}
|
||||||
@@ -1223,10 +1234,16 @@ $('#myCollapsible').on('hidden', function () {
|
|||||||
<td>5000</td>
|
<td>5000</td>
|
||||||
<td>{{_i}}The amount of time to delay between automatically cycling an item.{{/i}}</td>
|
<td>{{_i}}The amount of time to delay between automatically cycling an item.{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{{_i}}pause{{/i}}</td>
|
||||||
|
<td>{{_i}}string{{/i}}</td>
|
||||||
|
<td>"hover"</td>
|
||||||
|
<td>{{_i}}Pauses the cycling of the carousel on mouseenter and resumes the cycling of the carousel on mouseleave.{{/i}}</td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<h3>{{_i}}Markup{{/i}}</h3>
|
<h3>{{_i}}Markup{{/i}}</h3>
|
||||||
<p>{{_i}}Data attributes are integral to the carousel plugin. Check out the example code below for the various markup types.{{/i}}</p>
|
<p>{{_i}}Data attributes are used for the previous and next conrols. Check out the example markup below.{{/i}}</p>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<div id="myCarousel" class="carousel">
|
<div id="myCarousel" class="carousel">
|
||||||
<!-- {{_i}}Carousel items{{/i}} -->
|
<!-- {{_i}}Carousel items{{/i}} -->
|
||||||
@@ -1244,7 +1261,7 @@ $('#myCollapsible').on('hidden', function () {
|
|||||||
<h4>.carousel({{_i}}options{{/i}})</h4>
|
<h4>.carousel({{_i}}options{{/i}})</h4>
|
||||||
<p>{{_i}}Initializes the carousel with an optional options <code>object</code> and starts cycling through items.{{/i}}</p>
|
<p>{{_i}}Initializes the carousel with an optional options <code>object</code> and starts cycling through items.{{/i}}</p>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
$('.myCarousel').carousel({
|
$('.carousel').carousel({
|
||||||
interval: 2000
|
interval: 2000
|
||||||
})
|
})
|
||||||
</pre>
|
</pre>
|
||||||
@@ -1259,7 +1276,7 @@ $('.myCarousel').carousel({
|
|||||||
<h4>.carousel('next')</h4>
|
<h4>.carousel('next')</h4>
|
||||||
<p>{{_i}}Cycles to the next item.{{/i}}</p>
|
<p>{{_i}}Cycles to the next item.{{/i}}</p>
|
||||||
<h3>{{_i}}Events{{/i}}</h3>
|
<h3>{{_i}}Events{{/i}}</h3>
|
||||||
<p>{{_i}}Bootstrap's modal class exposes a few events for hooking into modal functionality.{{/i}}</p>
|
<p>{{_i}}Bootstrap's carousel class exposes two events for hooking into carousel functionality.{{/i}}</p>
|
||||||
<table class="table table-bordered table-striped">
|
<table class="table table-bordered table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -476,22 +476,17 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td><code>.container-fixed()</code></td>
|
<td><code>.container-fixed()</code></td>
|
||||||
<td><em class="muted">none</em></td>
|
<td><em class="muted">none</em></td>
|
||||||
<td>{{_i}}Provide a fixed-width (set with <code>@siteWidth</code>) container for holding your content{{/i}}</td>
|
<td>{{_i}}Create a horizontally centered container for holding your content{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>.columns()</code></td>
|
<td><code>#grid > .core()</code></td>
|
||||||
<td><code>@columns: 1</code></td>
|
<td><code>@gridColumnWidth, @gridGutterWidth</code></td>
|
||||||
<td>{{_i}}Build a grid column that spans any number of columns (defaults to 1 column){{/i}}</td>
|
<td>{{_i}}Generate a pixel grid system (container, row, and columns) with <em>n</em> columns and <em>x</em> pixel wide gutter{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>.offset()</code></td>
|
<td><code>#grid > .fluid()</code></td>
|
||||||
<td><code>@columns: 1</code></td>
|
<td><code>@fluidGridColumnWidth, @fluidGridGutterWidth</code></td>
|
||||||
<td>{{_i}}Offset a grid column with left margin that spans any number of columns{{/i}}</td>
|
<td>{{_i}}Generate a precent grid system with <em>n</em> columns and <em>x</em> % wide gutter{{/i}}</td>
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><code>.gridColumn()</code></td>
|
|
||||||
<td><em class="muted">none</em></td>
|
|
||||||
<td>{{_i}}Make an element float like a grid column{{/i}}</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -578,47 +573,47 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>.#translucent > .background()</code></td>
|
<td><code>#translucent > .background()</code></td>
|
||||||
<td><code>@color: @white, @alpha: 1</code></td>
|
<td><code>@color: @white, @alpha: 1</code></td>
|
||||||
<td>{{_i}}Give an element a translucent background color{{/i}}</td>
|
<td>{{_i}}Give an element a translucent background color{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>.#translucent > .border()</code></td>
|
<td><code>#translucent > .border()</code></td>
|
||||||
<td><code>@color: @white, @alpha: 1</code></td>
|
<td><code>@color: @white, @alpha: 1</code></td>
|
||||||
<td>{{_i}}Give an element a translucent border color{{/i}}</td>
|
<td>{{_i}}Give an element a translucent border color{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>.#gradient > .vertical()</code></td>
|
<td><code>#gradient > .vertical()</code></td>
|
||||||
<td><code>@startColor, @endColor</code></td>
|
<td><code>@startColor, @endColor</code></td>
|
||||||
<td>{{_i}}Create a cross-browser vertical background gradient{{/i}}</td>
|
<td>{{_i}}Create a cross-browser vertical background gradient{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>.#gradient > .horizontal()</code></td>
|
<td><code>#gradient > .horizontal()</code></td>
|
||||||
<td><code>@startColor, @endColor</code></td>
|
<td><code>@startColor, @endColor</code></td>
|
||||||
<td>{{_i}}Create a cross-browser horizontal background gradient{{/i}}</td>
|
<td>{{_i}}Create a cross-browser horizontal background gradient{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>.#gradient > .directional()</code></td>
|
<td><code>#gradient > .directional()</code></td>
|
||||||
<td><code>@startColor, @endColor, @deg</code></td>
|
<td><code>@startColor, @endColor, @deg</code></td>
|
||||||
<td>{{_i}}Create a cross-browser directional background gradient{{/i}}</td>
|
<td>{{_i}}Create a cross-browser directional background gradient{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>.#gradient > .vertical-three-colors()</code></td>
|
<td><code>#gradient > .vertical-three-colors()</code></td>
|
||||||
<td><code>@startColor, @midColor, @colorStop, @endColor</code></td>
|
<td><code>@startColor, @midColor, @colorStop, @endColor</code></td>
|
||||||
<td>{{_i}}Create a cross-browser three-color background gradient{{/i}}</td>
|
<td>{{_i}}Create a cross-browser three-color background gradient{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>.#gradient > .radial()</code></td>
|
<td><code>#gradient > .radial()</code></td>
|
||||||
<td><code>@innerColor, @outerColor</code></td>
|
<td><code>@innerColor, @outerColor</code></td>
|
||||||
<td>{{_i}}Create a cross-browser radial background gradient{{/i}}</td>
|
<td>{{_i}}Create a cross-browser radial background gradient{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>.#gradient > .striped()</code></td>
|
<td><code>#gradient > .striped()</code></td>
|
||||||
<td><code>@color, @angle</code></td>
|
<td><code>@color, @angle</code></td>
|
||||||
<td>{{_i}}Create a cross-browser striped background gradient{{/i}}</td>
|
<td>{{_i}}Create a cross-browser striped background gradient{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>.#gradientBar()</code></td>
|
<td><code>#gradientBar()</code></td>
|
||||||
<td><code>@primaryColor, @secondaryColor</code></td>
|
<td><code>@primaryColor, @secondaryColor</code></td>
|
||||||
<td>{{_i}}Used for buttons to assign a gradient and slightly darker border{{/i}}</td>
|
<td>{{_i}}Used for buttons to assign a gradient and slightly darker border{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -641,8 +636,8 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>{{_i}}Node with makefile{{/i}}</h3>
|
<h3>{{_i}}Node with makefile{{/i}}</h3>
|
||||||
<p>{{_i}}Install the LESS command line compiler globally with npm by running the following command:{{/i}}</p>
|
<p>{{_i}}Install the LESS command line compiler and uglify-js globally with npm by running the following command:{{/i}}</p>
|
||||||
<pre>$ npm install -g less</pre>
|
<pre>$ npm install -g less uglify-js</pre>
|
||||||
<p>{{_i}}Once installed just run <code>make</code> from the root of your bootstrap directory and you're all set.{{/i}}</p>
|
<p>{{_i}}Once installed just run <code>make</code> from the root of your bootstrap directory and you're all set.{{/i}}</p>
|
||||||
<p>{{_i}}Additionally, if you have <a href="https://github.com/mynyml/watchr">watchr</a> installed, you may run <code>make watch</code> to have bootstrap automatically rebuilt every time you edit a file in the bootstrap lib (this isn't required, just a convenience method).{{/i}}</p>
|
<p>{{_i}}Additionally, if you have <a href="https://github.com/mynyml/watchr">watchr</a> installed, you may run <code>make watch</code> to have bootstrap automatically rebuilt every time you edit a file in the bootstrap lib (this isn't required, just a convenience method).{{/i}}</p>
|
||||||
</div><!-- /span4 -->
|
</div><!-- /span4 -->
|
||||||
|
|||||||
@@ -5,8 +5,9 @@
|
|||||||
<p class="lead">{{_i}}Bootstrap is built on a responsive 12-column grid. We've also included fixed- and fluid-width layouts based on that system.{{/i}}</p>
|
<p class="lead">{{_i}}Bootstrap is built on a responsive 12-column grid. We've also included fixed- and fluid-width layouts based on that system.{{/i}}</p>
|
||||||
<div class="subnav">
|
<div class="subnav">
|
||||||
<ul class="nav nav-pills">
|
<ul class="nav nav-pills">
|
||||||
|
<li><a href="#global">{{_i}}Global styles{{/i}}</a></li>
|
||||||
<li><a href="#gridSystem">{{_i}}Grid system{{/i}}</a></li>
|
<li><a href="#gridSystem">{{_i}}Grid system{{/i}}</a></li>
|
||||||
<li><a href="#fluidGridSystem">{{_i}}Fluid gird system{{/i}}</a></li>
|
<li><a href="#fluidGridSystem">{{_i}}Fluid grid system{{/i}}</a></li>
|
||||||
<li><a href="#gridCustomization">{{_i}}Customizing{{/i}}</a></li>
|
<li><a href="#gridCustomization">{{_i}}Customizing{{/i}}</a></li>
|
||||||
<li><a href="#layouts">{{_i}}Layouts{{/i}}</a></li>
|
<li><a href="#layouts">{{_i}}Layouts{{/i}}</a></li>
|
||||||
<li><a href="#responsive">{{_i}}Responsive design{{/i}}</a></li>
|
<li><a href="#responsive">{{_i}}Responsive design{{/i}}</a></li>
|
||||||
@@ -16,6 +17,45 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Global Bootstrap settings
|
||||||
|
================================================== -->
|
||||||
|
<section id="global">
|
||||||
|
<div class="page-header">
|
||||||
|
<h1>{{_i}}Global styles <small>for CSS reset, typography, and links</small>{{/i}}</h1>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="span4">
|
||||||
|
<h2>{{_i}}Requires HTML5 doctype{{/i}}</h2>
|
||||||
|
<p>{{_i}}Bootstrap makes use of HTML elements and CSS properties that require the use of the HTML5 doctype. Be sure to include it at the beginning of every Bootstrapped page in your project.{{/i}}</p>
|
||||||
|
<pre class="prettyprint linenums">
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
...
|
||||||
|
</html>
|
||||||
|
</pre>
|
||||||
|
</div><!-- /.span -->
|
||||||
|
<div class="span4">
|
||||||
|
<h2>{{_i}}Typography and links{{/i}}</h2>
|
||||||
|
<p>{{_i}}Within the <strong>scaffolding.less</strong> file, we set basic global display, typography, and link styles. Specifically, we:{{/i}}</p>
|
||||||
|
<ul>
|
||||||
|
<li>{{_i}}Remove margin on the body{{/i}}</li>
|
||||||
|
<li>{{_i}}Set <code>background-color: white;</code> on the <code>body</code>{{/i}}</li>
|
||||||
|
<li>{{_i}}Use the <code>@baseFontFamily</code>, <code>@baseFontSize</code>, and <code>@baseLineHeight</code> attributes as our typographyic base{{/i}}</li>
|
||||||
|
<li>{{_i}}Set the global link color via <code>@linkColor</code> and apply link underlines only on <code>:hover</code>{{/i}}</li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /.span -->
|
||||||
|
<div class="span4">
|
||||||
|
<h2>{{_i}}Reset via Normalize{{/i}}</h2>
|
||||||
|
<p>{{_i}}As of Bootstrap 2, the traditional CSS reset has evolved to make use of elements from <a href="http://necolas.github.com/normalize.css/" target="_blank">Normalize.css</a>, a project by <a href="http://twitter.com/necolas" target="_blank">Nicolas Gallagher</a> that also powers the <a href="http://html5boilerplate.com" target="_blank">HTML5 Boilerplate</a>.{{/i}}</p>
|
||||||
|
<p>{{_i}}The new reset can still be found in <strong>reset.less</strong>, but with many elements removed for brevity and accuracy.{{/i}}</p>
|
||||||
|
</div><!-- /.span -->
|
||||||
|
</div><!-- /.row -->
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Grid system
|
<!-- Grid system
|
||||||
================================================== -->
|
================================================== -->
|
||||||
<section id="gridSystem">
|
<section id="gridSystem">
|
||||||
@@ -57,7 +97,7 @@
|
|||||||
<div class="span4">
|
<div class="span4">
|
||||||
<p>{{_i}}The default grid system provided as part of Bootstrap is a <strong>940px-wide, 12-column grid</strong>.{{/i}}</p>
|
<p>{{_i}}The default grid system provided as part of Bootstrap is a <strong>940px-wide, 12-column grid</strong>.{{/i}}</p>
|
||||||
<p>{{_i}}It also has four responsive variations for various devices and resolutions: phone, tablet portrait, table landscape and small desktops, and large widescreen desktops.{{/i}}</p>
|
<p>{{_i}}It also has four responsive variations for various devices and resolutions: phone, tablet portrait, table landscape and small desktops, and large widescreen desktops.{{/i}}</p>
|
||||||
</div>
|
</div><!-- /.span -->
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -65,11 +105,11 @@
|
|||||||
<div class="span8">...</div>
|
<div class="span8">...</div>
|
||||||
</div>
|
</div>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div><!-- /.span -->
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<p>{{_i}}As shown here, a basic layout can be created with two "columns," each spanning a number of the 12 foundational columns we defined as part of our grid system.{{/i}}</p>
|
<p>{{_i}}As shown here, a basic layout can be created with two "columns," each spanning a number of the 12 foundational columns we defined as part of our grid system.{{/i}}</p>
|
||||||
</div>
|
</div><!-- /.span -->
|
||||||
</div><!-- /row -->
|
</div><!-- /.row -->
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
@@ -113,7 +153,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- /span6 -->
|
</div><!-- /.span -->
|
||||||
<div class="span6">
|
<div class="span6">
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -126,8 +166,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div><!-- /.span -->
|
||||||
</div>
|
</div><!-- /.row -->
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
@@ -175,11 +215,11 @@
|
|||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>{{_i}}Percents, not pixels{{/i}}</h3>
|
<h3>{{_i}}Percents, not pixels{{/i}}</h3>
|
||||||
<p>{{_i}}The fluid grid system uses percents for column widths instead of fixed pixels. It also has the same responsive variations as our fixed grid system, ensuring proper proportions for key screen resolutions and devices.{{/i}}</p>
|
<p>{{_i}}The fluid grid system uses percents for column widths instead of fixed pixels. It also has the same responsive variations as our fixed grid system, ensuring proper proportions for key screen resolutions and devices.{{/i}}</p>
|
||||||
</div>
|
</div><!-- /.span -->
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>{{_i}}Fluid rows{{/i}}</h3>
|
<h3>{{_i}}Fluid rows{{/i}}</h3>
|
||||||
<p>{{_i}}Make any row fluid simply by changing <code>.row</code> to <code>.row-fluid</code>. The columns stay the exact same, making it super straightforward to flip between fixed and fluid layouts.{{/i}}</p>
|
<p>{{_i}}Make any row fluid simply by changing <code>.row</code> to <code>.row-fluid</code>. The columns stay the exact same, making it super straightforward to flip between fixed and fluid layouts.{{/i}}</p>
|
||||||
</div>
|
</div><!-- /.span -->
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>{{_i}}Markup{{/i}}</h3>
|
<h3>{{_i}}Markup{{/i}}</h3>
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
@@ -188,8 +228,8 @@
|
|||||||
<div class="span8">...</div>
|
<div class="span8">...</div>
|
||||||
</div>
|
</div>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div><!-- /.span -->
|
||||||
</div><!-- /row -->
|
</div><!-- /.row -->
|
||||||
|
|
||||||
<h2>{{_i}}Fluid nesting{{/i}}</h2>
|
<h2>{{_i}}Fluid nesting{{/i}}</h2>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -208,7 +248,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div><!-- /.span -->
|
||||||
<div class="span6">
|
<div class="span6">
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
@@ -221,8 +261,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div><!-- /.span -->
|
||||||
</div>
|
</div><!-- /.row -->
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -269,16 +309,16 @@
|
|||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>{{_i}}Variables in LESS{{/i}}</h3>
|
<h3>{{_i}}Variables in LESS{{/i}}</h3>
|
||||||
<p>{{_i}}Built into Bootstrap are a handful of variables for customizing the default 940px grid system, documented above. All variables for the grid are stored in variables.less.{{/i}}</p>
|
<p>{{_i}}Built into Bootstrap are a handful of variables for customizing the default 940px grid system, documented above. All variables for the grid are stored in variables.less.{{/i}}</p>
|
||||||
</div>
|
</div><!-- /.span -->
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>{{_i}}How to customize{{/i}}</h3>
|
<h3>{{_i}}How to customize{{/i}}</h3>
|
||||||
<p>{{_i}}Modifying the grid means changing the three <code>@grid*</code> variables and recompiling Bootstrap. Change the grid variables in variables.less and use one of the <a href="less.html#compiling">four ways documented to recompile</a>. If you're adding more columns, be sure to add the CSS for those in grid.less.{{/i}}</p>
|
<p>{{_i}}Modifying the grid means changing the three <code>@grid*</code> variables and recompiling Bootstrap. Change the grid variables in variables.less and use one of the <a href="less.html#compiling">four ways documented to recompile</a>. If you're adding more columns, be sure to add the CSS for those in grid.less.{{/i}}</p>
|
||||||
</div>
|
</div><!-- /.span -->
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3>{{_i}}Staying responsive{{/i}}</h3>
|
<h3>{{_i}}Staying responsive{{/i}}</h3>
|
||||||
<p>{{_i}}Customization of the grid only works at the default level, the 940px grid. To maintain the responsive aspects of Bootstrap, you'll also have to customize the grids in responsive.less.{{/i}}</p>
|
<p>{{_i}}Customization of the grid only works at the default level, the 940px grid. To maintain the responsive aspects of Bootstrap, you'll also have to customize the grids in responsive.less.{{/i}}</p>
|
||||||
</div>
|
</div><!-- /.span -->
|
||||||
</div><!-- /row -->
|
</div><!-- /.row -->
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -305,7 +345,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</pre>
|
</pre>
|
||||||
</div><!-- /col -->
|
</div><!-- /.span -->
|
||||||
<div class="span6">
|
<div class="span6">
|
||||||
<h2>{{_i}}Fluid layout{{/i}}</h2>
|
<h2>{{_i}}Fluid layout{{/i}}</h2>
|
||||||
<p>{{_i}}<code><div class="container-fluid"></code> gives flexible page structure, min- and max-widths, and a left-hand sidebar. It's great for apps and docs.{{/i}}</p>
|
<p>{{_i}}<code><div class="container-fluid"></code> gives flexible page structure, min- and max-widths, and a left-hand sidebar. It's great for apps and docs.{{/i}}</p>
|
||||||
@@ -325,8 +365,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</pre>
|
</pre>
|
||||||
</div><!-- /col -->
|
</div><!-- /.span -->
|
||||||
</div><!-- /row -->
|
</div><!-- /.row -->
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
@@ -341,8 +381,16 @@
|
|||||||
<!-- Supported devices -->
|
<!-- Supported devices -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<img src="assets/img/responsive-illustrations.png" alt="Responsive devices">
|
<p><img src="assets/img/responsive-illustrations.png" alt="Responsive devices"></p>
|
||||||
</div>
|
<h3>{{_i}}What they do{{/i}}</h3>
|
||||||
|
<p>{{_i}}Media queries allow for custom CSS based on a number of conditions—ratios, widths, display type, etc—but usually focuses around <code>min-width</code> and <code>max-width</code>.{{/i}}</p>
|
||||||
|
<ul>
|
||||||
|
<li>{{_i}}Modify the width of column in our grid{{/i}}</li>
|
||||||
|
<li>{{_i}}Stack elements instead of float wherever necessary{{/i}}</li>
|
||||||
|
<li>{{_i}}Resize headings and text to be more appropriate for devices{{/i}}</li>
|
||||||
|
</ul>
|
||||||
|
<p>{{_i}}Use media queries responsibly and only as a start to your mobile audiences. For larger projects, do consider dedicated code bases and not layers of media queries.{{/i}}</p>
|
||||||
|
</div><!-- /.span -->
|
||||||
<div class="span8">
|
<div class="span8">
|
||||||
<h2>{{_i}}Supported devices{{/i}}</h2>
|
<h2>{{_i}}Supported devices{{/i}}</h2>
|
||||||
<p>{{_i}}Bootstrap supports a handful of media queries in a single file to help make your projects more appropriate on different devices and screen resolutions. Here's what's included:{{/i}}</p>
|
<p>{{_i}}Bootstrap supports a handful of media queries in a single file to help make your projects more appropriate on different devices and screen resolutions. Here's what's included:{{/i}}</p>
|
||||||
@@ -362,13 +410,13 @@
|
|||||||
<td class="muted" colspan="2">{{_i}}Fluid columns, no fixed widths{{/i}}</td>
|
<td class="muted" colspan="2">{{_i}}Fluid columns, no fixed widths{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{_i}}Portrait tablets{{/i}}</td>
|
<td>{{_i}}Smartphones to tablets{{/i}}</td>
|
||||||
<td>480px to 768px</td>
|
<td>767px and below</td>
|
||||||
<td class="muted" colspan="2">{{_i}}Fluid columns, no fixed widths{{/i}}</td>
|
<td class="muted" colspan="2">{{_i}}Fluid columns, no fixed widths{{/i}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{_i}}Landscape tablets{{/i}}</td>
|
<td>{{_i}}Portrait tablets{{/i}}</td>
|
||||||
<td>768px to 979px</td>
|
<td>768px and above</td>
|
||||||
<td>42px</td>
|
<td>42px</td>
|
||||||
<td>20px</td>
|
<td>20px</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -380,7 +428,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{_i}}Large display{{/i}}</td>
|
<td>{{_i}}Large display{{/i}}</td>
|
||||||
<td>1210px and up</td>
|
<td>1200px and up</td>
|
||||||
<td>70px</td>
|
<td>70px</td>
|
||||||
<td>30px</td>
|
<td>30px</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -390,23 +438,15 @@
|
|||||||
<h3>{{_i}}Requires meta tag{{/i}}</h3>
|
<h3>{{_i}}Requires meta tag{{/i}}</h3>
|
||||||
<p>{{_i}}To ensure devices display responsive pages properly, include the viewport meta tag.{{/i}}</p>
|
<p>{{_i}}To ensure devices display responsive pages properly, include the viewport meta tag.{{/i}}</p>
|
||||||
<pre class="prettyprint linenums"><meta name="viewport" content="width=device-width, initial-scale=1.0"></pre>
|
<pre class="prettyprint linenums"><meta name="viewport" content="width=device-width, initial-scale=1.0"></pre>
|
||||||
|
</div><!-- /.span -->
|
||||||
<h3>{{_i}}What they do{{/i}}</h3>
|
</div><!-- /.row -->
|
||||||
<p>{{_i}}Media queries allow for custom CSS based on a number of conditions—ratios, widths, display type, etc—but usually focuses around <code>min-width</code> and <code>max-width</code>.{{/i}}</p>
|
|
||||||
<ul>
|
|
||||||
<li>{{_i}}Modify the width of column in our grid{{/i}}</li>
|
|
||||||
<li>{{_i}}Stack elements instead of float wherever necessary{{/i}}</li>
|
|
||||||
<li>{{_i}}Resize headings and text to be more appropriate for devices{{/i}}</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<!-- Media query code -->
|
<!-- Media query code -->
|
||||||
<h2>{{_i}}Using the media queries{{/i}}</h2>
|
<h2>{{_i}}Using the media queries{{/i}}</h2>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span5">
|
<div class="span4">
|
||||||
<p>{{_i}}Bootstrap doesn't automatically include these media queries, but understanding and adding them is very easy and requires minimal setup. You have a few options for including the responsive features of Bootstrap:{{/i}}</p>
|
<p>{{_i}}Bootstrap doesn't automatically include these media queries, but understanding and adding them is very easy and requires minimal setup. You have a few options for including the responsive features of Bootstrap:{{/i}}</p>
|
||||||
<ol>
|
<ol>
|
||||||
<li>{{_i}}Use the compiled responsive version, bootstrap-responsive.css{{/i}}</li>
|
<li>{{_i}}Use the compiled responsive version, bootstrap-responsive.css{{/i}}</li>
|
||||||
@@ -414,8 +454,8 @@
|
|||||||
<li>{{_i}}Modify and recompile responsive.less as a separate file{{/i}}</li>
|
<li>{{_i}}Modify and recompile responsive.less as a separate file{{/i}}</li>
|
||||||
</ol>
|
</ol>
|
||||||
<p>{{_i}}<strong>Why not just include it?</strong> Truth be told, not everything needs to be responsive. Instead of encouraging developers to remove this feature, we figure it best to enable it.{{/i}}</p>
|
<p>{{_i}}<strong>Why not just include it?</strong> Truth be told, not everything needs to be responsive. Instead of encouraging developers to remove this feature, we figure it best to enable it.{{/i}}</p>
|
||||||
</div>
|
</div><!-- /.span -->
|
||||||
<div class="span7">
|
<div class="span8">
|
||||||
<pre class="prettyprint linenums">
|
<pre class="prettyprint linenums">
|
||||||
// {{_i}}Landscape phones and down{{/i}}
|
// {{_i}}Landscape phones and down{{/i}}
|
||||||
@media (max-width: 480px) { ... }
|
@media (max-width: 480px) { ... }
|
||||||
@@ -429,6 +469,91 @@
|
|||||||
// {{_i}}Large desktop{{/i}}
|
// {{_i}}Large desktop{{/i}}
|
||||||
@media (min-width: 1200px) { .. }
|
@media (min-width: 1200px) { .. }
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div><!-- /.span -->
|
||||||
</div>
|
</div><!-- /.row -->
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<!-- Responsive utility classes -->
|
||||||
|
<h2>{{_i}}Responsive utility classes{{/i}}</h2>
|
||||||
|
<div class="row">
|
||||||
|
<div class="span4">
|
||||||
|
<h3>{{_i}}What are they{{/i}}</h2>
|
||||||
|
<p>{{_i}}For faster mobile-friendly development, use these basic utility classes for showing and hidding content by device.{{/i}}</p>
|
||||||
|
<h3>{{_i}}When to use{{/i}}</h2>
|
||||||
|
<p>{{_i}}Use on a limited basis and avoid creating entirely different versions of the same site. Instead, use them to complement each device's presentation.{{/i}}</p>
|
||||||
|
<p>{{_i}}For example, you might show a <code><select></code> element for nav on mobile layouts, but not on tablets or desktops.{{/i}}</p>
|
||||||
|
</div><!-- /.span -->
|
||||||
|
<div class="span8">
|
||||||
|
<h3>{{_i}}Support classes{{/i}}</h3>
|
||||||
|
<p>{{_i}}Shown here is a table of the classes we support and their effect on a given media query layout (labeled by device). They can be found in <code>responsive.less</code>.{{/i}}</p>
|
||||||
|
<table class="table table-bordered table-striped responsive-utilities">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>{{_i}}Class{{/i}}</th>
|
||||||
|
<th>{{_i}}Phones <small>480px and below</small>{{/i}}</th>
|
||||||
|
<th>{{_i}}Tablets <small>767px and below</small>{{/i}}</th>
|
||||||
|
<th>{{_i}}Desktops <small>768px and above</small>{{/i}}</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th><code>.visible-phone</code></th>
|
||||||
|
<td class="is-visible">{{_i}}Visible{{/i}}</td>
|
||||||
|
<td class="is-hidden">{{_i}}Hidden{{/i}}</td>
|
||||||
|
<td class="is-hidden">{{_i}}Hidden{{/i}}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><code>.visible-tablet</code></th>
|
||||||
|
<td class="is-hidden">{{_i}}Hidden{{/i}}</td>
|
||||||
|
<td class="is-visible">{{_i}}Visible{{/i}}</td>
|
||||||
|
<td class="is-hidden">{{_i}}Hidden{{/i}}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><code>.visible-desktop</code></th>
|
||||||
|
<td class="is-hidden">{{_i}}Hidden{{/i}}</td>
|
||||||
|
<td class="is-hidden">{{_i}}Hidden{{/i}}</td>
|
||||||
|
<td class="is-visible">{{_i}}Visible{{/i}}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><code>.hidden-phone</code></th>
|
||||||
|
<td class="is-hidden">{{_i}}Hidden{{/i}}</td>
|
||||||
|
<td class="is-visible">{{_i}}Visible{{/i}}</td>
|
||||||
|
<td class="is-visible">{{_i}}Visible{{/i}}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><code>.hidden-tablet</code></th>
|
||||||
|
<td class="is-visible">{{_i}}Visible{{/i}}</td>
|
||||||
|
<td class="is-hidden">{{_i}}Hidden{{/i}}</td>
|
||||||
|
<td class="is-visible">{{_i}}Visible{{/i}}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><code>.hidden-desktop</code></th>
|
||||||
|
<td class="is-visible">{{_i}}Visible{{/i}}</td>
|
||||||
|
<td class="is-visible">{{_i}}Visible{{/i}}</td>
|
||||||
|
<td class="is-hidden">{{_i}}Hidden{{/i}}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<h3>{{_i}}Test case{{/i}}</h3>
|
||||||
|
<p>{{_i}}Resize your browser or load on different devices to test the above clases.{{/i}}</p>
|
||||||
|
<h4>{{_i}}Visible on...{{/i}}</h4>
|
||||||
|
<ul class="responsive-utilities-test">
|
||||||
|
<li>Phone<span class="visible-phone">✔ Phone</span></li>
|
||||||
|
<li>Tablet<span class="visible-tablet">✔ Tablet</span></li>
|
||||||
|
<li>Desktop<span class="visible-desktop">✔ Desktop</span></li>
|
||||||
|
</ul>
|
||||||
|
<h4>{{_i}}Hidden on...{{/i}}</h4>
|
||||||
|
<ul class="responsive-utilities-test hidden-on">
|
||||||
|
<li>Phone<span class="hidden-phone">✔ Phone</span></li>
|
||||||
|
<li>Tablet<span class="hidden-tablet">✔ Tablet</span></li>
|
||||||
|
<li>Desktop<span class="hidden-desktop">✔ Desktop</span></li>
|
||||||
|
</ul>
|
||||||
|
</div><!-- /.span -->
|
||||||
|
</div><!-- /.row -->
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="span4">
|
||||||
|
</div><!-- /.span -->
|
||||||
|
</div><!-- /.row -->
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>Bootstrap, from Twitter</title>
|
<title>Upgrading · Twitter Bootstrap</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta name="description" content="">
|
<meta name="description" content="">
|
||||||
<meta name="author" content="">
|
<meta name="author" content="">
|
||||||
@@ -20,9 +20,9 @@
|
|||||||
|
|
||||||
<!-- Le fav and touch icons -->
|
<!-- Le fav and touch icons -->
|
||||||
<link rel="shortcut icon" href="assets/ico/favicon.ico">
|
<link rel="shortcut icon" href="assets/ico/favicon.ico">
|
||||||
<link rel="apple-touch-icon" href="assets/ico/apple-touch-icon.png">
|
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png">
|
||||||
<link rel="apple-touch-icon" sizes="72x72" href="assets/ico/apple-touch-icon-72x72.png">
|
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png">
|
||||||
<link rel="apple-touch-icon" sizes="114x114" href="assets/ico/apple-touch-icon-114x114.png">
|
<link rel="apple-touch-icon-precomposed" href="assets/ico/apple-touch-icon-57-precomposed.png">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body data-spy="scroll" data-target=".subnav" data-offset="50">
|
<body data-spy="scroll" data-target=".subnav" data-offset="50">
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ All public APIs should be single, chainable methods, and return the collection a
|
|||||||
All methods should accept an optional options object, a string which targets a particular method, or null which initiates the default behavior:
|
All methods should accept an optional options object, a string which targets a particular method, or null which initiates the default behavior:
|
||||||
|
|
||||||
$("#myModal").modal() // initialized with defaults
|
$("#myModal").modal() // initialized with defaults
|
||||||
$("#myModal").modal({ keyboard: false }) // initialized with now keyboard
|
$("#myModal").modal({ keyboard: false }) // initialized with no keyboard
|
||||||
$("#myModal").modal('show') // initializes and invokes show immediately afterqwe2
|
$("#myModal").modal('show') // initializes and invokes show immediately afterqwe2
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* ==========================================================
|
/* ==========================================================
|
||||||
* bootstrap-alert.js v2.0.1
|
* bootstrap-alert.js v2.0.2
|
||||||
* http://twitter.github.com/bootstrap/javascript.html#alerts
|
* http://twitter.github.com/bootstrap/javascript.html#alerts
|
||||||
* ==========================================================
|
* ==========================================================
|
||||||
* Copyright 2012 Twitter, Inc.
|
* Copyright 2012 Twitter, Inc.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* ============================================================
|
/* ============================================================
|
||||||
* bootstrap-button.js v2.0.1
|
* bootstrap-button.js v2.0.2
|
||||||
* http://twitter.github.com/bootstrap/javascript.html#buttons
|
* http://twitter.github.com/bootstrap/javascript.html#buttons
|
||||||
* ============================================================
|
* ============================================================
|
||||||
* Copyright 2012 Twitter, Inc.
|
* Copyright 2012 Twitter, Inc.
|
||||||
@@ -91,7 +91,9 @@
|
|||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
$('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) {
|
$('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) {
|
||||||
$(e.currentTarget).button('toggle')
|
var $btn = $(e.target)
|
||||||
|
if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
|
||||||
|
$btn.button('toggle')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* ==========================================================
|
/* ==========================================================
|
||||||
* bootstrap-carousel.js v2.0.1
|
* bootstrap-carousel.js v2.0.2
|
||||||
* http://twitter.github.com/bootstrap/javascript.html#carousel
|
* http://twitter.github.com/bootstrap/javascript.html#carousel
|
||||||
* ==========================================================
|
* ==========================================================
|
||||||
* Copyright 2012 Twitter, Inc.
|
* Copyright 2012 Twitter, Inc.
|
||||||
@@ -29,6 +29,9 @@
|
|||||||
this.$element = $(element)
|
this.$element = $(element)
|
||||||
this.options = $.extend({}, $.fn.carousel.defaults, options)
|
this.options = $.extend({}, $.fn.carousel.defaults, options)
|
||||||
this.options.slide && this.slide(this.options.slide)
|
this.options.slide && this.slide(this.options.slide)
|
||||||
|
this.options.pause == 'hover' && this.$element
|
||||||
|
.on('mouseenter', $.proxy(this.pause, this))
|
||||||
|
.on('mouseleave', $.proxy(this.cycle, this))
|
||||||
}
|
}
|
||||||
|
|
||||||
Carousel.prototype = {
|
Carousel.prototype = {
|
||||||
@@ -83,14 +86,14 @@
|
|||||||
, fallback = type == 'next' ? 'first' : 'last'
|
, fallback = type == 'next' ? 'first' : 'last'
|
||||||
, that = this
|
, that = this
|
||||||
|
|
||||||
if (!$next.length) return
|
|
||||||
|
|
||||||
this.sliding = true
|
this.sliding = true
|
||||||
|
|
||||||
isCycling && this.pause()
|
isCycling && this.pause()
|
||||||
|
|
||||||
$next = $next.length ? $next : this.$element.find('.item')[fallback]()
|
$next = $next.length ? $next : this.$element.find('.item')[fallback]()
|
||||||
|
|
||||||
|
if ($next.hasClass('active')) return
|
||||||
|
|
||||||
if (!$.support.transition && this.$element.hasClass('slide')) {
|
if (!$.support.transition && this.$element.hasClass('slide')) {
|
||||||
this.$element.trigger('slide')
|
this.$element.trigger('slide')
|
||||||
$active.removeClass('active')
|
$active.removeClass('active')
|
||||||
@@ -136,6 +139,7 @@
|
|||||||
|
|
||||||
$.fn.carousel.defaults = {
|
$.fn.carousel.defaults = {
|
||||||
interval: 5000
|
interval: 5000
|
||||||
|
, pause: 'hover'
|
||||||
}
|
}
|
||||||
|
|
||||||
$.fn.carousel.Constructor = Carousel
|
$.fn.carousel.Constructor = Carousel
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* =============================================================
|
/* =============================================================
|
||||||
* bootstrap-collapse.js v2.0.1
|
* bootstrap-collapse.js v2.0.2
|
||||||
* http://twitter.github.com/bootstrap/javascript.html#collapse
|
* http://twitter.github.com/bootstrap/javascript.html#collapse
|
||||||
* =============================================================
|
* =============================================================
|
||||||
* Copyright 2012 Twitter, Inc.
|
* Copyright 2012 Twitter, Inc.
|
||||||
@@ -74,7 +74,9 @@
|
|||||||
[dimension](size || 'auto')
|
[dimension](size || 'auto')
|
||||||
[0].offsetWidth
|
[0].offsetWidth
|
||||||
|
|
||||||
this.$element.addClass('collapse')
|
this.$element[size ? 'addClass' : 'removeClass']('collapse')
|
||||||
|
|
||||||
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
, transition: function ( method, startEvent, completeEvent ) {
|
, transition: function ( method, startEvent, completeEvent ) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* ============================================================
|
/* ============================================================
|
||||||
* bootstrap-dropdown.js v2.0.1
|
* bootstrap-dropdown.js v2.0.2
|
||||||
* http://twitter.github.com/bootstrap/javascript.html#dropdowns
|
* http://twitter.github.com/bootstrap/javascript.html#dropdowns
|
||||||
* ============================================================
|
* ============================================================
|
||||||
* Copyright 2012 Twitter, Inc.
|
* Copyright 2012 Twitter, Inc.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* =========================================================
|
/* =========================================================
|
||||||
* bootstrap-modal.js v2.0.1
|
* bootstrap-modal.js v2.0.2
|
||||||
* http://twitter.github.com/bootstrap/javascript.html#modals
|
* http://twitter.github.com/bootstrap/javascript.html#modals
|
||||||
* =========================================================
|
* =========================================================
|
||||||
* Copyright 2012 Twitter, Inc.
|
* Copyright 2012 Twitter, Inc.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* ===========================================================
|
/* ===========================================================
|
||||||
* bootstrap-popover.js v2.0.1
|
* bootstrap-popover.js v2.0.2
|
||||||
* http://twitter.github.com/bootstrap/javascript.html#popovers
|
* http://twitter.github.com/bootstrap/javascript.html#popovers
|
||||||
* ===========================================================
|
* ===========================================================
|
||||||
* Copyright 2012 Twitter, Inc.
|
* Copyright 2012 Twitter, Inc.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* =============================================================
|
/* =============================================================
|
||||||
* bootstrap-scrollspy.js v2.0.1
|
* bootstrap-scrollspy.js v2.0.2
|
||||||
* http://twitter.github.com/bootstrap/javascript.html#scrollspy
|
* http://twitter.github.com/bootstrap/javascript.html#scrollspy
|
||||||
* =============================================================
|
* =============================================================
|
||||||
* Copyright 2012 Twitter, Inc.
|
* Copyright 2012 Twitter, Inc.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* ========================================================
|
/* ========================================================
|
||||||
* bootstrap-tab.js v2.0.1
|
* bootstrap-tab.js v2.0.2
|
||||||
* http://twitter.github.com/bootstrap/javascript.html#tabs
|
* http://twitter.github.com/bootstrap/javascript.html#tabs
|
||||||
* ========================================================
|
* ========================================================
|
||||||
* Copyright 2012 Twitter, Inc.
|
* Copyright 2012 Twitter, Inc.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* ===========================================================
|
/* ===========================================================
|
||||||
* bootstrap-tooltip.js v2.0.1
|
* bootstrap-tooltip.js v2.0.2
|
||||||
* http://twitter.github.com/bootstrap/javascript.html#tooltips
|
* http://twitter.github.com/bootstrap/javascript.html#tooltips
|
||||||
* Inspired by the original jQuery.tipsy by Jason Frame
|
* Inspired by the original jQuery.tipsy by Jason Frame
|
||||||
* ===========================================================
|
* ===========================================================
|
||||||
@@ -206,7 +206,7 @@
|
|||||||
title = $e.attr('data-original-title')
|
title = $e.attr('data-original-title')
|
||||||
|| (typeof o.title == 'function' ? o.title.call($e[0]) : o.title)
|
|| (typeof o.title == 'function' ? o.title.call($e[0]) : o.title)
|
||||||
|
|
||||||
title = title.toString().replace(/(^\s*|\s*$)/, "")
|
title = (title || '').toString().replace(/(^\s*|\s*$)/, "")
|
||||||
|
|
||||||
return title
|
return title
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* ===================================================
|
/* ===================================================
|
||||||
* bootstrap-transition.js v2.0.1
|
* bootstrap-transition.js v2.0.2
|
||||||
* http://twitter.github.com/bootstrap/javascript.html#transitions
|
* http://twitter.github.com/bootstrap/javascript.html#transitions
|
||||||
* ===================================================
|
* ===================================================
|
||||||
* Copyright 2012 Twitter, Inc.
|
* Copyright 2012 Twitter, Inc.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* =============================================================
|
/* =============================================================
|
||||||
* bootstrap-typeahead.js v2.0.1
|
* bootstrap-typeahead.js v2.0.2
|
||||||
* http://twitter.github.com/bootstrap/javascript.html#typeahead
|
* http://twitter.github.com/bootstrap/javascript.html#typeahead
|
||||||
* =============================================================
|
* =============================================================
|
||||||
* Copyright 2012 Twitter, Inc.
|
* Copyright 2012 Twitter, Inc.
|
||||||
@@ -40,6 +40,7 @@
|
|||||||
, select: function () {
|
, select: function () {
|
||||||
var val = this.$menu.find('.active').attr('data-value')
|
var val = this.$menu.find('.active').attr('data-value')
|
||||||
this.$element.val(val)
|
this.$element.val(val)
|
||||||
|
this.$element.change();
|
||||||
return this.hide()
|
return this.hide()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -165,9 +166,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
, keyup: function (e) {
|
, keyup: function (e) {
|
||||||
e.stopPropagation()
|
|
||||||
e.preventDefault()
|
|
||||||
|
|
||||||
switch(e.keyCode) {
|
switch(e.keyCode) {
|
||||||
case 40: // down arrow
|
case 40: // down arrow
|
||||||
case 38: // up arrow
|
case 38: // up arrow
|
||||||
@@ -180,6 +178,7 @@
|
|||||||
break
|
break
|
||||||
|
|
||||||
case 27: // escape
|
case 27: // escape
|
||||||
|
if (!this.shown) return
|
||||||
this.hide()
|
this.hide()
|
||||||
break
|
break
|
||||||
|
|
||||||
@@ -187,10 +186,11 @@
|
|||||||
this.lookup()
|
this.lookup()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
e.stopPropagation()
|
||||||
|
e.preventDefault()
|
||||||
}
|
}
|
||||||
|
|
||||||
, keypress: function (e) {
|
, keypress: function (e) {
|
||||||
e.stopPropagation()
|
|
||||||
if (!this.shown) return
|
if (!this.shown) return
|
||||||
|
|
||||||
switch(e.keyCode) {
|
switch(e.keyCode) {
|
||||||
@@ -210,12 +210,12 @@
|
|||||||
this.next()
|
this.next()
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
e.stopPropagation()
|
||||||
}
|
}
|
||||||
|
|
||||||
, blur: function (e) {
|
, blur: function (e) {
|
||||||
var that = this
|
var that = this
|
||||||
e.stopPropagation()
|
|
||||||
e.preventDefault()
|
|
||||||
setTimeout(function () { that.hide() }, 150)
|
setTimeout(function () { that.hide() }, 150)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -45,10 +45,33 @@ $(function () {
|
|||||||
})
|
})
|
||||||
|
|
||||||
test("should toggle active", function () {
|
test("should toggle active", function () {
|
||||||
var btn = $('<button class="btn" data-loading-text="fat">mdo</button>')
|
var btn = $('<button class="btn">mdo</button>')
|
||||||
ok(!btn.hasClass('active'), 'btn does not have active class')
|
ok(!btn.hasClass('active'), 'btn does not have active class')
|
||||||
btn.button('toggle')
|
btn.button('toggle')
|
||||||
ok(btn.hasClass('active'), 'btn has class active')
|
ok(btn.hasClass('active'), 'btn has class active')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
test("should toggle active when btn children are clicked", function () {
|
||||||
|
var btn = $('<button class="btn" data-toggle="button">mdo</button>')
|
||||||
|
, inner = $('<i></i>')
|
||||||
|
btn
|
||||||
|
.append(inner)
|
||||||
|
.appendTo($('#qunit-fixture'))
|
||||||
|
ok(!btn.hasClass('active'), 'btn does not have active class')
|
||||||
|
inner.click()
|
||||||
|
ok(btn.hasClass('active'), 'btn has class active')
|
||||||
|
})
|
||||||
|
|
||||||
|
test("should toggle active when btn children are clicked within btn-group", function () {
|
||||||
|
var btngroup = $('<div class="btn-group" data-toggle="buttons-checkbox"></div>')
|
||||||
|
, btn = $('<button class="btn">fat</button>')
|
||||||
|
, inner = $('<i></i>')
|
||||||
|
btngroup
|
||||||
|
.append(btn.append(inner))
|
||||||
|
.appendTo($('#qunit-fixture'))
|
||||||
|
ok(!btn.hasClass('active'), 'btn does not have active class')
|
||||||
|
inner.click()
|
||||||
|
ok(btn.hasClass('active'), 'btn has class active')
|
||||||
|
})
|
||||||
|
|
||||||
})
|
})
|
||||||
@@ -114,15 +114,19 @@ $(function () {
|
|||||||
source: ['aa', 'ab', 'ac']
|
source: ['aa', 'ab', 'ac']
|
||||||
})
|
})
|
||||||
, typeahead = $input.data('typeahead')
|
, typeahead = $input.data('typeahead')
|
||||||
|
, changed = false
|
||||||
|
|
||||||
$input.val('a')
|
$input.val('a')
|
||||||
typeahead.lookup()
|
typeahead.lookup()
|
||||||
|
|
||||||
|
$input.change(function() { changed = true });
|
||||||
|
|
||||||
$(typeahead.$menu.find('li')[2]).mouseover().click()
|
$(typeahead.$menu.find('li')[2]).mouseover().click()
|
||||||
|
|
||||||
equals($input.val(), 'ac', 'input value was correctly set')
|
equals($input.val(), 'ac', 'input value was correctly set')
|
||||||
ok(!typeahead.$menu.is(':visible'), 'the menu was hidden')
|
ok(!typeahead.$menu.is(':visible'), 'the menu was hidden')
|
||||||
|
ok(changed, 'a change event was fired')
|
||||||
|
|
||||||
typeahead.$menu.remove()
|
typeahead.$menu.remove()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -9,11 +9,11 @@
|
|||||||
background-color: @warningBackground;
|
background-color: @warningBackground;
|
||||||
border: 1px solid @warningBorder;
|
border: 1px solid @warningBorder;
|
||||||
.border-radius(4px);
|
.border-radius(4px);
|
||||||
}
|
|
||||||
.alert,
|
|
||||||
.alert-heading {
|
|
||||||
color: @warningText;
|
color: @warningText;
|
||||||
}
|
}
|
||||||
|
.alert-heading {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
// Adjust close link position
|
// Adjust close link position
|
||||||
.alert .close {
|
.alert .close {
|
||||||
@@ -29,32 +29,20 @@
|
|||||||
.alert-success {
|
.alert-success {
|
||||||
background-color: @successBackground;
|
background-color: @successBackground;
|
||||||
border-color: @successBorder;
|
border-color: @successBorder;
|
||||||
}
|
|
||||||
.alert-success,
|
|
||||||
.alert-success .alert-heading {
|
|
||||||
color: @successText;
|
color: @successText;
|
||||||
}
|
}
|
||||||
.alert-danger,
|
.alert-danger,
|
||||||
.alert-error {
|
.alert-error {
|
||||||
background-color: @errorBackground;
|
background-color: @errorBackground;
|
||||||
border-color: @errorBorder;
|
border-color: @errorBorder;
|
||||||
}
|
|
||||||
.alert-danger,
|
|
||||||
.alert-error,
|
|
||||||
.alert-danger .alert-heading,
|
|
||||||
.alert-error .alert-heading {
|
|
||||||
color: @errorText;
|
color: @errorText;
|
||||||
}
|
}
|
||||||
.alert-info {
|
.alert-info {
|
||||||
background-color: @infoBackground;
|
background-color: @infoBackground;
|
||||||
border-color: @infoBorder;
|
border-color: @infoBorder;
|
||||||
}
|
|
||||||
.alert-info,
|
|
||||||
.alert-info .alert-heading {
|
|
||||||
color: @infoText;
|
color: @infoText;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Block alerts
|
// Block alerts
|
||||||
// ------------------------
|
// ------------------------
|
||||||
.alert-block {
|
.alert-block {
|
||||||
|
|||||||
@@ -0,0 +1,36 @@
|
|||||||
|
// BADGES
|
||||||
|
// ------
|
||||||
|
|
||||||
|
// Base
|
||||||
|
.badge {
|
||||||
|
padding: 1px 9px 2px;
|
||||||
|
font-size: @baseFontSize * .925;
|
||||||
|
font-weight: bold;
|
||||||
|
white-space: nowrap;
|
||||||
|
color: @white;
|
||||||
|
background-color: @grayLight;
|
||||||
|
.border-radius(9px);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Hover state
|
||||||
|
.badge:hover {
|
||||||
|
color: @white;
|
||||||
|
text-decoration: none;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Colors
|
||||||
|
.badge-error { background-color: @errorText; }
|
||||||
|
.badge-error:hover { background-color: darken(@errorText, 10%); }
|
||||||
|
|
||||||
|
.badge-warning { background-color: @orange; }
|
||||||
|
.badge-warning:hover { background-color: darken(@orange, 10%); }
|
||||||
|
|
||||||
|
.badge-success { background-color: @successText; }
|
||||||
|
.badge-success:hover { background-color: darken(@successText, 10%); }
|
||||||
|
|
||||||
|
.badge-info { background-color: @infoText; }
|
||||||
|
.badge-info:hover { background-color: darken(@infoText, 10%); }
|
||||||
|
|
||||||
|
.badge-inverse { background-color: @grayDark; }
|
||||||
|
.badge-inverse:hover { background-color: darken(@grayDark, 10%); }
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap v2.0.1
|
* Bootstrap v2.0.2
|
||||||
*
|
*
|
||||||
* Copyright 2012 Twitter, Inc
|
* Copyright 2012 Twitter, Inc
|
||||||
* Licensed under the Apache License v2.0
|
* Licensed under the Apache License v2.0
|
||||||
@@ -53,6 +53,7 @@
|
|||||||
// Components: Misc
|
// Components: Misc
|
||||||
@import "thumbnails.less";
|
@import "thumbnails.less";
|
||||||
@import "labels.less";
|
@import "labels.less";
|
||||||
|
@import "badges.less";
|
||||||
@import "progress-bars.less";
|
@import "progress-bars.less";
|
||||||
@import "accordion.less";
|
@import "accordion.less";
|
||||||
@import "carousel.less";
|
@import "carousel.less";
|
||||||
|
|||||||
@@ -4,12 +4,14 @@
|
|||||||
.breadcrumb {
|
.breadcrumb {
|
||||||
padding: 7px 14px;
|
padding: 7px 14px;
|
||||||
margin: 0 0 @baseLineHeight;
|
margin: 0 0 @baseLineHeight;
|
||||||
|
list-style: none;
|
||||||
#gradient > .vertical(@white, #f5f5f5);
|
#gradient > .vertical(@white, #f5f5f5);
|
||||||
border: 1px solid #ddd;
|
border: 1px solid #ddd;
|
||||||
.border-radius(3px);
|
.border-radius(3px);
|
||||||
.box-shadow(inset 0 1px 0 @white);
|
.box-shadow(inset 0 1px 0 @white);
|
||||||
li {
|
li {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
.ie7-inline-block();
|
||||||
text-shadow: 0 1px 0 @white;
|
text-shadow: 0 1px 0 @white;
|
||||||
}
|
}
|
||||||
.divider {
|
.divider {
|
||||||
|
|||||||
@@ -95,8 +95,22 @@
|
|||||||
padding-right: 8px;
|
padding-right: 8px;
|
||||||
@shadow: inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
|
@shadow: inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
|
||||||
.box-shadow(@shadow);
|
.box-shadow(@shadow);
|
||||||
*padding-top: 5px;
|
*padding-top: 3px;
|
||||||
*padding-bottom: 5px;
|
*padding-bottom: 3px;
|
||||||
|
}
|
||||||
|
.btn-group .btn-mini.dropdown-toggle {
|
||||||
|
padding-left: 5px;
|
||||||
|
padding-right: 5px;
|
||||||
|
*padding-top: 1px;
|
||||||
|
*padding-bottom: 1px;
|
||||||
|
}
|
||||||
|
.btn-group .btn-small.dropdown-toggle {
|
||||||
|
*padding-top: 4px;
|
||||||
|
*padding-bottom: 4px;
|
||||||
|
}
|
||||||
|
.btn-group .btn-large.dropdown-toggle {
|
||||||
|
padding-left: 12px;
|
||||||
|
padding-right: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-group.open {
|
.btn-group.open {
|
||||||
@@ -127,22 +141,32 @@
|
|||||||
.open.btn-group .caret {
|
.open.btn-group .caret {
|
||||||
.opacity(100);
|
.opacity(100);
|
||||||
}
|
}
|
||||||
|
// Carets in other button sizes
|
||||||
|
.btn-mini .caret {
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
|
.btn-small .caret {
|
||||||
|
margin-top: 6px;
|
||||||
|
}
|
||||||
|
.btn-large .caret {
|
||||||
|
margin-top: 6px;
|
||||||
|
border-left: 5px solid transparent;
|
||||||
|
border-right: 5px solid transparent;
|
||||||
|
border-top: 5px solid @black;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Account for other colors
|
// Account for other colors
|
||||||
.btn-primary,
|
.btn-primary,
|
||||||
|
.btn-warning,
|
||||||
.btn-danger,
|
.btn-danger,
|
||||||
.btn-info,
|
.btn-info,
|
||||||
.btn-success,
|
.btn-success,
|
||||||
.btn-inverse {
|
.btn-inverse {
|
||||||
.caret {
|
.caret {
|
||||||
border-top-color: @white;
|
border-top-color: @white;
|
||||||
|
border-bottom-color: @white;
|
||||||
.opacity(75);
|
.opacity(75);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Small button dropdowns
|
|
||||||
.btn-small .caret {
|
|
||||||
margin-top: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
// Core
|
// Core
|
||||||
.btn {
|
.btn {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
.ie7-inline-block();
|
||||||
padding: 4px 10px 4px;
|
padding: 4px 10px 4px;
|
||||||
margin-bottom: 0; // For input.btn
|
margin-bottom: 0; // For input.btn
|
||||||
font-size: @baseFontSize;
|
font-size: @baseFontSize;
|
||||||
@@ -16,16 +17,15 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
text-shadow: 0 1px 1px rgba(255,255,255,.75);
|
text-shadow: 0 1px 1px rgba(255,255,255,.75);
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
.buttonBackground(@white, darken(@white, 10%));
|
.buttonBackground(@btnBackground, @btnBackgroundHighlight);
|
||||||
border: 1px solid #ccc;
|
border: 1px solid @btnBorder;
|
||||||
border-bottom-color: #bbb;
|
border-bottom-color: darken(@btnBorder, 10%);
|
||||||
.border-radius(4px);
|
.border-radius(4px);
|
||||||
@shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
|
@shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
|
||||||
.box-shadow(@shadow);
|
.box-shadow(@shadow);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
// Give IE7 some love
|
// Give IE7 some love
|
||||||
.reset-filter();
|
|
||||||
.ie7-restore-left-whitespace();
|
.ie7-restore-left-whitespace();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -126,34 +126,34 @@
|
|||||||
.btn-danger.active,
|
.btn-danger.active,
|
||||||
.btn-success.active,
|
.btn-success.active,
|
||||||
.btn-info.active,
|
.btn-info.active,
|
||||||
.btn-dark.active {
|
.btn-inverse.active {
|
||||||
color: rgba(255,255,255,.75);
|
color: rgba(255,255,255,.75);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the backgrounds
|
// Set the backgrounds
|
||||||
// -------------------------
|
// -------------------------
|
||||||
.btn-primary {
|
.btn-primary {
|
||||||
.buttonBackground(@primaryButtonBackground, spin(@primaryButtonBackground, 20));
|
.buttonBackground(@btnPrimaryBackground, @btnPrimaryBackgroundHighlight);
|
||||||
}
|
}
|
||||||
// Warning appears are orange
|
// Warning appears are orange
|
||||||
.btn-warning {
|
.btn-warning {
|
||||||
.buttonBackground(lighten(@orange, 15%), @orange);
|
.buttonBackground(@btnWarningBackground, @btnWarningBackgroundHighlight);
|
||||||
}
|
}
|
||||||
// Danger and error appear as red
|
// Danger and error appear as red
|
||||||
.btn-danger {
|
.btn-danger {
|
||||||
.buttonBackground(#ee5f5b, #bd362f);
|
.buttonBackground(@btnDangerBackground, @btnDangerBackgroundHighlight);
|
||||||
}
|
}
|
||||||
// Success appears as green
|
// Success appears as green
|
||||||
.btn-success {
|
.btn-success {
|
||||||
.buttonBackground(#62c462, #51a351);
|
.buttonBackground(@btnSuccessBackground, @btnSuccessBackgroundHighlight);
|
||||||
}
|
}
|
||||||
// Info appears as a neutral blue
|
// Info appears as a neutral blue
|
||||||
.btn-info {
|
.btn-info {
|
||||||
.buttonBackground(#5bc0de, #2f96b4);
|
.buttonBackground(@btnInfoBackground, @btnInfoBackgroundHighlight);
|
||||||
}
|
}
|
||||||
// Inverse appears as dark gray
|
// Inverse appears as dark gray
|
||||||
.btn-inverse {
|
.btn-inverse {
|
||||||
.buttonBackground(#454545, #262626);
|
.buttonBackground(@btnInverseBackground, @btnInverseBackgroundHighlight);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -172,12 +172,16 @@ input[type="submit"].btn {
|
|||||||
// IE7 has some default padding on button controls
|
// IE7 has some default padding on button controls
|
||||||
*padding-top: 2px;
|
*padding-top: 2px;
|
||||||
*padding-bottom: 2px;
|
*padding-bottom: 2px;
|
||||||
&.large {
|
&.btn-large {
|
||||||
*padding-top: 7px;
|
*padding-top: 7px;
|
||||||
*padding-bottom: 7px;
|
*padding-bottom: 7px;
|
||||||
}
|
}
|
||||||
&.small {
|
&.btn-small {
|
||||||
*padding-top: 3px;
|
*padding-top: 3px;
|
||||||
*padding-bottom: 3px;
|
*padding-bottom: 3px;
|
||||||
}
|
}
|
||||||
|
&.btn-mini {
|
||||||
|
*padding-top: 1px;
|
||||||
|
*padding-bottom: 1px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ pre {
|
|||||||
|
|
||||||
// Inline code
|
// Inline code
|
||||||
code {
|
code {
|
||||||
padding: 3px 4px;
|
padding: 2px 4px;
|
||||||
color: #d14;
|
color: #d14;
|
||||||
background-color: #f7f7f9;
|
background-color: #f7f7f9;
|
||||||
border: 1px solid #e1e1e8;
|
border: 1px solid #e1e1e8;
|
||||||
@@ -25,7 +25,7 @@ pre {
|
|||||||
display: block;
|
display: block;
|
||||||
padding: (@baseLineHeight - 1) / 2;
|
padding: (@baseLineHeight - 1) / 2;
|
||||||
margin: 0 0 @baseLineHeight / 2;
|
margin: 0 0 @baseLineHeight / 2;
|
||||||
font-size: 12px;
|
font-size: @baseFontSize * .925; // 13px to 12px
|
||||||
line-height: @baseLineHeight;
|
line-height: @baseLineHeight;
|
||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
border: 1px solid #ccc; // fallback for IE7-8
|
border: 1px solid #ccc; // fallback for IE7-8
|
||||||
|
|||||||
@@ -14,5 +14,7 @@
|
|||||||
position:relative;
|
position:relative;
|
||||||
overflow:hidden;
|
overflow:hidden;
|
||||||
height: 0;
|
height: 0;
|
||||||
&.in { height: auto; }
|
&.in {
|
||||||
}
|
height: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -13,22 +13,22 @@
|
|||||||
.open .dropdown-toggle {
|
.open .dropdown-toggle {
|
||||||
outline: 0;
|
outline: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dropdown arrow/caret
|
// Dropdown arrow/caret
|
||||||
|
// --------------------
|
||||||
.caret {
|
.caret {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 0;
|
width: 0;
|
||||||
height: 0;
|
height: 0;
|
||||||
text-indent: -99999px;
|
|
||||||
// IE7 won't do the border trick if there's a text indent, but it doesn't
|
|
||||||
// do the content that text-indent is hiding, either, so we're ok.
|
|
||||||
*text-indent: 0;
|
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
border-left: 4px solid transparent;
|
border-left: 4px solid transparent;
|
||||||
border-right: 4px solid transparent;
|
border-right: 4px solid transparent;
|
||||||
border-top: 4px solid @black;
|
border-top: 4px solid @black;
|
||||||
.opacity(30);
|
.opacity(30);
|
||||||
content: "\2193";
|
content: "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Place the caret
|
||||||
.dropdown .caret {
|
.dropdown .caret {
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
margin-left: 2px;
|
margin-left: 2px;
|
||||||
@@ -37,7 +37,9 @@
|
|||||||
.open.dropdown .caret {
|
.open.dropdown .caret {
|
||||||
.opacity(100);
|
.opacity(100);
|
||||||
}
|
}
|
||||||
|
|
||||||
// The dropdown menu (ul)
|
// The dropdown menu (ul)
|
||||||
|
// ----------------------
|
||||||
.dropdown-menu {
|
.dropdown-menu {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 100%;
|
top: 100%;
|
||||||
@@ -46,11 +48,10 @@
|
|||||||
float: left;
|
float: left;
|
||||||
display: none; // none by default, but block on "open" of the menu
|
display: none; // none by default, but block on "open" of the menu
|
||||||
min-width: 160px;
|
min-width: 160px;
|
||||||
_width: 160px;
|
|
||||||
padding: 4px 0;
|
padding: 4px 0;
|
||||||
margin: 0; // override default ul
|
margin: 0; // override default ul
|
||||||
list-style: none;
|
list-style: none;
|
||||||
background-color: @white;
|
background-color: @dropdownBackground;
|
||||||
border-color: #ccc;
|
border-color: #ccc;
|
||||||
border-color: rgba(0,0,0,.2);
|
border-color: rgba(0,0,0,.2);
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
@@ -63,27 +64,15 @@
|
|||||||
*border-right-width: 2px;
|
*border-right-width: 2px;
|
||||||
*border-bottom-width: 2px;
|
*border-bottom-width: 2px;
|
||||||
|
|
||||||
// Allow for dropdowns to go bottom up (aka, dropup-menu)
|
// Aligns the dropdown menu to right
|
||||||
&.bottom-up {
|
&.pull-right {
|
||||||
top: auto;
|
right: 0;
|
||||||
bottom: 100%;
|
left: auto;
|
||||||
margin-bottom: 2px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dividers (basically an hr) within the dropdown
|
// Dividers (basically an hr) within the dropdown
|
||||||
.divider {
|
.divider {
|
||||||
height: 1px;
|
.nav-divider();
|
||||||
margin: 5px 1px;
|
|
||||||
overflow: hidden;
|
|
||||||
background-color: #e5e5e5;
|
|
||||||
border-bottom: 1px solid @white;
|
|
||||||
|
|
||||||
// IE7 needs a set width since we gave a height. Restricting just
|
|
||||||
// to IE7 to keep the 1px left/right space in other browsers.
|
|
||||||
// It is unclear where IE is getting the extra space that we need
|
|
||||||
// to negative-margin away, but so it goes.
|
|
||||||
*width: 100%;
|
|
||||||
*margin: -5px 0 5px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Links within the dropdown menu
|
// Links within the dropdown menu
|
||||||
@@ -93,21 +82,23 @@
|
|||||||
clear: both;
|
clear: both;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
line-height: @baseLineHeight;
|
line-height: @baseLineHeight;
|
||||||
color: @gray;
|
color: @dropdownLinkColor;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hover state
|
// Hover state
|
||||||
|
// -----------
|
||||||
.dropdown-menu li > a:hover,
|
.dropdown-menu li > a:hover,
|
||||||
.dropdown-menu .active > a,
|
.dropdown-menu .active > a,
|
||||||
.dropdown-menu .active > a:hover {
|
.dropdown-menu .active > a:hover {
|
||||||
color: @white;
|
color: @dropdownLinkColorHover;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
background-color: @linkColor;
|
background-color: @dropdownLinkBackgroundHover;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Open state for the dropdown
|
// Open state for the dropdown
|
||||||
|
// ---------------------------
|
||||||
.dropdown.open {
|
.dropdown.open {
|
||||||
// IE7's z-index only goes to the nearest positioned ancestor, which would
|
// IE7's z-index only goes to the nearest positioned ancestor, which would
|
||||||
// make the menu appear below buttons that appeared later on the page
|
// make the menu appear below buttons that appeared later on the page
|
||||||
@@ -123,7 +114,34 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Right aligned dropdowns
|
||||||
|
.pull-right .dropdown-menu {
|
||||||
|
left: auto;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Allow for dropdowns to go bottom up (aka, dropup-menu)
|
||||||
|
// ------------------------------------------------------
|
||||||
|
// Just add .dropup after the standard .dropdown class and you're set, bro.
|
||||||
|
// TODO: abstract this so that the navbar fixed styles are not placed here?
|
||||||
|
.dropup,
|
||||||
|
.navbar-fixed-bottom .dropdown {
|
||||||
|
// Reverse the caret
|
||||||
|
.caret {
|
||||||
|
border-top: 0;
|
||||||
|
border-bottom: 4px solid @black;
|
||||||
|
content: "\2191";
|
||||||
|
}
|
||||||
|
// Different positioning for bottom up menu
|
||||||
|
.dropdown-menu {
|
||||||
|
top: auto;
|
||||||
|
bottom: 100%;
|
||||||
|
margin-bottom: 1px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Typeahead
|
// Typeahead
|
||||||
|
// ---------
|
||||||
.typeahead {
|
.typeahead {
|
||||||
margin-top: 2px; // give it some space to breathe
|
margin-top: 2px; // give it some space to breathe
|
||||||
.border-radius(4px);
|
.border-radius(4px);
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ input,
|
|||||||
button,
|
button,
|
||||||
select,
|
select,
|
||||||
textarea {
|
textarea {
|
||||||
#font > #family > .sans-serif(); // And only set font-family here for those that need it (note the missing label element)
|
font-family: @baseFontFamily; // And only set font-family here for those that need it (note the missing label element)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Identify controls by their labels
|
// Identify controls by their labels
|
||||||
@@ -71,7 +71,7 @@ select,
|
|||||||
font-size: @baseFontSize;
|
font-size: @baseFontSize;
|
||||||
line-height: @baseLineHeight;
|
line-height: @baseLineHeight;
|
||||||
color: @gray;
|
color: @gray;
|
||||||
border: 1px solid #ccc;
|
border: 1px solid @inputBorder;
|
||||||
.border-radius(3px);
|
.border-radius(3px);
|
||||||
}
|
}
|
||||||
.uneditable-textarea {
|
.uneditable-textarea {
|
||||||
@@ -110,7 +110,7 @@ input[type="file"] {
|
|||||||
padding: initial;
|
padding: initial;
|
||||||
line-height: initial;
|
line-height: initial;
|
||||||
border: initial;
|
border: initial;
|
||||||
background-color: @white;
|
background-color: @inputBackground;
|
||||||
background-color: initial;
|
background-color: initial;
|
||||||
.box-shadow(none);
|
.box-shadow(none);
|
||||||
}
|
}
|
||||||
@@ -139,7 +139,7 @@ input[type="file"] {
|
|||||||
// Chrome on Linux and Mobile Safari need background-color
|
// Chrome on Linux and Mobile Safari need background-color
|
||||||
select {
|
select {
|
||||||
width: 220px; // default input width + 10px of padding that doesn't get applied
|
width: 220px; // default input width + 10px of padding that doesn't get applied
|
||||||
background-color: @white;
|
background-color: @inputBackground;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make multiple select elements height not fixed
|
// Make multiple select elements height not fixed
|
||||||
@@ -253,7 +253,7 @@ textarea[class*="span"],
|
|||||||
// GRID SIZING FOR INPUTS
|
// GRID SIZING FOR INPUTS
|
||||||
// ----------------------
|
// ----------------------
|
||||||
|
|
||||||
#inputGridSystem > .generate(@gridColumns, @gridColumnWidth, @gridGutterWidth);
|
#grid > .input (@gridColumnWidth, @gridGutterWidth);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -268,7 +268,7 @@ textarea[disabled],
|
|||||||
input[readonly],
|
input[readonly],
|
||||||
select[readonly],
|
select[readonly],
|
||||||
textarea[readonly] {
|
textarea[readonly] {
|
||||||
background-color: #f5f5f5;
|
background-color: @inputDisabledBackground;
|
||||||
border-color: #ddd;
|
border-color: #ddd;
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
}
|
}
|
||||||
@@ -301,7 +301,7 @@ select:focus:required:invalid {
|
|||||||
border-color: #ee5f5b;
|
border-color: #ee5f5b;
|
||||||
&:focus {
|
&:focus {
|
||||||
border-color: darken(#ee5f5b, 10%);
|
border-color: darken(#ee5f5b, 10%);
|
||||||
.box-shadow(0 0 6px lighten(#ee5f5b, 20%));
|
.box-shadow(0 0 6px lighten(#ee5f5b, 20%));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -314,14 +314,15 @@ select:focus:required:invalid {
|
|||||||
padding: (@baseLineHeight - 1) 20px @baseLineHeight;
|
padding: (@baseLineHeight - 1) 20px @baseLineHeight;
|
||||||
margin-top: @baseLineHeight;
|
margin-top: @baseLineHeight;
|
||||||
margin-bottom: @baseLineHeight;
|
margin-bottom: @baseLineHeight;
|
||||||
background-color: #f5f5f5;
|
background-color: @grayLighter;
|
||||||
border-top: 1px solid #ddd;
|
border-top: 1px solid #ddd;
|
||||||
|
.clearfix(); // Adding clearfix to allow for .pull-right button containers
|
||||||
}
|
}
|
||||||
|
|
||||||
// For text that needs to appear as an input but should not be an input
|
// For text that needs to appear as an input but should not be an input
|
||||||
.uneditable-input {
|
.uneditable-input {
|
||||||
display: block;
|
display: block;
|
||||||
background-color: @white;
|
background-color: @inputBackground;
|
||||||
border-color: #eee;
|
border-color: #eee;
|
||||||
.box-shadow(inset 0 1px 2px rgba(0,0,0,.025));
|
.box-shadow(inset 0 1px 2px rgba(0,0,0,.025));
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
@@ -335,17 +336,19 @@ select:focus:required:invalid {
|
|||||||
// HELP TEXT
|
// HELP TEXT
|
||||||
// ---------
|
// ---------
|
||||||
|
|
||||||
|
.help-block,
|
||||||
|
.help-inline {
|
||||||
|
color: @gray; // lighten the text some for contrast
|
||||||
|
}
|
||||||
|
|
||||||
.help-block {
|
.help-block {
|
||||||
display: block; // account for any element using help-block
|
display: block; // account for any element using help-block
|
||||||
margin-top: 5px;
|
margin-bottom: @baseLineHeight / 2;
|
||||||
margin-bottom: 0;
|
|
||||||
color: @grayLight;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.help-inline {
|
.help-inline {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
.ie7-inline-block();
|
.ie7-inline-block();
|
||||||
margin-bottom: 9px;
|
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
}
|
}
|
||||||
@@ -359,9 +362,10 @@ select:focus:required:invalid {
|
|||||||
.input-prepend,
|
.input-prepend,
|
||||||
.input-append {
|
.input-append {
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
.clearfix(); // Clear the float to prevent wrapping
|
|
||||||
input,
|
input,
|
||||||
|
select,
|
||||||
.uneditable-input {
|
.uneditable-input {
|
||||||
|
*margin-left: 0;
|
||||||
.border-radius(0 3px 3px 0);
|
.border-radius(0 3px 3px 0);
|
||||||
&:focus {
|
&:focus {
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -372,20 +376,21 @@ select:focus:required:invalid {
|
|||||||
border-left-color: #ccc;
|
border-left-color: #ccc;
|
||||||
}
|
}
|
||||||
.add-on {
|
.add-on {
|
||||||
float: left;
|
display: inline-block;
|
||||||
display: block;
|
|
||||||
width: auto;
|
width: auto;
|
||||||
min-width: 16px;
|
min-width: 16px;
|
||||||
height: @baseLineHeight;
|
height: @baseLineHeight;
|
||||||
margin-right: -1px;
|
|
||||||
padding: 4px 5px;
|
padding: 4px 5px;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
line-height: @baseLineHeight;
|
line-height: @baseLineHeight;
|
||||||
color: @grayLight;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
text-shadow: 0 1px 0 @white;
|
text-shadow: 0 1px 0 @white;
|
||||||
background-color: #f5f5f5;
|
vertical-align: middle;
|
||||||
|
background-color: @grayLighter;
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
|
}
|
||||||
|
.add-on,
|
||||||
|
.btn {
|
||||||
.border-radius(3px 0 0 3px);
|
.border-radius(3px 0 0 3px);
|
||||||
}
|
}
|
||||||
.active {
|
.active {
|
||||||
@@ -394,33 +399,43 @@ select:focus:required:invalid {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.input-prepend {
|
.input-prepend {
|
||||||
.add-on {
|
.add-on,
|
||||||
*margin-top: 1px; /* IE6-7 */
|
.btn {
|
||||||
|
margin-right: -1px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.input-append {
|
.input-append {
|
||||||
input,
|
input,
|
||||||
|
select
|
||||||
.uneditable-input {
|
.uneditable-input {
|
||||||
float: left;
|
|
||||||
.border-radius(3px 0 0 3px);
|
.border-radius(3px 0 0 3px);
|
||||||
}
|
}
|
||||||
.uneditable-input {
|
.uneditable-input {
|
||||||
border-left-color: #eee;
|
border-left-color: #eee;
|
||||||
border-right-color: #ccc;
|
border-right-color: #ccc;
|
||||||
}
|
}
|
||||||
.add-on {
|
.add-on,
|
||||||
margin-right: 0;
|
.btn {
|
||||||
margin-left: -1px;
|
margin-left: -1px;
|
||||||
.border-radius(0 3px 3px 0);
|
.border-radius(0 3px 3px 0);
|
||||||
}
|
}
|
||||||
input:first-child {
|
}
|
||||||
// In IE7, having a hasLayout container (from clearfix's zoom:1) can make the first input
|
// Remove all border-radius for inputs with both prepend and append
|
||||||
// inherit the sum of its ancestors' margins.
|
.input-prepend.input-append {
|
||||||
*margin-left: -160px;
|
input,
|
||||||
|
select,
|
||||||
&+.add-on {
|
.uneditable-input {
|
||||||
*margin-left: -21px;
|
.border-radius(0);
|
||||||
}
|
}
|
||||||
|
.add-on:first-child,
|
||||||
|
.btn:first-child {
|
||||||
|
margin-right: -1px;
|
||||||
|
.border-radius(3px 0 0 3px);
|
||||||
|
}
|
||||||
|
.add-on:last-child,
|
||||||
|
.btn:last-child {
|
||||||
|
margin-left: -1px;
|
||||||
|
.border-radius(0 3px 3px 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -451,7 +466,9 @@ select:focus:required:invalid {
|
|||||||
textarea,
|
textarea,
|
||||||
select,
|
select,
|
||||||
.help-inline,
|
.help-inline,
|
||||||
.uneditable-input {
|
.uneditable-input,
|
||||||
|
.input-prepend,
|
||||||
|
.input-append {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
@@ -461,28 +478,35 @@ select:focus:required:invalid {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.form-search label,
|
.form-search label,
|
||||||
.form-inline label,
|
.form-inline label {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
// Remove margin for input-prepend/-append
|
||||||
.form-search .input-append,
|
.form-search .input-append,
|
||||||
.form-inline .input-append,
|
.form-inline .input-append,
|
||||||
.form-search .input-prepend,
|
.form-search .input-prepend,
|
||||||
.form-inline .input-prepend {
|
.form-inline .input-prepend {
|
||||||
display: inline-block;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
// Make the prepend and append add-on vertical-align: middle;
|
// Inline checkbox/radio labels (remove padding on left)
|
||||||
.form-search .input-append .add-on,
|
|
||||||
.form-inline .input-prepend .add-on,
|
|
||||||
.form-search .input-append .add-on,
|
|
||||||
.form-inline .input-prepend .add-on {
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
// Inline checkbox/radio labels
|
|
||||||
.form-search .radio,
|
.form-search .radio,
|
||||||
.form-inline .radio,
|
|
||||||
.form-search .checkbox,
|
.form-search .checkbox,
|
||||||
|
.form-inline .radio,
|
||||||
.form-inline .checkbox {
|
.form-inline .checkbox {
|
||||||
|
padding-left: 0;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
// Remove float and margin, set to inline-block
|
||||||
|
.form-search .radio input[type="radio"],
|
||||||
|
.form-search .checkbox input[type="checkbox"],
|
||||||
|
.form-inline .radio input[type="radio"],
|
||||||
|
.form-inline .checkbox input[type="checkbox"] {
|
||||||
|
float: left;
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Margin to space out fieldsets
|
// Margin to space out fieldsets
|
||||||
.control-group {
|
.control-group {
|
||||||
@@ -514,6 +538,15 @@ legend + .control-group {
|
|||||||
// Move over all input controls and content
|
// Move over all input controls and content
|
||||||
.controls {
|
.controls {
|
||||||
margin-left: 160px;
|
margin-left: 160px;
|
||||||
|
/* Super jank IE7 fix to ensure the inputs in .input-append and input-prepend don't inherit the margin of the parent, in this case .controls */
|
||||||
|
*display: inline-block;
|
||||||
|
*margin-left: 0;
|
||||||
|
*padding-left: 20px;
|
||||||
|
}
|
||||||
|
// Remove bottom margin on block level help text since that's accounted for on .control-group
|
||||||
|
.help-block {
|
||||||
|
margin-top: @baseLineHeight / 2;
|
||||||
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
// Move over buttons in .form-actions to align with .controls
|
// Move over buttons in .form-actions to align with .controls
|
||||||
.form-actions {
|
.form-actions {
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
// GRID SYSTEM
|
|
||||||
// -----------
|
|
||||||
|
|
||||||
// Fixed (940px)
|
// Fixed (940px)
|
||||||
#gridSystem > .generate(@gridColumns, @gridColumnWidth, @gridGutterWidth);
|
#grid > .core(@gridColumnWidth, @gridGutterWidth);
|
||||||
|
|
||||||
// Fluid (940px)
|
// Fluid (940px)
|
||||||
#fluidGridSystem > .generate(@gridColumns, @fluidGridColumnWidth, @fluidGridGutterWidth);
|
#grid > .fluid(@fluidGridColumnWidth, @fluidGridGutterWidth);
|
||||||
@@ -4,17 +4,19 @@
|
|||||||
.hero-unit {
|
.hero-unit {
|
||||||
padding: 60px;
|
padding: 60px;
|
||||||
margin-bottom: 30px;
|
margin-bottom: 30px;
|
||||||
background-color: #f5f5f5;
|
background-color: @heroUnitBackground;
|
||||||
.border-radius(6px);
|
.border-radius(6px);
|
||||||
h1 {
|
h1 {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
font-size: 60px;
|
font-size: 60px;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
|
color: @heroUnitHeadingColor;
|
||||||
letter-spacing: -1px;
|
letter-spacing: -1px;
|
||||||
}
|
}
|
||||||
p {
|
p {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: 200;
|
font-weight: 200;
|
||||||
line-height: @baseLineHeight * 1.5;
|
line-height: @baseLineHeight * 1.5;
|
||||||
|
color: @heroUnitLeadColor;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,10 +3,13 @@
|
|||||||
|
|
||||||
// Base
|
// Base
|
||||||
.label {
|
.label {
|
||||||
padding: 2px 4px 3px;
|
padding: 1px 4px 2px;
|
||||||
font-size: @baseFontSize * .85;
|
font-size: @baseFontSize * .846;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
line-height: 13px; // ensure proper line-height if floated
|
||||||
color: @white;
|
color: @white;
|
||||||
|
vertical-align: middle;
|
||||||
|
white-space: nowrap;
|
||||||
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
||||||
background-color: @grayLight;
|
background-color: @grayLight;
|
||||||
.border-radius(3px);
|
.border-radius(3px);
|
||||||
@@ -30,3 +33,6 @@
|
|||||||
|
|
||||||
.label-info { background-color: @infoText; }
|
.label-info { background-color: @infoText; }
|
||||||
.label-info:hover { background-color: darken(@infoText, 10%); }
|
.label-info:hover { background-color: darken(@infoText, 10%); }
|
||||||
|
|
||||||
|
.label-inverse { background-color: @grayDark; }
|
||||||
|
.label-inverse:hover { background-color: darken(@grayDark, 10%); }
|
||||||
@@ -98,6 +98,14 @@
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// New image replacement
|
||||||
|
// -------------------------
|
||||||
|
// Source: http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement/
|
||||||
|
.hide-text {
|
||||||
|
overflow: hidden;
|
||||||
|
text-indent: 100%;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// FONTS
|
// FONTS
|
||||||
@@ -135,158 +143,18 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// FORMS
|
||||||
// GRID SYSTEM
|
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
// Site container
|
// Block level inputs
|
||||||
// -------------------------
|
.input-block-level {
|
||||||
.container-fixed() {
|
display: block;
|
||||||
width: @gridRowWidth;
|
width: 100%;
|
||||||
margin-left: auto;
|
min-height: 28px; /* Make inputs at least the height of their button counterpart */
|
||||||
margin-right: auto;
|
/* Makes inputs behave like true block-level elements */
|
||||||
.clearfix();
|
.box-sizing(border-box);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Le grid system
|
|
||||||
// -------------------------
|
|
||||||
#gridSystem {
|
|
||||||
// Setup the mixins to be used
|
|
||||||
.columns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, @columns) {
|
|
||||||
width: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1));
|
|
||||||
}
|
|
||||||
.offset(@gridColumnWidth, @gridGutterWidth, @columns) {
|
|
||||||
margin-left: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1)) + (@gridGutterWidth * 2);
|
|
||||||
}
|
|
||||||
.gridColumn(@gridGutterWidth) {
|
|
||||||
float: left;
|
|
||||||
margin-left: @gridGutterWidth;
|
|
||||||
}
|
|
||||||
// Take these values and mixins, and make 'em do their thang
|
|
||||||
.generate(@gridColumns, @gridColumnWidth, @gridGutterWidth) {
|
|
||||||
// Row surrounds the columns
|
|
||||||
.row {
|
|
||||||
margin-left: @gridGutterWidth * -1;
|
|
||||||
.clearfix();
|
|
||||||
}
|
|
||||||
// Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7, thanks @dhg)
|
|
||||||
[class*="span"] {
|
|
||||||
#gridSystem > .gridColumn(@gridGutterWidth);
|
|
||||||
}
|
|
||||||
// Default columns
|
|
||||||
.span1 { #gridSystem > .columns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 1); }
|
|
||||||
.span2 { #gridSystem > .columns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 2); }
|
|
||||||
.span3 { #gridSystem > .columns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 3); }
|
|
||||||
.span4 { #gridSystem > .columns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 4); }
|
|
||||||
.span5 { #gridSystem > .columns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 5); }
|
|
||||||
.span6 { #gridSystem > .columns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 6); }
|
|
||||||
.span7 { #gridSystem > .columns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 7); }
|
|
||||||
.span8 { #gridSystem > .columns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 8); }
|
|
||||||
.span9 { #gridSystem > .columns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 9); }
|
|
||||||
.span10 { #gridSystem > .columns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 10); }
|
|
||||||
.span11 { #gridSystem > .columns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 11); }
|
|
||||||
.span12,
|
|
||||||
.container { #gridSystem > .columns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 12); }
|
|
||||||
// Offset column options
|
|
||||||
.offset1 { #gridSystem > .offset(@gridColumnWidth, @gridGutterWidth, 1); }
|
|
||||||
.offset2 { #gridSystem > .offset(@gridColumnWidth, @gridGutterWidth, 2); }
|
|
||||||
.offset3 { #gridSystem > .offset(@gridColumnWidth, @gridGutterWidth, 3); }
|
|
||||||
.offset4 { #gridSystem > .offset(@gridColumnWidth, @gridGutterWidth, 4); }
|
|
||||||
.offset5 { #gridSystem > .offset(@gridColumnWidth, @gridGutterWidth, 5); }
|
|
||||||
.offset6 { #gridSystem > .offset(@gridColumnWidth, @gridGutterWidth, 6); }
|
|
||||||
.offset7 { #gridSystem > .offset(@gridColumnWidth, @gridGutterWidth, 7); }
|
|
||||||
.offset8 { #gridSystem > .offset(@gridColumnWidth, @gridGutterWidth, 8); }
|
|
||||||
.offset9 { #gridSystem > .offset(@gridColumnWidth, @gridGutterWidth, 9); }
|
|
||||||
.offset10 { #gridSystem > .offset(@gridColumnWidth, @gridGutterWidth, 10); }
|
|
||||||
.offset11 { #gridSystem > .offset(@gridColumnWidth, @gridGutterWidth, 11); }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Fluid grid system
|
|
||||||
// -------------------------
|
|
||||||
#fluidGridSystem {
|
|
||||||
// Setup the mixins to be used
|
|
||||||
.columns(@fluidGridGutterWidth, @fluidGridColumnWidth, @columns) {
|
|
||||||
width: 1% * (@fluidGridColumnWidth * @columns) + (@fluidGridGutterWidth * (@columns - 1));
|
|
||||||
}
|
|
||||||
.gridColumn(@fluidGridGutterWidth) {
|
|
||||||
float: left;
|
|
||||||
margin-left: @fluidGridGutterWidth;
|
|
||||||
}
|
|
||||||
// Take these values and mixins, and make 'em do their thang
|
|
||||||
.generate(@gridColumns, @fluidGridColumnWidth, @fluidGridGutterWidth) {
|
|
||||||
// Row surrounds the columns
|
|
||||||
.row-fluid {
|
|
||||||
width: 100%;
|
|
||||||
.clearfix();
|
|
||||||
|
|
||||||
// Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7, thanks @dhg)
|
|
||||||
> [class*="span"] {
|
|
||||||
#fluidGridSystem > .gridColumn(@fluidGridGutterWidth);
|
|
||||||
}
|
|
||||||
> [class*="span"]:first-child {
|
|
||||||
margin-left: 0;
|
|
||||||
}
|
|
||||||
// Default columns
|
|
||||||
> .span1 { #fluidGridSystem > .columns(@fluidGridGutterWidth, @fluidGridColumnWidth, 1); }
|
|
||||||
> .span2 { #fluidGridSystem > .columns(@fluidGridGutterWidth, @fluidGridColumnWidth, 2); }
|
|
||||||
> .span3 { #fluidGridSystem > .columns(@fluidGridGutterWidth, @fluidGridColumnWidth, 3); }
|
|
||||||
> .span4 { #fluidGridSystem > .columns(@fluidGridGutterWidth, @fluidGridColumnWidth, 4); }
|
|
||||||
> .span5 { #fluidGridSystem > .columns(@fluidGridGutterWidth, @fluidGridColumnWidth, 5); }
|
|
||||||
> .span6 { #fluidGridSystem > .columns(@fluidGridGutterWidth, @fluidGridColumnWidth, 6); }
|
|
||||||
> .span7 { #fluidGridSystem > .columns(@fluidGridGutterWidth, @fluidGridColumnWidth, 7); }
|
|
||||||
> .span8 { #fluidGridSystem > .columns(@fluidGridGutterWidth, @fluidGridColumnWidth, 8); }
|
|
||||||
> .span9 { #fluidGridSystem > .columns(@fluidGridGutterWidth, @fluidGridColumnWidth, 9); }
|
|
||||||
> .span10 { #fluidGridSystem > .columns(@fluidGridGutterWidth, @fluidGridColumnWidth, 10); }
|
|
||||||
> .span11 { #fluidGridSystem > .columns(@fluidGridGutterWidth, @fluidGridColumnWidth, 11); }
|
|
||||||
> .span12 { #fluidGridSystem > .columns(@fluidGridGutterWidth, @fluidGridColumnWidth, 12); }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Input grid system
|
|
||||||
// -------------------------
|
|
||||||
#inputGridSystem {
|
|
||||||
.inputColumns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, @columns) {
|
|
||||||
width: ((@gridColumnWidth) * @columns) + (@gridGutterWidth * (@columns - 1)) - 10;
|
|
||||||
}
|
|
||||||
.generate(@gridColumns, @gridColumnWidth, @gridGutterWidth) {
|
|
||||||
input,
|
|
||||||
textarea,
|
|
||||||
.uneditable-input {
|
|
||||||
&.span1 { #inputGridSystem > .inputColumns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 1); }
|
|
||||||
&.span2 { #inputGridSystem > .inputColumns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 2); }
|
|
||||||
&.span3 { #inputGridSystem > .inputColumns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 3); }
|
|
||||||
&.span4 { #inputGridSystem > .inputColumns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 4); }
|
|
||||||
&.span5 { #inputGridSystem > .inputColumns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 5); }
|
|
||||||
&.span6 { #inputGridSystem > .inputColumns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 6); }
|
|
||||||
&.span7 { #inputGridSystem > .inputColumns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 7); }
|
|
||||||
&.span8 { #inputGridSystem > .inputColumns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 8); }
|
|
||||||
&.span9 { #inputGridSystem > .inputColumns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 9); }
|
|
||||||
&.span10 { #inputGridSystem > .inputColumns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 10); }
|
|
||||||
&.span11 { #inputGridSystem > .inputColumns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 11); }
|
|
||||||
&.span12 { #inputGridSystem > .inputColumns(@gridGutterWidth, @gridColumnWidth, @gridRowWidth, 12); }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Make a Grid
|
|
||||||
// -------------------------
|
|
||||||
// Use .makeRow and .makeColumn to assign semantic layouts grid system behavior
|
|
||||||
.makeRow() {
|
|
||||||
margin-left: @gridGutterWidth * -1;
|
|
||||||
.clearfix();
|
|
||||||
}
|
|
||||||
.makeColumn(@columns: 1) {
|
|
||||||
float: left;
|
|
||||||
margin-left: @gridGutterWidth;
|
|
||||||
width: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Form field states (used in forms.less)
|
|
||||||
// --------------------------------------------------
|
|
||||||
|
|
||||||
// Mixin for form field states
|
// Mixin for form field states
|
||||||
.formFieldState(@textColor: #555, @borderColor: #ccc, @backgroundColor: #f5f5f5) {
|
.formFieldState(@textColor: #555, @borderColor: #ccc, @backgroundColor: #f5f5f5) {
|
||||||
@@ -402,6 +270,7 @@
|
|||||||
.box-sizing(@boxmodel) {
|
.box-sizing(@boxmodel) {
|
||||||
-webkit-box-sizing: @boxmodel;
|
-webkit-box-sizing: @boxmodel;
|
||||||
-moz-box-sizing: @boxmodel;
|
-moz-box-sizing: @boxmodel;
|
||||||
|
-ms-box-sizing: @boxmodel;
|
||||||
box-sizing: @boxmodel;
|
box-sizing: @boxmodel;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -433,7 +302,7 @@
|
|||||||
// Opacity
|
// Opacity
|
||||||
.opacity(@opacity: 100) {
|
.opacity(@opacity: 100) {
|
||||||
opacity: @opacity / 100;
|
opacity: @opacity / 100;
|
||||||
filter: e(%("alpha(opacity=%d)", @opacity));
|
filter: ~"alpha(opacity=@{opacity})";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -509,8 +378,8 @@
|
|||||||
background-image: -webkit-radial-gradient(circle, @innerColor, @outerColor);
|
background-image: -webkit-radial-gradient(circle, @innerColor, @outerColor);
|
||||||
background-image: -moz-radial-gradient(circle, @innerColor, @outerColor);
|
background-image: -moz-radial-gradient(circle, @innerColor, @outerColor);
|
||||||
background-image: -ms-radial-gradient(circle, @innerColor, @outerColor);
|
background-image: -ms-radial-gradient(circle, @innerColor, @outerColor);
|
||||||
|
background-image: -o-radial-gradient(circle, @innerColor, @outerColor);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
// Opera cannot do radial gradients yet
|
|
||||||
}
|
}
|
||||||
.striped(@color, @angle: -45deg) {
|
.striped(@color, @angle: -45deg) {
|
||||||
background-color: @color;
|
background-color: @color;
|
||||||
@@ -524,12 +393,34 @@
|
|||||||
}
|
}
|
||||||
// Reset filters for IE
|
// Reset filters for IE
|
||||||
.reset-filter() {
|
.reset-filter() {
|
||||||
filter: e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)"));
|
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Mixin for generating button backgrounds
|
|
||||||
// ---------------------------------------
|
// COMPONENT MIXINS
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// Horizontal dividers
|
||||||
|
// -------------------------
|
||||||
|
// Dividers (basically an hr) within dropdowns and nav lists
|
||||||
|
.nav-divider() {
|
||||||
|
height: 1px;
|
||||||
|
margin: ((@baseLineHeight / 2) - 1) 1px; // 8px 1px
|
||||||
|
overflow: hidden;
|
||||||
|
background-color: #e5e5e5;
|
||||||
|
border-bottom: 1px solid @white;
|
||||||
|
|
||||||
|
// IE7 needs a set width since we gave a height. Restricting just
|
||||||
|
// to IE7 to keep the 1px left/right space in other browsers.
|
||||||
|
// It is unclear where IE is getting the extra space that we need
|
||||||
|
// to negative-margin away, but so it goes.
|
||||||
|
*width: 100%;
|
||||||
|
*margin: -5px 0 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Button backgrounds
|
||||||
|
// ------------------
|
||||||
.buttonBackground(@startColor, @endColor) {
|
.buttonBackground(@startColor, @endColor) {
|
||||||
// gradientBar will set the background to a pleasing blend of these, to support IE<=9
|
// gradientBar will set the background to a pleasing blend of these, to support IE<=9
|
||||||
.gradientBar(@startColor, @endColor);
|
.gradientBar(@startColor, @endColor);
|
||||||
@@ -547,44 +438,177 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Navbar vertical align
|
||||||
|
// -------------------------
|
||||||
|
// Vertically center elements in the navbar.
|
||||||
|
// Example: an element has a height of 30px, so write out `.navbarVerticalAlign(30px);` to calculate the appropriate top margin.
|
||||||
|
.navbarVerticalAlign(@elementHeight) {
|
||||||
|
margin-top: (@navbarHeight - @elementHeight) / 2;
|
||||||
|
}
|
||||||
|
|
||||||
// COMPONENT MIXINS
|
// Popover arrows
|
||||||
// --------------------------------------------------
|
|
||||||
|
|
||||||
// POPOVER ARROWS
|
|
||||||
// -------------------------
|
// -------------------------
|
||||||
// For tipsies and popovers
|
// For tipsies and popovers
|
||||||
#popoverArrow {
|
#popoverArrow {
|
||||||
.top(@arrowWidth: 5px) {
|
.top(@arrowWidth: 5px, @color: @black) {
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
margin-left: -@arrowWidth;
|
margin-left: -@arrowWidth;
|
||||||
border-left: @arrowWidth solid transparent;
|
border-left: @arrowWidth solid transparent;
|
||||||
border-right: @arrowWidth solid transparent;
|
border-right: @arrowWidth solid transparent;
|
||||||
border-top: @arrowWidth solid @black;
|
border-top: @arrowWidth solid @color;
|
||||||
}
|
}
|
||||||
.left(@arrowWidth: 5px) {
|
.left(@arrowWidth: 5px, @color: @black) {
|
||||||
top: 50%;
|
top: 50%;
|
||||||
right: 0;
|
right: 0;
|
||||||
margin-top: -@arrowWidth;
|
margin-top: -@arrowWidth;
|
||||||
border-top: @arrowWidth solid transparent;
|
border-top: @arrowWidth solid transparent;
|
||||||
border-bottom: @arrowWidth solid transparent;
|
border-bottom: @arrowWidth solid transparent;
|
||||||
border-left: @arrowWidth solid @black;
|
border-left: @arrowWidth solid @color;
|
||||||
}
|
}
|
||||||
.bottom(@arrowWidth: 5px) {
|
.bottom(@arrowWidth: 5px, @color: @black) {
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
margin-left: -@arrowWidth;
|
margin-left: -@arrowWidth;
|
||||||
border-left: @arrowWidth solid transparent;
|
border-left: @arrowWidth solid transparent;
|
||||||
border-right: @arrowWidth solid transparent;
|
border-right: @arrowWidth solid transparent;
|
||||||
border-bottom: @arrowWidth solid @black;
|
border-bottom: @arrowWidth solid @color;
|
||||||
}
|
}
|
||||||
.right(@arrowWidth: 5px) {
|
.right(@arrowWidth: 5px, @color: @black) {
|
||||||
top: 50%;
|
top: 50%;
|
||||||
left: 0;
|
left: 0;
|
||||||
margin-top: -@arrowWidth;
|
margin-top: -@arrowWidth;
|
||||||
border-top: @arrowWidth solid transparent;
|
border-top: @arrowWidth solid transparent;
|
||||||
border-bottom: @arrowWidth solid transparent;
|
border-bottom: @arrowWidth solid transparent;
|
||||||
border-right: @arrowWidth solid @black;
|
border-right: @arrowWidth solid @color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Grid System
|
||||||
|
// -----------
|
||||||
|
|
||||||
|
// Centered container element
|
||||||
|
.container-fixed() {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
.clearfix();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Table columns
|
||||||
|
.tableColumns(@columnSpan: 1) {
|
||||||
|
float: none; // undo default grid column styles
|
||||||
|
width: ((@gridColumnWidth) * @columnSpan) + (@gridGutterWidth * (@columnSpan - 1)) - 16; // 16 is total padding on left and right of table cells
|
||||||
|
margin-left: 0; // undo default grid column styles
|
||||||
|
}
|
||||||
|
|
||||||
|
// Make a Grid
|
||||||
|
// Use .makeRow and .makeColumn to assign semantic layouts grid system behavior
|
||||||
|
.makeRow() {
|
||||||
|
margin-left: @gridGutterWidth * -1;
|
||||||
|
.clearfix();
|
||||||
|
}
|
||||||
|
.makeColumn(@columns: 1) {
|
||||||
|
float: left;
|
||||||
|
margin-left: @gridGutterWidth;
|
||||||
|
width: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1));
|
||||||
|
}
|
||||||
|
|
||||||
|
// The Grid
|
||||||
|
#grid {
|
||||||
|
|
||||||
|
.core (@gridColumnWidth, @gridGutterWidth) {
|
||||||
|
|
||||||
|
.spanX (@index) when (@index > 0) {
|
||||||
|
(~".span@{index}") { .span(@index); }
|
||||||
|
.spanX(@index - 1);
|
||||||
|
}
|
||||||
|
.spanX (0) {}
|
||||||
|
|
||||||
|
.offsetX (@index) when (@index > 0) {
|
||||||
|
(~".offset@{index}") { .offset(@index); }
|
||||||
|
.offsetX(@index - 1);
|
||||||
|
}
|
||||||
|
.offsetX (0) {}
|
||||||
|
|
||||||
|
.offset (@columns) {
|
||||||
|
margin-left: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1)) + (@gridGutterWidth * 2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.span (@columns) {
|
||||||
|
width: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1));
|
||||||
|
}
|
||||||
|
|
||||||
|
.row {
|
||||||
|
margin-left: @gridGutterWidth * -1;
|
||||||
|
.clearfix();
|
||||||
|
}
|
||||||
|
|
||||||
|
[class*="span"] {
|
||||||
|
float: left;
|
||||||
|
margin-left: @gridGutterWidth;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set the container width, and override it for fixed navbars in media queries
|
||||||
|
.container,
|
||||||
|
.navbar-fixed-top .container,
|
||||||
|
.navbar-fixed-bottom .container { .span(@gridColumns); }
|
||||||
|
|
||||||
|
// generate .spanX and .offsetX
|
||||||
|
.spanX (@gridColumns);
|
||||||
|
.offsetX (@gridColumns);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.fluid (@fluidGridColumnWidth, @fluidGridGutterWidth) {
|
||||||
|
|
||||||
|
.spanX (@index) when (@index > 0) {
|
||||||
|
(~"> .span@{index}") { .span(@index); }
|
||||||
|
.spanX(@index - 1);
|
||||||
|
}
|
||||||
|
.spanX (0) {}
|
||||||
|
|
||||||
|
.span (@columns) {
|
||||||
|
width: (@fluidGridColumnWidth * @columns) + (@fluidGridGutterWidth * (@columns - 1));
|
||||||
|
}
|
||||||
|
|
||||||
|
.row-fluid {
|
||||||
|
width: 100%;
|
||||||
|
.clearfix();
|
||||||
|
> [class*="span"] {
|
||||||
|
float: left;
|
||||||
|
margin-left: @fluidGridGutterWidth;
|
||||||
|
}
|
||||||
|
> [class*="span"]:first-child {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// generate .spanX
|
||||||
|
.spanX (@gridColumns);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.input(@gridColumnWidth, @gridGutterWidth) {
|
||||||
|
|
||||||
|
.spanX (@index) when (@index > 0) {
|
||||||
|
(~"input.span@{index}, textarea.span@{index}, .uneditable-input.span@{index}") { .span(@index); }
|
||||||
|
.spanX(@index - 1);
|
||||||
|
}
|
||||||
|
.spanX (0) {}
|
||||||
|
|
||||||
|
.span(@columns) {
|
||||||
|
width: ((@gridColumnWidth) * @columns) + (@gridGutterWidth * (@columns - 1)) - 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
input,
|
||||||
|
textarea,
|
||||||
|
.uneditable-input {
|
||||||
|
margin-left: 0; // override margin-left from core grid system
|
||||||
|
}
|
||||||
|
|
||||||
|
// generate .spanX
|
||||||
|
.spanX (@gridColumns);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
@@ -33,7 +33,6 @@
|
|||||||
top: 50%;
|
top: 50%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
z-index: @zindexModal;
|
z-index: @zindexModal;
|
||||||
max-height: 500px;
|
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
width: 560px;
|
width: 560px;
|
||||||
margin: -250px 0 0 -280px;
|
margin: -250px 0 0 -280px;
|
||||||
@@ -59,10 +58,12 @@
|
|||||||
|
|
||||||
// Body (where all modal content resises)
|
// Body (where all modal content resises)
|
||||||
.modal-body {
|
.modal-body {
|
||||||
|
overflow-y: auto;
|
||||||
|
max-height: 400px;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
}
|
}
|
||||||
// Remove bottom margin if need be
|
// Remove bottom margin if need be
|
||||||
.modal-body .modal-form {
|
.modal-form {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -70,14 +71,20 @@
|
|||||||
.modal-footer {
|
.modal-footer {
|
||||||
padding: 14px 15px 15px;
|
padding: 14px 15px 15px;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
text-align: right; // right align buttons
|
||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
border-top: 1px solid #ddd;
|
border-top: 1px solid #ddd;
|
||||||
.border-radius(0 0 6px 6px);
|
.border-radius(0 0 6px 6px);
|
||||||
.box-shadow(inset 0 1px 0 @white);
|
.box-shadow(inset 0 1px 0 @white);
|
||||||
.clearfix();
|
.clearfix(); // clear it in case folks use .pull-* classes on buttons
|
||||||
.btn {
|
|
||||||
float: right;
|
// Properly space out buttons
|
||||||
|
.btn + .btn {
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
|
margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
|
||||||
}
|
}
|
||||||
|
// but override that for button groups
|
||||||
|
.btn-group .btn + .btn {
|
||||||
|
margin-left: -1px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,10 @@
|
|||||||
// -------------
|
// -------------
|
||||||
|
|
||||||
.navbar {
|
.navbar {
|
||||||
|
// Fix for IE7's bad z-indexing so dropdowns don't appear below content that follows the navbar
|
||||||
|
*position: relative;
|
||||||
|
*z-index: 2;
|
||||||
|
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
margin-bottom: @baseLineHeight;
|
margin-bottom: @baseLineHeight;
|
||||||
}
|
}
|
||||||
@@ -20,6 +24,12 @@
|
|||||||
.box-shadow(@shadow);
|
.box-shadow(@shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set width to auto for default container
|
||||||
|
// We then reset it for fixed navbars in the #gridSystem mixin
|
||||||
|
.navbar .container {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
// Navbar button for toggling navbar items in responsive layouts
|
// Navbar button for toggling navbar items in responsive layouts
|
||||||
.btn-navbar {
|
.btn-navbar {
|
||||||
display: none;
|
display: none;
|
||||||
@@ -50,6 +60,7 @@
|
|||||||
|
|
||||||
// Brand, links, text, and buttons
|
// Brand, links, text, and buttons
|
||||||
.navbar {
|
.navbar {
|
||||||
|
color: @navbarText;
|
||||||
// Hover and active states
|
// Hover and active states
|
||||||
.brand:hover {
|
.brand:hover {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
@@ -68,17 +79,12 @@
|
|||||||
// Plain text in topbar
|
// Plain text in topbar
|
||||||
.navbar-text {
|
.navbar-text {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
line-height: 40px;
|
line-height: @navbarHeight;
|
||||||
color: @navbarText;
|
|
||||||
a:hover {
|
|
||||||
color: @white;
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// Buttons in navbar
|
// Buttons in navbar
|
||||||
.btn,
|
.btn,
|
||||||
.btn-group {
|
.btn-group {
|
||||||
margin-top: 5px; // make buttons vertically centered in navbar
|
.navbarVerticalAlign(30px); // Vertically center in navbar
|
||||||
}
|
}
|
||||||
.btn-group .btn {
|
.btn-group .btn {
|
||||||
margin-top: 0; // then undo the margin here so we don't accidentally double it
|
margin-top: 0; // then undo the margin here so we don't accidentally double it
|
||||||
@@ -90,14 +96,15 @@
|
|||||||
margin-bottom: 0; // remove default bottom margin
|
margin-bottom: 0; // remove default bottom margin
|
||||||
.clearfix();
|
.clearfix();
|
||||||
input,
|
input,
|
||||||
select {
|
select,
|
||||||
display: inline-block;
|
|
||||||
margin-top: 5px;
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
.radio,
|
.radio,
|
||||||
.checkbox {
|
.checkbox {
|
||||||
margin-top: 5px;
|
.navbarVerticalAlign(30px); // Vertically center in navbar
|
||||||
|
}
|
||||||
|
input,
|
||||||
|
select {
|
||||||
|
display: inline-block;
|
||||||
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
input[type="image"],
|
input[type="image"],
|
||||||
input[type="checkbox"],
|
input[type="checkbox"],
|
||||||
@@ -118,36 +125,33 @@
|
|||||||
.navbar-search {
|
.navbar-search {
|
||||||
position: relative;
|
position: relative;
|
||||||
float: left;
|
float: left;
|
||||||
margin-top: 6px;
|
.navbarVerticalAlign(28px); // Vertically center in navbar
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
.search-query {
|
.search-query {
|
||||||
padding: 4px 9px;
|
padding: 4px 9px;
|
||||||
#font > .sans-serif(13px, normal, 1);
|
#font > .sans-serif(13px, normal, 1);
|
||||||
color: @white;
|
color: @white;
|
||||||
color: rgba(255,255,255,.75);
|
background-color: @navbarSearchBackground;
|
||||||
background: #666;
|
border: 1px solid @navbarSearchBorder;
|
||||||
background: rgba(255,255,255,.3);
|
|
||||||
border: 1px solid #111;
|
|
||||||
@shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0px rgba(255,255,255,.15);
|
@shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0px rgba(255,255,255,.15);
|
||||||
.box-shadow(@shadow);
|
.box-shadow(@shadow);
|
||||||
.transition(none);
|
.transition(none);
|
||||||
|
|
||||||
// Placeholder text gets special styles; can't be bundled together though for some reason
|
// Placeholder text gets special styles; can't be a grouped selector
|
||||||
.placeholder(@grayLighter);
|
&:-moz-placeholder {
|
||||||
|
color: @navbarSearchPlaceholderColor;
|
||||||
// Hover states
|
|
||||||
&:hover {
|
|
||||||
color: @white;
|
|
||||||
background-color: @grayLight;
|
|
||||||
background-color: rgba(255,255,255,.5);
|
|
||||||
}
|
}
|
||||||
|
&::-webkit-input-placeholder {
|
||||||
|
color: @navbarSearchPlaceholderColor;
|
||||||
|
}
|
||||||
|
|
||||||
// Focus states (we use .focused since IE7-8 and down doesn't support :focus)
|
// Focus states (we use .focused since IE7-8 and down doesn't support :focus)
|
||||||
&:focus,
|
&:focus,
|
||||||
&.focused {
|
&.focused {
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
color: @grayDark;
|
color: @grayDark;
|
||||||
text-shadow: 0 1px 0 @white;
|
text-shadow: 0 1px 0 @white;
|
||||||
background-color: @white;
|
background-color: @navbarSearchBackgroundFocus;
|
||||||
border: 0;
|
border: 0;
|
||||||
.box-shadow(0 0 3px rgba(0,0,0,.15));
|
.box-shadow(0 0 3px rgba(0,0,0,.15));
|
||||||
outline: 0;
|
outline: 0;
|
||||||
@@ -156,22 +160,42 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// FIXED NAVBAR
|
// FIXED NAVBAR
|
||||||
// ------------
|
// ------------
|
||||||
|
|
||||||
.navbar-fixed-top {
|
// Shared (top/bottom) styles
|
||||||
|
.navbar-fixed-top,
|
||||||
|
.navbar-fixed-bottom {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
|
||||||
right: 0;
|
right: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
z-index: @zindexFixedNavbar;
|
z-index: @zindexFixedNavbar;
|
||||||
|
margin-bottom: 0; // remove 18px margin for static navbar
|
||||||
}
|
}
|
||||||
.navbar-fixed-top .navbar-inner {
|
.navbar-fixed-top .navbar-inner,
|
||||||
|
.navbar-fixed-bottom .navbar-inner {
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
.border-radius(0);
|
.border-radius(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.navbar-fixed-top .container,
|
||||||
|
.navbar-fixed-bottom .container {
|
||||||
|
#grid > .core > .span(@gridColumns);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Fixed to top
|
||||||
|
.navbar-fixed-top {
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Fixed to bottom
|
||||||
|
.navbar-fixed-bottom {
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// NAVIGATION
|
// NAVIGATION
|
||||||
// ----------
|
// ----------
|
||||||
@@ -210,9 +234,9 @@
|
|||||||
// Active nav items
|
// Active nav items
|
||||||
.navbar .nav .active > a,
|
.navbar .nav .active > a,
|
||||||
.navbar .nav .active > a:hover {
|
.navbar .nav .active > a:hover {
|
||||||
color: @navbarLinkColorHover;
|
color: @navbarLinkColorActive;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
background-color: @navbarBackground;
|
background-color: @navbarLinkBackgroundActive;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dividers (basically a vertical hr)
|
// Dividers (basically a vertical hr)
|
||||||
@@ -246,7 +270,7 @@
|
|||||||
border-left: 7px solid transparent;
|
border-left: 7px solid transparent;
|
||||||
border-right: 7px solid transparent;
|
border-right: 7px solid transparent;
|
||||||
border-bottom: 7px solid #ccc;
|
border-bottom: 7px solid #ccc;
|
||||||
border-bottom-color: rgba(0,0,0,.2);
|
border-bottom-color: @dropdownBorder;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -7px;
|
top: -7px;
|
||||||
left: 9px;
|
left: 9px;
|
||||||
@@ -256,17 +280,33 @@
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
border-left: 6px solid transparent;
|
border-left: 6px solid transparent;
|
||||||
border-right: 6px solid transparent;
|
border-right: 6px solid transparent;
|
||||||
border-bottom: 6px solid @white;
|
border-bottom: 6px solid @dropdownBackground;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -6px;
|
top: -6px;
|
||||||
left: 10px;
|
left: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Menu position and menu caret support for dropups via extra dropup class
|
||||||
|
.navbar-fixed-bottom .dropdown-menu {
|
||||||
|
&:before {
|
||||||
|
border-top: 7px solid #ccc;
|
||||||
|
border-top-color: @dropdownBorder;
|
||||||
|
border-bottom: 0;
|
||||||
|
bottom: -7px;
|
||||||
|
top: auto;
|
||||||
|
}
|
||||||
|
&:after {
|
||||||
|
border-top: 6px solid @dropdownBackground;
|
||||||
|
border-bottom: 0;
|
||||||
|
bottom: -6px;
|
||||||
|
top: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
// Dropdown toggle caret
|
// Dropdown toggle caret
|
||||||
.navbar .nav .dropdown-toggle .caret,
|
.navbar .nav .dropdown-toggle .caret,
|
||||||
.navbar .nav .open.dropdown .caret {
|
.navbar .nav .open.dropdown .caret {
|
||||||
border-top-color: @white;
|
border-top-color: @white;
|
||||||
|
border-bottom-color: @white;
|
||||||
}
|
}
|
||||||
.navbar .nav .active .caret {
|
.navbar .nav .active .caret {
|
||||||
.opacity(100);
|
.opacity(100);
|
||||||
@@ -285,7 +325,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Right aligned menus need alt position
|
// Right aligned menus need alt position
|
||||||
.navbar .nav.pull-right .dropdown-menu {
|
// TODO: rejigger this at some point to simplify the selectors
|
||||||
|
.navbar .nav.pull-right .dropdown-menu,
|
||||||
|
.navbar .nav .dropdown-menu.pull-right {
|
||||||
left: auto;
|
left: auto;
|
||||||
right: 0;
|
right: 0;
|
||||||
&:before {
|
&:before {
|
||||||
|
|||||||
@@ -42,8 +42,8 @@
|
|||||||
// --------
|
// --------
|
||||||
|
|
||||||
.nav-list {
|
.nav-list {
|
||||||
padding-left: 14px;
|
padding-left: 15px;
|
||||||
padding-right: 14px;
|
padding-right: 15px;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
.nav-list > li > a,
|
.nav-list > li > a,
|
||||||
@@ -55,8 +55,8 @@
|
|||||||
.nav-list > li > a {
|
.nav-list > li > a {
|
||||||
padding: 3px 15px;
|
padding: 3px 15px;
|
||||||
}
|
}
|
||||||
.nav-list .active > a,
|
.nav-list > .active > a,
|
||||||
.nav-list .active > a:hover {
|
.nav-list > .active > a:hover {
|
||||||
color: @white;
|
color: @white;
|
||||||
text-shadow: 0 -1px 0 rgba(0,0,0,.2);
|
text-shadow: 0 -1px 0 rgba(0,0,0,.2);
|
||||||
background-color: @linkColor;
|
background-color: @linkColor;
|
||||||
@@ -64,6 +64,10 @@
|
|||||||
.nav-list [class^="icon-"] {
|
.nav-list [class^="icon-"] {
|
||||||
margin-right: 2px;
|
margin-right: 2px;
|
||||||
}
|
}
|
||||||
|
// Dividers (basically an hr) within the dropdown
|
||||||
|
.nav-list .divider {
|
||||||
|
.nav-divider();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -102,8 +106,9 @@
|
|||||||
|
|
||||||
// Actual tabs (as links)
|
// Actual tabs (as links)
|
||||||
.nav-tabs > li > a {
|
.nav-tabs > li > a {
|
||||||
padding-top: 9px;
|
padding-top: 8px;
|
||||||
padding-bottom: 9px;
|
padding-bottom: 8px;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
.border-radius(4px 4px 0 0);
|
.border-radius(4px 4px 0 0);
|
||||||
&:hover {
|
&:hover {
|
||||||
@@ -133,8 +138,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Active state
|
// Active state
|
||||||
.nav-pills .active > a,
|
.nav-pills > .active > a,
|
||||||
.nav-pills .active > a:hover {
|
.nav-pills > .active > a:hover {
|
||||||
color: @white;
|
color: @white;
|
||||||
background-color: @linkColor;
|
background-color: @linkColor;
|
||||||
}
|
}
|
||||||
@@ -200,11 +205,13 @@
|
|||||||
.nav-tabs .dropdown-toggle .caret,
|
.nav-tabs .dropdown-toggle .caret,
|
||||||
.nav-pills .dropdown-toggle .caret {
|
.nav-pills .dropdown-toggle .caret {
|
||||||
border-top-color: @linkColor;
|
border-top-color: @linkColor;
|
||||||
|
border-bottom-color: @linkColor;
|
||||||
margin-top: 6px;
|
margin-top: 6px;
|
||||||
}
|
}
|
||||||
.nav-tabs .dropdown-toggle:hover .caret,
|
.nav-tabs .dropdown-toggle:hover .caret,
|
||||||
.nav-pills .dropdown-toggle:hover .caret {
|
.nav-pills .dropdown-toggle:hover .caret {
|
||||||
border-top-color: @linkColorHover;
|
border-top-color: @linkColorHover;
|
||||||
|
border-bottom-color: @linkColorHover;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Active dropdown links
|
// Active dropdown links
|
||||||
@@ -212,6 +219,7 @@
|
|||||||
.nav-tabs .active .dropdown-toggle .caret,
|
.nav-tabs .active .dropdown-toggle .caret,
|
||||||
.nav-pills .active .dropdown-toggle .caret {
|
.nav-pills .active .dropdown-toggle .caret {
|
||||||
border-top-color: @grayDark;
|
border-top-color: @grayDark;
|
||||||
|
border-bottom-color: @grayDark;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Active:hover dropdown links
|
// Active:hover dropdown links
|
||||||
@@ -234,6 +242,7 @@
|
|||||||
.nav .open.active .caret,
|
.nav .open.active .caret,
|
||||||
.nav .open a:hover .caret {
|
.nav .open a:hover .caret {
|
||||||
border-top-color: @white;
|
border-top-color: @white;
|
||||||
|
border-bottom-color: @white;
|
||||||
.opacity(100);
|
.opacity(100);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -256,7 +265,8 @@
|
|||||||
.clearfix();
|
.clearfix();
|
||||||
}
|
}
|
||||||
.tab-content {
|
.tab-content {
|
||||||
overflow: hidden; // prevent content from running below tabs
|
display: table; // prevent content from running below tabs
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove border on bottom, left, right
|
// Remove border on bottom, left, right
|
||||||
|
|||||||
@@ -28,3 +28,9 @@
|
|||||||
.pager .previous a {
|
.pager .previous a {
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
.pager .disabled a,
|
||||||
|
.pager .disabled a:hover {
|
||||||
|
color: @grayLight;
|
||||||
|
background-color: #fff;
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
@@ -32,6 +32,7 @@
|
|||||||
color: @grayLight;
|
color: @grayLight;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
.pagination .disabled span,
|
||||||
.pagination .disabled a,
|
.pagination .disabled a,
|
||||||
.pagination .disabled a:hover {
|
.pagination .disabled a:hover {
|
||||||
color: @grayLight;
|
color: @grayLight;
|
||||||
|
|||||||
@@ -17,6 +17,12 @@
|
|||||||
to { background-position: 40px 0; }
|
to { background-position: 40px 0; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// IE9
|
||||||
|
@-ms-keyframes progress-bar-stripes {
|
||||||
|
from { background-position: 0 0; }
|
||||||
|
to { background-position: 40px 0; }
|
||||||
|
}
|
||||||
|
|
||||||
// Spec
|
// Spec
|
||||||
@keyframes progress-bar-stripes {
|
@keyframes progress-bar-stripes {
|
||||||
from { background-position: 0 0; }
|
from { background-position: 0 0; }
|
||||||
@@ -54,7 +60,7 @@
|
|||||||
|
|
||||||
// Striped bars
|
// Striped bars
|
||||||
.progress-striped .bar {
|
.progress-striped .bar {
|
||||||
#gradient > .striped(#62c462);
|
#gradient > .striped(#149bdf);
|
||||||
.background-size(40px 40px);
|
.background-size(40px 40px);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -93,3 +99,11 @@
|
|||||||
.progress-info.progress-striped .bar {
|
.progress-info.progress-striped .bar {
|
||||||
#gradient > .striped(#5bc0de);
|
#gradient > .striped(#5bc0de);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Warning (orange)
|
||||||
|
.progress-warning .bar {
|
||||||
|
#gradient > .vertical(lighten(@orange, 15%), @orange);
|
||||||
|
}
|
||||||
|
.progress-warning.progress-striped .bar {
|
||||||
|
#gradient > .striped(lighten(@orange, 15%));
|
||||||
|
}
|
||||||
|
|||||||
@@ -75,10 +75,10 @@ sub {
|
|||||||
// -------------------------
|
// -------------------------
|
||||||
|
|
||||||
img {
|
img {
|
||||||
max-width: 100%;
|
|
||||||
height: auto;
|
height: auto;
|
||||||
border: 0;
|
border: 0;
|
||||||
-ms-interpolation-mode: bicubic;
|
-ms-interpolation-mode: bicubic;
|
||||||
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Forms
|
// Forms
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*!
|
/*!
|
||||||
* Bootstrap Responsive v2.0.1
|
* Bootstrap Responsive v2.0.2
|
||||||
*
|
*
|
||||||
* Copyright 2012 Twitter, Inc
|
* Copyright 2012 Twitter, Inc
|
||||||
* Licensed under the Apache License v2.0
|
* Licensed under the Apache License v2.0
|
||||||
@@ -31,6 +31,37 @@
|
|||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Visibility utilities
|
||||||
|
|
||||||
|
// For desktops
|
||||||
|
.visible-phone { display: none; }
|
||||||
|
.visible-tablet { display: none; }
|
||||||
|
.visible-desktop { display: block; }
|
||||||
|
.hidden-phone { display: block; }
|
||||||
|
.hidden-tablet { display: block; }
|
||||||
|
.hidden-desktop { display: none; }
|
||||||
|
|
||||||
|
// Phones only
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
// Show
|
||||||
|
.visible-phone { display: block; }
|
||||||
|
// Hide
|
||||||
|
.hidden-phone { display: none; }
|
||||||
|
// Hide everything else
|
||||||
|
.hidden-desktop { display: block; }
|
||||||
|
.visible-desktop { display: none; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// Tablets & small desktops only
|
||||||
|
@media (min-width: 768px) and (max-width: 979px) {
|
||||||
|
// Show
|
||||||
|
.visible-tablet { display: block; }
|
||||||
|
// Hide
|
||||||
|
.hidden-tablet { display: none; }
|
||||||
|
// Hide everything else
|
||||||
|
.hidden-desktop { display: block; }
|
||||||
|
.visible-desktop { display: none; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// UP TO LANDSCAPE PHONE
|
// UP TO LANDSCAPE PHONE
|
||||||
@@ -49,26 +80,6 @@
|
|||||||
line-height: @baseLineHeight;
|
line-height: @baseLineHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make span* classes full width
|
|
||||||
input[class*="span"],
|
|
||||||
select[class*="span"],
|
|
||||||
textarea[class*="span"],
|
|
||||||
.uneditable-input {
|
|
||||||
display: block;
|
|
||||||
width: 100%;
|
|
||||||
min-height: 28px; /* Make inputs at least the height of their button counterpart */
|
|
||||||
/* Makes inputs behave like true block-level elements */
|
|
||||||
-webkit-box-sizing: border-box; /* Older Webkit */
|
|
||||||
-moz-box-sizing: border-box; /* Older FF */
|
|
||||||
-ms-box-sizing: border-box; /* IE8 */
|
|
||||||
box-sizing: border-box; /* CSS3 spec*/
|
|
||||||
}
|
|
||||||
// But don't let it screw up prepend/append inputs
|
|
||||||
.input-prepend input[class*="span"],
|
|
||||||
.input-append input[class*="span"] {
|
|
||||||
width: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update checkboxes for iOS
|
// Update checkboxes for iOS
|
||||||
input[type="checkbox"],
|
input[type="checkbox"],
|
||||||
input[type="radio"] {
|
input[type="radio"] {
|
||||||
@@ -124,12 +135,22 @@
|
|||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
|
|
||||||
|
// Padding to set content in a bit
|
||||||
|
body {
|
||||||
|
padding-left: 20px;
|
||||||
|
padding-right: 20px;
|
||||||
|
}
|
||||||
|
.navbar-fixed-top {
|
||||||
|
margin-left: -20px;
|
||||||
|
margin-right: -20px;
|
||||||
|
}
|
||||||
|
|
||||||
// GRID & CONTAINERS
|
// GRID & CONTAINERS
|
||||||
// -----------------
|
// -----------------
|
||||||
// Remove width from containers
|
// Remove width from containers
|
||||||
.container {
|
.container {
|
||||||
width: auto;
|
width: auto;
|
||||||
padding: 0 20px;
|
|
||||||
}
|
}
|
||||||
// Fluid rows
|
// Fluid rows
|
||||||
.row-fluid {
|
.row-fluid {
|
||||||
@@ -147,6 +168,28 @@
|
|||||||
width: auto;
|
width: auto;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// THUMBNAILS
|
||||||
|
// ----------
|
||||||
|
.thumbnails [class*="span"] {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
// FORM FIELDS
|
||||||
|
// -----------
|
||||||
|
// Make span* classes full width
|
||||||
|
input[class*="span"],
|
||||||
|
select[class*="span"],
|
||||||
|
textarea[class*="span"],
|
||||||
|
.uneditable-input {
|
||||||
|
.input-block-level();
|
||||||
|
}
|
||||||
|
// But don't let it screw up prepend/append inputs
|
||||||
|
.input-prepend input[class*="span"],
|
||||||
|
.input-append input[class*="span"] {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -157,13 +200,13 @@
|
|||||||
@media (min-width: 768px) and (max-width: 979px) {
|
@media (min-width: 768px) and (max-width: 979px) {
|
||||||
|
|
||||||
// Fixed grid
|
// Fixed grid
|
||||||
#gridSystem > .generate(12, 42px, 20px);
|
#grid > .core(42px, 20px);
|
||||||
|
|
||||||
// Fluid grid
|
// Fluid grid
|
||||||
#fluidGridSystem > .generate(12, 5.801104972%, 2.762430939%);
|
#grid > .fluid(5.801104972%, 2.762430939%);
|
||||||
|
|
||||||
// Input grid
|
// Input grid
|
||||||
#inputGridSystem > .generate(12, 42px, 20px);
|
#grid > .input(42px, 20px);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -297,6 +340,7 @@
|
|||||||
@media (min-width: 980px) {
|
@media (min-width: 980px) {
|
||||||
.nav-collapse.collapse {
|
.nav-collapse.collapse {
|
||||||
height: auto !important;
|
height: auto !important;
|
||||||
|
overflow: visible !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -308,13 +352,13 @@
|
|||||||
@media (min-width: 1200px) {
|
@media (min-width: 1200px) {
|
||||||
|
|
||||||
// Fixed grid
|
// Fixed grid
|
||||||
#gridSystem > .generate(12, 70px, 30px);
|
#grid > .core(70px, 30px);
|
||||||
|
|
||||||
// Fluid grid
|
// Fluid grid
|
||||||
#fluidGridSystem > .generate(12, 5.982905983%, 2.564102564%);
|
#grid > .fluid(5.982905983%, 2.564102564%);
|
||||||
|
|
||||||
// Input grid
|
// Input grid
|
||||||
#inputGridSystem > .generate(12, 70px, 30px);
|
#grid > .input(70px, 30px);
|
||||||
|
|
||||||
// Thumbnails
|
// Thumbnails
|
||||||
.thumbnails {
|
.thumbnails {
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
// -------------------------------------------------------------------------------------------
|
// -------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
// STRUCTURAL LAYOUT
|
// Body reset
|
||||||
// -----------------
|
// ----------
|
||||||
|
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@@ -12,11 +12,11 @@ body {
|
|||||||
font-size: @baseFontSize;
|
font-size: @baseFontSize;
|
||||||
line-height: @baseLineHeight;
|
line-height: @baseLineHeight;
|
||||||
color: @textColor;
|
color: @textColor;
|
||||||
background-color: @white;
|
background-color: @bodyBackground;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// LINKS
|
// Links
|
||||||
// -----
|
// -----
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
// and background-position. Your resulting HTML will look like
|
// and background-position. Your resulting HTML will look like
|
||||||
// <i class="icon-inbox"></i>.
|
// <i class="icon-inbox"></i>.
|
||||||
|
|
||||||
// For the white version of the icons, just add the .icon-white class:
|
// For the white version of the icons, just add the .icon-white class:
|
||||||
// <i class="icon-inbox icon-white"></i>
|
// <i class="icon-inbox icon-white"></i>
|
||||||
|
|
||||||
[class^="icon-"],
|
[class^="icon-"],
|
||||||
@@ -21,14 +21,14 @@
|
|||||||
height: 14px;
|
height: 14px;
|
||||||
line-height: 14px;
|
line-height: 14px;
|
||||||
vertical-align: text-top;
|
vertical-align: text-top;
|
||||||
background-image: url(@iconSpritePath);
|
background-image: url("@{iconSpritePath}");
|
||||||
background-position: 14px 14px;
|
background-position: 14px 14px;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
|
|
||||||
.ie7-restore-right-whitespace();
|
.ie7-restore-right-whitespace();
|
||||||
}
|
}
|
||||||
.icon-white {
|
.icon-white {
|
||||||
background-image: url(@iconWhiteSpritePath);
|
background-image: url("@{iconWhiteSpritePath}");
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-glass { background-position: 0 0; }
|
.icon-glass { background-position: 0 0; }
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ table {
|
|||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
border-spacing: 0;
|
border-spacing: 0;
|
||||||
|
background-color: @tableBackground;
|
||||||
}
|
}
|
||||||
|
|
||||||
// BASELINE STYLES
|
// BASELINE STYLES
|
||||||
@@ -26,7 +27,7 @@ table {
|
|||||||
line-height: @baseLineHeight;
|
line-height: @baseLineHeight;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
border-top: 1px solid #ddd;
|
border-top: 1px solid @tableBorder;
|
||||||
}
|
}
|
||||||
th {
|
th {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
@@ -36,13 +37,15 @@ table {
|
|||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
}
|
}
|
||||||
// Remove top border from thead by default
|
// Remove top border from thead by default
|
||||||
thead:first-child tr th,
|
colgroup + thead tr:first-child th,
|
||||||
thead:first-child tr td {
|
colgroup + thead tr:first-child td,
|
||||||
|
thead:first-child tr:first-child th,
|
||||||
|
thead:first-child tr:first-child td {
|
||||||
border-top: 0;
|
border-top: 0;
|
||||||
}
|
}
|
||||||
// Account for multiple tbody instances
|
// Account for multiple tbody instances
|
||||||
tbody + tbody {
|
tbody + tbody {
|
||||||
border-top: 2px solid #ddd;
|
border-top: 2px solid @tableBorder;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -63,15 +66,14 @@ table {
|
|||||||
// ----------------
|
// ----------------
|
||||||
|
|
||||||
.table-bordered {
|
.table-bordered {
|
||||||
border: 1px solid #ddd;
|
border: 1px solid @tableBorder;
|
||||||
|
border-left: 0;
|
||||||
border-collapse: separate; // Done so we can round those corners!
|
border-collapse: separate; // Done so we can round those corners!
|
||||||
*border-collapse: collapsed; // IE7 can't round corners anyway
|
*border-collapse: collapsed; // IE7 can't round corners anyway
|
||||||
.border-radius(4px);
|
.border-radius(4px);
|
||||||
th + th,
|
th,
|
||||||
td + td,
|
td {
|
||||||
th + td,
|
border-left: 1px solid @tableBorder;
|
||||||
td + th {
|
|
||||||
border-left: 1px solid #ddd;
|
|
||||||
}
|
}
|
||||||
// Prevent a double border
|
// Prevent a double border
|
||||||
thead:first-child tr:first-child th,
|
thead:first-child tr:first-child th,
|
||||||
@@ -108,7 +110,7 @@ table {
|
|||||||
tbody {
|
tbody {
|
||||||
tr:nth-child(odd) td,
|
tr:nth-child(odd) td,
|
||||||
tr:nth-child(odd) th {
|
tr:nth-child(odd) th {
|
||||||
background-color: #f9f9f9;
|
background-color: @tableBackgroundAccent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -120,7 +122,7 @@ table {
|
|||||||
.table {
|
.table {
|
||||||
tbody tr:hover td,
|
tbody tr:hover td,
|
||||||
tbody tr:hover th {
|
tbody tr:hover th {
|
||||||
background-color: #f5f5f5;
|
background-color: @tableBackgroundHover;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -129,11 +131,6 @@ table {
|
|||||||
// -----------------
|
// -----------------
|
||||||
|
|
||||||
// Change the columns
|
// Change the columns
|
||||||
.tableColumns(@columnSpan: 1) {
|
|
||||||
float: none;
|
|
||||||
width: ((@gridColumnWidth) * @columnSpan) + (@gridGutterWidth * (@columnSpan - 1)) - 16;
|
|
||||||
margin-left: 0;
|
|
||||||
}
|
|
||||||
table {
|
table {
|
||||||
.span1 { .tableColumns(1); }
|
.span1 { .tableColumns(1); }
|
||||||
.span2 { .tableColumns(2); }
|
.span2 { .tableColumns(2); }
|
||||||
@@ -147,4 +144,16 @@ table {
|
|||||||
.span10 { .tableColumns(10); }
|
.span10 { .tableColumns(10); }
|
||||||
.span11 { .tableColumns(11); }
|
.span11 { .tableColumns(11); }
|
||||||
.span12 { .tableColumns(12); }
|
.span12 { .tableColumns(12); }
|
||||||
|
.span13 { .tableColumns(13); }
|
||||||
|
.span14 { .tableColumns(14); }
|
||||||
|
.span15 { .tableColumns(15); }
|
||||||
|
.span16 { .tableColumns(16); }
|
||||||
|
.span17 { .tableColumns(17); }
|
||||||
|
.span18 { .tableColumns(18); }
|
||||||
|
.span19 { .tableColumns(19); }
|
||||||
|
.span20 { .tableColumns(20); }
|
||||||
|
.span21 { .tableColumns(21); }
|
||||||
|
.span22 { .tableColumns(22); }
|
||||||
|
.span23 { .tableColumns(23); }
|
||||||
|
.span24 { .tableColumns(24); }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,8 +28,9 @@ p {
|
|||||||
|
|
||||||
h1, h2, h3, h4, h5, h6 {
|
h1, h2, h3, h4, h5, h6 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-weight: bold;
|
font-family: @headingsFontFamily;
|
||||||
color: @grayDark;
|
font-weight: @headingsFontWeight;
|
||||||
|
color: @headingsColor;
|
||||||
text-rendering: optimizelegibility; // Fix the character spacing for headings
|
text-rendering: optimizelegibility; // Fix the character spacing for headings
|
||||||
small {
|
small {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
@@ -126,10 +127,23 @@ dd {
|
|||||||
}
|
}
|
||||||
dt {
|
dt {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
line-height: @baseLineHeight - 1; // fix jank Helvetica Neue font bug
|
||||||
}
|
}
|
||||||
dd {
|
dd {
|
||||||
margin-left: @baseLineHeight / 2;
|
margin-left: @baseLineHeight / 2;
|
||||||
}
|
}
|
||||||
|
// Horizontal layout (like forms)
|
||||||
|
.dl-horizontal {
|
||||||
|
dt {
|
||||||
|
float: left;
|
||||||
|
clear: left;
|
||||||
|
width: 120px;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
dd {
|
||||||
|
margin-left: 130px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// MISC
|
// MISC
|
||||||
// ----
|
// ----
|
||||||
@@ -154,12 +168,14 @@ em {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Abbreviations and acronyms
|
// Abbreviations and acronyms
|
||||||
abbr {
|
abbr[title] {
|
||||||
font-size: 90%;
|
|
||||||
text-transform: uppercase;
|
|
||||||
border-bottom: 1px dotted #ddd;
|
border-bottom: 1px dotted #ddd;
|
||||||
cursor: help;
|
cursor: help;
|
||||||
}
|
}
|
||||||
|
abbr.initialism {
|
||||||
|
font-size: 90%;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
// Blockquotes
|
// Blockquotes
|
||||||
blockquote {
|
blockquote {
|
||||||
@@ -196,7 +212,7 @@ blockquote {
|
|||||||
// Quotes
|
// Quotes
|
||||||
q:before,
|
q:before,
|
||||||
q:after,
|
q:after,
|
||||||
blockquote:before,
|
blockquote:before,
|
||||||
blockquote:after {
|
blockquote:after {
|
||||||
content: "";
|
content: "";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,11 +7,9 @@
|
|||||||
// GLOBAL VALUES
|
// GLOBAL VALUES
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
// Links
|
|
||||||
@linkColor: #08c;
|
|
||||||
@linkColorHover: darken(@linkColor, 15%);
|
|
||||||
|
|
||||||
// Grays
|
// Grays
|
||||||
|
// -------------------------
|
||||||
@black: #000;
|
@black: #000;
|
||||||
@grayDarker: #222;
|
@grayDarker: #222;
|
||||||
@grayDark: #333;
|
@grayDark: #333;
|
||||||
@@ -20,7 +18,9 @@
|
|||||||
@grayLighter: #eee;
|
@grayLighter: #eee;
|
||||||
@white: #fff;
|
@white: #fff;
|
||||||
|
|
||||||
|
|
||||||
// Accent colors
|
// Accent colors
|
||||||
|
// -------------------------
|
||||||
@blue: #049cdb;
|
@blue: #049cdb;
|
||||||
@blueDark: #0064cd;
|
@blueDark: #0064cd;
|
||||||
@green: #46a546;
|
@green: #46a546;
|
||||||
@@ -30,14 +30,79 @@
|
|||||||
@pink: #c3325f;
|
@pink: #c3325f;
|
||||||
@purple: #7a43b6;
|
@purple: #7a43b6;
|
||||||
|
|
||||||
|
|
||||||
|
// Scaffolding
|
||||||
|
// -------------------------
|
||||||
|
@bodyBackground: @white;
|
||||||
|
@textColor: @grayDark;
|
||||||
|
|
||||||
|
|
||||||
|
// Links
|
||||||
|
// -------------------------
|
||||||
|
@linkColor: #08c;
|
||||||
|
@linkColorHover: darken(@linkColor, 15%);
|
||||||
|
|
||||||
|
|
||||||
// Typography
|
// Typography
|
||||||
|
// -------------------------
|
||||||
@baseFontSize: 13px;
|
@baseFontSize: 13px;
|
||||||
@baseFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
@baseFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
@baseLineHeight: 18px;
|
@baseLineHeight: 18px;
|
||||||
@textColor: @grayDark;
|
@altFontFamily: Georgia, "Times New Roman", Times, serif;
|
||||||
|
|
||||||
|
@headingsFontFamily: inherit; // empty to use BS default, @baseFontFamily
|
||||||
|
@headingsFontWeight: bold; // instead of browser default, bold
|
||||||
|
@headingsColor: inherit; // empty to use BS default, @textColor
|
||||||
|
|
||||||
|
|
||||||
|
// Tables
|
||||||
|
// -------------------------
|
||||||
|
@tableBackground: transparent; // overall background-color
|
||||||
|
@tableBackgroundAccent: #f9f9f9; // for striping
|
||||||
|
@tableBackgroundHover: #f5f5f5; // for hover
|
||||||
|
@tableBorder: #ddd; // table and cell border
|
||||||
|
|
||||||
|
|
||||||
// Buttons
|
// Buttons
|
||||||
@primaryButtonBackground: @linkColor;
|
// -------------------------
|
||||||
|
@btnBackground: @white;
|
||||||
|
@btnBackgroundHighlight: darken(@white, 10%);
|
||||||
|
@btnBorder: darken(@white, 20%);
|
||||||
|
|
||||||
|
@btnPrimaryBackground: @linkColor;
|
||||||
|
@btnPrimaryBackgroundHighlight: spin(@btnPrimaryBackground, 15%);
|
||||||
|
|
||||||
|
@btnInfoBackground: #5bc0de;
|
||||||
|
@btnInfoBackgroundHighlight: #2f96b4;
|
||||||
|
|
||||||
|
@btnSuccessBackground: #62c462;
|
||||||
|
@btnSuccessBackgroundHighlight: #51a351;
|
||||||
|
|
||||||
|
@btnWarningBackground: lighten(@orange, 15%);
|
||||||
|
@btnWarningBackgroundHighlight: @orange;
|
||||||
|
|
||||||
|
@btnDangerBackground: #ee5f5b;
|
||||||
|
@btnDangerBackgroundHighlight: #bd362f;
|
||||||
|
|
||||||
|
@btnInverseBackground: @gray;
|
||||||
|
@btnInverseBackgroundHighlight: @grayDarker;
|
||||||
|
|
||||||
|
|
||||||
|
// Forms
|
||||||
|
// -------------------------
|
||||||
|
@inputBackground: @white;
|
||||||
|
@inputBorder: #ccc;
|
||||||
|
@inputDisabledBackground: @grayLighter;
|
||||||
|
|
||||||
|
|
||||||
|
// Dropdowns
|
||||||
|
// -------------------------
|
||||||
|
@dropdownBackground: @white;
|
||||||
|
@dropdownBorder: rgba(0,0,0,.2);
|
||||||
|
@dropdownLinkColor: @grayDark;
|
||||||
|
@dropdownLinkColorHover: @white;
|
||||||
|
@dropdownLinkBackgroundHover: @linkColor;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -45,6 +110,7 @@
|
|||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
// Z-index master list
|
// Z-index master list
|
||||||
|
// -------------------------
|
||||||
// Used for a bird's eye view of components dependent on the z-axis
|
// Used for a bird's eye view of components dependent on the z-axis
|
||||||
// Try to avoid customizing these :)
|
// Try to avoid customizing these :)
|
||||||
@zindexDropdown: 1000;
|
@zindexDropdown: 1000;
|
||||||
@@ -54,27 +120,51 @@
|
|||||||
@zindexModalBackdrop: 1040;
|
@zindexModalBackdrop: 1040;
|
||||||
@zindexModal: 1050;
|
@zindexModal: 1050;
|
||||||
|
|
||||||
|
|
||||||
// Sprite icons path
|
// Sprite icons path
|
||||||
|
// -------------------------
|
||||||
@iconSpritePath: "../img/glyphicons-halflings.png";
|
@iconSpritePath: "../img/glyphicons-halflings.png";
|
||||||
@iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
|
@iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
|
||||||
|
|
||||||
|
|
||||||
// Input placeholder text color
|
// Input placeholder text color
|
||||||
|
// -------------------------
|
||||||
@placeholderText: @grayLight;
|
@placeholderText: @grayLight;
|
||||||
|
|
||||||
|
|
||||||
// Hr border color
|
// Hr border color
|
||||||
|
// -------------------------
|
||||||
@hrBorder: @grayLighter;
|
@hrBorder: @grayLighter;
|
||||||
|
|
||||||
|
|
||||||
// Navbar
|
// Navbar
|
||||||
|
// -------------------------
|
||||||
@navbarHeight: 40px;
|
@navbarHeight: 40px;
|
||||||
@navbarBackground: @grayDarker;
|
@navbarBackground: @grayDarker;
|
||||||
@navbarBackgroundHighlight: @grayDark;
|
@navbarBackgroundHighlight: @grayDark;
|
||||||
@navbarLinkBackgroundHover: transparent;
|
|
||||||
|
|
||||||
@navbarText: @grayLight;
|
@navbarText: @grayLight;
|
||||||
@navbarLinkColor: @grayLight;
|
@navbarLinkColor: @grayLight;
|
||||||
@navbarLinkColorHover: @white;
|
@navbarLinkColorHover: @white;
|
||||||
|
@navbarLinkColorActive: @navbarLinkColorHover;
|
||||||
|
@navbarLinkBackgroundHover: transparent;
|
||||||
|
@navbarLinkBackgroundActive: @navbarBackground;
|
||||||
|
|
||||||
|
@navbarSearchBackground: lighten(@navbarBackground, 25%);
|
||||||
|
@navbarSearchBackgroundFocus: @white;
|
||||||
|
@navbarSearchBorder: darken(@navbarSearchBackground, 30%);
|
||||||
|
@navbarSearchPlaceholderColor: #ccc;
|
||||||
|
|
||||||
|
|
||||||
|
// Hero unit
|
||||||
|
// -------------------------
|
||||||
|
@heroUnitBackground: @grayLighter;
|
||||||
|
@heroUnitHeadingColor: inherit;
|
||||||
|
@heroUnitLeadColor: inherit;
|
||||||
|
|
||||||
|
|
||||||
// Form states and alerts
|
// Form states and alerts
|
||||||
|
// -------------------------
|
||||||
@warningText: #c09853;
|
@warningText: #c09853;
|
||||||
@warningBackground: #fcf8e3;
|
@warningBackground: #fcf8e3;
|
||||||
@warningBorder: darken(spin(@warningBackground, -10), 3%);
|
@warningBorder: darken(spin(@warningBackground, -10), 3%);
|
||||||
@@ -93,15 +183,19 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// GRID
|
// GRID
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
// Default 940px grid
|
// Default 940px grid
|
||||||
|
// -------------------------
|
||||||
@gridColumns: 12;
|
@gridColumns: 12;
|
||||||
@gridColumnWidth: 60px;
|
@gridColumnWidth: 60px;
|
||||||
@gridGutterWidth: 20px;
|
@gridGutterWidth: 20px;
|
||||||
@gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
|
@gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
|
||||||
|
|
||||||
|
|
||||||
// Fluid grid
|
// Fluid grid
|
||||||
|
// -------------------------
|
||||||
@fluidGridColumnWidth: 6.382978723%;
|
@fluidGridColumnWidth: 6.382978723%;
|
||||||
@fluidGridGutterWidth: 2.127659574%;
|
@fluidGridGutterWidth: 2.127659574%;
|
||||||
|
|||||||
@@ -15,3 +15,13 @@
|
|||||||
border-color: rgba(0,0,0,.15);
|
border-color: rgba(0,0,0,.15);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sizes
|
||||||
|
.well-large {
|
||||||
|
padding: 24px;
|
||||||
|
.border-radius(6px);
|
||||||
|
}
|
||||||
|
.well-small {
|
||||||
|
padding: 9px;
|
||||||
|
.border-radius(3px);
|
||||||
|
}
|
||||||
|
|||||||