mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-23 18:40:03 +00:00
Merge branch '2.1.0-wip' of https://github.com/twitter/bootstrap into 2.1.0-wip
Conflicts: docs/assets/css/docs.css docs/javascript.html docs/templates/pages/javascript.mustache
This commit is contained in:
commit
5b2f2ed821
@ -19,7 +19,7 @@ Versioning
|
||||
|
||||
For transparency and insight into our release cycle, and for striving to maintain backward compatibility, Bootstrap will be maintained under the Semantic Versioning guidelines as much as possible.
|
||||
|
||||
Releases will be numbered with the follow format:
|
||||
Releases will be numbered with the following format:
|
||||
|
||||
`<major>.<minor>.<patch>`
|
||||
|
||||
|
18
docs/assets/css/bootstrap.css
vendored
18
docs/assets/css/bootstrap.css
vendored
@ -3686,15 +3686,21 @@ input[type="submit"].btn.btn-mini {
|
||||
}
|
||||
|
||||
.nav-tabs.nav-stacked > li:first-child > a {
|
||||
-webkit-border-radius: 4px 4px 0 0;
|
||||
-moz-border-radius: 4px 4px 0 0;
|
||||
border-radius: 4px 4px 0 0;
|
||||
-webkit-border-top-right-radius: 4px;
|
||||
border-top-right-radius: 4px;
|
||||
-webkit-border-top-left-radius: 4px;
|
||||
border-top-left-radius: 4px;
|
||||
-moz-border-radius-topright: 4px;
|
||||
-moz-border-radius-topleft: 4px;
|
||||
}
|
||||
|
||||
.nav-tabs.nav-stacked > li:last-child > a {
|
||||
-webkit-border-radius: 0 0 4px 4px;
|
||||
-moz-border-radius: 0 0 4px 4px;
|
||||
border-radius: 0 0 4px 4px;
|
||||
-webkit-border-bottom-right-radius: 4px;
|
||||
border-bottom-right-radius: 4px;
|
||||
-webkit-border-bottom-left-radius: 4px;
|
||||
border-bottom-left-radius: 4px;
|
||||
-moz-border-radius-bottomright: 4px;
|
||||
-moz-border-radius-bottomleft: 4px;
|
||||
}
|
||||
|
||||
.nav-tabs.nav-stacked > li > a:hover {
|
||||
|
@ -29,6 +29,9 @@ h3 code {
|
||||
|
||||
body > .navbar-fixed-top {
|
||||
font-size: 13px;
|
||||
-webkit-box-shadow: 0 5px 15px rgba(0,0,0,.15);
|
||||
-moz-box-shadow: 0 5px 15px rgba(0,0,0,.15);
|
||||
box-shadow: 0 5px 15px rgba(0,0,0,.15);
|
||||
}
|
||||
|
||||
/* Change the docs' brand */
|
||||
@ -407,6 +410,8 @@ hr.soften {
|
||||
/* Custom, larger checkbox labels */
|
||||
.download .checkbox {
|
||||
padding: 6px 10px 6px 25px;
|
||||
font-size: 13px;
|
||||
line-height: 18px;
|
||||
color: #555;
|
||||
background-color: #f9f9f9;
|
||||
-webkit-border-radius: 3px;
|
||||
@ -964,3 +969,34 @@ form.bs-docs-example {
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 979px) {
|
||||
.masthead,
|
||||
.subhead {
|
||||
position: fixed;
|
||||
top: 40px;
|
||||
right: 0;
|
||||
left: 0;
|
||||
}
|
||||
.masthead {
|
||||
height: 380px;
|
||||
}
|
||||
.subhead {
|
||||
height: 130px; /* +80px pdding */
|
||||
}
|
||||
.bs-docs-canvas {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
z-index: 10;
|
||||
background-color: #fff;
|
||||
-webkit-box-shadow: 0 -5px 15px rgba(0,0,0,.15);
|
||||
-moz-box-shadow: 0 -5px 15px rgba(0,0,0,.15);
|
||||
box-shadow: 0 -5px 15px rgba(0,0,0,.15);
|
||||
}
|
||||
.masthead + .bs-docs-canvas {
|
||||
top: 530px;
|
||||
}
|
||||
.subhead + .bs-docs-canvas {
|
||||
top: 250px;
|
||||
}
|
||||
}
|
2
docs/assets/js/bootstrap-affix.js
vendored
2
docs/assets/js/bootstrap-affix.js
vendored
@ -88,7 +88,7 @@
|
||||
$('[data-spy="affix"]').each(function () {
|
||||
var $spy = $(this)
|
||||
, data = $spy.data()
|
||||
|
||||
|
||||
data.offset = data.offset || {}
|
||||
|
||||
data.offsetX && (data.offset.x = data.offsetX)
|
||||
|
2
docs/assets/js/bootstrap-transition.js
vendored
2
docs/assets/js/bootstrap-transition.js
vendored
@ -36,7 +36,7 @@
|
||||
, transEndEventNames = {
|
||||
'WebkitTransition' : 'webkitTransitionEnd'
|
||||
, 'MozTransition' : 'transitionend'
|
||||
, 'OTransition' : 'otransitionend'
|
||||
, 'OTransition' : 'oTransitionEnd otransitionend'
|
||||
, 'msTransition' : 'MSTransitionEnd'
|
||||
, 'transition' : 'transitionend'
|
||||
}
|
||||
|
2
docs/assets/js/bootstrap.js
vendored
2
docs/assets/js/bootstrap.js
vendored
@ -36,7 +36,7 @@
|
||||
, transEndEventNames = {
|
||||
'WebkitTransition' : 'webkitTransitionEnd'
|
||||
, 'MozTransition' : 'transitionend'
|
||||
, 'OTransition' : 'otransitionend'
|
||||
, 'OTransition' : 'oTransitionEnd otransitionend'
|
||||
, 'msTransition' : 'MSTransitionEnd'
|
||||
, 'transition' : 'transitionend'
|
||||
}
|
||||
|
2
docs/assets/js/bootstrap.min.js
vendored
2
docs/assets/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
2323
docs/base-css.html
2323
docs/base-css.html
File diff suppressed because it is too large
Load Diff
2628
docs/components.html
2628
docs/components.html
File diff suppressed because it is too large
Load Diff
@ -74,359 +74,359 @@
|
||||
<header class="jumbotron subhead" id="overview">
|
||||
<div class="container">
|
||||
<h1>Customize and download</h1>
|
||||
<p class="lead"><a href="https://github.com/twitter/bootstrap/zipball/master">Download the full repository</a> or customize your entire Bootstrap build by selecting only the components, javascript plugins, and assets you need.</p>
|
||||
<p class="lead"><a href="https://github.com/twitter/bootstrap/zipball/master">Download Bootstrap</a> or customize variables, components, javascript plugins, and more.</p>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="container">
|
||||
<div class="bs-docs-canvas">
|
||||
|
||||
<div class="container">
|
||||
|
||||
<!-- Docs nav
|
||||
================================================== -->
|
||||
<div class="row">
|
||||
<div class="span3 bs-docs-sidebar">
|
||||
<ul class="nav nav-list bs-docs-sidenav">
|
||||
<li><a href="#components">1. Choose components</a></li>
|
||||
<li><a href="#plugins">2. Select jQuery plugins</a></li>
|
||||
<li><a href="#variables">3. Customize variables</a></li>
|
||||
<li><a href="#download">4. Download</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="span9">
|
||||
|
||||
|
||||
<!-- Docs nav
|
||||
================================================== -->
|
||||
<div class="row">
|
||||
<div class="span3 bs-docs-sidebar">
|
||||
<ul class="nav nav-list bs-docs-sidenav" data-spy="affix" data-offset-y="80">
|
||||
<li><a href="#components">1. Choose components</a></li>
|
||||
<li><a href="#plugins">2. Select jQuery plugins</a></li>
|
||||
<li><a href="#variables">3. Customize variables</a></li>
|
||||
<li><a href="#download">4. Download</a></li>
|
||||
</ul>
|
||||
<!-- Customize form
|
||||
================================================== -->
|
||||
<form>
|
||||
<section class="download" id="components">
|
||||
<div class="page-header">
|
||||
<a class="btn btn-small pull-right toggle-all" href="#">Toggle all</a>
|
||||
<h1>
|
||||
1. Choose components
|
||||
</h1>
|
||||
</div>
|
||||
<div class="row download-builder">
|
||||
<div class="span3">
|
||||
<h3>Scaffolding</h3>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="reset.less"> Normalize and reset</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="scaffolding.less"> Body type and links</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="grid.less"> Grid system</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="layouts.less"> Layouts</label>
|
||||
<h3>Base CSS</h3>
|
||||
<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="labels-badges.less"> Labels and badges</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="buttons.less"> Buttons</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="sprites.less"> Icons</label>
|
||||
</div><!-- /span -->
|
||||
<div class="span3">
|
||||
<h3>Components</h3>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="button-groups.less"> Button groups and dropdowns</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="navs.less"> Navs, tabs, and pills</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="navbar.less"> Navbar</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="breadcrumbs.less"> Breadcrumbs</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="pagination.less"> Pagination</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="pager.less"> Pager</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="thumbnails.less"> Thumbnails</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="alerts.less"> Alerts</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="progress-bars.less"> Progress bars</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="hero-unit.less"> Hero unit</label>
|
||||
<h3>JS Components</h3>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="tooltip.less"> Tooltips</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="popovers.less"> Popovers</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="modals.less"> Modals</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="dropdowns.less"> Dropdowns</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="accordion.less"> Collapse</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="carousel.less"> Carousel</label>
|
||||
</div><!-- /span -->
|
||||
<div class="span3">
|
||||
<h3>Miscellaneous</h3>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="wells.less"> Wells</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="close.less"> Close icon</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="utilities.less"> Utilities</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="component-animations.less"> Component animations</label>
|
||||
<h3>Responsive</h3>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="responsive-utilities.less"> Visible/hidden classes</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="responsive-767px-max.less"> Narrow tablets and below (<767px)</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="responsive-768px-979px.less"> Tablets to desktops (767-979px)</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="responsive-1200px-min.less"> Large desktops (>1200px)</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="responsive-navbar.less"> Responsive navbar</label>
|
||||
</div><!-- /span -->
|
||||
</div><!-- /row -->
|
||||
</section>
|
||||
|
||||
<section class="download" id="plugins">
|
||||
<div class="page-header">
|
||||
<a class="btn btn-small pull-right toggle-all" href="#">Toggle all</a>
|
||||
<h1>
|
||||
2. Select jQuery plugins
|
||||
</h1>
|
||||
</div>
|
||||
<div class="row download-builder">
|
||||
<div class="span3">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-transition.js">
|
||||
Transitions <small>(required for any animation)</small>
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-modal.js">
|
||||
Modals
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-dropdown.js">
|
||||
Dropdowns
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-scrollspy.js">
|
||||
Scrollspy
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-tab.js">
|
||||
Togglable tabs
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-tooltip.js">
|
||||
Tooltips
|
||||
</label>
|
||||
</div><!-- /span -->
|
||||
<div class="span3">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-popover.js">
|
||||
Popovers <small>(requires Tooltips)</small>
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-alert.js">
|
||||
Alert messages
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-button.js">
|
||||
Buttons
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-collapse.js">
|
||||
Collapse
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-carousel.js">
|
||||
Carousel
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-typeahead.js">
|
||||
Typeahead
|
||||
</label>
|
||||
</div><!-- /span -->
|
||||
<div class="span3">
|
||||
<h4 class="muted">Heads up!</h4>
|
||||
<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><!-- /row -->
|
||||
</section>
|
||||
|
||||
|
||||
<section class="download" id="variables">
|
||||
<div class="page-header">
|
||||
<a class="btn btn-small pull-right toggle-all" href="#">Reset to defaults</a>
|
||||
<h1>
|
||||
3. Customize variables
|
||||
</h1>
|
||||
</div>
|
||||
<div class="row download-builder">
|
||||
<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>
|
||||
<label>@linkColor</label>
|
||||
<input type="text" class="span3" placeholder="#08c">
|
||||
<label>@linkColorHover</label>
|
||||
<input type="text" class="span3" placeholder="darken(@linkColor, 15%)">
|
||||
<h3>Colors</h3>
|
||||
<label>@blue</label>
|
||||
<input type="text" class="span3" placeholder="#049cdb">
|
||||
<label>@green</label>
|
||||
<input type="text" class="span3" placeholder="#46a546">
|
||||
<label>@red</label>
|
||||
<input type="text" class="span3" placeholder="#9d261d">
|
||||
<label>@yellow</label>
|
||||
<input type="text" class="span3" placeholder="#ffc40d">
|
||||
<label>@orange</label>
|
||||
<input type="text" class="span3" placeholder="#f89406">
|
||||
<label>@pink</label>
|
||||
<input type="text" class="span3" placeholder="#c3325f">
|
||||
<label>@purple</label>
|
||||
<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 class="span3">
|
||||
<h3>Grid system</h3>
|
||||
<label>@gridColumns</label>
|
||||
<input type="text" class="span3" placeholder="12">
|
||||
<label>@gridColumnWidth</label>
|
||||
<input type="text" class="span3" placeholder="60px">
|
||||
<label>@gridGutterWidth</label>
|
||||
<input type="text" class="span3" placeholder="20px">
|
||||
<label>@gridColumnWidth1200</label>
|
||||
<input type="text" class="span3" placeholder="70px">
|
||||
<label>@gridGutterWidth1200</label>
|
||||
<input type="text" class="span3" placeholder="30px">
|
||||
<label>@gridColumnWidth768</label>
|
||||
<input type="text" class="span3" placeholder="42px">
|
||||
<label>@gridGutterWidth768</label>
|
||||
<input type="text" class="span3" placeholder="20px">
|
||||
|
||||
<h3>Typography</h3>
|
||||
<label>@sansFontFamily</label>
|
||||
<input type="text" class="span3" placeholder="'Helvetica Neue', Helvetica, Arial, sans-serif">
|
||||
<label>@serifFontFamily</label>
|
||||
<input type="text" class="span3" placeholder="Georgia, 'Times New Roman', Times, serif">
|
||||
<label>@monoFontFamily</label>
|
||||
<input type="text" class="span3" placeholder="Menlo, Monaco, 'Courier New', monospace">
|
||||
<label>@baseFontSize</label>
|
||||
<input type="text" class="span3" placeholder="13px">
|
||||
<label>@baseFontFamily</label>
|
||||
<input type="text" class="span3" placeholder="@sansFontFamily">
|
||||
<label>@baseLineHeight</label>
|
||||
<input type="text" class="span3" placeholder="18px">
|
||||
<label>@altFontFamily</label>
|
||||
<input type="text" class="span3" placeholder="@serifFontFamily">
|
||||
<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 class="span3">
|
||||
<h3>Tables</h3>
|
||||
<label>@tableBackground</label>
|
||||
<input type="text" class="span3" placeholder="transparent">
|
||||
<label>@tableBackgroundAccent</label>
|
||||
<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>
|
||||
<label>@navbarHeight</label>
|
||||
<input type="text" class="span3" placeholder="40px">
|
||||
<label>@navbarBackground</label>
|
||||
<input type="text" class="span3" placeholder="@grayDarker">
|
||||
<label>@navbarBackgroundHighlight</label>
|
||||
<input type="text" class="span3" placeholder="@grayDark">
|
||||
<label>@navbarText</label>
|
||||
<input type="text" class="span3" placeholder="@grayLight">
|
||||
<label>@navbarBrandColor</label>
|
||||
<input type="text" class="span3" placeholder="@navbarLinkColor">
|
||||
<label>@navbarLinkColor</label>
|
||||
<input type="text" class="span3" placeholder="@grayLight">
|
||||
<label>@navbarLinkColorHover</label>
|
||||
<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 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>@inputBorderRadius</label>
|
||||
<input type="text" class="span3" placeholder="3px">
|
||||
<label>@inputDisabledBackground</label>
|
||||
<input type="text" class="span3" placeholder="@grayLighter">
|
||||
<label>@formActionsBackground</label>
|
||||
<input type="text" class="span3" placeholder="#f5f5f5">
|
||||
|
||||
<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>
|
||||
<label>@warningText</label>
|
||||
<input type="text" class="span3" placeholder="#c09853">
|
||||
<label>@warningBackground</label>
|
||||
<input type="text" class="span3" placeholder="#fcf8e3">
|
||||
<label>@errorText</label>
|
||||
<input type="text" class="span3" placeholder="#b94a48">
|
||||
<label>@errorBackground</label>
|
||||
<input type="text" class="span3" placeholder="#f2dede">
|
||||
<label>@successText</label>
|
||||
<input type="text" class="span3" placeholder="#468847">
|
||||
<label>@successBackground</label>
|
||||
<input type="text" class="span3" placeholder="#dff0d8">
|
||||
<label>@infoText</label>
|
||||
<input type="text" class="span3" placeholder="#3a87ad">
|
||||
<label>@infoBackground</label>
|
||||
<input type="text" class="span3" placeholder="#d9edf7">
|
||||
</div><!-- /span -->
|
||||
</div><!-- /row -->
|
||||
</section>
|
||||
|
||||
<section class="download" id="download">
|
||||
<div class="page-header">
|
||||
<h1>
|
||||
4. Download
|
||||
</h1>
|
||||
</div>
|
||||
<div class="download-btn">
|
||||
<a class="btn btn-primary" href="#" >Customize and Download</a>
|
||||
<h4>What's included?</h4>
|
||||
<p>Downloads include compiled CSS, compiled and minified CSS, and compiled jQuery plugins, all nicely packed up into a zipball for your convenience.</p>
|
||||
</div>
|
||||
</section><!-- /download -->
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="span9">
|
||||
|
||||
|
||||
|
||||
<!-- Customize form
|
||||
================================================== -->
|
||||
<form>
|
||||
<section class="download" id="components">
|
||||
<div class="page-header">
|
||||
<a class="btn btn-small pull-right toggle-all" href="#">Toggle all</a>
|
||||
<h1>
|
||||
1. Choose components
|
||||
</h1>
|
||||
</div>
|
||||
<div class="row download-builder">
|
||||
<div class="span3">
|
||||
<h3>Scaffolding</h3>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="reset.less"> Normalize and reset</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="scaffolding.less"> Body type and links</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="grid.less"> Grid system</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="layouts.less"> Layouts</label>
|
||||
<h3>Base CSS</h3>
|
||||
<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="labels-badges.less"> Labels and badges</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="buttons.less"> Buttons</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="sprites.less"> Icons</label>
|
||||
</div><!-- /span -->
|
||||
<div class="span3">
|
||||
<h3>Components</h3>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="button-groups.less"> Button groups and dropdowns</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="navs.less"> Navs, tabs, and pills</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="navbar.less"> Navbar</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="breadcrumbs.less"> Breadcrumbs</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="pagination.less"> Pagination</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="pager.less"> Pager</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="thumbnails.less"> Thumbnails</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="alerts.less"> Alerts</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="progress-bars.less"> Progress bars</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="hero-unit.less"> Hero unit</label>
|
||||
</div><!-- /span -->
|
||||
<div class="span3">
|
||||
<h3>JS Components</h3>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="tooltip.less"> Tooltips</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="popovers.less"> Popovers</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="modals.less"> Modals</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="dropdowns.less"> Dropdowns</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="accordion.less"> Collapse</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="carousel.less"> Carousel</label>
|
||||
</div><!-- /span -->
|
||||
<div class="span3">
|
||||
<h3>Miscellaneous</h3>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="wells.less"> Wells</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="close.less"> Close icon</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="utilities.less"> Utilities</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="component-animations.less"> Component animations</label>
|
||||
<h3>Responsive</h3>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="responsive-utilities.less"> Visible/hidden classes</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="responsive-767px-max.less"> Narrow tablets and below (<767px)</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="responsive-768px-979px.less"> Tablets to desktops (767-979px)</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="responsive-1200px-min.less"> Large desktops (>1200px)</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="responsive-navbar.less"> Responsive navbar</label>
|
||||
</div><!-- /span -->
|
||||
</div><!-- /row -->
|
||||
</section>
|
||||
|
||||
<section class="download" id="plugins">
|
||||
<div class="page-header">
|
||||
<a class="btn btn-small pull-right toggle-all" href="#">Toggle all</a>
|
||||
<h1>
|
||||
2. Select jQuery plugins
|
||||
</h1>
|
||||
</div>
|
||||
<div class="row download-builder">
|
||||
<div class="span4">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-transition.js">
|
||||
Transitions <small>(required for any animation)</small>
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-modal.js">
|
||||
Modals
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-dropdown.js">
|
||||
Dropdowns
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-scrollspy.js">
|
||||
Scrollspy
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-tab.js">
|
||||
Togglable tabs
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-tooltip.js">
|
||||
Tooltips
|
||||
</label>
|
||||
</div><!-- /span -->
|
||||
<div class="span4">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-popover.js">
|
||||
Popovers <small>(requires Tooltips)</small>
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-alert.js">
|
||||
Alert messages
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-button.js">
|
||||
Buttons
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-collapse.js">
|
||||
Collapse
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-carousel.js">
|
||||
Carousel
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-typeahead.js">
|
||||
Typeahead
|
||||
</label>
|
||||
</div><!-- /span -->
|
||||
<div class="span4">
|
||||
<h4 class="muted">Heads up!</h4>
|
||||
<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><!-- /row -->
|
||||
</section>
|
||||
|
||||
|
||||
<section class="download" id="variables">
|
||||
<div class="page-header">
|
||||
<a class="btn btn-small pull-right toggle-all" href="#">Reset to defaults</a>
|
||||
<h1>
|
||||
3. Customize variables
|
||||
</h1>
|
||||
</div>
|
||||
<div class="row download-builder">
|
||||
<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>
|
||||
<label>@linkColor</label>
|
||||
<input type="text" class="span3" placeholder="#08c">
|
||||
<label>@linkColorHover</label>
|
||||
<input type="text" class="span3" placeholder="darken(@linkColor, 15%)">
|
||||
<h3>Colors</h3>
|
||||
<label>@blue</label>
|
||||
<input type="text" class="span3" placeholder="#049cdb">
|
||||
<label>@green</label>
|
||||
<input type="text" class="span3" placeholder="#46a546">
|
||||
<label>@red</label>
|
||||
<input type="text" class="span3" placeholder="#9d261d">
|
||||
<label>@yellow</label>
|
||||
<input type="text" class="span3" placeholder="#ffc40d">
|
||||
<label>@orange</label>
|
||||
<input type="text" class="span3" placeholder="#f89406">
|
||||
<label>@pink</label>
|
||||
<input type="text" class="span3" placeholder="#c3325f">
|
||||
<label>@purple</label>
|
||||
<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 class="span3">
|
||||
<h3>Grid system</h3>
|
||||
<label>@gridColumns</label>
|
||||
<input type="text" class="span3" placeholder="12">
|
||||
<label>@gridColumnWidth</label>
|
||||
<input type="text" class="span3" placeholder="60px">
|
||||
<label>@gridGutterWidth</label>
|
||||
<input type="text" class="span3" placeholder="20px">
|
||||
<label>@gridColumnWidth1200</label>
|
||||
<input type="text" class="span3" placeholder="70px">
|
||||
<label>@gridGutterWidth1200</label>
|
||||
<input type="text" class="span3" placeholder="30px">
|
||||
<label>@gridColumnWidth768</label>
|
||||
<input type="text" class="span3" placeholder="42px">
|
||||
<label>@gridGutterWidth768</label>
|
||||
<input type="text" class="span3" placeholder="20px">
|
||||
|
||||
<h3>Typography</h3>
|
||||
<label>@sansFontFamily</label>
|
||||
<input type="text" class="span3" placeholder="'Helvetica Neue', Helvetica, Arial, sans-serif">
|
||||
<label>@serifFontFamily</label>
|
||||
<input type="text" class="span3" placeholder="Georgia, 'Times New Roman', Times, serif">
|
||||
<label>@monoFontFamily</label>
|
||||
<input type="text" class="span3" placeholder="Menlo, Monaco, 'Courier New', monospace">
|
||||
<label>@baseFontSize</label>
|
||||
<input type="text" class="span3" placeholder="13px">
|
||||
<label>@baseFontFamily</label>
|
||||
<input type="text" class="span3" placeholder="@sansFontFamily">
|
||||
<label>@baseLineHeight</label>
|
||||
<input type="text" class="span3" placeholder="18px">
|
||||
<label>@altFontFamily</label>
|
||||
<input type="text" class="span3" placeholder="@serifFontFamily">
|
||||
<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 class="span3">
|
||||
<h3>Tables</h3>
|
||||
<label>@tableBackground</label>
|
||||
<input type="text" class="span3" placeholder="transparent">
|
||||
<label>@tableBackgroundAccent</label>
|
||||
<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>
|
||||
<label>@navbarHeight</label>
|
||||
<input type="text" class="span3" placeholder="40px">
|
||||
<label>@navbarBackground</label>
|
||||
<input type="text" class="span3" placeholder="@grayDarker">
|
||||
<label>@navbarBackgroundHighlight</label>
|
||||
<input type="text" class="span3" placeholder="@grayDark">
|
||||
<label>@navbarText</label>
|
||||
<input type="text" class="span3" placeholder="@grayLight">
|
||||
<label>@navbarBrandColor</label>
|
||||
<input type="text" class="span3" placeholder="@navbarLinkColor">
|
||||
<label>@navbarLinkColor</label>
|
||||
<input type="text" class="span3" placeholder="@grayLight">
|
||||
<label>@navbarLinkColorHover</label>
|
||||
<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 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>@inputBorderRadius</label>
|
||||
<input type="text" class="span3" placeholder="3px">
|
||||
<label>@inputDisabledBackground</label>
|
||||
<input type="text" class="span3" placeholder="@grayLighter">
|
||||
<label>@formActionsBackground</label>
|
||||
<input type="text" class="span3" placeholder="#f5f5f5">
|
||||
|
||||
<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>
|
||||
<label>@warningText</label>
|
||||
<input type="text" class="span3" placeholder="#c09853">
|
||||
<label>@warningBackground</label>
|
||||
<input type="text" class="span3" placeholder="#fcf8e3">
|
||||
<label>@errorText</label>
|
||||
<input type="text" class="span3" placeholder="#b94a48">
|
||||
<label>@errorBackground</label>
|
||||
<input type="text" class="span3" placeholder="#f2dede">
|
||||
<label>@successText</label>
|
||||
<input type="text" class="span3" placeholder="#468847">
|
||||
<label>@successBackground</label>
|
||||
<input type="text" class="span3" placeholder="#dff0d8">
|
||||
<label>@infoText</label>
|
||||
<input type="text" class="span3" placeholder="#3a87ad">
|
||||
<label>@infoBackground</label>
|
||||
<input type="text" class="span3" placeholder="#d9edf7">
|
||||
</div><!-- /span -->
|
||||
</div><!-- /row -->
|
||||
</section>
|
||||
|
||||
<section class="download" id="download">
|
||||
<div class="page-header">
|
||||
<h1>
|
||||
4. Download
|
||||
</h1>
|
||||
</div>
|
||||
<div class="download-btn">
|
||||
<a class="btn btn-primary" href="#" >Customize and Download</a>
|
||||
<h4>What's included?</h4>
|
||||
<p>Downloads include compiled CSS, compiled and minified CSS, and compiled jQuery plugins, all nicely packed up into a zipball for your convenience.</p>
|
||||
</div>
|
||||
</section><!-- /download -->
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -78,55 +78,58 @@
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="container">
|
||||
<div class="bs-docs-canvas">
|
||||
|
||||
<div class="container">
|
||||
|
||||
<div class="row">
|
||||
<div class="span3 bs-docs-sidebar">
|
||||
<ul class="nav nav-list bs-docs-sidenav" data-spy="affix" data-offset-y="80">
|
||||
<li><a href="#download-bootstrap">Download <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#file-structure">File structure <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#contents">What's included <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#html-template">HTML template <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#examples">Examples <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#what-next">What next? <i class="icon-chevron-right"></i></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<!-- Docs nav
|
||||
================================================== -->
|
||||
<div class="row">
|
||||
<div class="span3 bs-docs-sidebar">
|
||||
<ul class="nav nav-list bs-docs-sidenav">
|
||||
<li><a href="#download-bootstrap">Download <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#file-structure">File structure <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#contents">What's included <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#html-template">HTML template <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#examples">Examples <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#what-next">What next? <i class="icon-chevron-right"></i></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="span9">
|
||||
|
||||
|
||||
|
||||
<!-- Download
|
||||
================================================== -->
|
||||
<section id="download-bootstrap">
|
||||
<div class="page-header">
|
||||
<h1>1. Download</h1>
|
||||
</div>
|
||||
<p class="lead">Before downloading, be sure to have a code editor (we recommend <a href="http://sublimetext.com/2">Sublime Text 2</a>) and some working knowledge of HTML and CSS. We won't walk through the source files here, but they are available for download. We'll focus on getting started with our the compiled Bootstrap files.</p>
|
||||
|
||||
<div class="row">
|
||||
<div class="span4">
|
||||
<h3>Download compiled</h3>
|
||||
<p><strong>Fastest way to get started:</strong> get the compiled and minified versions of our CSS, JS, and images. No docs or original source files.</p>
|
||||
<p><a class="btn btn-large btn-primary" href="assets/bootstrap.zip" >Download Bootstrap</a></p>
|
||||
<!-- Download
|
||||
================================================== -->
|
||||
<section id="download-bootstrap">
|
||||
<div class="page-header">
|
||||
<h1>1. Download</h1>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<h3>Download source</h3>
|
||||
<p>Get the original files for all CSS and Javasript, along with a local copy of the docs by downloading the latest version directly from GitHub.</p>
|
||||
<p><a class="btn btn-large" href="https://github.com/twitter/bootstrap/zipball/master" >Download Bootstrap source</a></p>
|
||||
<p class="lead">Before downloading, be sure to have a code editor (we recommend <a href="http://sublimetext.com/2">Sublime Text 2</a>) and some working knowledge of HTML and CSS. We won't walk through the source files here, but they are available for download. We'll focus on getting started with our the compiled Bootstrap files.</p>
|
||||
|
||||
<div class="row">
|
||||
<div class="span4">
|
||||
<h3>Download compiled</h3>
|
||||
<p><strong>Fastest way to get started:</strong> get the compiled and minified versions of our CSS, JS, and images. No docs or original source files.</p>
|
||||
<p><a class="btn btn-large btn-primary" href="assets/bootstrap.zip" >Download Bootstrap</a></p>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<h3>Download source</h3>
|
||||
<p>Get the original files for all CSS and Javasript, along with a local copy of the docs by downloading the latest version directly from GitHub.</p>
|
||||
<p><a class="btn btn-large" href="https://github.com/twitter/bootstrap/zipball/master" >Download Bootstrap source</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<!-- File structure
|
||||
================================================== -->
|
||||
<section id="file-structure">
|
||||
<div class="page-header">
|
||||
<h1>2. File structure</h1>
|
||||
</div>
|
||||
<p>Once downloaded, unzip the compressed folder to see the structure of (the compiled) Bootstrap. You'll see something like this:</p>
|
||||
<!-- File structure
|
||||
================================================== -->
|
||||
<section id="file-structure">
|
||||
<div class="page-header">
|
||||
<h1>2. File structure</h1>
|
||||
</div>
|
||||
<p>Once downloaded, unzip the compressed folder to see the structure of (the compiled) Bootstrap. You'll see something like this:</p>
|
||||
<pre class="prettyprint">
|
||||
bootstrap/
|
||||
├── css/
|
||||
@ -140,67 +143,67 @@
|
||||
│ ├── glyphicons-halflings-white.png
|
||||
└── README.md
|
||||
</pre>
|
||||
<p>This is the most basic form of Bootstrap: compiled files for quick drop-in usage in nearly any web project. We provide compiled CSS and JS (<code>bootstrap.*</code>), as well as compiled and minified CSS and JS (<code>bootstrap.min.*</code>). The image files are compressed using <a href="http://imageoptim.com/">ImageOptim</a>, a Mac app for compressing PNGs.</p>
|
||||
</section>
|
||||
<p>This is the most basic form of Bootstrap: compiled files for quick drop-in usage in nearly any web project. We provide compiled CSS and JS (<code>bootstrap.*</code>), as well as compiled and minified CSS and JS (<code>bootstrap.min.*</code>). The image files are compressed using <a href="http://imageoptim.com/">ImageOptim</a>, a Mac app for compressing PNGs.</p>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<!-- Contents
|
||||
================================================== -->
|
||||
<section id="contents">
|
||||
<div class="page-header">
|
||||
<h1>3. What's included</h1>
|
||||
</div>
|
||||
<p>Bootstrap comes equipped with HTML, CSS, and JS for all sorts of things, but they can be summarized with a handful of categories visible at the top of the <a href="http://getbootstrap.com">Bootstrap documentation</a>.</p>
|
||||
<!-- Contents
|
||||
================================================== -->
|
||||
<section id="contents">
|
||||
<div class="page-header">
|
||||
<h1>3. What's included</h1>
|
||||
</div>
|
||||
<p>Bootstrap comes equipped with HTML, CSS, and JS for all sorts of things, but they can be summarized with a handful of categories visible at the top of the <a href="http://getbootstrap.com">Bootstrap documentation</a>.</p>
|
||||
|
||||
<h4><a href="http://twitter.github.com/bootstrap/scaffolding.html">Scaffolding</a></h4>
|
||||
<p>Global styles for the body to reset type and background, link styles, grid system, and two simple layouts.</p>
|
||||
<h4><a href="http://twitter.github.com/bootstrap/scaffolding.html">Scaffolding</a></h4>
|
||||
<p>Global styles for the body to reset type and background, link styles, grid system, and two simple layouts.</p>
|
||||
|
||||
<h4><a href="http://twitter.github.com/bootstrap/base-css.html">Base CSS</a></h4>
|
||||
<p>Styles for common HTML elements like typography, code, tables, forms, and buttons. Also includes <a href="http://glyphicons.com">Glyphicons</a>, a great little icon set.</p>
|
||||
<h4><a href="http://twitter.github.com/bootstrap/base-css.html">Base CSS</a></h4>
|
||||
<p>Styles for common HTML elements like typography, code, tables, forms, and buttons. Also includes <a href="http://glyphicons.com">Glyphicons</a>, a great little icon set.</p>
|
||||
|
||||
<h4><a href="http://twitter.github.com/bootstrap/components.html">Components</a></h4>
|
||||
<p>Basic styles for common interface components like tabs and pills, navbar, alerts, page headers, and more.</p>
|
||||
<h4><a href="http://twitter.github.com/bootstrap/components.html">Components</a></h4>
|
||||
<p>Basic styles for common interface components like tabs and pills, navbar, alerts, page headers, and more.</p>
|
||||
|
||||
<h4><a href="http://twitter.github.com/bootstrap/javascript.html">Javascript plugins</a></h4>
|
||||
<p>Similar to Components, these Javascript plugins are interactive components for things like tooltips, popovers, modals, and more.</p>
|
||||
<h4><a href="http://twitter.github.com/bootstrap/javascript.html">Javascript plugins</a></h4>
|
||||
<p>Similar to Components, these Javascript plugins are interactive components for things like tooltips, popovers, modals, and more.</p>
|
||||
|
||||
<hr>
|
||||
<hr>
|
||||
|
||||
<h3>List of components</h3>
|
||||
<p>Together, the <strong>Components</strong> and <strong>Javascript plugins</strong> sections provide the following interface elements:</p>
|
||||
<ul>
|
||||
<li>Button groups</li>
|
||||
<li>Button dropdowns</li>
|
||||
<li>Navigational tabs, pills, and lists</li>
|
||||
<li>Navbar</li>
|
||||
<li>Labels</li>
|
||||
<li>Badges</li>
|
||||
<li>Page headers and hero unit</li>
|
||||
<li>Thumbnails</li>
|
||||
<li>Alerts</li>
|
||||
<li>Progress bars</li>
|
||||
<li>Modals</li>
|
||||
<li>Dropdowns</li>
|
||||
<li>Tooltips</li>
|
||||
<li>Popovers</li>
|
||||
<li>Accordion</li>
|
||||
<li>Carousel</li>
|
||||
<li>Typeahead</li>
|
||||
</ul>
|
||||
<p>In future guides, we may walk through these components individually in more detail. Until then, look for each of these in the documentation for information on how to utilize and customize them.</p>
|
||||
</section>
|
||||
<h3>List of components</h3>
|
||||
<p>Together, the <strong>Components</strong> and <strong>Javascript plugins</strong> sections provide the following interface elements:</p>
|
||||
<ul>
|
||||
<li>Button groups</li>
|
||||
<li>Button dropdowns</li>
|
||||
<li>Navigational tabs, pills, and lists</li>
|
||||
<li>Navbar</li>
|
||||
<li>Labels</li>
|
||||
<li>Badges</li>
|
||||
<li>Page headers and hero unit</li>
|
||||
<li>Thumbnails</li>
|
||||
<li>Alerts</li>
|
||||
<li>Progress bars</li>
|
||||
<li>Modals</li>
|
||||
<li>Dropdowns</li>
|
||||
<li>Tooltips</li>
|
||||
<li>Popovers</li>
|
||||
<li>Accordion</li>
|
||||
<li>Carousel</li>
|
||||
<li>Typeahead</li>
|
||||
</ul>
|
||||
<p>In future guides, we may walk through these components individually in more detail. Until then, look for each of these in the documentation for information on how to utilize and customize them.</p>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<!-- HTML template
|
||||
================================================== -->
|
||||
<section id="html-template">
|
||||
<div class="page-header">
|
||||
<h1>4. Basic HTML template</h1>
|
||||
</div>
|
||||
<p>With a brief intro into the contents out of the way, we can focus putting Bootstrap to use. To do that, we'll utilize a basic HTML template that includes everything we mentioned in the <a href="#file-structure">File structure</a>.</p>
|
||||
<p>Now, here's a look at a <strong>typical HTML file</strong>:</p>
|
||||
<!-- HTML template
|
||||
================================================== -->
|
||||
<section id="html-template">
|
||||
<div class="page-header">
|
||||
<h1>4. Basic HTML template</h1>
|
||||
</div>
|
||||
<p>With a brief intro into the contents out of the way, we can focus putting Bootstrap to use. To do that, we'll utilize a basic HTML template that includes everything we mentioned in the <a href="#file-structure">File structure</a>.</p>
|
||||
<p>Now, here's a look at a <strong>typical HTML file</strong>:</p>
|
||||
<pre class="prettyprint linenums">
|
||||
<html>
|
||||
<head>
|
||||
@ -211,7 +214,7 @@
|
||||
</body>
|
||||
</html>
|
||||
</pre>
|
||||
<p>To make this <strong>a Bootstrapped template</strong>, just include the appropriate CSS and JS files:</p>
|
||||
<p>To make this <strong>a Bootstrapped template</strong>, just include the appropriate CSS and JS files:</p>
|
||||
<pre class="prettyprint linenums">
|
||||
<html>
|
||||
<head>
|
||||
@ -225,61 +228,63 @@
|
||||
</body>
|
||||
</html>
|
||||
</pre>
|
||||
<p><strong>And you're set!</strong> With those two files added, you can begin to develop any site or application with Bootstrap.</p>
|
||||
</section>
|
||||
<p><strong>And you're set!</strong> With those two files added, you can begin to develop any site or application with Bootstrap.</p>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<!-- Examples
|
||||
================================================== -->
|
||||
<section id="examples">
|
||||
<div class="page-header">
|
||||
<h1>5. Examples</h1>
|
||||
</div>
|
||||
<p class="lead">Move beyond the base template with a few example layouts. We encourage folks to iterate on these examples and not simply use them as an end result.</p>
|
||||
<ul class="thumbnails bootstrap-examples">
|
||||
<li class="span3">
|
||||
<a class="thumbnail" href="examples/hero.html">
|
||||
<img src="assets/img/examples/bootstrap-example-hero.jpg" alt="">
|
||||
</a>
|
||||
<h3>Basic marketing site</h3>
|
||||
<p>Featuring a hero unit for a primary message and three supporting elements.</p>
|
||||
</li>
|
||||
<li class="span3">
|
||||
<a class="thumbnail" href="examples/fluid.html">
|
||||
<img src="assets/img/examples/bootstrap-example-fluid.jpg" alt="">
|
||||
</a>
|
||||
<h3>Fluid layout</h3>
|
||||
<p>Uses our new responsive, fluid grid system to create a seamless liquid layout.</p>
|
||||
</li>
|
||||
<li class="span3">
|
||||
<a class="thumbnail" href="examples/starter-template.html">
|
||||
<img src="assets/img/examples/bootstrap-example-starter.jpg" alt="">
|
||||
</a>
|
||||
<h3>Starter template</h3>
|
||||
<p>A barebones HTML document with all the Bootstrap CSS and javascript included.</p>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- Examples
|
||||
================================================== -->
|
||||
<section id="examples">
|
||||
<div class="page-header">
|
||||
<h1>5. Examples</h1>
|
||||
</div>
|
||||
<p class="lead">Move beyond the base template with a few example layouts. We encourage folks to iterate on these examples and not simply use them as an end result.</p>
|
||||
<ul class="thumbnails bootstrap-examples">
|
||||
<li class="span3">
|
||||
<a class="thumbnail" href="examples/hero.html">
|
||||
<img src="assets/img/examples/bootstrap-example-hero.jpg" alt="">
|
||||
</a>
|
||||
<h3>Basic marketing site</h3>
|
||||
<p>Featuring a hero unit for a primary message and three supporting elements.</p>
|
||||
</li>
|
||||
<li class="span3">
|
||||
<a class="thumbnail" href="examples/fluid.html">
|
||||
<img src="assets/img/examples/bootstrap-example-fluid.jpg" alt="">
|
||||
</a>
|
||||
<h3>Fluid layout</h3>
|
||||
<p>Uses our new responsive, fluid grid system to create a seamless liquid layout.</p>
|
||||
</li>
|
||||
<li class="span3">
|
||||
<a class="thumbnail" href="examples/starter-template.html">
|
||||
<img src="assets/img/examples/bootstrap-example-starter.jpg" alt="">
|
||||
</a>
|
||||
<h3>Starter template</h3>
|
||||
<p>A barebones HTML document with all the Bootstrap CSS and javascript included.</p>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Next
|
||||
================================================== -->
|
||||
<section id="what-next">
|
||||
<div class="page-header">
|
||||
<h1>What next?</h1>
|
||||
</div>
|
||||
<p class="lead">Head to the docs for information, examples, and code snippets, or take the next leap and customize Bootstrap for any upcoming project.</p>
|
||||
<a class="btn btn-large btn-primary" href="./scaffolding.html" >Visit the Bootstrap docs</a>
|
||||
<a class="btn btn-large" href="./download.html" style="margin-left: 5px;" >Customize Bootstrap</a>
|
||||
</section>
|
||||
<!-- Next
|
||||
================================================== -->
|
||||
<section id="what-next">
|
||||
<div class="page-header">
|
||||
<h1>What next?</h1>
|
||||
</div>
|
||||
<p class="lead">Head to the docs for information, examples, and code snippets, or take the next leap and customize Bootstrap for any upcoming project.</p>
|
||||
<a class="btn btn-large btn-primary" href="./scaffolding.html" >Visit the Bootstrap docs</a>
|
||||
<a class="btn btn-large" href="./download.html" style="margin-left: 5px;" >Customize Bootstrap</a>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
138
docs/index.html
138
docs/index.html
@ -82,80 +82,84 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="bs-docs-social">
|
||||
<div class="container">
|
||||
<ul class="bs-docs-social-buttons">
|
||||
<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>
|
||||
</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="98px" height="20px"></iframe>
|
||||
</li>
|
||||
<li class="follow-btn">
|
||||
<a href="https://twitter.com/twbootstrap" class="twitter-follow-button" data-link-color="#0069D6" data-show-count="true">Follow @twbootstrap</a>
|
||||
</li>
|
||||
<li class="tweet-btn">
|
||||
<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>
|
||||
</div>
|
||||
<div class="bs-docs-canvas">
|
||||
|
||||
<div class="container">
|
||||
|
||||
<div class="marketing">
|
||||
|
||||
<h1>Introducing Bootstrap.</h1>
|
||||
<p class="marketing-byline">Need reasons to love Bootstrap? Look no further.</p>
|
||||
|
||||
<div class="row-fluid">
|
||||
<div class="span4">
|
||||
<img src="assets/img/bs-docs-twitter-github.png">
|
||||
<h2>By nerds, for nerds.</h2>
|
||||
<p>Built at Twitter by <a href="http://twitter.com/mdo">@mdo</a> and <a href="http://twitter.com/fat">@fat</a>, Bootstrap utilizes <a href="http://lesscss.org">LESS CSS</a>, is compiled via <a href="http://nodejs.org">Node</a>, and is managed through <a href="http://github.com">GitHub</a> to help nerds do awesome stuff on the web.</p>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<img src="assets/img/bs-docs-responsive-illustrations.png">
|
||||
<h2>Made for everyone.</h2>
|
||||
<p>Bootstrap was made to not only look and behave great in the latest desktop browsers (as well as IE7!), but in tablet and smartphone browsers via <a href="./scaffolding.html#responsive">responsive CSS</a> as well.</p>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<img src="assets/img/bs-docs-bootstrap-features.png">
|
||||
<h2>Packed with features.</h2>
|
||||
<p>A 12-column responsive <a href="./scaffolding.html#grid">grid</a>, dozens of components, <a href="./javascript.html">javascript plugins</a>, typography, form controls, and even a <a href="./download.html">web-based Customizer</a> to make Bootstrap your own.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr class="soften">
|
||||
|
||||
<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>
|
||||
<div class="row-fluid">
|
||||
<ul class="thumbnails example-sites">
|
||||
<li class="span3">
|
||||
<a class="thumbnail" href="http://soundready.fm/" target="_blank">
|
||||
<img src="assets/img/example-sites/soundready.png" alt="SoundReady.fm">
|
||||
</a>
|
||||
<div class="bs-docs-social">
|
||||
<div class="container">
|
||||
<ul class="bs-docs-social-buttons">
|
||||
<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>
|
||||
</li>
|
||||
<li class="span3">
|
||||
<a class="thumbnail" href="http://kippt.com/" target="_blank">
|
||||
<img src="assets/img/example-sites/kippt.png" alt="Kippt">
|
||||
</a>
|
||||
<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="98px" height="20px"></iframe>
|
||||
</li>
|
||||
<li class="span3">
|
||||
<a class="thumbnail" href="http://www.fleetio.com/" target="_blank">
|
||||
<img src="assets/img/example-sites/fleetio.png" alt="Fleetio">
|
||||
</a>
|
||||
<li class="follow-btn">
|
||||
<a href="https://twitter.com/twbootstrap" class="twitter-follow-button" data-link-color="#0069D6" data-show-count="true">Follow @twbootstrap</a>
|
||||
</li>
|
||||
<li class="span3">
|
||||
<a class="thumbnail" href="http://www.jshint.com/" target="_blank">
|
||||
<img src="assets/img/example-sites/jshint.png" alt="JS Hint">
|
||||
</a>
|
||||
<li class="tweet-btn">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div><!-- /.marketing -->
|
||||
<div class="container">
|
||||
|
||||
<div class="marketing">
|
||||
|
||||
<h1>Introducing Bootstrap.</h1>
|
||||
<p class="marketing-byline">Need reasons to love Bootstrap? Look no further.</p>
|
||||
|
||||
<div class="row-fluid">
|
||||
<div class="span4">
|
||||
<img src="assets/img/bs-docs-twitter-github.png">
|
||||
<h2>By nerds, for nerds.</h2>
|
||||
<p>Built at Twitter by <a href="http://twitter.com/mdo">@mdo</a> and <a href="http://twitter.com/fat">@fat</a>, Bootstrap utilizes <a href="http://lesscss.org">LESS CSS</a>, is compiled via <a href="http://nodejs.org">Node</a>, and is managed through <a href="http://github.com">GitHub</a> to help nerds do awesome stuff on the web.</p>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<img src="assets/img/bs-docs-responsive-illustrations.png">
|
||||
<h2>Made for everyone.</h2>
|
||||
<p>Bootstrap was made to not only look and behave great in the latest desktop browsers (as well as IE7!), but in tablet and smartphone browsers via <a href="./scaffolding.html#responsive">responsive CSS</a> as well.</p>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<img src="assets/img/bs-docs-bootstrap-features.png">
|
||||
<h2>Packed with features.</h2>
|
||||
<p>A 12-column responsive <a href="./scaffolding.html#grid">grid</a>, dozens of components, <a href="./javascript.html">javascript plugins</a>, typography, form controls, and even a <a href="./download.html">web-based Customizer</a> to make Bootstrap your own.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr class="soften">
|
||||
|
||||
<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>
|
||||
<div class="row-fluid">
|
||||
<ul class="thumbnails example-sites">
|
||||
<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">
|
||||
<img src="assets/img/example-sites/kippt.png" alt="Kippt">
|
||||
</a>
|
||||
</li>
|
||||
<li class="span3">
|
||||
<a class="thumbnail" href="http://www.fleetio.com/" target="_blank">
|
||||
<img src="assets/img/example-sites/fleetio.png" alt="Fleetio">
|
||||
</a>
|
||||
</li>
|
||||
<li class="span3">
|
||||
<a class="thumbnail" href="http://www.jshint.com/" target="_blank">
|
||||
<img src="assets/img/example-sites/jshint.png" alt="JS Hint">
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
2578
docs/javascript.html
2578
docs/javascript.html
File diff suppressed because it is too large
Load Diff
@ -78,35 +78,35 @@
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="bs-docs-canvas">
|
||||
|
||||
<div class="container">
|
||||
<div class="container">
|
||||
|
||||
|
||||
<!-- Docs nav
|
||||
================================================== -->
|
||||
<div class="row">
|
||||
<div class="span3 bs-docs-sidebar">
|
||||
<ul class="nav nav-list bs-docs-sidenav" data-spy="affix" data-offset-y="80">
|
||||
<li><a href="#global">Global styles <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#gridSystem">Grid system <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#fluidGridSystem">Fluid grid system <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#layouts">Layouts <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#responsive">Responsive design <i class="icon-chevron-right"></i></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<!-- Docs nav
|
||||
================================================== -->
|
||||
<div class="row">
|
||||
<div class="span3 bs-docs-sidebar">
|
||||
<ul class="nav nav-list bs-docs-sidenav">
|
||||
<li><a href="#global">Global styles <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#gridSystem">Grid system <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#fluidGridSystem">Fluid grid system <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#layouts">Layouts <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#responsive">Responsive design <i class="icon-chevron-right"></i></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="span9">
|
||||
|
||||
|
||||
|
||||
<!-- Global Bootstrap settings
|
||||
================================================== -->
|
||||
<section id="global">
|
||||
<div class="page-header">
|
||||
<h1>Global styles <small>for CSS reset, typography, and links</small></h1>
|
||||
</div>
|
||||
<!-- Global Bootstrap settings
|
||||
================================================== -->
|
||||
<section id="global">
|
||||
<div class="page-header">
|
||||
<h1>Global styles <small>for CSS reset, typography, and links</small></h1>
|
||||
</div>
|
||||
|
||||
<h3>Requires HTML5 doctype</h3>
|
||||
<p>Bootstrap makes use of certain HTML elements and CSS properties that require the use of the HTML5 doctype. Include it at the beginning of all your projects.</p>
|
||||
<h3>Requires HTML5 doctype</h3>
|
||||
<p>Bootstrap makes use of certain HTML elements and CSS properties that require the use of the HTML5 doctype. Include it at the beginning of all your projects.</p>
|
||||
<pre class="prettyprint linenums">
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
@ -114,84 +114,84 @@
|
||||
</html>
|
||||
</pre>
|
||||
|
||||
<h3>Typography and links</h3>
|
||||
<p>Bootstrap sets basic global display, typography, and link styles. Specifically, we:</p>
|
||||
<ul>
|
||||
<li>Remove <code>margin</code> 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>
|
||||
<p>These styles can be found within <strong>scaffolding.less</strong>.</p>
|
||||
<h3>Typography and links</h3>
|
||||
<p>Bootstrap sets basic global display, typography, and link styles. Specifically, we:</p>
|
||||
<ul>
|
||||
<li>Remove <code>margin</code> 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>
|
||||
<p>These styles can be found within <strong>scaffolding.less</strong>.</p>
|
||||
|
||||
<h3>Reset via Normalize</h3>
|
||||
<p>With Bootstrap 2, the old reset block has been dropped in favor of <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>. While we use much of Normalize within our <strong>reset.less</strong>, we have removed some elements specifically for Bootstrap.</p>
|
||||
<h3>Reset via Normalize</h3>
|
||||
<p>With Bootstrap 2, the old reset block has been dropped in favor of <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>. While we use much of Normalize within our <strong>reset.less</strong>, we have removed some elements specifically for Bootstrap.</p>
|
||||
|
||||
</section>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Grid system
|
||||
================================================== -->
|
||||
<section id="gridSystem">
|
||||
<div class="page-header">
|
||||
<h1>Default grid system <small>12 columns with a responsive twist</small></h1>
|
||||
</div>
|
||||
|
||||
<h2>Live grid example</h2>
|
||||
<p>The default Bootstrap grid system utilizes <strong>12 columns</strong>, making for a 940px wide container without <a href="#responsive">responsive features</a> enabled. With the responsive CSS file added, the grid adapts to be 724px and 1170px wide depending on your viewport. Below 767px viewports, the columns become fluid and stack vertically.</p>
|
||||
<div class="bs-docs-grid">
|
||||
<div class="row show-grid">
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<!-- Grid system
|
||||
================================================== -->
|
||||
<section id="gridSystem">
|
||||
<div class="page-header">
|
||||
<h1>Default grid system <small>12 columns with a responsive twist</small></h1>
|
||||
</div>
|
||||
<div class="row show-grid">
|
||||
<div class="span2">2</div>
|
||||
<div class="span3">3</div>
|
||||
<div class="span4">4</div>
|
||||
</div>
|
||||
<div class="row show-grid">
|
||||
<div class="span4">4</div>
|
||||
<div class="span5">5</div>
|
||||
</div>
|
||||
<div class="row show-grid">
|
||||
<div class="span9">9</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3>Basic grid HTML</h3>
|
||||
<p>For a simple two column layout, create a <code>.row</code> and add the appropriate number of <code>.span*</code> columns. As this is a 12-column grid, each <code>.span*</code> spans a number of those 12 columns, and should always add up to 12 for each row (or the number of columns in the parent).</p>
|
||||
<h2>Live grid example</h2>
|
||||
<p>The default Bootstrap grid system utilizes <strong>12 columns</strong>, making for a 940px wide container without <a href="#responsive">responsive features</a> enabled. With the responsive CSS file added, the grid adapts to be 724px and 1170px wide depending on your viewport. Below 767px viewports, the columns become fluid and stack vertically.</p>
|
||||
<div class="bs-docs-grid">
|
||||
<div class="row show-grid">
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
</div>
|
||||
<div class="row show-grid">
|
||||
<div class="span2">2</div>
|
||||
<div class="span3">3</div>
|
||||
<div class="span4">4</div>
|
||||
</div>
|
||||
<div class="row show-grid">
|
||||
<div class="span4">4</div>
|
||||
<div class="span5">5</div>
|
||||
</div>
|
||||
<div class="row show-grid">
|
||||
<div class="span9">9</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3>Basic grid HTML</h3>
|
||||
<p>For a simple two column layout, create a <code>.row</code> and add the appropriate number of <code>.span*</code> columns. As this is a 12-column grid, each <code>.span*</code> spans a number of those 12 columns, and should always add up to 12 for each row (or the number of columns in the parent).</p>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="row">
|
||||
<div class="span4">...</div>
|
||||
<div class="span8">...</div>
|
||||
</div>
|
||||
</pre>
|
||||
<p>Given this example, we have <code>.span4</code> and <code>.span8</code>, making for 12 total columns and a complete row.</p>
|
||||
<p>Given this example, we have <code>.span4</code> and <code>.span8</code>, making for 12 total columns and a complete row.</p>
|
||||
|
||||
<h2>Offsetting columns</h2>
|
||||
<p>Move columns to the left using <code>.offset*</code> classes. Each class increases the left margin of a column by a whole column. For example, <code>.offset4</code> moves <code>.span4</code> over four columns.</p>
|
||||
<div class="bs-docs-grid">
|
||||
<div class="row show-grid">
|
||||
<div class="span4">4</div>
|
||||
<div class="span3 offset2">3 offset 2</div>
|
||||
</div><!-- /row -->
|
||||
<div class="row show-grid">
|
||||
<div class="span3 offset1">3 offset 1</div>
|
||||
<div class="span3 offset2">3 offset 2</div>
|
||||
</div><!-- /row -->
|
||||
<div class="row show-grid">
|
||||
<div class="span6 offset3">6 offset 3</div>
|
||||
</div><!-- /row -->
|
||||
</div>
|
||||
<h2>Offsetting columns</h2>
|
||||
<p>Move columns to the left using <code>.offset*</code> classes. Each class increases the left margin of a column by a whole column. For example, <code>.offset4</code> moves <code>.span4</code> over four columns.</p>
|
||||
<div class="bs-docs-grid">
|
||||
<div class="row show-grid">
|
||||
<div class="span4">4</div>
|
||||
<div class="span3 offset2">3 offset 2</div>
|
||||
</div><!-- /row -->
|
||||
<div class="row show-grid">
|
||||
<div class="span3 offset1">3 offset 1</div>
|
||||
<div class="span3 offset2">3 offset 2</div>
|
||||
</div><!-- /row -->
|
||||
<div class="row show-grid">
|
||||
<div class="span6 offset3">6 offset 3</div>
|
||||
</div><!-- /row -->
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="row">
|
||||
<div class="span4">...</div>
|
||||
@ -199,7 +199,7 @@
|
||||
</div>
|
||||
</pre>
|
||||
|
||||
<h2>Nesting columns</h2>
|
||||
<h2>Nesting columns</h2>
|
||||
<p>To nest your content with the default grid, add a new <code>.row</code> and set of <code>.span*</code> columns within an existing <code>.span*</code> column. Nested rows should include a set of columns that add up to the number of columns of its parent.</p>
|
||||
<h3>Example</h3>
|
||||
<p>Here two nested <code>.span4</code> columns are placed within a <code>.span8</code>.</p>
|
||||
@ -227,54 +227,54 @@
|
||||
</div>
|
||||
</div>
|
||||
</pre>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<!-- Fluid grid system
|
||||
================================================== -->
|
||||
<section id="fluidGridSystem">
|
||||
<div class="page-header">
|
||||
<h1>Fluid grid system <small>12 responsive, percent-based columns</small></h1>
|
||||
</div>
|
||||
<!-- Fluid grid system
|
||||
================================================== -->
|
||||
<section id="fluidGridSystem">
|
||||
<div class="page-header">
|
||||
<h1>Fluid grid system <small>12 responsive, percent-based columns</small></h1>
|
||||
</div>
|
||||
|
||||
<h2>Live fluid grid example</h2>
|
||||
<p>The fluid grid system uses percents instead of pixels for column widths. It has the same responsive capabilities as our fixed grid system, ensuring proper proportions for key screen resolutions and devices.</p>
|
||||
<div class="bs-docs-grid">
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<h2>Live fluid grid example</h2>
|
||||
<p>The fluid grid system uses percents instead of pixels for column widths. It has the same responsive capabilities as our fixed grid system, ensuring proper proportions for key screen resolutions and devices.</p>
|
||||
<div class="bs-docs-grid">
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
</div>
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span4">4</div>
|
||||
<div class="span4">4</div>
|
||||
<div class="span4">4</div>
|
||||
</div>
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span4">4</div>
|
||||
<div class="span8">8</div>
|
||||
</div>
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span6">6</div>
|
||||
<div class="span6">6</div>
|
||||
</div>
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span12">12</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span4">4</div>
|
||||
<div class="span4">4</div>
|
||||
<div class="span4">4</div>
|
||||
</div>
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span4">4</div>
|
||||
<div class="span8">8</div>
|
||||
</div>
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span6">6</div>
|
||||
<div class="span6">6</div>
|
||||
</div>
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span12">12</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3>Basic fluid grid HTML</h3>
|
||||
<p>Make any row "fluid" by changing <code>.row</code> to <code>.row-fluid</code>. The column classes stay the exact same, making it easy to flip between fixed and fluid grids.</p>
|
||||
<h3>Basic fluid grid HTML</h3>
|
||||
<p>Make any row "fluid" by changing <code>.row</code> to <code>.row-fluid</code>. The column classes stay the exact same, making it easy to flip between fixed and fluid grids.</p>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="row-fluid">
|
||||
<div class="span4">...</div>
|
||||
@ -282,21 +282,21 @@
|
||||
</div>
|
||||
</pre>
|
||||
|
||||
<h2>Fluid offsetting</h2>
|
||||
<p>Operates the same way as the fixed grid system offsetting: add <code>.offset*</code> to any column to offset by that many columns.</p>
|
||||
<div class="bs-docs-grid">
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span4">4</div>
|
||||
<div class="span4 offset4">4 offset 4</div>
|
||||
</div><!-- /row -->
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span3 offset3">3 offset 3</div>
|
||||
<div class="span3 offset3">3 offset 3</div>
|
||||
</div><!-- /row -->
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span6 offset6">6 offset 6</div>
|
||||
</div><!-- /row -->
|
||||
</div>
|
||||
<h2>Fluid offsetting</h2>
|
||||
<p>Operates the same way as the fixed grid system offsetting: add <code>.offset*</code> to any column to offset by that many columns.</p>
|
||||
<div class="bs-docs-grid">
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span4">4</div>
|
||||
<div class="span4 offset4">4 offset 4</div>
|
||||
</div><!-- /row -->
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span3 offset3">3 offset 3</div>
|
||||
<div class="span3 offset3">3 offset 3</div>
|
||||
</div><!-- /row -->
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span6 offset6">6 offset 6</div>
|
||||
</div><!-- /row -->
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="row-fluid">
|
||||
<div class="span4">...</div>
|
||||
@ -304,21 +304,21 @@
|
||||
</div>
|
||||
</pre>
|
||||
|
||||
<h2>Fluid nesting</h2>
|
||||
<p>Nesting with fluid grids is a bit different: the number of nested columns should not match the parent's number of columns. Instead, each level of nested columns are reset because each row takes up 100% of the parent column.</p>
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span12">
|
||||
Fluid 12
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span6">
|
||||
Fluid 6
|
||||
</div>
|
||||
<div class="span6">
|
||||
Fluid 6
|
||||
<h2>Fluid nesting</h2>
|
||||
<p>Nesting with fluid grids is a bit different: the number of nested columns should not match the parent's number of columns. Instead, each level of nested columns are reset because each row takes up 100% of the parent column.</p>
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span12">
|
||||
Fluid 12
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span6">
|
||||
Fluid 6
|
||||
</div>
|
||||
<div class="span6">
|
||||
Fluid 6
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
@ -331,23 +331,23 @@
|
||||
</div>
|
||||
</pre>
|
||||
|
||||
</section>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Layouts (Default and fluid)
|
||||
================================================== -->
|
||||
<section id="layouts">
|
||||
<div class="page-header">
|
||||
<h1>Layouts <small>Basic templates to create webpages</small></h1>
|
||||
</div>
|
||||
<!-- Layouts (Default and fluid)
|
||||
================================================== -->
|
||||
<section id="layouts">
|
||||
<div class="page-header">
|
||||
<h1>Layouts <small>Basic templates to create webpages</small></h1>
|
||||
</div>
|
||||
|
||||
<h2>Fixed layout</h2>
|
||||
<p>Provides a common fixed-width (and optionally responsive) layout with only <code><div class="container"></code> required.</p>
|
||||
<div class="mini-layout">
|
||||
<div class="mini-layout-body"></div>
|
||||
</div>
|
||||
<h2>Fixed layout</h2>
|
||||
<p>Provides a common fixed-width (and optionally responsive) layout with only <code><div class="container"></code> required.</p>
|
||||
<div class="mini-layout">
|
||||
<div class="mini-layout-body"></div>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<body>
|
||||
<div class="container">
|
||||
@ -356,12 +356,12 @@
|
||||
</body>
|
||||
</pre>
|
||||
|
||||
<h2>Fluid layout</h2>
|
||||
<p>Create a fluid, two-column page with <code><div class="container-fluid"></code>—great for applications and docs.</p>
|
||||
<div class="mini-layout fluid">
|
||||
<div class="mini-layout-sidebar"></div>
|
||||
<div class="mini-layout-body"></div>
|
||||
</div>
|
||||
<h2>Fluid layout</h2>
|
||||
<p>Create a fluid, two-column page with <code><div class="container-fluid"></code>—great for applications and docs.</p>
|
||||
<div class="mini-layout fluid">
|
||||
<div class="mini-layout-sidebar"></div>
|
||||
<div class="mini-layout-body"></div>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
@ -374,78 +374,78 @@
|
||||
</div>
|
||||
</div>
|
||||
</pre>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Responsive design
|
||||
================================================== -->
|
||||
<section id="responsive">
|
||||
<div class="page-header">
|
||||
<h1>Responsive design <small>Media queries for various devices and resolutions</small></h1>
|
||||
</div>
|
||||
<!-- Responsive design
|
||||
================================================== -->
|
||||
<section id="responsive">
|
||||
<div class="page-header">
|
||||
<h1>Responsive design <small>Media queries for various devices and resolutions</small></h1>
|
||||
</div>
|
||||
|
||||
<h2>Enabling responsive features</h2>
|
||||
<p>Turn on responsive CSS in your project by including the proper meta tag and additional stylesheet within the <code><head></code> of your document. If you've compiled Bootstrap from the Customize page, you need only include the meta tag.</p>
|
||||
<h2>Enabling responsive features</h2>
|
||||
<p>Turn on responsive CSS in your project by including the proper meta tag and additional stylesheet within the <code><head></code> of your document. If you've compiled Bootstrap from the Customize page, you need only include the meta tag.</p>
|
||||
<pre class="prettyprint linenums">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link href="assets/css/bootstrap-responsive.css" rel="stylesheet">
|
||||
</pre>
|
||||
<p><span class="label label-info">Heads up!</span> Bootstrap doesn't include responsive features by default at this time as not everything needs to be responsive. Instead of encouraging developers to remove this feature, we figure it best to enable it as needed.</p>
|
||||
<p><span class="label label-info">Heads up!</span> Bootstrap doesn't include responsive features by default at this time as not everything needs to be responsive. Instead of encouraging developers to remove this feature, we figure it best to enable it as needed.</p>
|
||||
|
||||
<h2>About responsive Bootstrap</h2>
|
||||
<img src="assets/img/responsive-illustrations.png" alt="Responsive devices" style="float: right; margin: 0 0 20px 20px;">
|
||||
<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>
|
||||
<h2>About responsive Bootstrap</h2>
|
||||
<img src="assets/img/responsive-illustrations.png" alt="Responsive devices" style="float: right; margin: 0 0 20px 20px;">
|
||||
<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>
|
||||
|
||||
<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>
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Label</th>
|
||||
<th>Layout width</th>
|
||||
<th>Column width</th>
|
||||
<th>Gutter width</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Phones</td>
|
||||
<td>480px and below</td>
|
||||
<td class="muted" colspan="2">Fluid columns, no fixed widths</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Phones to tablets</td>
|
||||
<td>767px and below</td>
|
||||
<td class="muted" colspan="2">Fluid columns, no fixed widths</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Portrait tablets</td>
|
||||
<td>768px and above</td>
|
||||
<td>42px</td>
|
||||
<td>20px</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Default</td>
|
||||
<td>980px and up</td>
|
||||
<td>60px</td>
|
||||
<td>20px</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Large display</td>
|
||||
<td>1200px and up</td>
|
||||
<td>70px</td>
|
||||
<td>30px</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<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>
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Label</th>
|
||||
<th>Layout width</th>
|
||||
<th>Column width</th>
|
||||
<th>Gutter width</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Phones</td>
|
||||
<td>480px and below</td>
|
||||
<td class="muted" colspan="2">Fluid columns, no fixed widths</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Phones to tablets</td>
|
||||
<td>767px and below</td>
|
||||
<td class="muted" colspan="2">Fluid columns, no fixed widths</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Portrait tablets</td>
|
||||
<td>768px and above</td>
|
||||
<td>42px</td>
|
||||
<td>20px</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Default</td>
|
||||
<td>980px and up</td>
|
||||
<td>60px</td>
|
||||
<td>20px</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Large display</td>
|
||||
<td>1200px and up</td>
|
||||
<td>70px</td>
|
||||
<td>30px</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<pre class="prettyprint linenums">
|
||||
/* Landscape phones and down */
|
||||
@media (max-width: 480px) { ... }
|
||||
@ -461,82 +461,84 @@
|
||||
</pre>
|
||||
|
||||
|
||||
<h2>Responsive utility classes</h2>
|
||||
<p>For faster mobile-friendly development, use these utility classes for showing and hiding content by device. Below is a table of the available classes 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>767px and below</small></th>
|
||||
<th>Tablets <small>979px to 768px</small></th>
|
||||
<th>Desktops <small>Default</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>
|
||||
<h2>Responsive utility classes</h2>
|
||||
<p>For faster mobile-friendly development, use these utility classes for showing and hiding content by device. Below is a table of the available classes 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>767px and below</small></th>
|
||||
<th>Tablets <small>979px to 768px</small></th>
|
||||
<th>Desktops <small>Default</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>When to use</h3>
|
||||
<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>
|
||||
<h3>When to use</h3>
|
||||
<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>
|
||||
|
||||
<h3>Responsive utilities test case</h3>
|
||||
<p>Resize your browser or load on different devices to test the above classes.</p>
|
||||
<h4>Visible on...</h4>
|
||||
<p>Green checkmarks indicate that class is visible in your current viewport.</p>
|
||||
<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>
|
||||
<p>Here, green checkmarks indicate that class is hidden in your current viewport.</p>
|
||||
<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>
|
||||
<h3>Responsive utilities test case</h3>
|
||||
<p>Resize your browser or load on different devices to test the above classes.</p>
|
||||
<h4>Visible on...</h4>
|
||||
<p>Green checkmarks indicate that class is visible in your current viewport.</p>
|
||||
<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>
|
||||
<p>Here, green checkmarks indicate that class is hidden in your current viewport.</p>
|
||||
<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>
|
||||
|
||||
</section>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
2347
docs/templates/pages/base-css.mustache
vendored
2347
docs/templates/pages/base-css.mustache
vendored
File diff suppressed because it is too large
Load Diff
2646
docs/templates/pages/components.mustache
vendored
2646
docs/templates/pages/components.mustache
vendored
File diff suppressed because it is too large
Load Diff
692
docs/templates/pages/customize.mustache
vendored
692
docs/templates/pages/customize.mustache
vendored
@ -3,359 +3,359 @@
|
||||
<header class="jumbotron subhead" id="overview">
|
||||
<div class="container">
|
||||
<h1>{{_i}}Customize and download{{/i}}</h1>
|
||||
<p class="lead">{{_i}}<a href="https://github.com/twitter/bootstrap/zipball/master">Download the full repository</a> or customize your entire Bootstrap build by selecting only the components, javascript plugins, and assets you need.{{/i}}</p>
|
||||
<p class="lead">{{_i}}<a href="https://github.com/twitter/bootstrap/zipball/master">Download Bootstrap</a> or customize variables, components, javascript plugins, and more.{{/i}}</p>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="container">
|
||||
<div class="bs-docs-canvas">
|
||||
|
||||
<div class="container">
|
||||
|
||||
<!-- Docs nav
|
||||
================================================== -->
|
||||
<div class="row">
|
||||
<div class="span3 bs-docs-sidebar">
|
||||
<ul class="nav nav-list bs-docs-sidenav">
|
||||
<li><a href="#components">{{_i}}1. Choose components{{/i}}</a></li>
|
||||
<li><a href="#plugins">{{_i}}2. Select jQuery plugins{{/i}}</a></li>
|
||||
<li><a href="#variables">{{_i}}3. Customize variables{{/i}}</a></li>
|
||||
<li><a href="#download">{{_i}}4. Download{{/i}}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="span9">
|
||||
|
||||
|
||||
<!-- Docs nav
|
||||
================================================== -->
|
||||
<div class="row">
|
||||
<div class="span3 bs-docs-sidebar">
|
||||
<ul class="nav nav-list bs-docs-sidenav" data-spy="affix" data-offset-y="80">
|
||||
<li><a href="#components">{{_i}}1. Choose components{{/i}}</a></li>
|
||||
<li><a href="#plugins">{{_i}}2. Select jQuery plugins{{/i}}</a></li>
|
||||
<li><a href="#variables">{{_i}}3. Customize variables{{/i}}</a></li>
|
||||
<li><a href="#download">{{_i}}4. Download{{/i}}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<!-- Customize form
|
||||
================================================== -->
|
||||
<form>
|
||||
<section class="download" id="components">
|
||||
<div class="page-header">
|
||||
<a class="btn btn-small pull-right toggle-all" href="#">{{_i}}Toggle all{{/i}}</a>
|
||||
<h1>
|
||||
{{_i}}1. Choose components{{/i}}
|
||||
</h1>
|
||||
</div>
|
||||
<div class="row download-builder">
|
||||
<div class="span3">
|
||||
<h3>{{_i}}Scaffolding{{/i}}</h3>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="reset.less"> {{_i}}Normalize and reset{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="scaffolding.less"> {{_i}}Body type and links{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="grid.less"> {{_i}}Grid system{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="layouts.less"> {{_i}}Layouts{{/i}}</label>
|
||||
<h3>{{_i}}Base CSS{{/i}}</h3>
|
||||
<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="labels-badges.less"> {{_i}}Labels and 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="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="sprites.less"> {{_i}}Icons{{/i}}</label>
|
||||
</div><!-- /span -->
|
||||
<div class="span3">
|
||||
<h3>{{_i}}Components{{/i}}</h3>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="button-groups.less"> {{_i}}Button groups and dropdowns{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="navs.less"> {{_i}}Navs, tabs, and pills{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="navbar.less"> {{_i}}Navbar{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="breadcrumbs.less"> {{_i}}Breadcrumbs{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="pagination.less"> {{_i}}Pagination{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="pager.less"> {{_i}}Pager{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="thumbnails.less"> {{_i}}Thumbnails{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="alerts.less"> {{_i}}Alerts{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="progress-bars.less"> {{_i}}Progress bars{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="hero-unit.less"> {{_i}}Hero unit{{/i}}</label>
|
||||
<h3>{{_i}}JS Components{{/i}}</h3>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="tooltip.less"> {{_i}}Tooltips{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="popovers.less"> {{_i}}Popovers{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="modals.less"> {{_i}}Modals{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="dropdowns.less"> {{_i}}Dropdowns{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="accordion.less"> {{_i}}Collapse{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="carousel.less"> {{_i}}Carousel{{/i}}</label>
|
||||
</div><!-- /span -->
|
||||
<div class="span3">
|
||||
<h3>{{_i}}Miscellaneous{{/i}}</h3>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="wells.less"> {{_i}}Wells{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="close.less"> {{_i}}Close icon{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="utilities.less"> {{_i}}Utilities{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="component-animations.less"> {{_i}}Component animations{{/i}}</label>
|
||||
<h3>{{_i}}Responsive{{/i}}</h3>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="responsive-utilities.less"> {{_i}}Visible/hidden classes{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="responsive-767px-max.less"> {{_i}}Narrow tablets and below (<767px){{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="responsive-768px-979px.less"> {{_i}}Tablets to desktops (767-979px){{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="responsive-1200px-min.less"> {{_i}}Large desktops (>1200px){{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="responsive-navbar.less"> {{_i}}Responsive navbar{{/i}}</label>
|
||||
</div><!-- /span -->
|
||||
</div><!-- /row -->
|
||||
</section>
|
||||
|
||||
<section class="download" id="plugins">
|
||||
<div class="page-header">
|
||||
<a class="btn btn-small pull-right toggle-all" href="#">{{_i}}Toggle all{{/i}}</a>
|
||||
<h1>
|
||||
{{_i}}2. Select jQuery plugins{{/i}}
|
||||
</h1>
|
||||
</div>
|
||||
<div class="row download-builder">
|
||||
<div class="span3">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-transition.js">
|
||||
{{_i}}Transitions <small>(required for any animation)</small>{{/i}}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-modal.js">
|
||||
{{_i}}Modals{{/i}}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-dropdown.js">
|
||||
{{_i}}Dropdowns{{/i}}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-scrollspy.js">
|
||||
{{_i}}Scrollspy{{/i}}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-tab.js">
|
||||
{{_i}}Togglable tabs{{/i}}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-tooltip.js">
|
||||
{{_i}}Tooltips{{/i}}
|
||||
</label>
|
||||
</div><!-- /span -->
|
||||
<div class="span3">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-popover.js">
|
||||
{{_i}}Popovers <small>(requires Tooltips)</small>{{/i}}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-alert.js">
|
||||
{{_i}}Alert messages{{/i}}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-button.js">
|
||||
{{_i}}Buttons{{/i}}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-collapse.js">
|
||||
{{_i}}Collapse{{/i}}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-carousel.js">
|
||||
{{_i}}Carousel{{/i}}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-typeahead.js">
|
||||
{{_i}}Typeahead{{/i}}
|
||||
</label>
|
||||
</div><!-- /span -->
|
||||
<div class="span3">
|
||||
<h4 class="muted">{{_i}}Heads up!{{/i}}</h4>
|
||||
<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><!-- /row -->
|
||||
</section>
|
||||
|
||||
|
||||
<section class="download" id="variables">
|
||||
<div class="page-header">
|
||||
<a class="btn btn-small pull-right toggle-all" href="#">{{_i}}Reset to defaults{{/i}}</a>
|
||||
<h1>
|
||||
{{_i}}3. Customize variables{{/i}}
|
||||
</h1>
|
||||
</div>
|
||||
<div class="row download-builder">
|
||||
<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>
|
||||
<label>@linkColor</label>
|
||||
<input type="text" class="span3" placeholder="#08c">
|
||||
<label>@linkColorHover</label>
|
||||
<input type="text" class="span3" placeholder="darken(@linkColor, 15%)">
|
||||
<h3>{{_i}}Colors{{/i}}</h3>
|
||||
<label>@blue</label>
|
||||
<input type="text" class="span3" placeholder="#049cdb">
|
||||
<label>@green</label>
|
||||
<input type="text" class="span3" placeholder="#46a546">
|
||||
<label>@red</label>
|
||||
<input type="text" class="span3" placeholder="#9d261d">
|
||||
<label>@yellow</label>
|
||||
<input type="text" class="span3" placeholder="#ffc40d">
|
||||
<label>@orange</label>
|
||||
<input type="text" class="span3" placeholder="#f89406">
|
||||
<label>@pink</label>
|
||||
<input type="text" class="span3" placeholder="#c3325f">
|
||||
<label>@purple</label>
|
||||
<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 class="span3">
|
||||
<h3>{{_i}}Grid system{{/i}}</h3>
|
||||
<label>@gridColumns</label>
|
||||
<input type="text" class="span3" placeholder="12">
|
||||
<label>@gridColumnWidth</label>
|
||||
<input type="text" class="span3" placeholder="60px">
|
||||
<label>@gridGutterWidth</label>
|
||||
<input type="text" class="span3" placeholder="20px">
|
||||
<label>@gridColumnWidth1200</label>
|
||||
<input type="text" class="span3" placeholder="70px">
|
||||
<label>@gridGutterWidth1200</label>
|
||||
<input type="text" class="span3" placeholder="30px">
|
||||
<label>@gridColumnWidth768</label>
|
||||
<input type="text" class="span3" placeholder="42px">
|
||||
<label>@gridGutterWidth768</label>
|
||||
<input type="text" class="span3" placeholder="20px">
|
||||
|
||||
<h3>{{_i}}Typography{{/i}}</h3>
|
||||
<label>@sansFontFamily</label>
|
||||
<input type="text" class="span3" placeholder="'Helvetica Neue', Helvetica, Arial, sans-serif">
|
||||
<label>@serifFontFamily</label>
|
||||
<input type="text" class="span3" placeholder="Georgia, 'Times New Roman', Times, serif">
|
||||
<label>@monoFontFamily</label>
|
||||
<input type="text" class="span3" placeholder="Menlo, Monaco, 'Courier New', monospace">
|
||||
<label>@baseFontSize</label>
|
||||
<input type="text" class="span3" placeholder="13px">
|
||||
<label>@baseFontFamily</label>
|
||||
<input type="text" class="span3" placeholder="@sansFontFamily">
|
||||
<label>@baseLineHeight</label>
|
||||
<input type="text" class="span3" placeholder="18px">
|
||||
<label>@altFontFamily</label>
|
||||
<input type="text" class="span3" placeholder="@serifFontFamily">
|
||||
<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 class="span3">
|
||||
<h3>{{_i}}Tables{{/i}}</h3>
|
||||
<label>@tableBackground</label>
|
||||
<input type="text" class="span3" placeholder="transparent">
|
||||
<label>@tableBackgroundAccent</label>
|
||||
<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>
|
||||
<label>@navbarHeight</label>
|
||||
<input type="text" class="span3" placeholder="40px">
|
||||
<label>@navbarBackground</label>
|
||||
<input type="text" class="span3" placeholder="@grayDarker">
|
||||
<label>@navbarBackgroundHighlight</label>
|
||||
<input type="text" class="span3" placeholder="@grayDark">
|
||||
<label>@navbarText</label>
|
||||
<input type="text" class="span3" placeholder="@grayLight">
|
||||
<label>@navbarBrandColor</label>
|
||||
<input type="text" class="span3" placeholder="@navbarLinkColor">
|
||||
<label>@navbarLinkColor</label>
|
||||
<input type="text" class="span3" placeholder="@grayLight">
|
||||
<label>@navbarLinkColorHover</label>
|
||||
<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 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>@inputBorderRadius</label>
|
||||
<input type="text" class="span3" placeholder="3px">
|
||||
<label>@inputDisabledBackground</label>
|
||||
<input type="text" class="span3" placeholder="@grayLighter">
|
||||
<label>@formActionsBackground</label>
|
||||
<input type="text" class="span3" placeholder="#f5f5f5">
|
||||
|
||||
<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>
|
||||
<label>@warningText</label>
|
||||
<input type="text" class="span3" placeholder="#c09853">
|
||||
<label>@warningBackground</label>
|
||||
<input type="text" class="span3" placeholder="#fcf8e3">
|
||||
<label>@errorText</label>
|
||||
<input type="text" class="span3" placeholder="#b94a48">
|
||||
<label>@errorBackground</label>
|
||||
<input type="text" class="span3" placeholder="#f2dede">
|
||||
<label>@successText</label>
|
||||
<input type="text" class="span3" placeholder="#468847">
|
||||
<label>@successBackground</label>
|
||||
<input type="text" class="span3" placeholder="#dff0d8">
|
||||
<label>@infoText</label>
|
||||
<input type="text" class="span3" placeholder="#3a87ad">
|
||||
<label>@infoBackground</label>
|
||||
<input type="text" class="span3" placeholder="#d9edf7">
|
||||
</div><!-- /span -->
|
||||
</div><!-- /row -->
|
||||
</section>
|
||||
|
||||
<section class="download" id="download">
|
||||
<div class="page-header">
|
||||
<h1>
|
||||
{{_i}}4. Download{{/i}}
|
||||
</h1>
|
||||
</div>
|
||||
<div class="download-btn">
|
||||
<a class="btn btn-primary" href="#" {{#production}}onclick="_gaq.push(['_trackEvent', 'Customize', 'Download', 'Customize and Download']);"{{/production}}>Customize and Download</a>
|
||||
<h4>{{_i}}What's included?{{/i}}</h4>
|
||||
<p>{{_i}}Downloads include compiled CSS, compiled and minified CSS, and compiled jQuery plugins, all nicely packed up into a zipball for your convenience.{{/i}}</p>
|
||||
</div>
|
||||
</section><!-- /download -->
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
<!-- Customize form
|
||||
================================================== -->
|
||||
<form>
|
||||
<section class="download" id="components">
|
||||
<div class="page-header">
|
||||
<a class="btn btn-small pull-right toggle-all" href="#">{{_i}}Toggle all{{/i}}</a>
|
||||
<h1>
|
||||
{{_i}}1. Choose components{{/i}}
|
||||
</h1>
|
||||
</div>
|
||||
<div class="row download-builder">
|
||||
<div class="span3">
|
||||
<h3>{{_i}}Scaffolding{{/i}}</h3>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="reset.less"> {{_i}}Normalize and reset{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="scaffolding.less"> {{_i}}Body type and links{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="grid.less"> {{_i}}Grid system{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="layouts.less"> {{_i}}Layouts{{/i}}</label>
|
||||
<h3>{{_i}}Base CSS{{/i}}</h3>
|
||||
<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="labels-badges.less"> {{_i}}Labels and 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="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="sprites.less"> {{_i}}Icons{{/i}}</label>
|
||||
</div><!-- /span -->
|
||||
<div class="span3">
|
||||
<h3>{{_i}}Components{{/i}}</h3>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="button-groups.less"> {{_i}}Button groups and dropdowns{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="navs.less"> {{_i}}Navs, tabs, and pills{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="navbar.less"> {{_i}}Navbar{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="breadcrumbs.less"> {{_i}}Breadcrumbs{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="pagination.less"> {{_i}}Pagination{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="pager.less"> {{_i}}Pager{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="thumbnails.less"> {{_i}}Thumbnails{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="alerts.less"> {{_i}}Alerts{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="progress-bars.less"> {{_i}}Progress bars{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="hero-unit.less"> {{_i}}Hero unit{{/i}}</label>
|
||||
</div><!-- /span -->
|
||||
<div class="span3">
|
||||
<h3>{{_i}}JS Components{{/i}}</h3>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="tooltip.less"> {{_i}}Tooltips{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="popovers.less"> {{_i}}Popovers{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="modals.less"> {{_i}}Modals{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="dropdowns.less"> {{_i}}Dropdowns{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="accordion.less"> {{_i}}Collapse{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="carousel.less"> {{_i}}Carousel{{/i}}</label>
|
||||
</div><!-- /span -->
|
||||
<div class="span3">
|
||||
<h3>{{_i}}Miscellaneous{{/i}}</h3>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="wells.less"> {{_i}}Wells{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="close.less"> {{_i}}Close icon{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="utilities.less"> {{_i}}Utilities{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="component-animations.less"> {{_i}}Component animations{{/i}}</label>
|
||||
<h3>{{_i}}Responsive{{/i}}</h3>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="responsive-utilities.less"> {{_i}}Visible/hidden classes{{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="responsive-767px-max.less"> {{_i}}Narrow tablets and below (<767px){{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="responsive-768px-979px.less"> {{_i}}Tablets to desktops (767-979px){{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="responsive-1200px-min.less"> {{_i}}Large desktops (>1200px){{/i}}</label>
|
||||
<label class="checkbox"><input checked="checked" type="checkbox" value="responsive-navbar.less"> {{_i}}Responsive navbar{{/i}}</label>
|
||||
</div><!-- /span -->
|
||||
</div><!-- /row -->
|
||||
</section>
|
||||
</div>{{! /span9 }}
|
||||
</div>{{! row}}
|
||||
|
||||
<section class="download" id="plugins">
|
||||
<div class="page-header">
|
||||
<a class="btn btn-small pull-right toggle-all" href="#">{{_i}}Toggle all{{/i}}</a>
|
||||
<h1>
|
||||
{{_i}}2. Select jQuery plugins{{/i}}
|
||||
</h1>
|
||||
</div>
|
||||
<div class="row download-builder">
|
||||
<div class="span4">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-transition.js">
|
||||
{{_i}}Transitions <small>(required for any animation)</small>{{/i}}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-modal.js">
|
||||
{{_i}}Modals{{/i}}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-dropdown.js">
|
||||
{{_i}}Dropdowns{{/i}}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-scrollspy.js">
|
||||
{{_i}}Scrollspy{{/i}}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-tab.js">
|
||||
{{_i}}Togglable tabs{{/i}}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-tooltip.js">
|
||||
{{_i}}Tooltips{{/i}}
|
||||
</label>
|
||||
</div><!-- /span -->
|
||||
<div class="span4">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-popover.js">
|
||||
{{_i}}Popovers <small>(requires Tooltips)</small>{{/i}}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-alert.js">
|
||||
{{_i}}Alert messages{{/i}}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-button.js">
|
||||
{{_i}}Buttons{{/i}}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-collapse.js">
|
||||
{{_i}}Collapse{{/i}}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-carousel.js">
|
||||
{{_i}}Carousel{{/i}}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="true" value="bootstrap-typeahead.js">
|
||||
{{_i}}Typeahead{{/i}}
|
||||
</label>
|
||||
</div><!-- /span -->
|
||||
<div class="span4">
|
||||
<h4 class="muted">{{_i}}Heads up!{{/i}}</h4>
|
||||
<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><!-- /row -->
|
||||
</section>
|
||||
</div>{{! /.container }}
|
||||
|
||||
|
||||
<section class="download" id="variables">
|
||||
<div class="page-header">
|
||||
<a class="btn btn-small pull-right toggle-all" href="#">{{_i}}Reset to defaults{{/i}}</a>
|
||||
<h1>
|
||||
{{_i}}3. Customize variables{{/i}}
|
||||
</h1>
|
||||
</div>
|
||||
<div class="row download-builder">
|
||||
<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>
|
||||
<label>@linkColor</label>
|
||||
<input type="text" class="span3" placeholder="#08c">
|
||||
<label>@linkColorHover</label>
|
||||
<input type="text" class="span3" placeholder="darken(@linkColor, 15%)">
|
||||
<h3>{{_i}}Colors{{/i}}</h3>
|
||||
<label>@blue</label>
|
||||
<input type="text" class="span3" placeholder="#049cdb">
|
||||
<label>@green</label>
|
||||
<input type="text" class="span3" placeholder="#46a546">
|
||||
<label>@red</label>
|
||||
<input type="text" class="span3" placeholder="#9d261d">
|
||||
<label>@yellow</label>
|
||||
<input type="text" class="span3" placeholder="#ffc40d">
|
||||
<label>@orange</label>
|
||||
<input type="text" class="span3" placeholder="#f89406">
|
||||
<label>@pink</label>
|
||||
<input type="text" class="span3" placeholder="#c3325f">
|
||||
<label>@purple</label>
|
||||
<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 class="span3">
|
||||
<h3>{{_i}}Grid system{{/i}}</h3>
|
||||
<label>@gridColumns</label>
|
||||
<input type="text" class="span3" placeholder="12">
|
||||
<label>@gridColumnWidth</label>
|
||||
<input type="text" class="span3" placeholder="60px">
|
||||
<label>@gridGutterWidth</label>
|
||||
<input type="text" class="span3" placeholder="20px">
|
||||
<label>@gridColumnWidth1200</label>
|
||||
<input type="text" class="span3" placeholder="70px">
|
||||
<label>@gridGutterWidth1200</label>
|
||||
<input type="text" class="span3" placeholder="30px">
|
||||
<label>@gridColumnWidth768</label>
|
||||
<input type="text" class="span3" placeholder="42px">
|
||||
<label>@gridGutterWidth768</label>
|
||||
<input type="text" class="span3" placeholder="20px">
|
||||
|
||||
<h3>{{_i}}Typography{{/i}}</h3>
|
||||
<label>@sansFontFamily</label>
|
||||
<input type="text" class="span3" placeholder="'Helvetica Neue', Helvetica, Arial, sans-serif">
|
||||
<label>@serifFontFamily</label>
|
||||
<input type="text" class="span3" placeholder="Georgia, 'Times New Roman', Times, serif">
|
||||
<label>@monoFontFamily</label>
|
||||
<input type="text" class="span3" placeholder="Menlo, Monaco, 'Courier New', monospace">
|
||||
<label>@baseFontSize</label>
|
||||
<input type="text" class="span3" placeholder="13px">
|
||||
<label>@baseFontFamily</label>
|
||||
<input type="text" class="span3" placeholder="@sansFontFamily">
|
||||
<label>@baseLineHeight</label>
|
||||
<input type="text" class="span3" placeholder="18px">
|
||||
<label>@altFontFamily</label>
|
||||
<input type="text" class="span3" placeholder="@serifFontFamily">
|
||||
<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 class="span3">
|
||||
<h3>{{_i}}Tables{{/i}}</h3>
|
||||
<label>@tableBackground</label>
|
||||
<input type="text" class="span3" placeholder="transparent">
|
||||
<label>@tableBackgroundAccent</label>
|
||||
<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>
|
||||
<label>@navbarHeight</label>
|
||||
<input type="text" class="span3" placeholder="40px">
|
||||
<label>@navbarBackground</label>
|
||||
<input type="text" class="span3" placeholder="@grayDarker">
|
||||
<label>@navbarBackgroundHighlight</label>
|
||||
<input type="text" class="span3" placeholder="@grayDark">
|
||||
<label>@navbarText</label>
|
||||
<input type="text" class="span3" placeholder="@grayLight">
|
||||
<label>@navbarBrandColor</label>
|
||||
<input type="text" class="span3" placeholder="@navbarLinkColor">
|
||||
<label>@navbarLinkColor</label>
|
||||
<input type="text" class="span3" placeholder="@grayLight">
|
||||
<label>@navbarLinkColorHover</label>
|
||||
<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 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>@inputBorderRadius</label>
|
||||
<input type="text" class="span3" placeholder="3px">
|
||||
<label>@inputDisabledBackground</label>
|
||||
<input type="text" class="span3" placeholder="@grayLighter">
|
||||
<label>@formActionsBackground</label>
|
||||
<input type="text" class="span3" placeholder="#f5f5f5">
|
||||
|
||||
<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>
|
||||
<label>@warningText</label>
|
||||
<input type="text" class="span3" placeholder="#c09853">
|
||||
<label>@warningBackground</label>
|
||||
<input type="text" class="span3" placeholder="#fcf8e3">
|
||||
<label>@errorText</label>
|
||||
<input type="text" class="span3" placeholder="#b94a48">
|
||||
<label>@errorBackground</label>
|
||||
<input type="text" class="span3" placeholder="#f2dede">
|
||||
<label>@successText</label>
|
||||
<input type="text" class="span3" placeholder="#468847">
|
||||
<label>@successBackground</label>
|
||||
<input type="text" class="span3" placeholder="#dff0d8">
|
||||
<label>@infoText</label>
|
||||
<input type="text" class="span3" placeholder="#3a87ad">
|
||||
<label>@infoBackground</label>
|
||||
<input type="text" class="span3" placeholder="#d9edf7">
|
||||
</div><!-- /span -->
|
||||
</div><!-- /row -->
|
||||
</section>
|
||||
|
||||
<section class="download" id="download">
|
||||
<div class="page-header">
|
||||
<h1>
|
||||
{{_i}}4. Download{{/i}}
|
||||
</h1>
|
||||
</div>
|
||||
<div class="download-btn">
|
||||
<a class="btn btn-primary" href="#" {{#production}}onclick="_gaq.push(['_trackEvent', 'Customize', 'Download', 'Customize and Download']);"{{/production}}>Customize and Download</a>
|
||||
<h4>{{_i}}What's included?{{/i}}</h4>
|
||||
<p>{{_i}}Downloads include compiled CSS, compiled and minified CSS, and compiled jQuery plugins, all nicely packed up into a zipball for your convenience.{{/i}}</p>
|
||||
</div>
|
||||
</section><!-- /download -->
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
</div>{{! /span9 }}
|
||||
</div>{{! row}}
|
||||
|
||||
</div>{{! /container }}
|
||||
</div>{{! /.bs-docs-canvas }}
|
||||
|
275
docs/templates/pages/getting-started.mustache
vendored
275
docs/templates/pages/getting-started.mustache
vendored
@ -7,55 +7,58 @@
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="container">
|
||||
<div class="bs-docs-canvas">
|
||||
|
||||
<div class="container">
|
||||
|
||||
<div class="row">
|
||||
<div class="span3 bs-docs-sidebar">
|
||||
<ul class="nav nav-list bs-docs-sidenav" data-spy="affix" data-offset-y="80">
|
||||
<li><a href="#download-bootstrap">{{_i}}Download{{/i}} <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#file-structure">{{_i}}File structure{{/i}} <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#contents">{{_i}}What's included{{/i}} <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#html-template">{{_i}}HTML template{{/i}} <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#examples">{{_i}}Examples{{/i}} <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#what-next">{{_i}}What next?{{/i}} <i class="icon-chevron-right"></i></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<!-- Docs nav
|
||||
================================================== -->
|
||||
<div class="row">
|
||||
<div class="span3 bs-docs-sidebar">
|
||||
<ul class="nav nav-list bs-docs-sidenav">
|
||||
<li><a href="#download-bootstrap">{{_i}}Download{{/i}} <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#file-structure">{{_i}}File structure{{/i}} <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#contents">{{_i}}What's included{{/i}} <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#html-template">{{_i}}HTML template{{/i}} <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#examples">{{_i}}Examples{{/i}} <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#what-next">{{_i}}What next?{{/i}} <i class="icon-chevron-right"></i></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="span9">
|
||||
|
||||
|
||||
|
||||
<!-- Download
|
||||
================================================== -->
|
||||
<section id="download-bootstrap">
|
||||
<div class="page-header">
|
||||
<h1>{{_i}}1. Download{{/i}}</h1>
|
||||
</div>
|
||||
<p class="lead">{{_i}}Before downloading, be sure to have a code editor (we recommend <a href="http://sublimetext.com/2">Sublime Text 2</a>) and some working knowledge of HTML and CSS. We won't walk through the source files here, but they are available for download. We'll focus on getting started with our the compiled Bootstrap files.{{/i}}</p>
|
||||
|
||||
<div class="row">
|
||||
<div class="span4">
|
||||
<h3>Download compiled</h3>
|
||||
<p><strong>Fastest way to get started:</strong> get the compiled and minified versions of our CSS, JS, and images. No docs or original source files.</p>
|
||||
<p><a class="btn btn-large btn-primary" href="assets/bootstrap.zip" {{#production}}onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download compiled']);"{{/production}}>Download Bootstrap</a></p>
|
||||
<!-- Download
|
||||
================================================== -->
|
||||
<section id="download-bootstrap">
|
||||
<div class="page-header">
|
||||
<h1>{{_i}}1. Download{{/i}}</h1>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<h3>Download source</h3>
|
||||
<p>Get the original files for all CSS and Javasript, along with a local copy of the docs by downloading the latest version directly from GitHub.</p>
|
||||
<p><a class="btn btn-large" href="https://github.com/twitter/bootstrap/zipball/master" {{#production}}onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download source']);"{{/production}}>Download Bootstrap source</a></p>
|
||||
<p class="lead">{{_i}}Before downloading, be sure to have a code editor (we recommend <a href="http://sublimetext.com/2">Sublime Text 2</a>) and some working knowledge of HTML and CSS. We won't walk through the source files here, but they are available for download. We'll focus on getting started with our the compiled Bootstrap files.{{/i}}</p>
|
||||
|
||||
<div class="row">
|
||||
<div class="span4">
|
||||
<h3>Download compiled</h3>
|
||||
<p><strong>Fastest way to get started:</strong> get the compiled and minified versions of our CSS, JS, and images. No docs or original source files.</p>
|
||||
<p><a class="btn btn-large btn-primary" href="assets/bootstrap.zip" {{#production}}onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download compiled']);"{{/production}}>Download Bootstrap</a></p>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<h3>Download source</h3>
|
||||
<p>Get the original files for all CSS and Javasript, along with a local copy of the docs by downloading the latest version directly from GitHub.</p>
|
||||
<p><a class="btn btn-large" href="https://github.com/twitter/bootstrap/zipball/master" {{#production}}onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download source']);"{{/production}}>Download Bootstrap source</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<!-- File structure
|
||||
================================================== -->
|
||||
<section id="file-structure">
|
||||
<div class="page-header">
|
||||
<h1>{{_i}}2. File structure{{/i}}</h1>
|
||||
</div>
|
||||
<p>{{_i}}Once downloaded, unzip the compressed folder to see the structure of (the compiled) Bootstrap. You'll see something like this:{{/i}}</p>
|
||||
<!-- File structure
|
||||
================================================== -->
|
||||
<section id="file-structure">
|
||||
<div class="page-header">
|
||||
<h1>{{_i}}2. File structure{{/i}}</h1>
|
||||
</div>
|
||||
<p>{{_i}}Once downloaded, unzip the compressed folder to see the structure of (the compiled) Bootstrap. You'll see something like this:{{/i}}</p>
|
||||
<pre class="prettyprint">
|
||||
bootstrap/
|
||||
├── css/
|
||||
@ -69,67 +72,67 @@
|
||||
│ ├── glyphicons-halflings-white.png
|
||||
└── README.md
|
||||
</pre>
|
||||
<p>{{_i}}This is the most basic form of Bootstrap: compiled files for quick drop-in usage in nearly any web project. We provide compiled CSS and JS (<code>bootstrap.*</code>), as well as compiled and minified CSS and JS (<code>bootstrap.min.*</code>). The image files are compressed using <a href="http://imageoptim.com/">ImageOptim</a>, a Mac app for compressing PNGs.{{/i}}</p>
|
||||
</section>
|
||||
<p>{{_i}}This is the most basic form of Bootstrap: compiled files for quick drop-in usage in nearly any web project. We provide compiled CSS and JS (<code>bootstrap.*</code>), as well as compiled and minified CSS and JS (<code>bootstrap.min.*</code>). The image files are compressed using <a href="http://imageoptim.com/">ImageOptim</a>, a Mac app for compressing PNGs.{{/i}}</p>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<!-- Contents
|
||||
================================================== -->
|
||||
<section id="contents">
|
||||
<div class="page-header">
|
||||
<h1>{{_i}}3. What's included{{/i}}</h1>
|
||||
</div>
|
||||
<p>{{_i}}Bootstrap comes equipped with HTML, CSS, and JS for all sorts of things, but they can be summarized with a handful of categories visible at the top of the <a href="http://getbootstrap.com">Bootstrap documentation</a>.{{/i}}</p>
|
||||
<!-- Contents
|
||||
================================================== -->
|
||||
<section id="contents">
|
||||
<div class="page-header">
|
||||
<h1>{{_i}}3. What's included{{/i}}</h1>
|
||||
</div>
|
||||
<p>{{_i}}Bootstrap comes equipped with HTML, CSS, and JS for all sorts of things, but they can be summarized with a handful of categories visible at the top of the <a href="http://getbootstrap.com">Bootstrap documentation</a>.{{/i}}</p>
|
||||
|
||||
<h4><a href="http://twitter.github.com/bootstrap/scaffolding.html">Scaffolding</a></h4>
|
||||
<p>Global styles for the body to reset type and background, link styles, grid system, and two simple layouts.</p>
|
||||
<h4><a href="http://twitter.github.com/bootstrap/scaffolding.html">Scaffolding</a></h4>
|
||||
<p>Global styles for the body to reset type and background, link styles, grid system, and two simple layouts.</p>
|
||||
|
||||
<h4><a href="http://twitter.github.com/bootstrap/base-css.html">Base CSS</a></h4>
|
||||
<p>Styles for common HTML elements like typography, code, tables, forms, and buttons. Also includes <a href="http://glyphicons.com">Glyphicons</a>, a great little icon set.</p>
|
||||
<h4><a href="http://twitter.github.com/bootstrap/base-css.html">Base CSS</a></h4>
|
||||
<p>Styles for common HTML elements like typography, code, tables, forms, and buttons. Also includes <a href="http://glyphicons.com">Glyphicons</a>, a great little icon set.</p>
|
||||
|
||||
<h4><a href="http://twitter.github.com/bootstrap/components.html">Components</a></h4>
|
||||
<p>Basic styles for common interface components like tabs and pills, navbar, alerts, page headers, and more.</p>
|
||||
<h4><a href="http://twitter.github.com/bootstrap/components.html">Components</a></h4>
|
||||
<p>Basic styles for common interface components like tabs and pills, navbar, alerts, page headers, and more.</p>
|
||||
|
||||
<h4><a href="http://twitter.github.com/bootstrap/javascript.html">Javascript plugins</a></h4>
|
||||
<p>Similar to Components, these Javascript plugins are interactive components for things like tooltips, popovers, modals, and more.</p>
|
||||
<h4><a href="http://twitter.github.com/bootstrap/javascript.html">Javascript plugins</a></h4>
|
||||
<p>Similar to Components, these Javascript plugins are interactive components for things like tooltips, popovers, modals, and more.</p>
|
||||
|
||||
<hr>
|
||||
<hr>
|
||||
|
||||
<h3>List of components</h3>
|
||||
<p>Together, the <strong>Components</strong> and <strong>Javascript plugins</strong> sections provide the following interface elements:</p>
|
||||
<ul>
|
||||
<li>Button groups</li>
|
||||
<li>Button dropdowns</li>
|
||||
<li>Navigational tabs, pills, and lists</li>
|
||||
<li>Navbar</li>
|
||||
<li>Labels</li>
|
||||
<li>Badges</li>
|
||||
<li>Page headers and hero unit</li>
|
||||
<li>Thumbnails</li>
|
||||
<li>Alerts</li>
|
||||
<li>Progress bars</li>
|
||||
<li>Modals</li>
|
||||
<li>Dropdowns</li>
|
||||
<li>Tooltips</li>
|
||||
<li>Popovers</li>
|
||||
<li>Accordion</li>
|
||||
<li>Carousel</li>
|
||||
<li>Typeahead</li>
|
||||
</ul>
|
||||
<p>{{_i}}In future guides, we may walk through these components individually in more detail. Until then, look for each of these in the documentation for information on how to utilize and customize them.{{/i}}</p>
|
||||
</section>
|
||||
<h3>List of components</h3>
|
||||
<p>Together, the <strong>Components</strong> and <strong>Javascript plugins</strong> sections provide the following interface elements:</p>
|
||||
<ul>
|
||||
<li>Button groups</li>
|
||||
<li>Button dropdowns</li>
|
||||
<li>Navigational tabs, pills, and lists</li>
|
||||
<li>Navbar</li>
|
||||
<li>Labels</li>
|
||||
<li>Badges</li>
|
||||
<li>Page headers and hero unit</li>
|
||||
<li>Thumbnails</li>
|
||||
<li>Alerts</li>
|
||||
<li>Progress bars</li>
|
||||
<li>Modals</li>
|
||||
<li>Dropdowns</li>
|
||||
<li>Tooltips</li>
|
||||
<li>Popovers</li>
|
||||
<li>Accordion</li>
|
||||
<li>Carousel</li>
|
||||
<li>Typeahead</li>
|
||||
</ul>
|
||||
<p>{{_i}}In future guides, we may walk through these components individually in more detail. Until then, look for each of these in the documentation for information on how to utilize and customize them.{{/i}}</p>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<!-- HTML template
|
||||
================================================== -->
|
||||
<section id="html-template">
|
||||
<div class="page-header">
|
||||
<h1>{{_i}}4. Basic HTML template{{/i}}</h1>
|
||||
</div>
|
||||
<p>{{_i}}With a brief intro into the contents out of the way, we can focus putting Bootstrap to use. To do that, we'll utilize a basic HTML template that includes everything we mentioned in the <a href="#file-structure">File structure</a>.{{/i}}</p>
|
||||
<p>{{_i}}Now, here's a look at a <strong>typical HTML file</strong>:{{/i}}</p>
|
||||
<!-- HTML template
|
||||
================================================== -->
|
||||
<section id="html-template">
|
||||
<div class="page-header">
|
||||
<h1>{{_i}}4. Basic HTML template{{/i}}</h1>
|
||||
</div>
|
||||
<p>{{_i}}With a brief intro into the contents out of the way, we can focus putting Bootstrap to use. To do that, we'll utilize a basic HTML template that includes everything we mentioned in the <a href="#file-structure">File structure</a>.{{/i}}</p>
|
||||
<p>{{_i}}Now, here's a look at a <strong>typical HTML file</strong>:{{/i}}</p>
|
||||
<pre class="prettyprint linenums">
|
||||
<html>
|
||||
<head>
|
||||
@ -140,7 +143,7 @@
|
||||
</body>
|
||||
</html>
|
||||
</pre>
|
||||
<p>{{_i}}To make this <strong>a Bootstrapped template</strong>, just include the appropriate CSS and JS files:{{/i}}</p>
|
||||
<p>{{_i}}To make this <strong>a Bootstrapped template</strong>, just include the appropriate CSS and JS files:{{/i}}</p>
|
||||
<pre class="prettyprint linenums">
|
||||
<html>
|
||||
<head>
|
||||
@ -154,61 +157,63 @@
|
||||
</body>
|
||||
</html>
|
||||
</pre>
|
||||
<p>{{_i}}<strong>And you're set!</strong> With those two files added, you can begin to develop any site or application with Bootstrap.{{/i}}</p>
|
||||
</section>
|
||||
<p>{{_i}}<strong>And you're set!</strong> With those two files added, you can begin to develop any site or application with Bootstrap.{{/i}}</p>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<!-- Examples
|
||||
================================================== -->
|
||||
<section id="examples">
|
||||
<div class="page-header">
|
||||
<h1>{{_i}}5. Examples{{/i}}</h1>
|
||||
</div>
|
||||
<p class="lead">{{_i}}Move beyond the base template with a few example layouts. We encourage folks to iterate on these examples and not simply use them as an end result.{{/i}}</p>
|
||||
<ul class="thumbnails bootstrap-examples">
|
||||
<li class="span3">
|
||||
<a class="thumbnail" href="examples/hero.html">
|
||||
<img src="assets/img/examples/bootstrap-example-hero.jpg" alt="">
|
||||
</a>
|
||||
<h3>{{_i}}Basic marketing site{{/i}}</h3>
|
||||
<p>{{_i}}Featuring a hero unit for a primary message and three supporting elements.{{/i}}</p>
|
||||
</li>
|
||||
<li class="span3">
|
||||
<a class="thumbnail" href="examples/fluid.html">
|
||||
<img src="assets/img/examples/bootstrap-example-fluid.jpg" alt="">
|
||||
</a>
|
||||
<h3>{{_i}}Fluid layout{{/i}}</h3>
|
||||
<p>{{_i}}Uses our new responsive, fluid grid system to create a seamless liquid layout.{{/i}}</p>
|
||||
</li>
|
||||
<li class="span3">
|
||||
<a class="thumbnail" href="examples/starter-template.html">
|
||||
<img src="assets/img/examples/bootstrap-example-starter.jpg" alt="">
|
||||
</a>
|
||||
<h3>{{_i}}Starter template{{/i}}</h3>
|
||||
<p>{{_i}}A barebones HTML document with all the Bootstrap CSS and javascript included.{{/i}}</p>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<!-- Examples
|
||||
================================================== -->
|
||||
<section id="examples">
|
||||
<div class="page-header">
|
||||
<h1>{{_i}}5. Examples{{/i}}</h1>
|
||||
</div>
|
||||
<p class="lead">{{_i}}Move beyond the base template with a few example layouts. We encourage folks to iterate on these examples and not simply use them as an end result.{{/i}}</p>
|
||||
<ul class="thumbnails bootstrap-examples">
|
||||
<li class="span3">
|
||||
<a class="thumbnail" href="examples/hero.html">
|
||||
<img src="assets/img/examples/bootstrap-example-hero.jpg" alt="">
|
||||
</a>
|
||||
<h3>{{_i}}Basic marketing site{{/i}}</h3>
|
||||
<p>{{_i}}Featuring a hero unit for a primary message and three supporting elements.{{/i}}</p>
|
||||
</li>
|
||||
<li class="span3">
|
||||
<a class="thumbnail" href="examples/fluid.html">
|
||||
<img src="assets/img/examples/bootstrap-example-fluid.jpg" alt="">
|
||||
</a>
|
||||
<h3>{{_i}}Fluid layout{{/i}}</h3>
|
||||
<p>{{_i}}Uses our new responsive, fluid grid system to create a seamless liquid layout.{{/i}}</p>
|
||||
</li>
|
||||
<li class="span3">
|
||||
<a class="thumbnail" href="examples/starter-template.html">
|
||||
<img src="assets/img/examples/bootstrap-example-starter.jpg" alt="">
|
||||
</a>
|
||||
<h3>{{_i}}Starter template{{/i}}</h3>
|
||||
<p>{{_i}}A barebones HTML document with all the Bootstrap CSS and javascript included.{{/i}}</p>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Next
|
||||
================================================== -->
|
||||
<section id="what-next">
|
||||
<div class="page-header">
|
||||
<h1>{{_i}}What next?{{/i}}</h1>
|
||||
</div>
|
||||
<p class="lead">Head to the docs for information, examples, and code snippets, or take the next leap and customize Bootstrap for any upcoming project.</p>
|
||||
<a class="btn btn-large btn-primary" href="./scaffolding.html" {{#production}}onclick="_gaq.push(['_trackEvent', 'Getting started', 'Next steps', 'Visit docs']);"{{/production}}>Visit the Bootstrap docs</a>
|
||||
<a class="btn btn-large" href="./download.html" style="margin-left: 5px;" {{#production}}onclick="_gaq.push(['_trackEvent', 'Getting started', 'Next steps', 'Customize']);"{{/production}}>Customize Bootstrap</a>
|
||||
</section>
|
||||
<!-- Next
|
||||
================================================== -->
|
||||
<section id="what-next">
|
||||
<div class="page-header">
|
||||
<h1>{{_i}}What next?{{/i}}</h1>
|
||||
</div>
|
||||
<p class="lead">Head to the docs for information, examples, and code snippets, or take the next leap and customize Bootstrap for any upcoming project.</p>
|
||||
<a class="btn btn-large btn-primary" href="./scaffolding.html" {{#production}}onclick="_gaq.push(['_trackEvent', 'Getting started', 'Next steps', 'Visit docs']);"{{/production}}>Visit the Bootstrap docs</a>
|
||||
<a class="btn btn-large" href="./download.html" style="margin-left: 5px;" {{#production}}onclick="_gaq.push(['_trackEvent', 'Getting started', 'Next steps', 'Customize']);"{{/production}}>Customize Bootstrap</a>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>{{! /span9 }}
|
||||
</div>{{! row}}
|
||||
</div>{{! /span9 }}
|
||||
</div>{{! row}}
|
||||
|
||||
</div>{{! /container }}
|
||||
</div>{{! /.container }}
|
||||
|
||||
</div>{{! /.bs-docs-canvas }}
|
||||
|
140
docs/templates/pages/index.mustache
vendored
140
docs/templates/pages/index.mustache
vendored
@ -11,79 +11,83 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="bs-docs-social">
|
||||
<div class="container">
|
||||
<ul class="bs-docs-social-buttons">
|
||||
<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>
|
||||
</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="98px" height="20px"></iframe>
|
||||
</li>
|
||||
<li class="follow-btn">
|
||||
<a href="https://twitter.com/twbootstrap" class="twitter-follow-button" data-link-color="#0069D6" data-show-count="true">{{_i}}Follow @twbootstrap{{/i}}</a>
|
||||
</li>
|
||||
<li class="tweet-btn">
|
||||
<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>
|
||||
</div>
|
||||
<div class="bs-docs-canvas">
|
||||
|
||||
<div class="container">
|
||||
|
||||
<div class="marketing">
|
||||
|
||||
<h1>{{_i}}Introducing Bootstrap.{{/i}}</h1>
|
||||
<p class="marketing-byline">{{_i}}Need reasons to love Bootstrap? Look no further.{{/i}}</p>
|
||||
|
||||
<div class="row-fluid">
|
||||
<div class="span4">
|
||||
<img src="assets/img/bs-docs-twitter-github.png">
|
||||
<h2>{{_i}}By nerds, for nerds.{{/i}}</h2>
|
||||
<p>{{_i}}Built at Twitter by <a href="http://twitter.com/mdo">@mdo</a> and <a href="http://twitter.com/fat">@fat</a>, Bootstrap utilizes <a href="http://lesscss.org">LESS CSS</a>, is compiled via <a href="http://nodejs.org">Node</a>, and is managed through <a href="http://github.com">GitHub</a> to help nerds do awesome stuff on the web.{{/i}}</p>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<img src="assets/img/bs-docs-responsive-illustrations.png">
|
||||
<h2>{{_i}}Made for everyone.{{/i}}</h2>
|
||||
<p>{{_i}}Bootstrap was made to not only look and behave great in the latest desktop browsers (as well as IE7!), but in tablet and smartphone browsers via <a href="./scaffolding.html#responsive">responsive CSS</a> as well.{{/i}}</p>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<img src="assets/img/bs-docs-bootstrap-features.png">
|
||||
<h2>{{_i}}Packed with features.{{/i}}</h2>
|
||||
<p>{{_i}}A 12-column responsive <a href="./scaffolding.html#grid">grid</a>, dozens of components, <a href="./javascript.html">javascript plugins</a>, typography, form controls, and even a <a href="./download.html">web-based Customizer</a> to make Bootstrap your own.{{/i}}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr class="soften">
|
||||
|
||||
<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>
|
||||
<div class="row-fluid">
|
||||
<ul class="thumbnails example-sites">
|
||||
<li class="span3">
|
||||
<a class="thumbnail" href="http://soundready.fm/" target="_blank">
|
||||
<img src="assets/img/example-sites/soundready.png" alt="SoundReady.fm">
|
||||
</a>
|
||||
<div class="bs-docs-social">
|
||||
<div class="container">
|
||||
<ul class="bs-docs-social-buttons">
|
||||
<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>
|
||||
</li>
|
||||
<li class="span3">
|
||||
<a class="thumbnail" href="http://kippt.com/" target="_blank">
|
||||
<img src="assets/img/example-sites/kippt.png" alt="Kippt">
|
||||
</a>
|
||||
<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="98px" height="20px"></iframe>
|
||||
</li>
|
||||
<li class="span3">
|
||||
<a class="thumbnail" href="http://www.fleetio.com/" target="_blank">
|
||||
<img src="assets/img/example-sites/fleetio.png" alt="Fleetio">
|
||||
</a>
|
||||
<li class="follow-btn">
|
||||
<a href="https://twitter.com/twbootstrap" class="twitter-follow-button" data-link-color="#0069D6" data-show-count="true">{{_i}}Follow @twbootstrap{{/i}}</a>
|
||||
</li>
|
||||
<li class="span3">
|
||||
<a class="thumbnail" href="http://www.jshint.com/" target="_blank">
|
||||
<img src="assets/img/example-sites/jshint.png" alt="JS Hint">
|
||||
</a>
|
||||
<li class="tweet-btn">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div><!-- /.marketing -->
|
||||
<div class="container">
|
||||
|
||||
</div>{{! /container }}
|
||||
<div class="marketing">
|
||||
|
||||
<h1>{{_i}}Introducing Bootstrap.{{/i}}</h1>
|
||||
<p class="marketing-byline">{{_i}}Need reasons to love Bootstrap? Look no further.{{/i}}</p>
|
||||
|
||||
<div class="row-fluid">
|
||||
<div class="span4">
|
||||
<img src="assets/img/bs-docs-twitter-github.png">
|
||||
<h2>{{_i}}By nerds, for nerds.{{/i}}</h2>
|
||||
<p>{{_i}}Built at Twitter by <a href="http://twitter.com/mdo">@mdo</a> and <a href="http://twitter.com/fat">@fat</a>, Bootstrap utilizes <a href="http://lesscss.org">LESS CSS</a>, is compiled via <a href="http://nodejs.org">Node</a>, and is managed through <a href="http://github.com">GitHub</a> to help nerds do awesome stuff on the web.{{/i}}</p>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<img src="assets/img/bs-docs-responsive-illustrations.png">
|
||||
<h2>{{_i}}Made for everyone.{{/i}}</h2>
|
||||
<p>{{_i}}Bootstrap was made to not only look and behave great in the latest desktop browsers (as well as IE7!), but in tablet and smartphone browsers via <a href="./scaffolding.html#responsive">responsive CSS</a> as well.{{/i}}</p>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<img src="assets/img/bs-docs-bootstrap-features.png">
|
||||
<h2>{{_i}}Packed with features.{{/i}}</h2>
|
||||
<p>{{_i}}A 12-column responsive <a href="./scaffolding.html#grid">grid</a>, dozens of components, <a href="./javascript.html">javascript plugins</a>, typography, form controls, and even a <a href="./download.html">web-based Customizer</a> to make Bootstrap your own.{{/i}}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr class="soften">
|
||||
|
||||
<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>
|
||||
<div class="row-fluid">
|
||||
<ul class="thumbnails example-sites">
|
||||
<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">
|
||||
<img src="assets/img/example-sites/kippt.png" alt="Kippt">
|
||||
</a>
|
||||
</li>
|
||||
<li class="span3">
|
||||
<a class="thumbnail" href="http://www.fleetio.com/" target="_blank">
|
||||
<img src="assets/img/example-sites/fleetio.png" alt="Fleetio">
|
||||
</a>
|
||||
</li>
|
||||
<li class="span3">
|
||||
<a class="thumbnail" href="http://www.jshint.com/" target="_blank">
|
||||
<img src="assets/img/example-sites/jshint.png" alt="JS Hint">
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>{{! /.marketing }}
|
||||
|
||||
</div>{{! /.container }}
|
||||
|
||||
</div>{{! /.bs-docs-canvas }}
|
||||
|
2605
docs/templates/pages/javascript.mustache
vendored
2605
docs/templates/pages/javascript.mustache
vendored
File diff suppressed because it is too large
Load Diff
624
docs/templates/pages/scaffolding.mustache
vendored
624
docs/templates/pages/scaffolding.mustache
vendored
@ -7,35 +7,35 @@
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="bs-docs-canvas">
|
||||
|
||||
<div class="container">
|
||||
<div class="container">
|
||||
|
||||
|
||||
<!-- Docs nav
|
||||
================================================== -->
|
||||
<div class="row">
|
||||
<div class="span3 bs-docs-sidebar">
|
||||
<ul class="nav nav-list bs-docs-sidenav" data-spy="affix" data-offset-y="80">
|
||||
<li><a href="#global">{{_i}}Global styles{{/i}} <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#gridSystem">{{_i}}Grid system{{/i}} <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#fluidGridSystem">{{_i}}Fluid grid system{{/i}} <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#layouts">{{_i}}Layouts{{/i}} <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#responsive">{{_i}}Responsive design{{/i}} <i class="icon-chevron-right"></i></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<!-- Docs nav
|
||||
================================================== -->
|
||||
<div class="row">
|
||||
<div class="span3 bs-docs-sidebar">
|
||||
<ul class="nav nav-list bs-docs-sidenav">
|
||||
<li><a href="#global">{{_i}}Global styles{{/i}} <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#gridSystem">{{_i}}Grid system{{/i}} <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#fluidGridSystem">{{_i}}Fluid grid system{{/i}} <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#layouts">{{_i}}Layouts{{/i}} <i class="icon-chevron-right"></i></a></li>
|
||||
<li><a href="#responsive">{{_i}}Responsive design{{/i}} <i class="icon-chevron-right"></i></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="span9">
|
||||
|
||||
|
||||
|
||||
<!-- 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>
|
||||
<!-- 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>
|
||||
|
||||
<h3>{{_i}}Requires HTML5 doctype{{/i}}</h3>
|
||||
<p>{{_i}}Bootstrap makes use of certain HTML elements and CSS properties that require the use of the HTML5 doctype. Include it at the beginning of all your projects.{{/i}}</p>
|
||||
<h3>{{_i}}Requires HTML5 doctype{{/i}}</h3>
|
||||
<p>{{_i}}Bootstrap makes use of certain HTML elements and CSS properties that require the use of the HTML5 doctype. Include it at the beginning of all your projects.{{/i}}</p>
|
||||
<pre class="prettyprint linenums">
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
@ -43,84 +43,84 @@
|
||||
</html>
|
||||
</pre>
|
||||
|
||||
<h3>{{_i}}Typography and links{{/i}}</h3>
|
||||
<p>{{_i}}Bootstrap sets basic global display, typography, and link styles. Specifically, we:{{/i}}</p>
|
||||
<ul>
|
||||
<li>{{_i}}Remove <code>margin</code> 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>
|
||||
<p>{{_i}}These styles can be found within <strong>scaffolding.less</strong>.{{/i}}</p>
|
||||
<h3>{{_i}}Typography and links{{/i}}</h3>
|
||||
<p>{{_i}}Bootstrap sets basic global display, typography, and link styles. Specifically, we:{{/i}}</p>
|
||||
<ul>
|
||||
<li>{{_i}}Remove <code>margin</code> 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>
|
||||
<p>{{_i}}These styles can be found within <strong>scaffolding.less</strong>.{{/i}}</p>
|
||||
|
||||
<h3>{{_i}}Reset via Normalize{{/i}}</h3>
|
||||
<p>{{_i}}With Bootstrap 2, the old reset block has been dropped in favor of <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>. While we use much of Normalize within our <strong>reset.less</strong>, we have removed some elements specifically for Bootstrap.{{/i}}</p>
|
||||
<h3>{{_i}}Reset via Normalize{{/i}}</h3>
|
||||
<p>{{_i}}With Bootstrap 2, the old reset block has been dropped in favor of <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>. While we use much of Normalize within our <strong>reset.less</strong>, we have removed some elements specifically for Bootstrap.{{/i}}</p>
|
||||
|
||||
</section>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Grid system
|
||||
================================================== -->
|
||||
<section id="gridSystem">
|
||||
<div class="page-header">
|
||||
<h1>{{_i}}Default grid system <small>12 columns with a responsive twist</small>{{/i}}</h1>
|
||||
</div>
|
||||
|
||||
<h2>{{_i}}Live grid example{{/i}}</h2>
|
||||
<p>{{_i}}The default Bootstrap grid system utilizes <strong>12 columns</strong>, making for a 940px wide container without <a href="#responsive">responsive features</a> enabled. With the responsive CSS file added, the grid adapts to be 724px and 1170px wide depending on your viewport. Below 767px viewports, the columns become fluid and stack vertically.{{/i}}</p>
|
||||
<div class="bs-docs-grid">
|
||||
<div class="row show-grid">
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<!-- Grid system
|
||||
================================================== -->
|
||||
<section id="gridSystem">
|
||||
<div class="page-header">
|
||||
<h1>{{_i}}Default grid system <small>12 columns with a responsive twist</small>{{/i}}</h1>
|
||||
</div>
|
||||
<div class="row show-grid">
|
||||
<div class="span2">2</div>
|
||||
<div class="span3">3</div>
|
||||
<div class="span4">4</div>
|
||||
</div>
|
||||
<div class="row show-grid">
|
||||
<div class="span4">4</div>
|
||||
<div class="span5">5</div>
|
||||
</div>
|
||||
<div class="row show-grid">
|
||||
<div class="span9">9</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3>{{_i}}Basic grid HTML{{/i}}</h3>
|
||||
<p>{{_i}}For a simple two column layout, create a <code>.row</code> and add the appropriate number of <code>.span*</code> columns. As this is a 12-column grid, each <code>.span*</code> spans a number of those 12 columns, and should always add up to 12 for each row (or the number of columns in the parent).{{/i}}</p>
|
||||
<h2>{{_i}}Live grid example{{/i}}</h2>
|
||||
<p>{{_i}}The default Bootstrap grid system utilizes <strong>12 columns</strong>, making for a 940px wide container without <a href="#responsive">responsive features</a> enabled. With the responsive CSS file added, the grid adapts to be 724px and 1170px wide depending on your viewport. Below 767px viewports, the columns become fluid and stack vertically.{{/i}}</p>
|
||||
<div class="bs-docs-grid">
|
||||
<div class="row show-grid">
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
</div>
|
||||
<div class="row show-grid">
|
||||
<div class="span2">2</div>
|
||||
<div class="span3">3</div>
|
||||
<div class="span4">4</div>
|
||||
</div>
|
||||
<div class="row show-grid">
|
||||
<div class="span4">4</div>
|
||||
<div class="span5">5</div>
|
||||
</div>
|
||||
<div class="row show-grid">
|
||||
<div class="span9">9</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3>{{_i}}Basic grid HTML{{/i}}</h3>
|
||||
<p>{{_i}}For a simple two column layout, create a <code>.row</code> and add the appropriate number of <code>.span*</code> columns. As this is a 12-column grid, each <code>.span*</code> spans a number of those 12 columns, and should always add up to 12 for each row (or the number of columns in the parent).{{/i}}</p>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="row">
|
||||
<div class="span4">...</div>
|
||||
<div class="span8">...</div>
|
||||
</div>
|
||||
</pre>
|
||||
<p>{{_i}}Given this example, we have <code>.span4</code> and <code>.span8</code>, making for 12 total columns and a complete row.{{/i}}</p>
|
||||
<p>{{_i}}Given this example, we have <code>.span4</code> and <code>.span8</code>, making for 12 total columns and a complete row.{{/i}}</p>
|
||||
|
||||
<h2>{{_i}}Offsetting columns{{/i}}</h2>
|
||||
<p>{{_i}}Move columns to the left using <code>.offset*</code> classes. Each class increases the left margin of a column by a whole column. For example, <code>.offset4</code> moves <code>.span4</code> over four columns.{{/i}}</p>
|
||||
<div class="bs-docs-grid">
|
||||
<div class="row show-grid">
|
||||
<div class="span4">4</div>
|
||||
<div class="span3 offset2">3 offset 2</div>
|
||||
</div><!-- /row -->
|
||||
<div class="row show-grid">
|
||||
<div class="span3 offset1">3 offset 1</div>
|
||||
<div class="span3 offset2">3 offset 2</div>
|
||||
</div><!-- /row -->
|
||||
<div class="row show-grid">
|
||||
<div class="span6 offset3">6 offset 3</div>
|
||||
</div><!-- /row -->
|
||||
</div>
|
||||
<h2>{{_i}}Offsetting columns{{/i}}</h2>
|
||||
<p>{{_i}}Move columns to the left using <code>.offset*</code> classes. Each class increases the left margin of a column by a whole column. For example, <code>.offset4</code> moves <code>.span4</code> over four columns.{{/i}}</p>
|
||||
<div class="bs-docs-grid">
|
||||
<div class="row show-grid">
|
||||
<div class="span4">4</div>
|
||||
<div class="span3 offset2">3 offset 2</div>
|
||||
</div><!-- /row -->
|
||||
<div class="row show-grid">
|
||||
<div class="span3 offset1">3 offset 1</div>
|
||||
<div class="span3 offset2">3 offset 2</div>
|
||||
</div><!-- /row -->
|
||||
<div class="row show-grid">
|
||||
<div class="span6 offset3">6 offset 3</div>
|
||||
</div><!-- /row -->
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="row">
|
||||
<div class="span4">...</div>
|
||||
@ -128,7 +128,7 @@
|
||||
</div>
|
||||
</pre>
|
||||
|
||||
<h2>{{_i}}Nesting columns{{/i}}</h2>
|
||||
<h2>{{_i}}Nesting columns{{/i}}</h2>
|
||||
<p>{{_i}}To nest your content with the default grid, add a new <code>.row</code> and set of <code>.span*</code> columns within an existing <code>.span*</code> column. Nested rows should include a set of columns that add up to the number of columns of its parent.{{/i}}</p>
|
||||
<h3>{{_i}}Example{{/i}}</h3>
|
||||
<p>{{_i}}Here two nested <code>.span4</code> columns are placed within a <code>.span8</code>.{{/i}}</p>
|
||||
@ -156,54 +156,54 @@
|
||||
</div>
|
||||
</div>
|
||||
</pre>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<!-- Fluid grid system
|
||||
================================================== -->
|
||||
<section id="fluidGridSystem">
|
||||
<div class="page-header">
|
||||
<h1>{{_i}}Fluid grid system <small>12 responsive, percent-based columns</small>{{/i}}</h1>
|
||||
</div>
|
||||
<!-- Fluid grid system
|
||||
================================================== -->
|
||||
<section id="fluidGridSystem">
|
||||
<div class="page-header">
|
||||
<h1>{{_i}}Fluid grid system <small>12 responsive, percent-based columns</small>{{/i}}</h1>
|
||||
</div>
|
||||
|
||||
<h2>{{_i}}Live fluid grid example{{/i}}</h2>
|
||||
<p>{{_i}}The fluid grid system uses percents instead of pixels for column widths. It has the same responsive capabilities as our fixed grid system, ensuring proper proportions for key screen resolutions and devices.{{/i}}</p>
|
||||
<div class="bs-docs-grid">
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<h2>{{_i}}Live fluid grid example{{/i}}</h2>
|
||||
<p>{{_i}}The fluid grid system uses percents instead of pixels for column widths. It has the same responsive capabilities as our fixed grid system, ensuring proper proportions for key screen resolutions and devices.{{/i}}</p>
|
||||
<div class="bs-docs-grid">
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
<div class="span1">1</div>
|
||||
</div>
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span4">4</div>
|
||||
<div class="span4">4</div>
|
||||
<div class="span4">4</div>
|
||||
</div>
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span4">4</div>
|
||||
<div class="span8">8</div>
|
||||
</div>
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span6">6</div>
|
||||
<div class="span6">6</div>
|
||||
</div>
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span12">12</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span4">4</div>
|
||||
<div class="span4">4</div>
|
||||
<div class="span4">4</div>
|
||||
</div>
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span4">4</div>
|
||||
<div class="span8">8</div>
|
||||
</div>
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span6">6</div>
|
||||
<div class="span6">6</div>
|
||||
</div>
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span12">12</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3>{{_i}}Basic fluid grid HTML{{/i}}</h3>
|
||||
<p>{{_i}}Make any row "fluid" by changing <code>.row</code> to <code>.row-fluid</code>. The column classes stay the exact same, making it easy to flip between fixed and fluid grids.{{/i}}</p>
|
||||
<h3>{{_i}}Basic fluid grid HTML{{/i}}</h3>
|
||||
<p>{{_i}}Make any row "fluid" by changing <code>.row</code> to <code>.row-fluid</code>. The column classes stay the exact same, making it easy to flip between fixed and fluid grids.{{/i}}</p>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="row-fluid">
|
||||
<div class="span4">...</div>
|
||||
@ -211,21 +211,21 @@
|
||||
</div>
|
||||
</pre>
|
||||
|
||||
<h2>{{_i}}Fluid offsetting{{/i}}</h2>
|
||||
<p>{{_i}}Operates the same way as the fixed grid system offsetting: add <code>.offset*</code> to any column to offset by that many columns.{{/i}}</p>
|
||||
<div class="bs-docs-grid">
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span4">4</div>
|
||||
<div class="span4 offset4">4 offset 4</div>
|
||||
</div><!-- /row -->
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span3 offset3">3 offset 3</div>
|
||||
<div class="span3 offset3">3 offset 3</div>
|
||||
</div><!-- /row -->
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span6 offset6">6 offset 6</div>
|
||||
</div><!-- /row -->
|
||||
</div>
|
||||
<h2>{{_i}}Fluid offsetting{{/i}}</h2>
|
||||
<p>{{_i}}Operates the same way as the fixed grid system offsetting: add <code>.offset*</code> to any column to offset by that many columns.{{/i}}</p>
|
||||
<div class="bs-docs-grid">
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span4">4</div>
|
||||
<div class="span4 offset4">4 offset 4</div>
|
||||
</div><!-- /row -->
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span3 offset3">3 offset 3</div>
|
||||
<div class="span3 offset3">3 offset 3</div>
|
||||
</div><!-- /row -->
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span6 offset6">6 offset 6</div>
|
||||
</div><!-- /row -->
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="row-fluid">
|
||||
<div class="span4">...</div>
|
||||
@ -233,21 +233,21 @@
|
||||
</div>
|
||||
</pre>
|
||||
|
||||
<h2>{{_i}}Fluid nesting{{/i}}</h2>
|
||||
<p>{{_i}}Nesting with fluid grids is a bit different: the number of nested columns should not match the parent's number of columns. Instead, each level of nested columns are reset because each row takes up 100% of the parent column.{{/i}}</p>
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span12">
|
||||
{{_i}}Fluid 12{{/i}}
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span6">
|
||||
{{_i}}Fluid 6{{/i}}
|
||||
</div>
|
||||
<div class="span6">
|
||||
{{_i}}Fluid 6{{/i}}
|
||||
<h2>{{_i}}Fluid nesting{{/i}}</h2>
|
||||
<p>{{_i}}Nesting with fluid grids is a bit different: the number of nested columns should not match the parent's number of columns. Instead, each level of nested columns are reset because each row takes up 100% of the parent column.{{/i}}</p>
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span12">
|
||||
{{_i}}Fluid 12{{/i}}
|
||||
<div class="row-fluid show-grid">
|
||||
<div class="span6">
|
||||
{{_i}}Fluid 6{{/i}}
|
||||
</div>
|
||||
<div class="span6">
|
||||
{{_i}}Fluid 6{{/i}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
@ -260,23 +260,23 @@
|
||||
</div>
|
||||
</pre>
|
||||
|
||||
</section>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Layouts (Default and fluid)
|
||||
================================================== -->
|
||||
<section id="layouts">
|
||||
<div class="page-header">
|
||||
<h1>{{_i}}Layouts <small>Basic templates to create webpages</small>{{/i}}</h1>
|
||||
</div>
|
||||
<!-- Layouts (Default and fluid)
|
||||
================================================== -->
|
||||
<section id="layouts">
|
||||
<div class="page-header">
|
||||
<h1>{{_i}}Layouts <small>Basic templates to create webpages</small>{{/i}}</h1>
|
||||
</div>
|
||||
|
||||
<h2>{{_i}}Fixed layout{{/i}}</h2>
|
||||
<p>{{_i}}Provides a common fixed-width (and optionally responsive) layout with only <code><div class="container"></code> required.{{/i}}</p>
|
||||
<div class="mini-layout">
|
||||
<div class="mini-layout-body"></div>
|
||||
</div>
|
||||
<h2>{{_i}}Fixed layout{{/i}}</h2>
|
||||
<p>{{_i}}Provides a common fixed-width (and optionally responsive) layout with only <code><div class="container"></code> required.{{/i}}</p>
|
||||
<div class="mini-layout">
|
||||
<div class="mini-layout-body"></div>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<body>
|
||||
<div class="container">
|
||||
@ -285,12 +285,12 @@
|
||||
</body>
|
||||
</pre>
|
||||
|
||||
<h2>{{_i}}Fluid layout{{/i}}</h2>
|
||||
<p>{{_i}}Create a fluid, two-column page with <code><div class="container-fluid"></code>—great for applications and docs.{{/i}}</p>
|
||||
<div class="mini-layout fluid">
|
||||
<div class="mini-layout-sidebar"></div>
|
||||
<div class="mini-layout-body"></div>
|
||||
</div>
|
||||
<h2>{{_i}}Fluid layout{{/i}}</h2>
|
||||
<p>{{_i}}Create a fluid, two-column page with <code><div class="container-fluid"></code>—great for applications and docs.{{/i}}</p>
|
||||
<div class="mini-layout fluid">
|
||||
<div class="mini-layout-sidebar"></div>
|
||||
<div class="mini-layout-body"></div>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
@ -303,81 +303,81 @@
|
||||
</div>
|
||||
</div>
|
||||
</pre>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Responsive design
|
||||
================================================== -->
|
||||
<section id="responsive">
|
||||
<div class="page-header">
|
||||
<h1>{{_i}}Responsive design <small>Media queries for various devices and resolutions</small>{{/i}}</h1>
|
||||
</div>
|
||||
<!-- Responsive design
|
||||
================================================== -->
|
||||
<section id="responsive">
|
||||
<div class="page-header">
|
||||
<h1>{{_i}}Responsive design <small>Media queries for various devices and resolutions</small>{{/i}}</h1>
|
||||
</div>
|
||||
|
||||
{{! Enabling }}
|
||||
<h2>{{_i}}Enabling responsive features{{/i}}</h2>
|
||||
<p>{{_i}}Turn on responsive CSS in your project by including the proper meta tag and additional stylesheet within the <code><head></code> of your document. If you've compiled Bootstrap from the Customize page, you need only include the meta tag.{{/i}}</p>
|
||||
{{! Enabling }}
|
||||
<h2>{{_i}}Enabling responsive features{{/i}}</h2>
|
||||
<p>{{_i}}Turn on responsive CSS in your project by including the proper meta tag and additional stylesheet within the <code><head></code> of your document. If you've compiled Bootstrap from the Customize page, you need only include the meta tag.{{/i}}</p>
|
||||
<pre class="prettyprint linenums">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link href="assets/css/bootstrap-responsive.css" rel="stylesheet">
|
||||
</pre>
|
||||
<p><span class="label label-info">{{_i}}Heads up!{{/i}}</span> {{_i}} Bootstrap doesn't include responsive features by default at this time as not everything needs to be responsive. Instead of encouraging developers to remove this feature, we figure it best to enable it as needed.{{/i}}</p>
|
||||
<p><span class="label label-info">{{_i}}Heads up!{{/i}}</span> {{_i}} Bootstrap doesn't include responsive features by default at this time as not everything needs to be responsive. Instead of encouraging developers to remove this feature, we figure it best to enable it as needed.{{/i}}</p>
|
||||
|
||||
{{! About }}
|
||||
<h2>{{_i}}About responsive Bootstrap{{/i}}</h2>
|
||||
<img src="assets/img/responsive-illustrations.png" alt="Responsive devices" style="float: right; margin: 0 0 20px 20px;">
|
||||
<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>
|
||||
{{! About }}
|
||||
<h2>{{_i}}About responsive Bootstrap{{/i}}</h2>
|
||||
<img src="assets/img/responsive-illustrations.png" alt="Responsive devices" style="float: right; margin: 0 0 20px 20px;">
|
||||
<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>
|
||||
|
||||
{{! Supported }}
|
||||
<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>
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{_i}}Label{{/i}}</th>
|
||||
<th>{{_i}}Layout width{{/i}}</th>
|
||||
<th>{{_i}}Column width{{/i}}</th>
|
||||
<th>{{_i}}Gutter width{{/i}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{_i}}Phones{{/i}}</td>
|
||||
<td>480px and below</td>
|
||||
<td class="muted" colspan="2">{{_i}}Fluid columns, no fixed widths{{/i}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{_i}}Phones to tablets{{/i}}</td>
|
||||
<td>767px and below</td>
|
||||
<td class="muted" colspan="2">{{_i}}Fluid columns, no fixed widths{{/i}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{_i}}Portrait tablets{{/i}}</td>
|
||||
<td>768px and above</td>
|
||||
<td>42px</td>
|
||||
<td>20px</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{_i}}Default{{/i}}</td>
|
||||
<td>980px and up</td>
|
||||
<td>60px</td>
|
||||
<td>20px</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{_i}}Large display{{/i}}</td>
|
||||
<td>1200px and up</td>
|
||||
<td>70px</td>
|
||||
<td>30px</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{{! Supported }}
|
||||
<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>
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{_i}}Label{{/i}}</th>
|
||||
<th>{{_i}}Layout width{{/i}}</th>
|
||||
<th>{{_i}}Column width{{/i}}</th>
|
||||
<th>{{_i}}Gutter width{{/i}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{_i}}Phones{{/i}}</td>
|
||||
<td>480px and below</td>
|
||||
<td class="muted" colspan="2">{{_i}}Fluid columns, no fixed widths{{/i}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{_i}}Phones to tablets{{/i}}</td>
|
||||
<td>767px and below</td>
|
||||
<td class="muted" colspan="2">{{_i}}Fluid columns, no fixed widths{{/i}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{_i}}Portrait tablets{{/i}}</td>
|
||||
<td>768px and above</td>
|
||||
<td>42px</td>
|
||||
<td>20px</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{_i}}Default{{/i}}</td>
|
||||
<td>980px and up</td>
|
||||
<td>60px</td>
|
||||
<td>20px</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{_i}}Large display{{/i}}</td>
|
||||
<td>1200px and up</td>
|
||||
<td>70px</td>
|
||||
<td>30px</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<pre class="prettyprint linenums">
|
||||
/* {{_i}}Landscape phones and down{{/i}} */
|
||||
@media (max-width: 480px) { ... }
|
||||
@ -393,83 +393,85 @@
|
||||
</pre>
|
||||
|
||||
|
||||
{{! Responsive utility classes }}
|
||||
<h2>{{_i}}Responsive utility classes{{/i}}</h2>
|
||||
<p>{{_i}}For faster mobile-friendly development, use these utility classes for showing and hiding content by device. Below is a table of the available classes 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>767px and below</small>{{/i}}</th>
|
||||
<th>{{_i}}Tablets <small>979px to 768px</small>{{/i}}</th>
|
||||
<th>{{_i}}Desktops <small>Default</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>
|
||||
{{! Responsive utility classes }}
|
||||
<h2>{{_i}}Responsive utility classes{{/i}}</h2>
|
||||
<p>{{_i}}For faster mobile-friendly development, use these utility classes for showing and hiding content by device. Below is a table of the available classes 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>767px and below</small>{{/i}}</th>
|
||||
<th>{{_i}}Tablets <small>979px to 768px</small>{{/i}}</th>
|
||||
<th>{{_i}}Desktops <small>Default</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}}When to use{{/i}}</h3>
|
||||
<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>
|
||||
<h3>{{_i}}When to use{{/i}}</h3>
|
||||
<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>
|
||||
|
||||
<h3>{{_i}}Responsive utilities test case{{/i}}</h3>
|
||||
<p>{{_i}}Resize your browser or load on different devices to test the above classes.{{/i}}</p>
|
||||
<h4>{{_i}}Visible on...{{/i}}</h4>
|
||||
<p>{{_i}}Green checkmarks indicate that class is visible in your current viewport.{{/i}}</p>
|
||||
<ul class="responsive-utilities-test">
|
||||
<li>{{_i}}Phone{{/i}}<span class="visible-phone">✔ {{_i}}Phone{{/i}}</span></li>
|
||||
<li>{{_i}}Tablet{{/i}}<span class="visible-tablet">✔ {{_i}}Tablet{{/i}}</span></li>
|
||||
<li>{{_i}}Desktop{{/i}}<span class="visible-desktop">✔ {{_i}}Desktop{{/i}}</span></li>
|
||||
</ul>
|
||||
<h4>{{_i}}Hidden on...{{/i}}</h4>
|
||||
<p>{{_i}}Here, green checkmarks indicate that class is hidden in your current viewport.{{/i}}</p>
|
||||
<ul class="responsive-utilities-test hidden-on">
|
||||
<li>{{_i}}Phone{{/i}}<span class="hidden-phone">✔ {{_i}}Phone{{/i}}</span></li>
|
||||
<li>{{_i}}Tablet{{/i}}<span class="hidden-tablet">✔ {{_i}}Tablet{{/i}}</span></li>
|
||||
<li>{{_i}}Desktop{{/i}}<span class="hidden-desktop">✔ {{_i}}Desktop{{/i}}</span></li>
|
||||
</ul>
|
||||
<h3>{{_i}}Responsive utilities test case{{/i}}</h3>
|
||||
<p>{{_i}}Resize your browser or load on different devices to test the above classes.{{/i}}</p>
|
||||
<h4>{{_i}}Visible on...{{/i}}</h4>
|
||||
<p>{{_i}}Green checkmarks indicate that class is visible in your current viewport.{{/i}}</p>
|
||||
<ul class="responsive-utilities-test">
|
||||
<li>{{_i}}Phone{{/i}}<span class="visible-phone">✔ {{_i}}Phone{{/i}}</span></li>
|
||||
<li>{{_i}}Tablet{{/i}}<span class="visible-tablet">✔ {{_i}}Tablet{{/i}}</span></li>
|
||||
<li>{{_i}}Desktop{{/i}}<span class="visible-desktop">✔ {{_i}}Desktop{{/i}}</span></li>
|
||||
</ul>
|
||||
<h4>{{_i}}Hidden on...{{/i}}</h4>
|
||||
<p>{{_i}}Here, green checkmarks indicate that class is hidden in your current viewport.{{/i}}</p>
|
||||
<ul class="responsive-utilities-test hidden-on">
|
||||
<li>{{_i}}Phone{{/i}}<span class="hidden-phone">✔ {{_i}}Phone{{/i}}</span></li>
|
||||
<li>{{_i}}Tablet{{/i}}<span class="hidden-tablet">✔ {{_i}}Tablet{{/i}}</span></li>
|
||||
<li>{{_i}}Desktop{{/i}}<span class="hidden-desktop">✔ {{_i}}Desktop{{/i}}</span></li>
|
||||
</ul>
|
||||
|
||||
</section>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
</div>{{! /span9 }}
|
||||
</div>{{! row}}
|
||||
</div>{{! /span9 }}
|
||||
</div>{{! row}}
|
||||
|
||||
</div>{{! /container }}
|
||||
</div>{{! /.container }}
|
||||
|
||||
</div>{{! /.bs-docs-canvas }}
|
||||
|
2
js/bootstrap-affix.js
vendored
2
js/bootstrap-affix.js
vendored
@ -88,7 +88,7 @@
|
||||
$('[data-spy="affix"]').each(function () {
|
||||
var $spy = $(this)
|
||||
, data = $spy.data()
|
||||
|
||||
|
||||
data.offset = data.offset || {}
|
||||
|
||||
data.offsetX && (data.offset.x = data.offsetX)
|
||||
|
3
js/bootstrap-transition.js
vendored
3
js/bootstrap-transition.js
vendored
@ -36,8 +36,7 @@
|
||||
, transEndEventNames = {
|
||||
'WebkitTransition' : 'webkitTransitionEnd'
|
||||
, 'MozTransition' : 'transitionend'
|
||||
, 'OTransition' : 'otransitionend'
|
||||
, 'msTransition' : 'MSTransitionEnd'
|
||||
, 'OTransition' : 'oTransitionEnd otransitionend'
|
||||
, 'transition' : 'transitionend'
|
||||
}
|
||||
, name
|
||||
|
6
js/tests/unit/bootstrap-affix.js
vendored
6
js/tests/unit/bootstrap-affix.js
vendored
@ -16,10 +16,4 @@ $(function () {
|
||||
ok(!$affix.hasClass('affix'), 'affix class was not added')
|
||||
})
|
||||
|
||||
test("should add affix class if scrolled to correct position", function () {
|
||||
var $affix = $('<div></div>').appendTo('body').affix()
|
||||
$('body').trigger('scroll')
|
||||
ok($affix.hasClass('affix'), 'element has class affix')
|
||||
})
|
||||
|
||||
})
|
@ -171,10 +171,10 @@
|
||||
.border-radius(0);
|
||||
}
|
||||
.nav-tabs.nav-stacked > li:first-child > a {
|
||||
.border-radius(4px 4px 0 0);
|
||||
.border-top-radius(4px);
|
||||
}
|
||||
.nav-tabs.nav-stacked > li:last-child > a {
|
||||
.border-radius(0 0 4px 4px);
|
||||
.border-bottom-radius(4px);
|
||||
}
|
||||
.nav-tabs.nav-stacked > li > a:hover {
|
||||
border-color: #ddd;
|
||||
|
Loading…
x
Reference in New Issue
Block a user