twitter-bootstrap-rails 2.2.8 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of twitter-bootstrap-rails might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/README.md +229 -322
- data/Rakefile +4 -6
- data/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.svg +288 -0
- data/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/app/assets/javascripts/twitter/bootstrap.js +12 -13
- data/app/assets/javascripts/twitter/bootstrap/affix.js +162 -0
- data/app/assets/javascripts/twitter/bootstrap/alert.js +94 -0
- data/app/assets/javascripts/twitter/bootstrap/button.js +120 -0
- data/app/assets/javascripts/twitter/bootstrap/carousel.js +237 -0
- data/app/assets/javascripts/twitter/bootstrap/collapse.js +211 -0
- data/app/assets/javascripts/twitter/bootstrap/dropdown.js +165 -0
- data/app/assets/javascripts/twitter/bootstrap/modal.js +337 -0
- data/app/assets/javascripts/twitter/bootstrap/popover.js +108 -0
- data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +172 -0
- data/app/assets/javascripts/twitter/bootstrap/tab.js +155 -0
- data/app/assets/javascripts/twitter/bootstrap/tooltip.js +514 -0
- data/app/assets/javascripts/twitter/bootstrap/transition.js +59 -0
- data/app/assets/stylesheets/twitter-bootstrap-static/bootstrap.css.erb +1 -890
- data/app/assets/stylesheets/twitter-bootstrap-static/sprites.css.erb +1 -146
- data/app/helpers/bootstrap_flash_helper.rb +14 -7
- data/app/helpers/form_errors_helper.rb +22 -0
- data/app/helpers/glyph_helper.rb +12 -6
- data/app/helpers/modal_helper.rb +26 -22
- data/app/helpers/navbar_helper.rb +47 -32
- data/app/helpers/twitter_breadcrumbs_helper.rb +6 -2
- data/app/views/twitter-bootstrap/_breadcrumbs.html.erb +8 -8
- data/lib/generators/bootstrap/install/install_generator.rb +3 -2
- data/lib/generators/bootstrap/install/templates/bootstrap_and_overrides.css +3 -4
- data/lib/generators/bootstrap/install/templates/bootstrap_and_overrides.less +9 -18
- data/lib/generators/bootstrap/install/templates/en.bootstrap.yml +5 -0
- data/lib/generators/bootstrap/layout/layout_generator.rb +1 -4
- data/lib/generators/bootstrap/layout/templates/layout.html.erb +27 -48
- data/lib/generators/bootstrap/layout/templates/layout.html.haml +19 -34
- data/lib/generators/bootstrap/layout/templates/layout.html.slim +13 -30
- data/lib/generators/bootstrap/partial/templates/_login.html.erb +2 -3
- data/lib/generators/bootstrap/themed/templates/_form.html.erb +30 -10
- data/lib/generators/bootstrap/themed/templates/_form.html.haml +10 -8
- data/lib/generators/bootstrap/themed/templates/_form.html.slim +11 -9
- data/lib/generators/bootstrap/themed/templates/edit.html.slim +1 -1
- data/lib/generators/bootstrap/themed/templates/index.html.erb +4 -2
- data/lib/generators/bootstrap/themed/templates/index.html.haml +3 -2
- data/lib/generators/bootstrap/themed/templates/index.html.slim +6 -5
- data/lib/generators/bootstrap/themed/templates/new.html.slim +1 -1
- data/lib/generators/bootstrap/themed/templates/show.html.erb +5 -7
- data/lib/generators/bootstrap/themed/templates/show.html.haml +4 -4
- data/lib/generators/bootstrap/themed/templates/show.html.slim +6 -7
- data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb +5 -5
- data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.haml +3 -3
- data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.slim +4 -4
- data/lib/generators/bootstrap/themed/themed_generator.rb +2 -2
- data/lib/twitter/bootstrap/rails/breadcrumbs.rb +69 -0
- data/lib/twitter/bootstrap/rails/engine.rb +17 -10
- data/lib/twitter/bootstrap/rails/version.rb +2 -2
- data/spec/lib/breadcrumbs_spec.rb +99 -0
- data/spec/lib/twitter_bootstrap_rails/badge_label_helper_spec.rb +12 -4
- data/spec/lib/twitter_bootstrap_rails/bootstrap_flash_helper_spec.rb +128 -0
- data/spec/lib/twitter_bootstrap_rails/form_errors_helper_spec.rb +148 -0
- data/spec/lib/twitter_bootstrap_rails/glyph_helper_spec.rb +24 -0
- data/spec/lib/twitter_bootstrap_rails/modal_helper_spec.rb +15 -15
- data/spec/lib/twitter_bootstrap_rails/navbar_helper_spec.rb +207 -173
- data/spec/lib/twitter_bootstrap_rails/uri_state_spec.rb +18 -16
- data/spec/spec_helper.rb +11 -1
- data/vendor/assets/stylesheets/twitter-bootstrap-static/bootstrap.css.erb +5796 -1
- data/vendor/static-source/bootstrap.less +0 -1
- data/vendor/static-source/sprites.less +1 -1
- data/vendor/toolkit/twitter/bootstrap/alerts.less +51 -57
- data/vendor/toolkit/twitter/bootstrap/badges.less +66 -0
- data/vendor/toolkit/twitter/bootstrap/bootstrap.less +29 -36
- data/vendor/toolkit/twitter/bootstrap/breadcrumbs.less +11 -9
- data/vendor/toolkit/twitter/bootstrap/button-groups.less +167 -152
- data/vendor/toolkit/twitter/bootstrap/buttons.less +107 -169
- data/vendor/toolkit/twitter/bootstrap/carousel.less +177 -65
- data/vendor/toolkit/twitter/bootstrap/close.less +21 -19
- data/vendor/toolkit/twitter/bootstrap/code.less +38 -30
- data/vendor/toolkit/twitter/bootstrap/component-animations.less +15 -4
- data/vendor/toolkit/twitter/bootstrap/dropdowns.less +120 -152
- data/vendor/toolkit/twitter/bootstrap/forms.less +470 -547
- data/vendor/toolkit/twitter/bootstrap/glyphicons.less +305 -0
- data/vendor/toolkit/twitter/bootstrap/grid.less +74 -11
- data/vendor/toolkit/twitter/bootstrap/input-groups.less +171 -0
- data/vendor/toolkit/twitter/bootstrap/jumbotron.less +54 -0
- data/vendor/toolkit/twitter/bootstrap/labels.less +64 -0
- data/vendor/toolkit/twitter/bootstrap/list-group.less +130 -0
- data/vendor/toolkit/twitter/bootstrap/media.less +40 -29
- data/vendor/toolkit/twitter/bootstrap/mixins.less +37 -699
- data/vendor/toolkit/twitter/bootstrap/mixins/alerts.less +14 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/background-variant.less +9 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/border-radius.less +18 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/buttons.less +65 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/center-block.less +7 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/clearfix.less +22 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/forms.less +85 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/gradients.less +59 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/grid-framework.less +91 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/grid.less +122 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/hide-text.less +21 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/image.less +33 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/labels.less +12 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/list-group.less +30 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/nav-divider.less +10 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/nav-vertical-align.less +9 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/opacity.less +8 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/pagination.less +24 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/panels.less +24 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/progress-bar.less +10 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/reset-filter.less +8 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/reset-text.less +18 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/resize.less +6 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/responsive-visibility.less +15 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/size.less +10 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/tab-focus.less +9 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/table-row.less +28 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/text-emphasis.less +9 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/text-overflow.less +8 -0
- data/vendor/toolkit/twitter/bootstrap/mixins/vendor-prefixes.less +227 -0
- data/vendor/toolkit/twitter/bootstrap/modals.less +109 -54
- data/vendor/toolkit/twitter/bootstrap/navbar.less +547 -384
- data/vendor/toolkit/twitter/bootstrap/navs.less +192 -359
- data/vendor/toolkit/twitter/bootstrap/normalize.less +424 -0
- data/vendor/toolkit/twitter/bootstrap/pager.less +45 -34
- data/vendor/toolkit/twitter/bootstrap/pagination.less +71 -105
- data/vendor/toolkit/twitter/bootstrap/panels.less +271 -0
- data/vendor/toolkit/twitter/bootstrap/popovers.less +66 -68
- data/vendor/toolkit/twitter/bootstrap/print.less +101 -0
- data/vendor/toolkit/twitter/bootstrap/progress-bars.less +40 -75
- data/vendor/toolkit/twitter/bootstrap/responsive-embed.less +35 -0
- data/vendor/toolkit/twitter/bootstrap/responsive-utilities.less +177 -42
- data/vendor/toolkit/twitter/bootstrap/scaffolding.less +131 -23
- data/vendor/toolkit/twitter/bootstrap/tables.less +172 -182
- data/vendor/toolkit/twitter/bootstrap/theme.less +291 -0
- data/vendor/toolkit/twitter/bootstrap/thumbnails.less +27 -44
- data/vendor/toolkit/twitter/bootstrap/tooltip.less +58 -27
- data/vendor/toolkit/twitter/bootstrap/type.less +209 -154
- data/vendor/toolkit/twitter/bootstrap/utilities.less +32 -7
- data/vendor/toolkit/twitter/bootstrap/variables.less +784 -216
- data/vendor/toolkit/twitter/bootstrap/wells.less +7 -7
- metadata +156 -141
- data/app/assets/fonts/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/fontawesome-webfont.svg +0 -399
- data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/app/assets/fonts/fontawesome-webfont.woff +0 -0
- data/app/assets/images/twitter/bootstrap/glyphicons-halflings-white.png +0 -0
- data/app/assets/images/twitter/bootstrap/glyphicons-halflings.png +0 -0
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-affix.js +0 -117
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-alert.js +0 -99
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-button.js +0 -105
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-carousel.js +0 -207
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-collapse.js +0 -167
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-dropdown.js +0 -169
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-modal.js +0 -247
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-popover.js +0 -114
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-scrollspy.js +0 -162
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-tab.js +0 -144
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-tooltip.js +0 -361
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-transition.js +0 -60
- data/app/assets/javascripts/twitter/bootstrap/bootstrap-typeahead.js +0 -335
- data/app/assets/stylesheets/twitter-bootstrap-static/fontawesome.css.erb +0 -787
- data/lib/twitter/bootstrap/rails/twitter-bootstrap-breadcrumbs.rb +0 -42
- data/test/lib/breadcrumbs_test.rb +0 -75
- data/test/test_helper.rb +0 -11
- data/vendor/static-source/fontawesome.less +0 -9
- data/vendor/toolkit/fontawesome/bootstrap.less +0 -84
- data/vendor/toolkit/fontawesome/core.less +0 -129
- data/vendor/toolkit/fontawesome/extras.less +0 -93
- data/vendor/toolkit/fontawesome/font-awesome-ie7.less +0 -1953
- data/vendor/toolkit/fontawesome/font-awesome.less +0 -33
- data/vendor/toolkit/fontawesome/icons.less +0 -381
- data/vendor/toolkit/fontawesome/mixins.less +0 -48
- data/vendor/toolkit/fontawesome/path.less +0 -14
- data/vendor/toolkit/fontawesome/variables.less +0 -735
- data/vendor/toolkit/twitter/bootstrap/accordion.less +0 -34
- data/vendor/toolkit/twitter/bootstrap/hero-unit.less +0 -25
- data/vendor/toolkit/twitter/bootstrap/labels-badges.less +0 -84
- data/vendor/toolkit/twitter/bootstrap/layouts.less +0 -16
- data/vendor/toolkit/twitter/bootstrap/reset.less +0 -216
- data/vendor/toolkit/twitter/bootstrap/responsive-1200px-min.less +0 -28
- data/vendor/toolkit/twitter/bootstrap/responsive-767px-max.less +0 -193
- data/vendor/toolkit/twitter/bootstrap/responsive-768px-979px.less +0 -19
- data/vendor/toolkit/twitter/bootstrap/responsive-navbar.less +0 -189
- data/vendor/toolkit/twitter/bootstrap/responsive.less +0 -48
- data/vendor/toolkit/twitter/bootstrap/sprites.less +0 -197
@@ -0,0 +1,35 @@
|
|
1
|
+
// Embeds responsive
|
2
|
+
//
|
3
|
+
// Credit: Nicolas Gallagher and SUIT CSS.
|
4
|
+
|
5
|
+
.embed-responsive {
|
6
|
+
position: relative;
|
7
|
+
display: block;
|
8
|
+
height: 0;
|
9
|
+
padding: 0;
|
10
|
+
overflow: hidden;
|
11
|
+
|
12
|
+
.embed-responsive-item,
|
13
|
+
iframe,
|
14
|
+
embed,
|
15
|
+
object,
|
16
|
+
video {
|
17
|
+
position: absolute;
|
18
|
+
top: 0;
|
19
|
+
left: 0;
|
20
|
+
bottom: 0;
|
21
|
+
height: 100%;
|
22
|
+
width: 100%;
|
23
|
+
border: 0;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
// Modifier class for 16:9 aspect ratio
|
28
|
+
.embed-responsive-16by9 {
|
29
|
+
padding-bottom: 56.25%;
|
30
|
+
}
|
31
|
+
|
32
|
+
// Modifier class for 4:3 aspect ratio
|
33
|
+
.embed-responsive-4by3 {
|
34
|
+
padding-bottom: 75%;
|
35
|
+
}
|
@@ -3,57 +3,192 @@
|
|
3
3
|
// --------------------------------------------------
|
4
4
|
|
5
5
|
|
6
|
-
// IE10
|
7
|
-
//
|
6
|
+
// IE10 in Windows (Phone) 8
|
7
|
+
//
|
8
|
+
// Support for responsive views via media queries is kind of borked in IE10, for
|
9
|
+
// Surface/desktop in split view and for Windows Phone 8. This particular fix
|
10
|
+
// must be accompanied by a snippet of JavaScript to sniff the user agent and
|
11
|
+
// apply some conditional CSS to *only* the Surface/desktop Windows 8. Look at
|
12
|
+
// our Getting Started page for more information on this bug.
|
13
|
+
//
|
14
|
+
// For more information, see the following:
|
15
|
+
//
|
16
|
+
// Issue: https://github.com/twbs/bootstrap/issues/10497
|
17
|
+
// Docs: http://getbootstrap.com/getting-started/#support-ie10-width
|
18
|
+
// Source: http://timkadlec.com/2013/01/windows-phone-8-and-device-width/
|
8
19
|
// Source: http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/
|
9
|
-
|
20
|
+
|
21
|
+
@-ms-viewport {
|
10
22
|
width: device-width;
|
11
23
|
}
|
12
24
|
|
13
|
-
// Hide from screenreaders and browsers
|
14
|
-
// Credit: HTML5 Boilerplate
|
15
|
-
.hidden {
|
16
|
-
display: none;
|
17
|
-
visibility: hidden;
|
18
|
-
}
|
19
25
|
|
20
26
|
// Visibility utilities
|
27
|
+
// Note: Deprecated .visible-xs, .visible-sm, .visible-md, and .visible-lg as of v3.2.0
|
28
|
+
.visible-xs,
|
29
|
+
.visible-sm,
|
30
|
+
.visible-md,
|
31
|
+
.visible-lg {
|
32
|
+
.responsive-invisibility();
|
33
|
+
}
|
34
|
+
|
35
|
+
.visible-xs-block,
|
36
|
+
.visible-xs-inline,
|
37
|
+
.visible-xs-inline-block,
|
38
|
+
.visible-sm-block,
|
39
|
+
.visible-sm-inline,
|
40
|
+
.visible-sm-inline-block,
|
41
|
+
.visible-md-block,
|
42
|
+
.visible-md-inline,
|
43
|
+
.visible-md-inline-block,
|
44
|
+
.visible-lg-block,
|
45
|
+
.visible-lg-inline,
|
46
|
+
.visible-lg-inline-block {
|
47
|
+
display: none !important;
|
48
|
+
}
|
49
|
+
|
50
|
+
.visible-xs {
|
51
|
+
@media (max-width: @screen-xs-max) {
|
52
|
+
.responsive-visibility();
|
53
|
+
}
|
54
|
+
}
|
55
|
+
.visible-xs-block {
|
56
|
+
@media (max-width: @screen-xs-max) {
|
57
|
+
display: block !important;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
.visible-xs-inline {
|
61
|
+
@media (max-width: @screen-xs-max) {
|
62
|
+
display: inline !important;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
.visible-xs-inline-block {
|
66
|
+
@media (max-width: @screen-xs-max) {
|
67
|
+
display: inline-block !important;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
.visible-sm {
|
72
|
+
@media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
|
73
|
+
.responsive-visibility();
|
74
|
+
}
|
75
|
+
}
|
76
|
+
.visible-sm-block {
|
77
|
+
@media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
|
78
|
+
display: block !important;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
.visible-sm-inline {
|
82
|
+
@media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
|
83
|
+
display: inline !important;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
.visible-sm-inline-block {
|
87
|
+
@media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
|
88
|
+
display: inline-block !important;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
.visible-md {
|
93
|
+
@media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
|
94
|
+
.responsive-visibility();
|
95
|
+
}
|
96
|
+
}
|
97
|
+
.visible-md-block {
|
98
|
+
@media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
|
99
|
+
display: block !important;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
.visible-md-inline {
|
103
|
+
@media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
|
104
|
+
display: inline !important;
|
105
|
+
}
|
106
|
+
}
|
107
|
+
.visible-md-inline-block {
|
108
|
+
@media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
|
109
|
+
display: inline-block !important;
|
110
|
+
}
|
111
|
+
}
|
21
112
|
|
22
|
-
|
23
|
-
|
24
|
-
.
|
25
|
-
|
26
|
-
|
27
|
-
.
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
@media (min-width: 768px) and (max-width: 979px) {
|
32
|
-
// Hide everything else
|
33
|
-
.hidden-desktop { display: inherit !important; }
|
34
|
-
.visible-desktop { display: none !important ; }
|
35
|
-
// Show
|
36
|
-
.visible-tablet { display: inherit !important; }
|
37
|
-
// Hide
|
38
|
-
.hidden-tablet { display: none !important; }
|
39
|
-
}
|
40
|
-
|
41
|
-
// Phones only
|
42
|
-
@media (max-width: 767px) {
|
43
|
-
// Hide everything else
|
44
|
-
.hidden-desktop { display: inherit !important; }
|
45
|
-
.visible-desktop { display: none !important; }
|
46
|
-
// Show
|
47
|
-
.visible-phone { display: inherit !important; } // Use inherit to restore previous behavior
|
48
|
-
// Hide
|
49
|
-
.hidden-phone { display: none !important; }
|
113
|
+
.visible-lg {
|
114
|
+
@media (min-width: @screen-lg-min) {
|
115
|
+
.responsive-visibility();
|
116
|
+
}
|
117
|
+
}
|
118
|
+
.visible-lg-block {
|
119
|
+
@media (min-width: @screen-lg-min) {
|
120
|
+
display: block !important;
|
121
|
+
}
|
50
122
|
}
|
123
|
+
.visible-lg-inline {
|
124
|
+
@media (min-width: @screen-lg-min) {
|
125
|
+
display: inline !important;
|
126
|
+
}
|
127
|
+
}
|
128
|
+
.visible-lg-inline-block {
|
129
|
+
@media (min-width: @screen-lg-min) {
|
130
|
+
display: inline-block !important;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
|
134
|
+
.hidden-xs {
|
135
|
+
@media (max-width: @screen-xs-max) {
|
136
|
+
.responsive-invisibility();
|
137
|
+
}
|
138
|
+
}
|
139
|
+
.hidden-sm {
|
140
|
+
@media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
|
141
|
+
.responsive-invisibility();
|
142
|
+
}
|
143
|
+
}
|
144
|
+
.hidden-md {
|
145
|
+
@media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
|
146
|
+
.responsive-invisibility();
|
147
|
+
}
|
148
|
+
}
|
149
|
+
.hidden-lg {
|
150
|
+
@media (min-width: @screen-lg-min) {
|
151
|
+
.responsive-invisibility();
|
152
|
+
}
|
153
|
+
}
|
154
|
+
|
51
155
|
|
52
156
|
// Print utilities
|
53
|
-
|
54
|
-
.
|
157
|
+
//
|
158
|
+
// Media queries are placed on the inside to be mixin-friendly.
|
159
|
+
|
160
|
+
// Note: Deprecated .visible-print as of v3.2.0
|
161
|
+
.visible-print {
|
162
|
+
.responsive-invisibility();
|
163
|
+
|
164
|
+
@media print {
|
165
|
+
.responsive-visibility();
|
166
|
+
}
|
167
|
+
}
|
168
|
+
.visible-print-block {
|
169
|
+
display: none !important;
|
170
|
+
|
171
|
+
@media print {
|
172
|
+
display: block !important;
|
173
|
+
}
|
174
|
+
}
|
175
|
+
.visible-print-inline {
|
176
|
+
display: none !important;
|
177
|
+
|
178
|
+
@media print {
|
179
|
+
display: inline !important;
|
180
|
+
}
|
181
|
+
}
|
182
|
+
.visible-print-inline-block {
|
183
|
+
display: none !important;
|
184
|
+
|
185
|
+
@media print {
|
186
|
+
display: inline-block !important;
|
187
|
+
}
|
188
|
+
}
|
55
189
|
|
56
|
-
|
57
|
-
|
58
|
-
|
190
|
+
.hidden-print {
|
191
|
+
@media print {
|
192
|
+
.responsive-invisibility();
|
193
|
+
}
|
59
194
|
}
|
@@ -3,51 +3,159 @@
|
|
3
3
|
// --------------------------------------------------
|
4
4
|
|
5
5
|
|
6
|
+
// Reset the box-sizing
|
7
|
+
//
|
8
|
+
// Heads up! This reset may cause conflicts with some third-party widgets.
|
9
|
+
// For recommendations on resolving such conflicts, see
|
10
|
+
// http://getbootstrap.com/getting-started/#third-box-sizing
|
11
|
+
* {
|
12
|
+
.box-sizing(border-box);
|
13
|
+
}
|
14
|
+
*:before,
|
15
|
+
*:after {
|
16
|
+
.box-sizing(border-box);
|
17
|
+
}
|
18
|
+
|
19
|
+
|
6
20
|
// Body reset
|
7
|
-
|
21
|
+
|
22
|
+
html {
|
23
|
+
font-size: 10px;
|
24
|
+
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
25
|
+
}
|
8
26
|
|
9
27
|
body {
|
10
|
-
|
11
|
-
font-
|
12
|
-
|
13
|
-
|
14
|
-
color: @
|
15
|
-
|
28
|
+
font-family: @font-family-base;
|
29
|
+
font-size: @font-size-base;
|
30
|
+
line-height: @line-height-base;
|
31
|
+
color: @text-color;
|
32
|
+
background-color: @body-bg;
|
33
|
+
}
|
34
|
+
|
35
|
+
// Reset fonts for relevant elements
|
36
|
+
input,
|
37
|
+
button,
|
38
|
+
select,
|
39
|
+
textarea {
|
40
|
+
font-family: inherit;
|
41
|
+
font-size: inherit;
|
42
|
+
line-height: inherit;
|
16
43
|
}
|
17
44
|
|
18
45
|
|
19
46
|
// Links
|
20
|
-
// -------------------------
|
21
47
|
|
22
48
|
a {
|
23
|
-
color: @
|
49
|
+
color: @link-color;
|
24
50
|
text-decoration: none;
|
51
|
+
|
52
|
+
&:hover,
|
53
|
+
&:focus {
|
54
|
+
color: @link-hover-color;
|
55
|
+
text-decoration: @link-hover-decoration;
|
56
|
+
}
|
57
|
+
|
58
|
+
&:focus {
|
59
|
+
.tab-focus();
|
60
|
+
}
|
25
61
|
}
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
62
|
+
|
63
|
+
|
64
|
+
// Figures
|
65
|
+
//
|
66
|
+
// We reset this here because previously Normalize had no `figure` margins. This
|
67
|
+
// ensures we don't break anyone's use of the element.
|
68
|
+
|
69
|
+
figure {
|
70
|
+
margin: 0;
|
30
71
|
}
|
31
72
|
|
32
73
|
|
33
74
|
// Images
|
34
|
-
|
75
|
+
|
76
|
+
img {
|
77
|
+
vertical-align: middle;
|
78
|
+
}
|
79
|
+
|
80
|
+
// Responsive images (ensure images don't scale beyond their parents)
|
81
|
+
.img-responsive {
|
82
|
+
.img-responsive();
|
83
|
+
}
|
35
84
|
|
36
85
|
// Rounded corners
|
37
86
|
.img-rounded {
|
38
|
-
|
87
|
+
border-radius: @border-radius-large;
|
39
88
|
}
|
40
89
|
|
41
|
-
//
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
90
|
+
// Image thumbnails
|
91
|
+
//
|
92
|
+
// Heads up! This is mixin-ed into thumbnails.less for `.thumbnail`.
|
93
|
+
.img-thumbnail {
|
94
|
+
padding: @thumbnail-padding;
|
95
|
+
line-height: @line-height-base;
|
96
|
+
background-color: @thumbnail-bg;
|
97
|
+
border: 1px solid @thumbnail-border;
|
98
|
+
border-radius: @thumbnail-border-radius;
|
99
|
+
.transition(all .2s ease-in-out);
|
100
|
+
|
101
|
+
// Keep them at most 100% wide
|
102
|
+
.img-responsive(inline-block);
|
48
103
|
}
|
49
104
|
|
50
105
|
// Perfect circle
|
51
106
|
.img-circle {
|
52
|
-
|
107
|
+
border-radius: 50%; // set radius in percents
|
108
|
+
}
|
109
|
+
|
110
|
+
|
111
|
+
// Horizontal rules
|
112
|
+
|
113
|
+
hr {
|
114
|
+
margin-top: @line-height-computed;
|
115
|
+
margin-bottom: @line-height-computed;
|
116
|
+
border: 0;
|
117
|
+
border-top: 1px solid @hr-border;
|
118
|
+
}
|
119
|
+
|
120
|
+
|
121
|
+
// Only display content to screen readers
|
122
|
+
//
|
123
|
+
// See: http://a11yproject.com/posts/how-to-hide-content/
|
124
|
+
|
125
|
+
.sr-only {
|
126
|
+
position: absolute;
|
127
|
+
width: 1px;
|
128
|
+
height: 1px;
|
129
|
+
margin: -1px;
|
130
|
+
padding: 0;
|
131
|
+
overflow: hidden;
|
132
|
+
clip: rect(0,0,0,0);
|
133
|
+
border: 0;
|
134
|
+
}
|
135
|
+
|
136
|
+
// Use in conjunction with .sr-only to only display content when it's focused.
|
137
|
+
// Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
|
138
|
+
// Credit: HTML5 Boilerplate
|
139
|
+
|
140
|
+
.sr-only-focusable {
|
141
|
+
&:active,
|
142
|
+
&:focus {
|
143
|
+
position: static;
|
144
|
+
width: auto;
|
145
|
+
height: auto;
|
146
|
+
margin: 0;
|
147
|
+
overflow: visible;
|
148
|
+
clip: auto;
|
149
|
+
}
|
150
|
+
}
|
151
|
+
|
152
|
+
|
153
|
+
// iOS "clickable elements" fix for role="button"
|
154
|
+
//
|
155
|
+
// Fixes "clickability" issue (and more generally, the firing of events such as focus as well)
|
156
|
+
// for traditionally non-focusable elements with role="button"
|
157
|
+
// see https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
|
158
|
+
|
159
|
+
[role="button"] {
|
160
|
+
cursor: pointer;
|
53
161
|
}
|