railsstrap 3.3.1 → 3.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -27
  3. data/app/helpers/railsstrap/aside_helper.rb +59 -0
  4. data/app/helpers/railsstrap/badge_label_helper.rb +0 -4
  5. data/app/helpers/railsstrap/bootstrap_flash_helper.rb +1 -1
  6. data/app/helpers/railsstrap/date_picker_helper.rb +16 -8
  7. data/app/helpers/railsstrap/modal_helper.rb +18 -24
  8. data/lib/generators/railsstrap/install/templates/bootstrap_and_overrides.less +42 -26
  9. data/lib/railsstrap/constants.rb +1 -1
  10. data/lib/railsstrap/engine.rb +9 -5
  11. data/spec/lib/railsstrap/aside_helper_spec.rb +140 -0
  12. data/spec/lib/railsstrap/badge_label_helper_spec.rb +42 -0
  13. data/spec/lib/railsstrap/bootstrap_flash_helper_spec.rb +130 -0
  14. data/spec/lib/railsstrap/breadcrumbs_spec.rb +75 -0
  15. data/spec/lib/railsstrap/datepicker_helper_spec.rb +59 -0
  16. data/spec/lib/railsstrap/form_errors_helper_spec.rb +147 -0
  17. data/spec/lib/railsstrap/glyph_helper_spec.rb +24 -0
  18. data/spec/lib/railsstrap/icon_helper_spec.rb +24 -0
  19. data/spec/lib/railsstrap/modal_helper_spec.rb +140 -0
  20. data/spec/lib/railsstrap/navbar_helper_spec.rb +373 -0
  21. data/spec/lib/railsstrap/uri_state_spec.rb +49 -0
  22. data/spec/spec_helper.rb +20 -0
  23. data/vendor/assets/bower_components/bootstrap/Gruntfile.js +45 -8
  24. data/vendor/assets/bower_components/bootstrap/LICENSE +1 -1
  25. data/vendor/assets/bower_components/bootstrap/README.md +12 -9
  26. data/vendor/assets/bower_components/bootstrap/bower.json +1 -1
  27. data/vendor/assets/bower_components/bootstrap/dist/css/bootstrap-theme.css +8 -2
  28. data/vendor/assets/bower_components/bootstrap/dist/css/bootstrap-theme.css.map +1 -1
  29. data/vendor/assets/bower_components/bootstrap/dist/css/bootstrap-theme.min.css +3 -3
  30. data/vendor/assets/bower_components/bootstrap/dist/css/bootstrap.css +257 -23
  31. data/vendor/assets/bower_components/bootstrap/dist/css/bootstrap.css.map +1 -1
  32. data/vendor/assets/bower_components/bootstrap/dist/css/bootstrap.min.css +3 -3
  33. data/vendor/assets/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot +0 -0
  34. data/vendor/assets/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.svg +273 -214
  35. data/vendor/assets/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
  36. data/vendor/assets/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff +0 -0
  37. data/vendor/assets/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 +0 -0
  38. data/vendor/assets/bower_components/bootstrap/dist/js/bootstrap.js +55 -69
  39. data/vendor/assets/bower_components/bootstrap/dist/js/bootstrap.min.js +4 -4
  40. data/vendor/assets/bower_components/bootstrap/fonts/glyphicons-halflings-regular.eot +0 -0
  41. data/vendor/assets/bower_components/bootstrap/fonts/glyphicons-halflings-regular.svg +273 -214
  42. data/vendor/assets/bower_components/bootstrap/fonts/glyphicons-halflings-regular.ttf +0 -0
  43. data/vendor/assets/bower_components/bootstrap/fonts/glyphicons-halflings-regular.woff +0 -0
  44. data/vendor/assets/bower_components/bootstrap/fonts/glyphicons-halflings-regular.woff2 +0 -0
  45. data/vendor/assets/bower_components/bootstrap/grunt/bs-glyphicons-data-generator.js +41 -0
  46. data/vendor/assets/bower_components/bootstrap/grunt/configBridge.json +1 -0
  47. data/vendor/assets/bower_components/bootstrap/grunt/sauce_browsers.yml +4 -4
  48. data/vendor/assets/bower_components/bootstrap/js/affix.js +4 -4
  49. data/vendor/assets/bower_components/bootstrap/js/alert.js +3 -3
  50. data/vendor/assets/bower_components/bootstrap/js/button.js +3 -3
  51. data/vendor/assets/bower_components/bootstrap/js/carousel.js +7 -10
  52. data/vendor/assets/bower_components/bootstrap/js/collapse.js +4 -4
  53. data/vendor/assets/bower_components/bootstrap/js/dropdown.js +3 -3
  54. data/vendor/assets/bower_components/bootstrap/js/modal.js +3 -3
  55. data/vendor/assets/bower_components/bootstrap/js/popover.js +7 -13
  56. data/vendor/assets/bower_components/bootstrap/js/scrollspy.js +3 -3
  57. data/vendor/assets/bower_components/bootstrap/js/tab.js +3 -3
  58. data/vendor/assets/bower_components/bootstrap/js/tooltip.js +10 -16
  59. data/vendor/assets/bower_components/bootstrap/js/transition.js +2 -2
  60. data/vendor/assets/bower_components/bootstrap/less/alerts.less +5 -0
  61. data/vendor/assets/bower_components/bootstrap/less/badges.less +4 -0
  62. data/vendor/assets/bower_components/bootstrap/less/button-groups.less +2 -2
  63. data/vendor/assets/bower_components/bootstrap/less/buttons.less +1 -1
  64. data/vendor/assets/bower_components/bootstrap/less/carousel.less +8 -6
  65. data/vendor/assets/bower_components/bootstrap/less/close.less +1 -0
  66. data/vendor/assets/bower_components/bootstrap/less/dropdowns.less +2 -1
  67. data/vendor/assets/bower_components/bootstrap/less/forms.less +41 -21
  68. data/vendor/assets/bower_components/bootstrap/less/glyphicons.less +67 -0
  69. data/vendor/assets/bower_components/bootstrap/less/jumbotron.less +1 -0
  70. data/vendor/assets/bower_components/bootstrap/less/media.less +14 -0
  71. data/vendor/assets/bower_components/bootstrap/less/mixins/vendor-prefixes.less +1 -1
  72. data/vendor/assets/bower_components/bootstrap/less/navbar.less +1 -0
  73. data/vendor/assets/bower_components/bootstrap/less/panels.less +5 -1
  74. data/vendor/assets/bower_components/bootstrap/less/popovers.less +1 -1
  75. data/vendor/assets/bower_components/bootstrap/less/tables.less +3 -3
  76. data/vendor/assets/bower_components/bootstrap/less/theme.less +3 -2
  77. data/vendor/assets/bower_components/bootstrap/less/tooltip.less +1 -1
  78. data/vendor/assets/bower_components/bootstrap/less/variables.less +3 -2
  79. data/vendor/assets/bower_components/bootstrap/package.json +14 -13
  80. data/vendor/assets/bower_components/jquery/bower.json +2 -2
  81. data/vendor/assets/bower_components/jquery/dist/jquery.js +277 -262
  82. data/vendor/assets/bower_components/jquery/dist/jquery.min.js +4 -4
  83. data/vendor/assets/bower_components/jquery/dist/jquery.min.map +1 -1
  84. data/vendor/assets/bower_components/jquery/src/ajax.js +11 -31
  85. data/vendor/assets/bower_components/jquery/src/ajax/xhr.js +3 -2
  86. data/vendor/assets/bower_components/jquery/src/attributes/attr.js +0 -2
  87. data/vendor/assets/bower_components/jquery/src/attributes/classes.js +4 -4
  88. data/vendor/assets/bower_components/jquery/src/attributes/prop.js +1 -3
  89. data/vendor/assets/bower_components/jquery/src/attributes/support.js +8 -8
  90. data/vendor/assets/bower_components/jquery/src/attributes/val.js +3 -5
  91. data/vendor/assets/bower_components/jquery/src/core.js +6 -7
  92. data/vendor/assets/bower_components/jquery/src/core/init.js +3 -3
  93. data/vendor/assets/bower_components/jquery/src/core/ready.js +1 -1
  94. data/vendor/assets/bower_components/jquery/src/css.js +28 -29
  95. data/vendor/assets/bower_components/jquery/src/css/addGetHookIf.js +2 -4
  96. data/vendor/assets/bower_components/jquery/src/css/curCSS.js +1 -1
  97. data/vendor/assets/bower_components/jquery/src/css/defaultDisplay.js +1 -1
  98. data/vendor/assets/bower_components/jquery/src/css/support.js +5 -0
  99. data/vendor/assets/bower_components/jquery/src/css/var/getStyles.js +8 -1
  100. data/vendor/assets/bower_components/jquery/src/data.js +10 -11
  101. data/vendor/assets/bower_components/jquery/src/data/Data.js +3 -3
  102. data/vendor/assets/bower_components/jquery/src/deferred.js +2 -2
  103. data/vendor/assets/bower_components/jquery/src/dimensions.js +1 -1
  104. data/vendor/assets/bower_components/jquery/src/effects.js +29 -30
  105. data/vendor/assets/bower_components/jquery/src/effects/Tween.js +7 -7
  106. data/vendor/assets/bower_components/jquery/src/event.js +5 -5
  107. data/vendor/assets/bower_components/jquery/src/event/ajax.js +13 -0
  108. data/vendor/assets/bower_components/jquery/src/exports/global.js +2 -2
  109. data/vendor/assets/bower_components/jquery/src/intro.js +8 -8
  110. data/vendor/assets/bower_components/jquery/src/jquery.js +1 -0
  111. data/vendor/assets/bower_components/jquery/src/manipulation.js +9 -11
  112. data/vendor/assets/bower_components/jquery/src/manipulation/support.js +6 -5
  113. data/vendor/assets/bower_components/jquery/src/offset.js +9 -6
  114. data/vendor/assets/bower_components/jquery/src/queue.js +3 -3
  115. data/vendor/assets/bower_components/jquery/src/sizzle/dist/sizzle.js +83 -60
  116. data/vendor/assets/bower_components/jquery/src/sizzle/dist/sizzle.min.js +3 -3
  117. data/vendor/assets/bower_components/jquery/src/sizzle/dist/sizzle.min.map +1 -1
  118. data/vendor/assets/bower_components/jquery/src/traversing.js +3 -4
  119. data/vendor/assets/bower_components/jquery/src/wrap.js +1 -0
  120. data/vendor/assets/stylesheets/aside/aside.less +18 -2
  121. data/vendor/assets/stylesheets/bootstrap.less +2 -0
  122. data/vendor/assets/stylesheets/dist/railsstrap.css +28 -6
  123. data/vendor/assets/stylesheets/fontawesome-local.less +15 -0
  124. data/vendor/assets/stylesheets/glyphicons.less +12 -0
  125. metadata +278 -7
@@ -28,6 +28,7 @@
28
28
  position: relative;
29
29
  top: -1px;
30
30
  }
31
+
31
32
  .btn-xs & {
32
33
  top: 0;
33
34
  padding: 1px 5px;
@@ -49,12 +50,15 @@
49
50
  color: @badge-active-color;
50
51
  background-color: @badge-active-bg;
51
52
  }
53
+
52
54
  .list-group-item > & {
53
55
  float: right;
54
56
  }
57
+
55
58
  .list-group-item > & + & {
56
59
  margin-right: 5px;
57
60
  }
61
+
58
62
  .nav-pills > li > a > & {
59
63
  margin-left: 3px;
60
64
  }
@@ -71,13 +71,13 @@
71
71
  .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
72
72
  border-radius: 0;
73
73
  }
74
- .btn-group > .btn-group:first-child {
74
+ .btn-group > .btn-group:first-child:not(:last-child) {
75
75
  > .btn:last-child,
76
76
  > .dropdown-toggle {
77
77
  .border-right-radius(0);
78
78
  }
79
79
  }
80
- .btn-group > .btn-group:last-child > .btn:first-child {
80
+ .btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child {
81
81
  .border-left-radius(0);
82
82
  }
83
83
 
@@ -107,7 +107,7 @@
107
107
  &:hover,
108
108
  &:focus {
109
109
  color: @link-hover-color;
110
- text-decoration: underline;
110
+ text-decoration: @link-hover-decoration;
111
111
  background-color: transparent;
112
112
  }
113
113
  &[disabled],
@@ -27,24 +27,24 @@
27
27
 
28
28
  // WebKit CSS3 transforms for supported devices
29
29
  @media all and (transform-3d), (-webkit-transform-3d) {
30
- transition: transform .6s ease-in-out;
31
- backface-visibility: hidden;
32
- perspective: 1000;
30
+ .transition-transform(~'0.6s ease-in-out');
31
+ .backface-visibility(~'hidden');
32
+ .perspective(1000);
33
33
 
34
34
  &.next,
35
35
  &.active.right {
36
- transform: translate3d(100%, 0, 0);
36
+ .translate3d(100%, 0, 0);
37
37
  left: 0;
38
38
  }
39
39
  &.prev,
40
40
  &.active.left {
41
- transform: translate3d(-100%, 0, 0);
41
+ .translate3d(-100%, 0, 0);
42
42
  left: 0;
43
43
  }
44
44
  &.next.left,
45
45
  &.prev.right,
46
46
  &.active {
47
- transform: translate3d(0, 0, 0);
47
+ .translate3d(0, 0, 0);
48
48
  left: 0;
49
49
  }
50
50
  }
@@ -148,6 +148,7 @@
148
148
  width: 20px;
149
149
  height: 20px;
150
150
  margin-top: -10px;
151
+ line-height: 1;
151
152
  font-family: serif;
152
153
  }
153
154
 
@@ -195,6 +196,7 @@
195
196
  // Internet Explorer 8-9 does not support clicks on elements without a set
196
197
  // `background-color`. We cannot use `filter` since that's not viewed as a
197
198
  // background color by the browser. Thus, a hack is needed.
199
+ // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Internet_Explorer
198
200
  //
199
201
  // For IE8, we set solid black as it doesn't support `rgba()`. For IE9, we
200
202
  // set alpha transparency for the best results possible.
@@ -23,6 +23,7 @@
23
23
  // Additional properties for button version
24
24
  // iOS requires the button element instead of an anchor tag.
25
25
  // If you want the anchor version, it requires `href="#"`.
26
+ // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
26
27
  button& {
27
28
  padding: 0;
28
29
  cursor: pointer;
@@ -16,6 +16,7 @@
16
16
  }
17
17
 
18
18
  // The dropdown wrapper (div)
19
+ .dropup,
19
20
  .dropdown {
20
21
  position: relative;
21
22
  }
@@ -190,7 +191,7 @@
190
191
  .dropdown-menu {
191
192
  top: auto;
192
193
  bottom: 100%;
193
- margin-bottom: 1px;
194
+ margin-bottom: 2px;
194
195
  }
195
196
  }
196
197
 
@@ -123,7 +123,7 @@ output {
123
123
  background-color: @input-bg;
124
124
  background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
125
125
  border: 1px solid @input-border;
126
- border-radius: @input-border-radius;
126
+ border-radius: @input-border-radius; // Note: This has no effect on <select>s in some browsers, due to the limited stylability of <select>s in CSS.
127
127
  .box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
128
128
  .transition(~"border-color ease-in-out .15s, box-shadow ease-in-out .15s");
129
129
 
@@ -143,7 +143,7 @@ output {
143
143
  fieldset[disabled] & {
144
144
  cursor: @cursor-disabled;
145
145
  background-color: @input-bg-disabled;
146
- opacity: 1; // iOS fix for unreadable disabled content
146
+ opacity: 1; // iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655
147
147
  }
148
148
 
149
149
  // Reset height for `textarea`s
@@ -170,7 +170,7 @@ input[type="search"] {
170
170
  // In Mobile Safari, setting `display: block` on temporal inputs causes the
171
171
  // text within the input to become vertically misaligned. As a workaround, we
172
172
  // set a pixel line-height that matches the given height of the input, but only
173
- // for Safari.
173
+ // for Safari. See https://bugs.webkit.org/show_bug.cgi?id=139848
174
174
 
175
175
  @media screen and (-webkit-min-device-pixel-ratio: 0) {
176
176
  input[type="date"],
@@ -178,18 +178,16 @@ input[type="search"] {
178
178
  input[type="datetime-local"],
179
179
  input[type="month"] {
180
180
  line-height: @input-height-base;
181
- }
182
- input[type="date"].input-sm,
183
- input[type="time"].input-sm,
184
- input[type="datetime-local"].input-sm,
185
- input[type="month"].input-sm {
186
- line-height: @input-height-small;
187
- }
188
- input[type="date"].input-lg,
189
- input[type="time"].input-lg,
190
- input[type="datetime-local"].input-lg,
191
- input[type="month"].input-lg {
192
- line-height: @input-height-large;
181
+
182
+ &.input-sm,
183
+ .input-group-sm & {
184
+ line-height: @input-height-small;
185
+ }
186
+
187
+ &.input-lg,
188
+ .input-group-lg & {
189
+ line-height: @input-height-large;
190
+ }
193
191
  }
194
192
  }
195
193
 
@@ -309,16 +307,39 @@ input[type="checkbox"] {
309
307
  //
310
308
  // Build on `.form-control` with modifier classes to decrease or increase the
311
309
  // height and font-size of form controls.
310
+ //
311
+ // The `.form-group-* form-control` variations are sadly duplicated to avoid the
312
+ // issue documented in https://github.com/twbs/bootstrap/issues/15074.
312
313
 
313
- .input-sm,
314
- .form-group-sm .form-control {
314
+ .input-sm {
315
315
  .input-size(@input-height-small; @padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @input-border-radius-small);
316
316
  }
317
+ .form-group-sm {
318
+ .form-control {
319
+ .input-size(@input-height-small; @padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @input-border-radius-small);
320
+ }
321
+ .form-control-static {
322
+ height: @input-height-small;
323
+ padding: @padding-small-vertical @padding-small-horizontal;
324
+ font-size: @font-size-small;
325
+ line-height: @line-height-small;
326
+ }
327
+ }
317
328
 
318
- .input-lg,
319
- .form-group-lg .form-control {
329
+ .input-lg {
320
330
  .input-size(@input-height-large; @padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @input-border-radius-large);
321
331
  }
332
+ .form-group-lg {
333
+ .form-control {
334
+ .input-size(@input-height-large; @padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @input-border-radius-large);
335
+ }
336
+ .form-control-static {
337
+ height: @input-height-large;
338
+ padding: @padding-large-vertical @padding-large-horizontal;
339
+ font-size: @font-size-large;
340
+ line-height: @line-height-large;
341
+ }
342
+ }
322
343
 
323
344
 
324
345
  // Form control feedback states
@@ -450,8 +471,7 @@ input[type="checkbox"] {
450
471
  }
451
472
 
452
473
  // Remove default margin on radios/checkboxes that were used for stacking, and
453
- // then undo the floating of radios and checkboxes to match (which also avoids
454
- // a bug in WebKit: https://github.com/twbs/bootstrap/issues/1969).
474
+ // then undo the floating of radios and checkboxes to match.
455
475
  .radio,
456
476
  .checkbox {
457
477
  display: inline-block;
@@ -12,6 +12,7 @@
12
12
  font-family: 'Glyphicons Halflings';
13
13
  src: url('@{icon-font-path}@{icon-font-name}.eot');
14
14
  src: url('@{icon-font-path}@{icon-font-name}.eot?#iefix') format('embedded-opentype'),
15
+ url('@{icon-font-path}@{icon-font-name}.woff2') format('woff2'),
15
16
  url('@{icon-font-path}@{icon-font-name}.woff') format('woff'),
16
17
  url('@{icon-font-path}@{icon-font-name}.ttf') format('truetype'),
17
18
  url('@{icon-font-path}@{icon-font-name}.svg#@{icon-font-svg-id}') format('svg');
@@ -232,3 +233,69 @@
232
233
  .glyphicon-cloud-upload { &:before { content: "\e198"; } }
233
234
  .glyphicon-tree-conifer { &:before { content: "\e199"; } }
234
235
  .glyphicon-tree-deciduous { &:before { content: "\e200"; } }
236
+ .glyphicon-cd { &:before { content: "\e201"; } }
237
+ .glyphicon-save-file { &:before { content: "\e202"; } }
238
+ .glyphicon-open-file { &:before { content: "\e203"; } }
239
+ .glyphicon-level-up { &:before { content: "\e204"; } }
240
+ .glyphicon-copy { &:before { content: "\e205"; } }
241
+ .glyphicon-paste { &:before { content: "\e206"; } }
242
+ // The following 2 Glyphicons are omitted for the time being because
243
+ // they currently use Unicode codepoints that are outside the
244
+ // Basic Multilingual Plane (BMP). Older buggy versions of WebKit can't handle
245
+ // non-BMP codepoints in CSS string escapes, and thus can't display these two icons.
246
+ // Notably, the bug affects some older versions of the Android Browser.
247
+ // More info: https://github.com/twbs/bootstrap/issues/10106
248
+ // .glyphicon-door { &:before { content: "\1f6aa"; } }
249
+ // .glyphicon-key { &:before { content: "\1f511"; } }
250
+ .glyphicon-alert { &:before { content: "\e209"; } }
251
+ .glyphicon-equalizer { &:before { content: "\e210"; } }
252
+ .glyphicon-king { &:before { content: "\e211"; } }
253
+ .glyphicon-queen { &:before { content: "\e212"; } }
254
+ .glyphicon-pawn { &:before { content: "\e213"; } }
255
+ .glyphicon-bishop { &:before { content: "\e214"; } }
256
+ .glyphicon-knight { &:before { content: "\e215"; } }
257
+ .glyphicon-baby-formula { &:before { content: "\e216"; } }
258
+ .glyphicon-tent { &:before { content: "\26fa"; } }
259
+ .glyphicon-blackboard { &:before { content: "\e218"; } }
260
+ .glyphicon-bed { &:before { content: "\e219"; } }
261
+ .glyphicon-apple { &:before { content: "\f8ff"; } }
262
+ .glyphicon-erase { &:before { content: "\e221"; } }
263
+ .glyphicon-hourglass { &:before { content: "\231b"; } }
264
+ .glyphicon-lamp { &:before { content: "\e223"; } }
265
+ .glyphicon-duplicate { &:before { content: "\e224"; } }
266
+ .glyphicon-piggy-bank { &:before { content: "\e225"; } }
267
+ .glyphicon-scissors { &:before { content: "\e226"; } }
268
+ .glyphicon-bitcoin { &:before { content: "\e227"; } }
269
+ .glyphicon-yen { &:before { content: "\00a5"; } }
270
+ .glyphicon-ruble { &:before { content: "\20bd"; } }
271
+ .glyphicon-scale { &:before { content: "\e230"; } }
272
+ .glyphicon-ice-lolly { &:before { content: "\e231"; } }
273
+ .glyphicon-ice-lolly-tasted { &:before { content: "\e232"; } }
274
+ .glyphicon-education { &:before { content: "\e233"; } }
275
+ .glyphicon-option-horizontal { &:before { content: "\e234"; } }
276
+ .glyphicon-option-vertical { &:before { content: "\e235"; } }
277
+ .glyphicon-menu-hamburger { &:before { content: "\e236"; } }
278
+ .glyphicon-modal-window { &:before { content: "\e237"; } }
279
+ .glyphicon-oil { &:before { content: "\e238"; } }
280
+ .glyphicon-grain { &:before { content: "\e239"; } }
281
+ .glyphicon-sunglasses { &:before { content: "\e240"; } }
282
+ .glyphicon-text-size { &:before { content: "\e241"; } }
283
+ .glyphicon-text-color { &:before { content: "\e242"; } }
284
+ .glyphicon-text-background { &:before { content: "\e243"; } }
285
+ .glyphicon-object-align-top { &:before { content: "\e244"; } }
286
+ .glyphicon-object-align-bottom { &:before { content: "\e245"; } }
287
+ .glyphicon-object-align-horizontal{ &:before { content: "\e246"; } }
288
+ .glyphicon-object-align-left { &:before { content: "\e247"; } }
289
+ .glyphicon-object-align-vertical { &:before { content: "\e248"; } }
290
+ .glyphicon-object-align-right { &:before { content: "\e249"; } }
291
+ .glyphicon-triangle-right { &:before { content: "\e250"; } }
292
+ .glyphicon-triangle-left { &:before { content: "\e251"; } }
293
+ .glyphicon-triangle-bottom { &:before { content: "\e252"; } }
294
+ .glyphicon-triangle-top { &:before { content: "\e253"; } }
295
+ .glyphicon-console { &:before { content: "\e254"; } }
296
+ .glyphicon-superscript { &:before { content: "\e255"; } }
297
+ .glyphicon-subscript { &:before { content: "\e256"; } }
298
+ .glyphicon-menu-left { &:before { content: "\e257"; } }
299
+ .glyphicon-menu-right { &:before { content: "\e258"; } }
300
+ .glyphicon-menu-down { &:before { content: "\e259"; } }
301
+ .glyphicon-menu-up { &:before { content: "\e260"; } }
@@ -13,6 +13,7 @@
13
13
  .h1 {
14
14
  color: @jumbotron-heading-color;
15
15
  }
16
+
16
17
  p {
17
18
  margin-bottom: (@jumbotron-padding / 2);
18
19
  font-size: @jumbotron-font-size;
@@ -7,6 +7,20 @@
7
7
  }
8
8
  }
9
9
 
10
+ .media,
11
+ .media-body {
12
+ zoom: 1;
13
+ overflow: hidden;
14
+ }
15
+
16
+ .media-body {
17
+ width: 10000px;
18
+ }
19
+
20
+ .media-object {
21
+ display: block;
22
+ }
23
+
10
24
  .media-right,
11
25
  .media > .pull-right {
12
26
  padding-left: 10px;
@@ -102,7 +102,7 @@
102
102
  // Firefox
103
103
  &::-moz-placeholder {
104
104
  color: @color;
105
- opacity: 1; // See https://github.com/twbs/bootstrap/pull/11526
105
+ opacity: 1; // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526
106
106
  }
107
107
  &:-ms-input-placeholder { color: @color; } // Internet Explorer 10+
108
108
  &::-webkit-input-placeholder { color: @color; } // Safari and Chrome
@@ -331,6 +331,7 @@
331
331
  }
332
332
  // Menu position and menu caret support for dropups via extra dropup class
333
333
  .navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
334
+ margin-bottom: 0;
334
335
  .border-top-radius(@navbar-border-radius);
335
336
  .border-bottom-radius(0);
336
337
  }
@@ -36,7 +36,11 @@
36
36
  font-size: ceil((@font-size-base * 1.125));
37
37
  color: inherit;
38
38
 
39
- > a {
39
+ > a,
40
+ > small,
41
+ > .small,
42
+ > small > a,
43
+ > .small > a {
40
44
  color: inherit;
41
45
  }
42
46
  }
@@ -11,7 +11,7 @@
11
11
  display: none;
12
12
  max-width: @popover-max-width;
13
13
  padding: 1px;
14
- // Reset font and text propertes given new insertion method
14
+ // Reset font and text properties given new insertion method
15
15
  font-family: @font-family-base;
16
16
  font-size: @font-size-base;
17
17
  font-weight: normal;
@@ -111,7 +111,7 @@ th {
111
111
  // Default zebra-stripe styles (alternating gray and transparent backgrounds)
112
112
 
113
113
  .table-striped {
114
- > tbody > tr:nth-child(odd) {
114
+ > tbody > tr:nth-of-type(odd) {
115
115
  background-color: @table-bg-accent;
116
116
  }
117
117
  }
@@ -133,7 +133,7 @@ th {
133
133
  // Reset default table behavior
134
134
 
135
135
  table col[class*="col-"] {
136
- position: static; // Prevent border hiding in Firefox and IE9/10 (see https://github.com/twbs/bootstrap/issues/11623)
136
+ position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)
137
137
  float: none;
138
138
  display: table-column;
139
139
  }
@@ -141,7 +141,7 @@ table {
141
141
  td,
142
142
  th {
143
143
  &[class*="col-"] {
144
- position: static; // Prevent border hiding in Firefox and IE9/10 (see https://github.com/twbs/bootstrap/issues/11623)
144
+ position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)
145
145
  float: none;
146
146
  display: table-cell;
147
147
  }
@@ -36,7 +36,7 @@
36
36
  // Mixin for generating new styles
37
37
  .btn-styles(@btn-color: #555) {
38
38
  #gradient > .vertical(@start-color: @btn-color; @end-color: darken(@btn-color, 12%));
39
- .reset-filter(); // Disable gradients for IE9 because filter bleeds through rounded corners
39
+ .reset-filter(); // Disable gradients for IE9 because filter bleeds through rounded corners; see https://github.com/twbs/bootstrap/issues/10620
40
40
  background-repeat: repeat-x;
41
41
  border-color: darken(@btn-color, 14%);
42
42
 
@@ -52,6 +52,7 @@
52
52
  border-color: darken(@btn-color, 14%);
53
53
  }
54
54
 
55
+ &.disabled,
55
56
  &:disabled,
56
57
  &[disabled] {
57
58
  background-color: darken(@btn-color, 12%);
@@ -130,7 +131,7 @@
130
131
  // Inverted navbar
131
132
  .navbar-inverse {
132
133
  #gradient > .vertical(@start-color: lighten(@navbar-inverse-bg, 10%); @end-color: @navbar-inverse-bg);
133
- .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered
134
+ .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered; see https://github.com/twbs/bootstrap/issues/10257
134
135
 
135
136
  .navbar-nav > .open > a,
136
137
  .navbar-nav > .active > a {
@@ -9,7 +9,7 @@
9
9
  z-index: @zindex-tooltip;
10
10
  display: block;
11
11
  visibility: visible;
12
- // Reset font and text propertes given new insertion method
12
+ // Reset font and text properties given new insertion method
13
13
  font-family: @font-family-base;
14
14
  font-size: @font-size-small;
15
15
  font-weight: normal;
@@ -14,7 +14,7 @@
14
14
  @gray-light: lighten(@gray-base, 46.7%); // #777
15
15
  @gray-lighter: lighten(@gray-base, 93.5%); // #eee
16
16
 
17
- @brand-primary: darken(#428bca, 6.5%);
17
+ @brand-primary: darken(#428bca, 6.5%); // #337ab7
18
18
  @brand-success: #5cb85c;
19
19
  @brand-info: #5bc0de;
20
20
  @brand-warning: #f0ad4e;
@@ -99,7 +99,7 @@
99
99
  @padding-xs-vertical: 1px;
100
100
  @padding-xs-horizontal: 5px;
101
101
 
102
- @line-height-large: 1.33;
102
+ @line-height-large: 1.3333333; // extra decimals for Win 8.1 Chrome
103
103
  @line-height-small: 1.5;
104
104
 
105
105
  @border-radius-base: 4px;
@@ -187,6 +187,7 @@
187
187
 
188
188
  // TODO: Rename `@input-border-radius` to `@input-border-radius-base` in v4
189
189
  //** Default `.form-control` border radius
190
+ // This has no effect on `<select>`s in some browsers, due to the limited stylability of `<select>`s in CSS.
190
191
  @input-border-radius: @border-radius-base;
191
192
  //** Large `.form-control` border radius
192
193
  @input-border-radius-large: @border-radius-large;