twigg-app 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/javascripts/_bootstrap.js +7 -0
- data/assets/javascripts/_jquery.js +19 -0
- data/assets/javascripts/_tables.js +3 -0
- data/assets/javascripts/_views.js +10 -0
- data/assets/javascripts/application.js +9 -0
- data/{public/application.js → assets/javascripts/views/_commit_set_bar_chart.js} +32 -34
- data/assets/javascripts/views/_russia.js +61 -0
- data/assets/javascripts/views/_tags.js +56 -0
- data/assets/javascripts/views/_tags_word_cloud.js +51 -0
- data/assets/stylesheets/_bootstrap_overrides.scss +15 -0
- data/assets/stylesheets/_footer.scss +28 -0
- data/assets/stylesheets/_global.scss +14 -0
- data/assets/stylesheets/_tables.scss +20 -0
- data/assets/stylesheets/application.scss +10 -0
- data/assets/stylesheets/d3/_bar_chart.scss +25 -0
- data/assets/stylesheets/d3/_bubble_chart.scss +22 -0
- data/lib/twigg-app/app/routes.rb +4 -0
- data/lib/twigg-app/app/server.rb +78 -21
- data/lib/twigg-app/app/version.rb +1 -1
- data/public/vendor/bootstrap/Gruntfile.js +32 -10
- data/public/vendor/bootstrap/README.md +2 -0
- data/public/vendor/bootstrap/_config.yml +5 -10
- data/public/vendor/bootstrap/_includes/footer.html +2 -1
- data/public/vendor/bootstrap/_includes/nav-components.html +33 -31
- data/public/vendor/bootstrap/_includes/nav-css.html +32 -22
- data/public/vendor/bootstrap/_includes/nav-getting-started.html +17 -1
- data/public/vendor/bootstrap/_includes/nav-javascript.html +1 -1
- data/public/vendor/bootstrap/_includes/nav-main.html +1 -1
- data/public/vendor/bootstrap/_includes/social-buttons.html +1 -1
- data/public/vendor/bootstrap/_layouts/default.html +18 -14
- data/public/vendor/bootstrap/_layouts/home.html +9 -6
- data/public/vendor/bootstrap/assets/css/docs.css +584 -396
- data/public/vendor/bootstrap/assets/ico/apple-touch-icon-114-precomposed.png +0 -0
- data/public/vendor/bootstrap/assets/ico/apple-touch-icon-144-precomposed.png +0 -0
- data/public/vendor/bootstrap/assets/ico/apple-touch-icon-57-precomposed.png +0 -0
- data/public/vendor/bootstrap/assets/ico/apple-touch-icon-72-precomposed.png +0 -0
- data/public/vendor/bootstrap/assets/ico/favicon.png +0 -0
- data/public/vendor/bootstrap/assets/js/application.js +2 -1
- data/public/vendor/bootstrap/assets/js/customizer.js +160 -45
- data/public/vendor/bootstrap/assets/js/filesaver.js +169 -0
- data/public/vendor/bootstrap/assets/js/jquery.js +6 -5
- data/public/vendor/bootstrap/assets/js/raw-files.js +3 -0
- data/public/vendor/bootstrap/bower.json +1 -1
- data/public/vendor/bootstrap/components.html +787 -364
- data/public/vendor/bootstrap/composer.json +1 -1
- data/public/vendor/bootstrap/css.html +413 -248
- data/public/vendor/bootstrap/customize.html +413 -447
- data/public/vendor/bootstrap/dist/css/bootstrap-theme.css +384 -0
- data/public/vendor/bootstrap/dist/css/bootstrap-theme.min.css +1 -0
- data/public/vendor/bootstrap/dist/css/bootstrap.css +3033 -1807
- data/public/vendor/bootstrap/dist/css/bootstrap.min.css +1 -1
- data/public/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.eot +0 -0
- data/public/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.svg +228 -0
- data/public/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/public/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.woff +0 -0
- data/public/vendor/bootstrap/dist/js/bootstrap.js +18 -12
- data/public/vendor/bootstrap/dist/js/bootstrap.min.js +1 -1
- data/public/vendor/bootstrap/examples/carousel/carousel.css +128 -0
- data/public/vendor/bootstrap/examples/carousel/index.html +201 -0
- data/public/vendor/bootstrap/examples/grid/grid.css +28 -0
- data/public/vendor/bootstrap/examples/grid/index.html +119 -0
- data/public/vendor/bootstrap/examples/jumbotron/index.html +111 -0
- data/public/vendor/bootstrap/examples/jumbotron/jumbotron.css +5 -0
- data/public/vendor/bootstrap/examples/jumbotron-narrow/index.html +78 -0
- data/public/vendor/bootstrap/examples/jumbotron-narrow/jumbotron-narrow.css +79 -0
- data/public/vendor/bootstrap/examples/justified-nav/index.html +79 -0
- data/public/vendor/bootstrap/examples/justified-nav/justified-nav.css +88 -0
- data/public/vendor/bootstrap/examples/navbar/index.html +83 -0
- data/public/vendor/bootstrap/examples/navbar/navbar.css +7 -0
- data/public/vendor/bootstrap/examples/navbar-fixed-top/index.html +86 -0
- data/public/vendor/bootstrap/examples/navbar-fixed-top/navbar-fixed-top.css +4 -0
- data/public/vendor/bootstrap/examples/navbar-static-top/index.html +87 -0
- data/public/vendor/bootstrap/examples/navbar-static-top/navbar-static-top.css +7 -0
- data/public/vendor/bootstrap/examples/non-responsive/index.html +96 -0
- data/public/vendor/bootstrap/examples/non-responsive/non-responsive.css +117 -0
- data/public/vendor/bootstrap/examples/offcanvas/index.html +127 -0
- data/public/vendor/bootstrap/examples/offcanvas/offcanvas.css +48 -0
- data/public/vendor/bootstrap/examples/offcanvas/offcanvas.js +5 -0
- data/public/vendor/bootstrap/examples/screenshots/carousel.jpg +0 -0
- data/public/vendor/bootstrap/examples/screenshots/grid.jpg +0 -0
- data/public/vendor/bootstrap/examples/screenshots/jumbotron-narrow.jpg +0 -0
- data/public/vendor/bootstrap/examples/screenshots/jumbotron.jpg +0 -0
- data/public/vendor/bootstrap/examples/screenshots/justified-nav.jpg +0 -0
- data/public/vendor/bootstrap/examples/screenshots/navbar-fixed.jpg +0 -0
- data/public/vendor/bootstrap/examples/screenshots/navbar-static.jpg +0 -0
- data/public/vendor/bootstrap/examples/screenshots/navbar.jpg +0 -0
- data/public/vendor/bootstrap/examples/screenshots/non-responsive.jpg +0 -0
- data/public/vendor/bootstrap/examples/screenshots/offcanvas.jpg +0 -0
- data/public/vendor/bootstrap/examples/screenshots/sign-in.jpg +0 -0
- data/public/vendor/bootstrap/examples/screenshots/starter-template.jpg +0 -0
- data/public/vendor/bootstrap/examples/screenshots/sticky-footer-navbar.jpg +0 -0
- data/public/vendor/bootstrap/examples/screenshots/sticky-footer.jpg +0 -0
- data/public/vendor/bootstrap/examples/screenshots/theme.jpg +0 -0
- data/public/vendor/bootstrap/examples/signin/index.html +46 -0
- data/public/vendor/bootstrap/examples/signin/signin.css +40 -0
- data/public/vendor/bootstrap/examples/starter-template/index.html +63 -0
- data/public/vendor/bootstrap/examples/starter-template/starter-template.css +7 -0
- data/public/vendor/bootstrap/examples/sticky-footer/index.html +51 -0
- data/public/vendor/bootstrap/examples/sticky-footer/sticky-footer.css +39 -0
- data/public/vendor/bootstrap/examples/sticky-footer-navbar/index.html +86 -0
- data/public/vendor/bootstrap/examples/sticky-footer-navbar/sticky-footer-navbar.css +46 -0
- data/public/vendor/bootstrap/examples/theme/index.html +387 -0
- data/public/vendor/bootstrap/examples/theme/theme.css +14 -0
- data/public/vendor/bootstrap/fonts/glyphicons-halflings-regular.eot +0 -0
- data/public/vendor/bootstrap/fonts/glyphicons-halflings-regular.svg +228 -0
- data/public/vendor/bootstrap/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/public/vendor/bootstrap/fonts/glyphicons-halflings-regular.woff +0 -0
- data/public/vendor/bootstrap/getting-started.html +513 -22
- data/public/vendor/bootstrap/index.html +3 -4
- data/public/vendor/bootstrap/javascript.html +123 -115
- data/public/vendor/bootstrap/js/dropdown.js +3 -3
- data/public/vendor/bootstrap/js/modal.js +5 -3
- data/public/vendor/bootstrap/js/tests/unit/modal.js +19 -0
- data/public/vendor/bootstrap/js/tests/vendor/jquery.js +6 -5
- data/public/vendor/bootstrap/js/tooltip.js +9 -5
- data/public/vendor/bootstrap/js/transition.js +1 -1
- data/public/vendor/bootstrap/less/alerts.less +7 -11
- data/public/vendor/bootstrap/less/bootstrap.less +17 -21
- data/public/vendor/bootstrap/less/button-groups.less +14 -10
- data/public/vendor/bootstrap/less/buttons.less +3 -2
- data/public/vendor/bootstrap/less/carousel.less +6 -1
- data/public/vendor/bootstrap/less/dropdowns.less +22 -5
- data/public/vendor/bootstrap/less/forms.less +36 -15
- data/public/vendor/bootstrap/less/glyphicons.less +232 -0
- data/public/vendor/bootstrap/less/grid.less +9 -3
- data/public/vendor/bootstrap/less/input-groups.less +1 -1
- data/public/vendor/bootstrap/less/jumbotron.less +16 -5
- data/public/vendor/bootstrap/less/labels.less +9 -5
- data/public/vendor/bootstrap/less/mixins.less +73 -43
- data/public/vendor/bootstrap/less/modals.less +8 -0
- data/public/vendor/bootstrap/less/navbar.less +251 -189
- data/public/vendor/bootstrap/less/navs.less +13 -12
- data/public/vendor/bootstrap/less/pager.less +1 -1
- data/public/vendor/bootstrap/less/pagination.less +20 -9
- data/public/vendor/bootstrap/less/panels.less +28 -8
- data/public/vendor/bootstrap/less/progress-bars.less +6 -10
- data/public/vendor/bootstrap/less/responsive-utilities.less +120 -49
- data/public/vendor/bootstrap/less/scaffolding.less +37 -18
- data/public/vendor/bootstrap/less/tables.less +84 -59
- data/public/vendor/bootstrap/less/theme.less +232 -0
- data/public/vendor/bootstrap/less/thumbnails.less +8 -19
- data/public/vendor/bootstrap/less/type.less +2 -2
- data/public/vendor/bootstrap/less/variables.less +63 -50
- data/public/vendor/bootstrap/package.json +2 -1
- data/public/vendor/components-backbone/LICENSE +22 -0
- data/public/vendor/components-backbone/README.md +10 -0
- data/public/vendor/components-backbone/backbone-min.js +4 -0
- data/public/vendor/components-backbone/backbone.js +1571 -0
- data/public/vendor/components-backbone/bower.json +17 -0
- data/public/vendor/components-backbone/component.json +21 -0
- data/public/vendor/components-backbone/composer.json +37 -0
- data/public/vendor/components-backbone/package.json +24 -0
- data/public/vendor/d3.layout.cloud.js +401 -0
- data/public/vendor/replacejs/CHANGELOG.md +4 -0
- data/public/vendor/replacejs/replace.js +21 -2
- data/public/vendor/underscore/CNAME +1 -0
- data/public/vendor/underscore/CONTRIBUTING.md +9 -0
- data/public/vendor/underscore/LICENSE +22 -0
- data/public/vendor/underscore/README.md +19 -0
- data/public/vendor/underscore/Rakefile +10 -0
- data/public/vendor/underscore/docs/docco.css +192 -0
- data/public/vendor/underscore/docs/favicon.ico +0 -0
- data/public/vendor/underscore/docs/images/background.png +0 -0
- data/public/vendor/underscore/docs/images/underscore.png +0 -0
- data/public/vendor/underscore/docs/underscore.html +823 -0
- data/public/vendor/underscore/favicon.ico +0 -0
- data/public/vendor/underscore/index.html +2467 -0
- data/public/vendor/underscore/index.js +1 -0
- data/public/vendor/underscore/package.json +16 -0
- data/public/vendor/underscore/test/arrays.js +200 -0
- data/public/vendor/underscore/test/chaining.js +59 -0
- data/public/vendor/underscore/test/collections.js +453 -0
- data/public/vendor/underscore/test/functions.js +265 -0
- data/public/vendor/underscore/test/index.html +44 -0
- data/public/vendor/underscore/test/objects.js +570 -0
- data/public/vendor/underscore/test/speed.js +75 -0
- data/public/vendor/underscore/test/utility.js +266 -0
- data/public/vendor/underscore/test/vendor/jquery.js +9404 -0
- data/public/vendor/underscore/test/vendor/jslitmus.js +670 -0
- data/public/vendor/underscore/test/vendor/qunit.css +235 -0
- data/public/vendor/underscore/test/vendor/qunit.js +1977 -0
- data/public/vendor/underscore/test/vendor/runner.js +98 -0
- data/public/vendor/underscore/underscore-min.js +1 -0
- data/public/vendor/underscore/underscore.js +1226 -0
- data/views/dashboard.haml +1 -1
- data/views/layout.haml +8 -4
- metadata +132 -25
- data/public/vendor/bootstrap/_layouts/customize.html +0 -52
- data/public/vendor/bootstrap/assets/js/jquery.bbq.min.js +0 -1287
- data/public/vendor/bootstrap-glyphicons/CHANGELOG.md +0 -3
- data/public/vendor/bootstrap-glyphicons/CNAME +0 -1
- data/public/vendor/bootstrap-glyphicons/CONTRIBUTING.md +0 -54
- data/public/vendor/bootstrap-glyphicons/LICENSE +0 -19
- data/public/vendor/bootstrap-glyphicons/README.md +0 -61
- data/public/vendor/bootstrap-glyphicons/_config.yml +0 -12
- data/public/vendor/bootstrap-glyphicons/composer.json +0 -9
- data/public/vendor/bootstrap-glyphicons/css/bootstrap-glyphicons.css +0 -2
- data/public/vendor/bootstrap-glyphicons/css/bootstrap.css +0 -9
- data/public/vendor/bootstrap-glyphicons/css/docs.css +0 -160
- data/public/vendor/bootstrap-glyphicons/fonts/glyphiconshalflings-regular.eot +0 -0
- data/public/vendor/bootstrap-glyphicons/fonts/glyphiconshalflings-regular.otf +0 -0
- data/public/vendor/bootstrap-glyphicons/fonts/glyphiconshalflings-regular.svg +0 -175
- data/public/vendor/bootstrap-glyphicons/fonts/glyphiconshalflings-regular.ttf +0 -0
- data/public/vendor/bootstrap-glyphicons/fonts/glyphiconshalflings-regular.woff +0 -0
- data/public/vendor/bootstrap-glyphicons/index.html +0 -255
- data/public/vendor/bootstrap-glyphicons/less/bootstrap-glyphicons.less +0 -201
- data/public/vendor/bootstrap-glyphicons/package.json +0 -18
@@ -15,16 +15,11 @@ base_url: "../"
|
|
15
15
|
</div>
|
16
16
|
<p class="lead">There are a few easy ways to quickly get started with Bootstrap, each one appealing to a different skill level and use case. Read through to see what suits your particular needs.</p>
|
17
17
|
|
18
|
-
<h3>
|
19
|
-
<p>
|
20
|
-
<p><a class="btn btn-lg btn-primary" href="{{ site.download }}" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download source']);">Download latest Bootstrap 3</a></p>
|
21
|
-
<!--
|
22
|
-
<h3>Download compiled CSS and JS</h3>
|
23
|
-
<p class="lead">The fastest way to get started is to get the compiled and minified versions of our CSS and JavaScript. No documentation or original source files are included.</p>
|
18
|
+
<h3 id="download-compiled">Compiled CSS, JS, and fonts</h3>
|
19
|
+
<p>The fastest way to get Bootstrap is to download the compiled and minified versions of our CSS and JavaScript, along with the included fonts. No documentation or original source files are included.</p>
|
24
20
|
<p><a class="btn btn-lg btn-primary" href="{{ site.download_dist }}" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download compiled']);">Download Bootstrap</a></p>
|
25
|
-
-->
|
26
21
|
|
27
|
-
<h3 id="download-
|
22
|
+
<h3 id="download-additional">Additional downloads</h3>
|
28
23
|
<div class="bs-docs-dl-options">
|
29
24
|
<h4>
|
30
25
|
<a href="{{ site.download }}" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download source']);">Download latest source code</a>
|
@@ -41,12 +36,15 @@ base_url: "../"
|
|
41
36
|
{% highlight bash %}$ bower install bootstrap{% endhighlight %}
|
42
37
|
</div>
|
43
38
|
|
44
|
-
<h3 id="download-cdn">
|
39
|
+
<h3 id="download-cdn">Bootstrap CDN</h3>
|
45
40
|
<p>The folks over at <a href="https://www.netdna.com/">NetDNA</a> have graciously provided CDN support for Bootstrap's CSS and JavaScript. To use, swap your local instances for the <a href="http://www.bootstrapcdn.com/">Bootstrap CDN</a> links listed below.</p>
|
46
|
-
{% highlight html
|
41
|
+
{% highlight html %}
|
47
42
|
<!-- Latest compiled and minified CSS -->
|
48
43
|
<link rel="stylesheet" href="{{ site.cdn_css }}">
|
49
44
|
|
45
|
+
<!-- Optional theme -->
|
46
|
+
<link rel="stylesheet" href="{{ site.cdn_theme_css }}">
|
47
|
+
|
50
48
|
<!-- Latest compiled and minified JavaScript -->
|
51
49
|
<script src="{{ site.cdn_js }}"></script>
|
52
50
|
{% endhighlight %}
|
@@ -73,12 +71,19 @@ bootstrap/
|
|
73
71
|
├── css/
|
74
72
|
│ ├── bootstrap.css
|
75
73
|
│ ├── bootstrap.min.css
|
74
|
+
│ ├── bootstrap-theme.css
|
75
|
+
│ ├── bootstrap-theme.min.css
|
76
76
|
├── js/
|
77
77
|
│ ├── bootstrap.js
|
78
78
|
│ ├── bootstrap.min.js
|
79
|
+
└── fonts/
|
80
|
+
├── glyphicons-halflings-regular.eot
|
81
|
+
├── glyphicons-halflings-regular.svg
|
82
|
+
├── glyphicons-halflings-regular.ttf
|
83
|
+
└── glyphicons-halflings-regular.woff
|
79
84
|
{% endhighlight %}
|
80
85
|
|
81
|
-
<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>).</p>
|
86
|
+
<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>). Fonts from Glyphicons are included, as is the optional Bootstrap theme.</p>
|
82
87
|
<div class="bs-callout bs-callout-danger">
|
83
88
|
<h4>jQuery required</h4>
|
84
89
|
<p>Please note that <strong>all JavaScript plugins require jQuery</strong> to be included, as shown in the <a href="#template">starter template</a>.</p>
|
@@ -93,7 +98,7 @@ bootstrap/
|
|
93
98
|
<div class="page-header">
|
94
99
|
<h1 id="template">Basic template</h1>
|
95
100
|
</div>
|
96
|
-
<p class="lead">Make use of a super basic HTML template, or dive into a <a href="
|
101
|
+
<p class="lead">Make use of a super basic HTML template, or dive into a <a href="../getting-started#examples">few examples</a> we've started for you. We encourage folks to iterate on these examples and not simply use them as an end result.</p>
|
97
102
|
|
98
103
|
<p>Copy and paste the HTML from below to get started with a bare bones Bootstrap document.</p>
|
99
104
|
{% highlight html %}
|
@@ -104,6 +109,12 @@ bootstrap/
|
|
104
109
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
105
110
|
<!-- Bootstrap -->
|
106
111
|
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
|
112
|
+
|
113
|
+
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
114
|
+
<!--[if lt IE 9]>
|
115
|
+
<script src="../../assets/js/html5shiv.js"></script>
|
116
|
+
<script src="../../assets/js/respond.min.js"></script>
|
117
|
+
<![endif]-->
|
107
118
|
</head>
|
108
119
|
<body>
|
109
120
|
<h1>Hello, world!</h1>
|
@@ -112,15 +123,489 @@ bootstrap/
|
|
112
123
|
<script src="//code.jquery.com/jquery.js"></script>
|
113
124
|
<!-- Include all compiled plugins (below), or include individual files as needed -->
|
114
125
|
<script src="js/bootstrap.min.js"></script>
|
115
|
-
|
116
|
-
<!-- Enable responsive features in IE8 with Respond.js (https://github.com/scottjehl/Respond) -->
|
117
|
-
<script src="js/respond.js"></script>
|
118
126
|
</body>
|
119
127
|
</html>
|
120
128
|
{% endhighlight %}
|
129
|
+
</div>
|
130
|
+
|
131
|
+
|
121
132
|
|
122
|
-
|
123
|
-
|
133
|
+
<!-- Template
|
134
|
+
================================================== -->
|
135
|
+
<div class="bs-docs-section">
|
136
|
+
<div class="page-header">
|
137
|
+
<h1 id="examples">Examples</h1>
|
138
|
+
</div>
|
139
|
+
<p class="lead">Build on the basic template above with Bootstrap's many components. Check out some of the more advanced tips for how to customize and build on top of them.</p>
|
140
|
+
|
141
|
+
<div class="row bs-examples">
|
142
|
+
<div class="col-xs-6 col-md-4">
|
143
|
+
<a class="thumbnail" href="../examples/starter-template/">
|
144
|
+
<img src="../examples/screenshots/starter-template.jpg" alt="">
|
145
|
+
</a>
|
146
|
+
<h4>Starter template</h4>
|
147
|
+
<p>Nothing but the basics: compiled CSS and JavaScript along with a container.</p>
|
148
|
+
</div>
|
149
|
+
<div class="col-xs-6 col-md-4">
|
150
|
+
<a class="thumbnail" href="../examples/grid/">
|
151
|
+
<img src="../examples/screenshots/grid.jpg" alt="">
|
152
|
+
</a>
|
153
|
+
<h4>Grids</h4>
|
154
|
+
<p>Multiple examples of grid layouts with all four tiers, nesting, and more.</p>
|
155
|
+
</div>
|
156
|
+
<div class="clearfix visible-xs"></div>
|
157
|
+
|
158
|
+
<div class="col-xs-6 col-md-4">
|
159
|
+
<a class="thumbnail" href="../examples/jumbotron/">
|
160
|
+
<img src="../examples/screenshots/jumbotron.jpg" alt="">
|
161
|
+
</a>
|
162
|
+
<h4>Jumbotron</h4>
|
163
|
+
<p>Build around the jumbotron with a navbar and some basic grid columns.</p>
|
164
|
+
</div>
|
165
|
+
<div class="col-xs-6 col-md-4">
|
166
|
+
<a class="thumbnail" href="../examples/jumbotron-narrow/">
|
167
|
+
<img src="../examples/screenshots/jumbotron-narrow.jpg" alt="">
|
168
|
+
</a>
|
169
|
+
<h4>Narrow jumbotron</h4>
|
170
|
+
<p>Build a more custom page by narrowing the default container and jumbotron.</p>
|
171
|
+
</div>
|
172
|
+
<div class="clearfix visible-xs"></div>
|
173
|
+
|
174
|
+
<div class="col-xs-6 col-md-4">
|
175
|
+
<a class="thumbnail" href="../examples/navbar/">
|
176
|
+
<img src="../examples/screenshots/navbar.jpg" alt="">
|
177
|
+
</a>
|
178
|
+
<h4>Navbar</h4>
|
179
|
+
<p>Super basic template that includes the navbar along with some additional content.</p>
|
180
|
+
</div>
|
181
|
+
<div class="col-xs-6 col-md-4">
|
182
|
+
<a class="thumbnail" href="../examples/navbar-static-top/">
|
183
|
+
<img src="../examples/screenshots/navbar-static.jpg" alt="">
|
184
|
+
</a>
|
185
|
+
<h4>Static top navbar</h4>
|
186
|
+
<p>Super basic template with a static top navbar along with some additional content.</p>
|
187
|
+
</div>
|
188
|
+
<div class="clearfix visible-xs"></div>
|
189
|
+
|
190
|
+
<div class="col-xs-6 col-md-4">
|
191
|
+
<a class="thumbnail" href="../examples/navbar-fixed-top/">
|
192
|
+
<img src="../examples/screenshots/navbar-fixed.jpg" alt="">
|
193
|
+
</a>
|
194
|
+
<h4>Fixed navbar</h4>
|
195
|
+
<p>Super basic template with a fixed top navbar along with some additional content.</p>
|
196
|
+
</div>
|
197
|
+
<div class="col-xs-6 col-md-4">
|
198
|
+
<a class="thumbnail" href="../examples/signin/">
|
199
|
+
<img src="../examples/screenshots/sign-in.jpg" alt="">
|
200
|
+
</a>
|
201
|
+
<h4>Sign-in page</h4>
|
202
|
+
<p>Custom form layout and design for a simple sign in form.</p>
|
203
|
+
</div>
|
204
|
+
<div class="clearfix visible-xs"></div>
|
205
|
+
|
206
|
+
<div class="col-xs-6 col-md-4">
|
207
|
+
<a class="thumbnail" href="../examples/sticky-footer/">
|
208
|
+
<img src="../examples/screenshots/sticky-footer.jpg" alt="">
|
209
|
+
</a>
|
210
|
+
<h4>Sticky footer</h4>
|
211
|
+
<p>Attach a footer to the bottom of the viewport when the content is shorter than it.</p>
|
212
|
+
</div>
|
213
|
+
<div class="col-xs-6 col-md-4">
|
214
|
+
<a class="thumbnail" href="../examples/sticky-footer-navbar/">
|
215
|
+
<img src="../examples/screenshots/sticky-footer-navbar.jpg" alt="">
|
216
|
+
</a>
|
217
|
+
<h4>Sticky footer with navbar</h4>
|
218
|
+
<p>Attach a footer to the bottom of the viewport with a fixed navbar at the top.</p>
|
219
|
+
</div>
|
220
|
+
<div class="clearfix visible-xs"></div>
|
221
|
+
|
222
|
+
<div class="col-xs-6 col-md-4">
|
223
|
+
<a class="thumbnail" href="../examples/justified-nav/">
|
224
|
+
<img src="../examples/screenshots/justified-nav.jpg" alt="">
|
225
|
+
</a>
|
226
|
+
<h4>Justified nav</h4>
|
227
|
+
<p>Expand on the default navbar and more to create justified navigation links.</p>
|
228
|
+
</div>
|
229
|
+
<div class="col-xs-6 col-md-4">
|
230
|
+
<a class="thumbnail" href="../examples/offcanvas/">
|
231
|
+
<img src="../examples/screenshots/offcanvas.jpg" alt="">
|
232
|
+
</a>
|
233
|
+
<h4>Offcanvas</h4>
|
234
|
+
<p>Build a toggleable off-canvas navigation menu for use with Bootstrap.</p>
|
235
|
+
</div>
|
236
|
+
<div class="clearfix visible-xs"></div>
|
237
|
+
|
238
|
+
<div class="col-xs-6 col-md-4">
|
239
|
+
<a class="thumbnail" href="../examples/carousel/">
|
240
|
+
<img src="../examples/screenshots/carousel.jpg" alt="">
|
241
|
+
</a>
|
242
|
+
<h4>Carousel</h4>
|
243
|
+
<p>Customize the navbar and carousel, then add some new components.</p>
|
244
|
+
</div>
|
245
|
+
<div class="col-xs-6 col-md-4">
|
246
|
+
<a class="thumbnail" href="../examples/non-responsive/">
|
247
|
+
<img src="../examples/screenshots/non-responsive.jpg" alt="">
|
248
|
+
</a>
|
249
|
+
<h4>Non-responsive Bootstrap</h4>
|
250
|
+
<p>Easily disable the responsiveness of Bootstrap <a href="../getting-started/#disable-responsive">per our docs</a>.</p>
|
251
|
+
</div>
|
252
|
+
<div class="clearfix visible-xs"></div>
|
253
|
+
|
254
|
+
<div class="col-xs-6 col-md-4">
|
255
|
+
<a class="thumbnail" href="../examples/theme/">
|
256
|
+
<img src="../examples/screenshots/theme.jpg" alt="">
|
257
|
+
</a>
|
258
|
+
<h4>Bootstrap theme</h4>
|
259
|
+
<p>Load the optional Bootstrap theme for a visually enhanced experience.</p>
|
260
|
+
</div>
|
261
|
+
</div>
|
262
|
+
|
263
|
+
</div>
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
<!-- Template
|
268
|
+
================================================== -->
|
269
|
+
<div class="bs-docs-section">
|
270
|
+
<div class="page-header">
|
271
|
+
<h1 id="disable-responsive">Disabling responsiveness</h1>
|
272
|
+
</div>
|
273
|
+
<p class="lead">Don't want your site or application to be scaled on different devices? With a little bit of work, you can disable the responsive features of Bootstrap so that mobile users see your full desktop-version site. Read below or check out <a href="../examples/non-responsive/">the non-responsive example</a>.</p>
|
274
|
+
|
275
|
+
<h3>Steps to disable responsive views</h3>
|
276
|
+
<p>To disable responsive features, follow these steps. See it in action in the modified template below.</p>
|
277
|
+
<ol>
|
278
|
+
<li>Remove (or just don't add) the viewport <code><meta></code> mentioned in <a href="../css/#overview-mobile">the CSS docs</a></li>
|
279
|
+
<li>Remove the <code>max-width</code> on the <code>.container</code> for all grid tiers with <code>max-width: none !important;</code> and set a regular width like <code>width: 970px;</code>. Be sure that this comes after the default Bootstrap CSS. You can optionally avoid the <code>!important</code> with media queries or some selector-fu.</li>
|
280
|
+
<li>If using navbars, undo all the navbar collapsing and expanding behavior (this is too much to show here, so peep the example).</li>
|
281
|
+
<li>For grid layouts, make use of <code>.col-xs-*</code> classes in addition to or in place of the medium/large ones. Don't worry, the extra-small device grid scales up to all resolutions, so you're set there.</li>
|
282
|
+
</ol>
|
283
|
+
<p>You'll still need Respond.js for IE8 (since our media queries are still there and need to be picked up). This just disables the "mobile site" of Bootstrap.</p>
|
284
|
+
|
285
|
+
<h3>Bootstrap template with disabled responsive</h3>
|
286
|
+
<p>We've taken the above steps and applied them to an example. Read it's source code to see the specific changes called out.</p>
|
287
|
+
<p>
|
288
|
+
<a href="../examples/non-responsive/" class="btn btn-primary">View non-responsive example</a>
|
289
|
+
</p>
|
290
|
+
</div>
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
<!-- Migration
|
295
|
+
================================================== -->
|
296
|
+
<div class="bs-docs-section">
|
297
|
+
<div class="page-header">
|
298
|
+
<h1 id="migration">Migrating from 2.x to 3.0</h1>
|
299
|
+
</div>
|
300
|
+
<p class="lead">Folks looking to upgrade to v3 should use this section as a general upgrade guide. We've outlined some of the major changes and provided tables that highlight key changes. For an overview, <a href="http://blog.getbootstrap.com/2013/08/19/bootstrap-3-released/">read the announcement blog post</a>.</p>
|
301
|
+
|
302
|
+
|
303
|
+
<h2 id="migration-classes">Major class changes</h2>
|
304
|
+
<p>Reference table for classes that have changed between v2.x and v3.0.</p>
|
305
|
+
<div class="table-responsive">
|
306
|
+
<table class="table table-bordered table-striped">
|
307
|
+
<thead>
|
308
|
+
<tr>
|
309
|
+
<th>Bootstrap 2.x</th>
|
310
|
+
<th>Bootstrap 3.0</th>
|
311
|
+
</tr>
|
312
|
+
</thead>
|
313
|
+
<tbody>
|
314
|
+
<tr>
|
315
|
+
<td><code>.container-fluid</code></td>
|
316
|
+
<td><code>.container</code></td>
|
317
|
+
</tr>
|
318
|
+
<tr>
|
319
|
+
<td><code>.row-fluid</code></td>
|
320
|
+
<td><code>.row</code></td>
|
321
|
+
</tr>
|
322
|
+
<tr>
|
323
|
+
<td><code>.span*</code></td>
|
324
|
+
<td><code>.col-md-*</code></td>
|
325
|
+
</tr>
|
326
|
+
<tr>
|
327
|
+
<td><code>.offset*</code></td>
|
328
|
+
<td><code>.col-md-offset-*</code></td>
|
329
|
+
</tr>
|
330
|
+
<tr>
|
331
|
+
<td><code>.brand</code></td>
|
332
|
+
<td><code>.navbar-brand</code></td>
|
333
|
+
</tr>
|
334
|
+
<tr>
|
335
|
+
<td><code>.nav-collapse</code></td>
|
336
|
+
<td><code>.navbar-collapse</code></td>
|
337
|
+
</tr>
|
338
|
+
<tr>
|
339
|
+
<td><code>.nav-toggle</code></td>
|
340
|
+
<td><code>.navbar-toggle</code></td>
|
341
|
+
</tr>
|
342
|
+
<tr>
|
343
|
+
<td><code>.btn-navbar</code></td>
|
344
|
+
<td><code>.navbar-btn</code></td>
|
345
|
+
</tr>
|
346
|
+
<tr>
|
347
|
+
<td><code>.hero-unit</code></td>
|
348
|
+
<td><code>.jumbotron</code></td>
|
349
|
+
</tr>
|
350
|
+
<tr>
|
351
|
+
<td><code>.icon-*</code></td>
|
352
|
+
<td><code>.glyphicon .glyphicon-*</code></td>
|
353
|
+
</tr>
|
354
|
+
<tr>
|
355
|
+
<td><code>.btn</code></td>
|
356
|
+
<td><code>.btn .btn-default</code></td>
|
357
|
+
</tr>
|
358
|
+
<tr>
|
359
|
+
<td><code>.btn-mini</code></td>
|
360
|
+
<td><code>.btn-xs</code></td>
|
361
|
+
</tr>
|
362
|
+
<tr>
|
363
|
+
<td><code>.btn-small</code></td>
|
364
|
+
<td><code>.btn-sm</code></td>
|
365
|
+
</tr>
|
366
|
+
<tr>
|
367
|
+
<td><code>.btn-large</code></td>
|
368
|
+
<td><code>.btn-lg</code></td>
|
369
|
+
</tr>
|
370
|
+
<tr>
|
371
|
+
<td><code>.visible-phone</code></td>
|
372
|
+
<td><code>.visible-sm</code></td>
|
373
|
+
</tr>
|
374
|
+
<tr>
|
375
|
+
<td><code>.visible-tablet</code></td>
|
376
|
+
<td><code>.visible-md</code></td>
|
377
|
+
</tr>
|
378
|
+
<tr>
|
379
|
+
<td><code>.visible-desktop</code></td>
|
380
|
+
<td><code>.visible-lg</code></td>
|
381
|
+
</tr>
|
382
|
+
<tr>
|
383
|
+
<td><code>.hidden-phone</code></td>
|
384
|
+
<td><code>.hidden-sm</code></td>
|
385
|
+
</tr>
|
386
|
+
<tr>
|
387
|
+
<td><code>.hidden-tablet</code></td>
|
388
|
+
<td><code>.hidden-md</code></td>
|
389
|
+
</tr>
|
390
|
+
<tr>
|
391
|
+
<td><code>.hidden-desktop</code></td>
|
392
|
+
<td><code>.hidden-lg</code></td>
|
393
|
+
</tr>
|
394
|
+
<tr>
|
395
|
+
<td><code>.input-small</code></td>
|
396
|
+
<td><code>.input-sm</code></td>
|
397
|
+
</tr>
|
398
|
+
<tr>
|
399
|
+
<td><code>.input-large</code></td>
|
400
|
+
<td><code>.input-lg</code></td>
|
401
|
+
</tr>
|
402
|
+
<tr>
|
403
|
+
<td><code>.checkbox.inline</code> <code>.radio.inline</code></td>
|
404
|
+
<td><code>.checkbox-inline</code> <code>.radio-inline</code></td>
|
405
|
+
</tr>
|
406
|
+
<tr>
|
407
|
+
<td><code>.input-prepend</code> <code>.input-append</code></td>
|
408
|
+
<td><code>.input-group</code></td>
|
409
|
+
</tr>
|
410
|
+
<tr>
|
411
|
+
<td><code>.add-on</code></td>
|
412
|
+
<td><code>.input-group-addon</code></td>
|
413
|
+
</tr>
|
414
|
+
<tr>
|
415
|
+
<td><code>.thumbnail</code></td>
|
416
|
+
<td><code>.img-thumbnail</code></td>
|
417
|
+
</tr>
|
418
|
+
<tr>
|
419
|
+
<td><code>ul.unstyled</code></td>
|
420
|
+
<td><code>.list-unstyled</code></td>
|
421
|
+
</tr>
|
422
|
+
<tr>
|
423
|
+
<td><code>ul.inline</code></td>
|
424
|
+
<td><code>.list-inline</code></td>
|
425
|
+
</tr>
|
426
|
+
</tbody>
|
427
|
+
</table>
|
428
|
+
</div><!-- /.table-responsive -->
|
429
|
+
|
430
|
+
|
431
|
+
<h2 id="migration-new">What's new</h2>
|
432
|
+
<p>We've added a few new elements and changed some existing ones. Here's their new or updated classes.</p>
|
433
|
+
<div class="table-responsive">
|
434
|
+
<table class="table table-bordered table-striped">
|
435
|
+
<thead>
|
436
|
+
<tr>
|
437
|
+
<th>Element</th>
|
438
|
+
<th>Description</th>
|
439
|
+
</tr>
|
440
|
+
</thead>
|
441
|
+
<tbody>
|
442
|
+
<tr>
|
443
|
+
<td>Panels</td>
|
444
|
+
<td><code>.panel .panel-default</code> <code>.panel-body</code> <code>.panel-title</code> <code>.panel-heading</code> <code>.panel-footer</code> <code>.panel-collapse</code></td>
|
445
|
+
</tr>
|
446
|
+
<tr>
|
447
|
+
<td>List groups</td>
|
448
|
+
<td><code>.list-group</code> <code>.list-group-item</code> <code>.list-group-item-text</code> <code>.list-group-item-heading</code></td>
|
449
|
+
</tr>
|
450
|
+
<tr>
|
451
|
+
<td>Glyphicons</td>
|
452
|
+
<td><code>.glyphicon</code></td>
|
453
|
+
</tr>
|
454
|
+
<tr>
|
455
|
+
<td>Jumbotron</td>
|
456
|
+
<td><code>.jumbotron</code></td>
|
457
|
+
</tr>
|
458
|
+
<tr>
|
459
|
+
<td>Tiny grid (<768 px)</td>
|
460
|
+
<td><code>.col-xs-*</code></td>
|
461
|
+
</tr>
|
462
|
+
<tr>
|
463
|
+
<td>Small grid (>768 px)</td>
|
464
|
+
<td><code>.col-sm-*</code></td>
|
465
|
+
</tr>
|
466
|
+
<tr>
|
467
|
+
<td>Medium grid (>992 px)</td>
|
468
|
+
<td><code>.col-md-*</code></td>
|
469
|
+
</tr>
|
470
|
+
<tr>
|
471
|
+
<td>Large grid (>1200 px)</td>
|
472
|
+
<td><code>.col-lg-*</code></td>
|
473
|
+
</tr>
|
474
|
+
<tr>
|
475
|
+
<td>Offsets</td>
|
476
|
+
<td><code>.col-sm-offset-*</code> <code>.col-md-offset-*</code> <code>.col-lg-offset-*</code></td>
|
477
|
+
</tr>
|
478
|
+
<tr>
|
479
|
+
<td>Push</td>
|
480
|
+
<td><code>.col-sm-push-*</code> <code>.col-md-push-*</code> <code>.col-lg-push-*</code></td>
|
481
|
+
</tr>
|
482
|
+
<tr>
|
483
|
+
<td>Pull</td>
|
484
|
+
<td><code>.col-sm-pull-*</code> <code>.col-md-pull-*</code> <code>.col-lg-pull-*</code></td>
|
485
|
+
</tr>
|
486
|
+
<tr>
|
487
|
+
<td>Input groups</td>
|
488
|
+
<td><code>.input-group</code> <code>.input-group-addon</code> <code>.input-group-btn</code></td>
|
489
|
+
</tr>
|
490
|
+
<tr>
|
491
|
+
<td>Form controls</td>
|
492
|
+
<td><code>.form-control</code> <code>.form-group</code></td>
|
493
|
+
</tr>
|
494
|
+
<tr>
|
495
|
+
<td>Button group sizes</td>
|
496
|
+
<td><code>.btn-group-xs</code> <code>.btn-group-sm</code> <code>.btn-group-lg</code></td>
|
497
|
+
</tr>
|
498
|
+
<tr>
|
499
|
+
<td>Navbar text</td>
|
500
|
+
<td><code>.navbar-text</code></td>
|
501
|
+
</tr>
|
502
|
+
<tr>
|
503
|
+
<td>Navbar header</td>
|
504
|
+
<td><code>.navbar-header</code></td>
|
505
|
+
</tr>
|
506
|
+
<tr>
|
507
|
+
<td>Justified tabs / pills</td>
|
508
|
+
<td><code>.nav-justified</code></td>
|
509
|
+
</tr>
|
510
|
+
<tr>
|
511
|
+
<td>Responsive images</td>
|
512
|
+
<td><code>.img-responsive</code></td>
|
513
|
+
</tr>
|
514
|
+
<tr>
|
515
|
+
<td>Contextual table rows</td>
|
516
|
+
<td><code>.success</code> <code>.danger</code> <code>.warning</code> <code>.active</code></td>
|
517
|
+
</tr>
|
518
|
+
<tr>
|
519
|
+
<td>Contextual panels</td>
|
520
|
+
<td><code>.panel-success</code> <code>.panel-danger</code> <code>.panel-warning</code> <code>.panel-info</code></td>
|
521
|
+
</tr>
|
522
|
+
<tr>
|
523
|
+
<td>Modal</td>
|
524
|
+
<td><code>.modal-dialog</code> <code>.modal-content</code></td>
|
525
|
+
</tr>
|
526
|
+
<tr>
|
527
|
+
<td>Thumbnail image</td>
|
528
|
+
<td><code>.img-thumbnail</code></td>
|
529
|
+
</tr>
|
530
|
+
<tr>
|
531
|
+
<td>Well sizes</td>
|
532
|
+
<td><code>.well-sm</code> <code>.well-lg</code></td>
|
533
|
+
</tr>
|
534
|
+
<tr>
|
535
|
+
<td>Alert links</td>
|
536
|
+
<td><code>.alert-link</code></td>
|
537
|
+
</tr>
|
538
|
+
</tbody>
|
539
|
+
</table>
|
540
|
+
</div><!-- /.table-responsive -->
|
541
|
+
|
542
|
+
|
543
|
+
<h2 id="migration-dropped">What's removed</h2>
|
544
|
+
<p>The following elements have been dropped or changed in v3.</p>
|
545
|
+
<div class="table-responsive">
|
546
|
+
<table class="table table-bordered table-striped">
|
547
|
+
<thead>
|
548
|
+
<tr>
|
549
|
+
<th>Element</th>
|
550
|
+
<th>Removed from 2.x</th>
|
551
|
+
<th>3.0 Equivalent</th>
|
552
|
+
</tr>
|
553
|
+
</thead>
|
554
|
+
<tbody>
|
555
|
+
<tr>
|
556
|
+
<td>Form actions</td>
|
557
|
+
<td><code>.form-actions</code></td>
|
558
|
+
<td class="text-muted">N/A</td>
|
559
|
+
</tr>
|
560
|
+
<tr>
|
561
|
+
<td>Search form</td>
|
562
|
+
<td><code>.form-search</code></td>
|
563
|
+
<td class="text-muted">N/A</td>
|
564
|
+
</tr>
|
565
|
+
<tr>
|
566
|
+
<td>Fluid container</td>
|
567
|
+
<td><code>.container-fluid</code></td>
|
568
|
+
<td><code>.container</code> (no more fixed grid)</td>
|
569
|
+
</tr>
|
570
|
+
<tr>
|
571
|
+
<td>Fluid row</td>
|
572
|
+
<td><code>.row-fluid</code></td>
|
573
|
+
<td><code>.row</code> (no more fixed grid)</td>
|
574
|
+
</tr>
|
575
|
+
<tr>
|
576
|
+
<td>Navbar inner</td>
|
577
|
+
<td><code>.navbar-inner</code></td>
|
578
|
+
<td class="text-muted">N/A</td>
|
579
|
+
</tr>
|
580
|
+
<tr>
|
581
|
+
<td>Dropdown submenu</td>
|
582
|
+
<td><code>.dropdown-submenu</code></td>
|
583
|
+
<td class="text-muted">N/A</td>
|
584
|
+
</tr>
|
585
|
+
<tr>
|
586
|
+
<td>Tab alignments</td>
|
587
|
+
<td><code>.tabs-left</code> <code>.tabs-right</code> <code>.tabs-below</code></td>
|
588
|
+
<td class="text-muted">N/A</td>
|
589
|
+
</tr>
|
590
|
+
</tbody>
|
591
|
+
</table>
|
592
|
+
</div><!-- /.table-responsive -->
|
593
|
+
|
594
|
+
|
595
|
+
<h2 id="migration-notes">Additional notes</h2>
|
596
|
+
<p>We've made many underlying changes in v3 that are not immediately apparent. Base classes, key styles, and behaviors have been adjusted for flexibility and our mobile first approach.</p>
|
597
|
+
<ul>
|
598
|
+
<li>Text-based form controls are now 100% wide. Wrap inputs inside <code><div class="col-*"></div></code> to control input widths.</li>
|
599
|
+
<li><code>.badge</code> no longer has contextual (-success,-primary,etc..) classes.</li>
|
600
|
+
<li><code>.btn</code> must also use <code>.btn-default</code> to get the "default" button.</li>
|
601
|
+
<li><code>.container</code> and <code>.row</code> are now fluid (percentage-based).</li>
|
602
|
+
<li>Images are no longer responsive by default. Use <code>.img-responsive</code> for fluid <code><img></code> size.</li>
|
603
|
+
<li>The icons, now <code>.glyphicon</code>, are now font based. They also require a base and icon class (e.g. <code>.glyphicon .glyphicon-asterisk</code>).</li>
|
604
|
+
<li>Typeahead has been dropped, in favor of using <a href="http://twitter.github.io/typeahead.js/">Twitter Typeahead</a>.</li>
|
605
|
+
<li>Modal markup has changed significantly. The <code>.modal-header</code>, <code>.modal-body</code>, and <code>.modal-footer</code> sections now get wrapped in <code>.modal-content</code> and <code>.modal-dialog</code> for improved mobile styling and behavior.</li>
|
606
|
+
<li>JavaScript events are namespaced. For example, to handle the modal "show" event, use <code>'show.bs.modal'</code>. For tabs "shown" use <code>'shown.bs.tab'</code>, etc..</li>
|
607
|
+
</ul>
|
608
|
+
<p>For more information on upgrades and code snippets from the community check out <a href="http://bootply.com/">Bootply</a>.</p>
|
124
609
|
</div>
|
125
610
|
|
126
611
|
|
@@ -149,7 +634,7 @@ bootstrap/
|
|
149
634
|
<p>In addition, <strong>Internet Explorer 8 requires the use of <a href="https://github.com/scottjehl/Respond">respond.js</a> to enable media query support.</strong></p>
|
150
635
|
|
151
636
|
<h3>IE Compatibility modes</h3>
|
152
|
-
<p>Bootstrap is not supported in the old Internet Explorer compatibility modes. To be sure you're using the latest rendering mode for IE, consider including the appropriate <code
|
637
|
+
<p>Bootstrap is not supported in the old Internet Explorer compatibility modes. To be sure you're using the latest rendering mode for IE, consider including the appropriate <code><meta></code> tag in your pages:</p>
|
153
638
|
{% highlight html %}
|
154
639
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
155
640
|
{% endhighlight %}
|
@@ -167,13 +652,13 @@ bootstrap/
|
|
167
652
|
|
168
653
|
{% highlight js %}
|
169
654
|
if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
|
170
|
-
var msViewportStyle = document.createElement("style")
|
655
|
+
var msViewportStyle = document.createElement("style")
|
171
656
|
msViewportStyle.appendChild(
|
172
657
|
document.createTextNode(
|
173
658
|
"@-ms-viewport{width:auto!important}"
|
174
659
|
)
|
175
|
-
)
|
176
|
-
document.getElementsByTagName("head")[0].appendChild(msViewportStyle)
|
660
|
+
)
|
661
|
+
document.getElementsByTagName("head")[0].appendChild(msViewportStyle)
|
177
662
|
}
|
178
663
|
{% endhighlight %}
|
179
664
|
<p>For more information and usage guidelines, read <a href="http://timkadlec.com/2013/01/windows-phone-8-and-device-width/">Windows Phone 8 and Device-Width</a>.</p>
|
@@ -187,7 +672,13 @@ if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
|
|
187
672
|
<p>We'll keep an eye on this though and update our code if we have an easy solution.</p>
|
188
673
|
|
189
674
|
<h3>Modals and mobile devices</h3>
|
675
|
+
<h4>Overflow and scrolling</h4>
|
190
676
|
<p>Support for <code>overflow: hidden</code> on the <code><body></code> element is quite limited in iOS and Android. To that end, when you scroll past the top or bottom of a modal in either of those devices' browsers, the <code><body></code> content will begin to scroll.</p>
|
677
|
+
<h4>Virtual keyboards</h4>
|
678
|
+
<p>Also, note that if you're using inputs in your modal – iOS has a rendering bug which doesn't update the position of fixed elements when the virtual keyboard is triggered. There are a few work arounds for this, including transforming your elements to <code>position: absolute</code> or invoking a timer on focus to try to correct the positioning manually. This is not handled by Bootstrap, so it is up to you to decide which solution is best for your application.</p>
|
679
|
+
|
680
|
+
<h3>Browser zooming</h3>
|
681
|
+
<p>Page zooming inevitably presents rendering artifacts in some components, both in Bootstrap and the rest of the web. Depending on the issue, we may be able to fix it (search first and then open an issue if need be). However, we tend to ignore these as they often have no direct solution other than hacky workarounds.</p>
|
191
682
|
</div>
|
192
683
|
|
193
684
|
|
@@ -365,7 +856,7 @@ img { max-width: none; }
|
|
365
856
|
|
366
857
|
<div class="bs-callout bs-callout-info">
|
367
858
|
<h4>Alternate customization methods</h4>
|
368
|
-
<p>While not recommended for folks new to Bootstrap, you may use one of two alternate methods for customization. The first is modifying the source .less files (making upgrades super difficult), and the second is mapping source LESS code to <a href="http://ruby.bvision.com/blog/please-stop-embedding-bootstrap-classes-in-your-html">your own classes via mixins</a>. For the time being, neither options are documented here.</p>
|
859
|
+
<p>While not recommended for folks new to Bootstrap, you may use one of two alternate methods for customization. The first is modifying the source .less files (making upgrades super difficult), and the second is mapping source LESS code to <a href="http://ruby.bvision.com/blog/please-stop-embedding-bootstrap-classes-in-your-html">your own classes via mixins</a>. For the time being, neither of those options are documented here.</p>
|
369
860
|
</div>
|
370
861
|
|
371
862
|
<h3>Removing potential bloat</h3>
|
@@ -6,11 +6,10 @@ base_url: "./"
|
|
6
6
|
|
7
7
|
<main class="bs-masthead" id="content" role="main">
|
8
8
|
<div class="container">
|
9
|
-
<h1>Bootstrap
|
10
|
-
<p class="lead">Sleek, intuitive, and powerful mobile
|
9
|
+
<h1>Bootstrap</h1>
|
10
|
+
<p class="lead">Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.</p>
|
11
11
|
<p>
|
12
|
-
<a href="{{ site.download }}" class="btn btn-outline btn-lg" onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'Download', 'Download 3.0.0
|
12
|
+
<a href="{{ site.download }}" class="btn btn-outline-inverse btn-lg" onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'Download', 'Download 3.0.0']);">Download Bootstrap</a>
|
13
13
|
</p>
|
14
|
-
<p><strong>Heads up!</strong> Downloads are pulled directly from the latest committed code on GitHub, and as a result our docs may at times be out of sync.</p>
|
15
14
|
</div>
|
16
15
|
</main>
|