twitter-bootstrap-rails 3.2.2 → 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.

Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +105 -130
  3. data/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
  4. data/app/assets/fonts/glyphicons-halflings-regular.svg +273 -214
  5. data/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
  6. data/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
  7. data/app/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
  8. data/app/assets/javascripts/twitter/bootstrap/affix.js +46 -26
  9. data/app/assets/javascripts/twitter/bootstrap/alert.js +7 -5
  10. data/app/assets/javascripts/twitter/bootstrap/button.js +27 -17
  11. data/app/assets/javascripts/twitter/bootstrap/carousel.js +35 -21
  12. data/app/assets/javascripts/twitter/bootstrap/collapse.js +68 -27
  13. data/app/assets/javascripts/twitter/bootstrap/dropdown.js +55 -41
  14. data/app/assets/javascripts/twitter/bootstrap/modal.js +88 -31
  15. data/app/assets/javascripts/twitter/bootstrap/popover.js +5 -10
  16. data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +28 -26
  17. data/app/assets/javascripts/twitter/bootstrap/tab.js +45 -18
  18. data/app/assets/javascripts/twitter/bootstrap/tooltip.js +111 -54
  19. data/app/assets/javascripts/twitter/bootstrap/transition.js +2 -2
  20. data/app/helpers/glyph_helper.rb +6 -3
  21. data/lib/generators/bootstrap/install/templates/bootstrap_and_overrides.css +3 -4
  22. data/lib/generators/bootstrap/install/templates/bootstrap_and_overrides.less +7 -18
  23. data/lib/generators/bootstrap/themed/templates/index.html.erb +2 -0
  24. data/lib/generators/bootstrap/themed/templates/index.html.haml +1 -0
  25. data/lib/generators/bootstrap/themed/templates/index.html.slim +2 -0
  26. data/lib/twitter/bootstrap/rails/version.rb +1 -1
  27. data/vendor/toolkit/twitter/bootstrap/alerts.less +5 -0
  28. data/vendor/toolkit/twitter/bootstrap/badges.less +14 -3
  29. data/vendor/toolkit/twitter/bootstrap/bootstrap.less +6 -0
  30. data/vendor/toolkit/twitter/bootstrap/breadcrumbs.less +0 -0
  31. data/vendor/toolkit/twitter/bootstrap/button-groups.less +13 -14
  32. data/vendor/toolkit/twitter/bootstrap/buttons.less +14 -7
  33. data/vendor/toolkit/twitter/bootstrap/carousel.less +34 -7
  34. data/vendor/toolkit/twitter/bootstrap/close.less +1 -0
  35. data/vendor/toolkit/twitter/bootstrap/code.less +0 -0
  36. data/vendor/toolkit/twitter/bootstrap/component-animations.less +3 -1
  37. data/vendor/toolkit/twitter/bootstrap/dropdowns.less +9 -8
  38. data/vendor/toolkit/twitter/bootstrap/forms.less +110 -41
  39. data/vendor/toolkit/twitter/bootstrap/glyphicons.less +80 -9
  40. data/vendor/toolkit/twitter/bootstrap/grid.less +0 -0
  41. data/vendor/toolkit/twitter/bootstrap/input-groups.less +8 -3
  42. data/vendor/toolkit/twitter/bootstrap/jumbotron.less +10 -4
  43. data/vendor/toolkit/twitter/bootstrap/labels.less +0 -0
  44. data/vendor/toolkit/twitter/bootstrap/list-group.less +11 -13
  45. data/vendor/toolkit/twitter/bootstrap/media.less +40 -30
  46. data/vendor/toolkit/twitter/bootstrap/mixins.less +1 -0
  47. data/vendor/toolkit/twitter/bootstrap/mixins/alerts.less +0 -0
  48. data/vendor/toolkit/twitter/bootstrap/mixins/background-variant.less +2 -1
  49. data/vendor/toolkit/twitter/bootstrap/mixins/border-radius.less +0 -0
  50. data/vendor/toolkit/twitter/bootstrap/mixins/buttons.less +19 -6
  51. data/vendor/toolkit/twitter/bootstrap/mixins/center-block.less +0 -0
  52. data/vendor/toolkit/twitter/bootstrap/mixins/clearfix.less +0 -0
  53. data/vendor/toolkit/twitter/bootstrap/mixins/forms.less +0 -0
  54. data/vendor/toolkit/twitter/bootstrap/mixins/gradients.less +0 -0
  55. data/vendor/toolkit/twitter/bootstrap/mixins/grid-framework.less +4 -4
  56. data/vendor/toolkit/twitter/bootstrap/mixins/grid.less +4 -4
  57. data/vendor/toolkit/twitter/bootstrap/mixins/hide-text.less +2 -2
  58. data/vendor/toolkit/twitter/bootstrap/mixins/image.less +0 -0
  59. data/vendor/toolkit/twitter/bootstrap/mixins/labels.less +1 -1
  60. data/vendor/toolkit/twitter/bootstrap/mixins/list-group.less +2 -1
  61. data/vendor/toolkit/twitter/bootstrap/mixins/nav-divider.less +0 -0
  62. data/vendor/toolkit/twitter/bootstrap/mixins/nav-vertical-align.less +0 -0
  63. data/vendor/toolkit/twitter/bootstrap/mixins/opacity.less +0 -0
  64. data/vendor/toolkit/twitter/bootstrap/mixins/pagination.less +2 -1
  65. data/vendor/toolkit/twitter/bootstrap/mixins/panels.less +0 -0
  66. data/vendor/toolkit/twitter/bootstrap/mixins/progress-bar.less +0 -0
  67. data/vendor/toolkit/twitter/bootstrap/mixins/reset-filter.less +0 -0
  68. data/vendor/toolkit/twitter/bootstrap/mixins/reset-text.less +18 -0
  69. data/vendor/toolkit/twitter/bootstrap/mixins/resize.less +0 -0
  70. data/vendor/toolkit/twitter/bootstrap/mixins/responsive-visibility.less +1 -1
  71. data/vendor/toolkit/twitter/bootstrap/mixins/size.less +0 -0
  72. data/vendor/toolkit/twitter/bootstrap/mixins/tab-focus.less +0 -0
  73. data/vendor/toolkit/twitter/bootstrap/mixins/table-row.less +0 -0
  74. data/vendor/toolkit/twitter/bootstrap/mixins/text-emphasis.less +2 -1
  75. data/vendor/toolkit/twitter/bootstrap/mixins/text-overflow.less +0 -0
  76. data/vendor/toolkit/twitter/bootstrap/mixins/vendor-prefixes.less +8 -5
  77. data/vendor/toolkit/twitter/bootstrap/modals.less +3 -3
  78. data/vendor/toolkit/twitter/bootstrap/navbar.less +6 -1
  79. data/vendor/toolkit/twitter/bootstrap/navs.less +1 -1
  80. data/vendor/toolkit/twitter/bootstrap/normalize.less +12 -13
  81. data/vendor/toolkit/twitter/bootstrap/pager.less +1 -2
  82. data/vendor/toolkit/twitter/bootstrap/pagination.less +5 -4
  83. data/vendor/toolkit/twitter/bootstrap/panels.less +27 -4
  84. data/vendor/toolkit/twitter/bootstrap/popovers.less +5 -7
  85. data/vendor/toolkit/twitter/bootstrap/print.less +96 -96
  86. data/vendor/toolkit/twitter/bootstrap/progress-bars.less +1 -14
  87. data/vendor/toolkit/twitter/bootstrap/responsive-embed.less +10 -9
  88. data/vendor/toolkit/twitter/bootstrap/responsive-utilities.less +0 -0
  89. data/vendor/toolkit/twitter/bootstrap/scaffolding.less +12 -1
  90. data/vendor/toolkit/twitter/bootstrap/tables.less +6 -5
  91. data/vendor/toolkit/twitter/bootstrap/theme.less +47 -16
  92. data/vendor/toolkit/twitter/bootstrap/thumbnails.less +1 -1
  93. data/vendor/toolkit/twitter/bootstrap/tooltip.less +13 -7
  94. data/vendor/toolkit/twitter/bootstrap/type.less +2 -8
  95. data/vendor/toolkit/twitter/bootstrap/utilities.less +0 -1
  96. data/vendor/toolkit/twitter/bootstrap/variables.less +36 -14
  97. data/vendor/toolkit/twitter/bootstrap/wells.less +0 -0
  98. metadata +45 -56
  99. data/app/assets/fonts/fontawesome-webfont.eot +0 -0
  100. data/app/assets/fonts/fontawesome-webfont.svg +0 -640
  101. data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
  102. data/app/assets/fonts/fontawesome-webfont.woff +0 -0
  103. data/app/assets/stylesheets/twitter-bootstrap-static/fontawesome.css.erb +0 -2026
  104. data/vendor/static-source/fontawesome.less +0 -8
  105. data/vendor/toolkit/fontawesome/bordered-pulled.less +0 -16
  106. data/vendor/toolkit/fontawesome/core.less +0 -11
  107. data/vendor/toolkit/fontawesome/fixed-width.less +0 -6
  108. data/vendor/toolkit/fontawesome/font-awesome.less +0 -17
  109. data/vendor/toolkit/fontawesome/icons.less +0 -552
  110. data/vendor/toolkit/fontawesome/larger.less +0 -13
  111. data/vendor/toolkit/fontawesome/list.less +0 -19
  112. data/vendor/toolkit/fontawesome/mixins.less +0 -25
  113. data/vendor/toolkit/fontawesome/path.less +0 -14
  114. data/vendor/toolkit/fontawesome/rotated-flipped.less +0 -20
  115. data/vendor/toolkit/fontawesome/spinning.less +0 -29
  116. data/vendor/toolkit/fontawesome/stacked.less +0 -20
  117. data/vendor/toolkit/fontawesome/variables.less +0 -561
@@ -1,8 +1,8 @@
1
1
  /* ========================================================================
2
- * Bootstrap: transition.js v3.2.0
2
+ * Bootstrap: transition.js v3.3.6
3
3
  * http://getbootstrap.com/javascript/#transitions
4
4
  * ========================================================================
5
- * Copyright 2011-2014 Twitter, Inc.
5
+ * Copyright 2011-2015 Twitter, Inc.
6
6
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
7
7
  * ======================================================================== */
8
8
 
@@ -8,13 +8,16 @@ module GlyphHelper
8
8
  # # => <i class="icon-thumbs-up pull-left"></i>
9
9
  # glyph(:lock, {tag: :span})
10
10
  # # => <span class="icon-lock"></span>
11
+ # glyph(:lock, {class: 'foo'})
12
+ # # => <i class="icon-lock foo"></i>
11
13
  def glyph(*names)
12
- options = (names.last.kind_of?(Hash)) ? names.pop : {}
13
- names.map! { |name| name.to_s.gsub('_','-') }
14
+ options = names.last.kind_of?(Hash) ? names.pop : {}
15
+ names.map! { |name| name.to_s.tr('_', '-') }
14
16
  names.map! do |name|
15
17
  name =~ /pull-(?:left|right)/ ? name : "glyphicon glyphicon-#{name}"
16
18
  end
17
19
  options[:tag] = options[:tag] ||= :i
18
- content_tag options[:tag], nil, :class => names
20
+ names.push options[:class] || ''
21
+ content_tag options[:tag], nil, class: names
19
22
  end
20
23
  end
@@ -1,7 +1,6 @@
1
1
  /*
2
2
  =require twitter-bootstrap-static/bootstrap
3
3
 
4
- Use Font Awesome icons (default)
5
- To use Glyphicons sprites instead of Font Awesome, replace with "require twitter-bootstrap-static/sprites"
6
- =require twitter-bootstrap-static/fontawesome
7
- */
4
+ Static version of css will use Glyphicons sprites by default
5
+ =require twitter-bootstrap-static/sprites
6
+ */
@@ -1,23 +1,12 @@
1
1
  @import "twitter/bootstrap/bootstrap";
2
2
 
3
- // Set correct font paths
4
- @glyphiconsEotPath: font-url("glyphicons-halflings-regular.eot");
5
- @glyphiconsEotPath_iefix: font-url("glyphicons-halflings-regular.eot?#iefix");
6
- @glyphiconsWoffPath: font-url("glyphicons-halflings-regular.woff");
7
- @glyphiconsTtfPath: font-url("glyphicons-halflings-regular.ttf");
8
- @glyphiconsSvgPath: font-url("glyphicons-halflings-regular.svg#glyphicons_halflingsregular");
9
-
10
- // Set the Font Awesome (Font Awesome is default. You can disable by commenting below lines)
11
- @fontAwesomeEotPath: font-url("fontawesome-webfont.eot");
12
- @fontAwesomeEotPath_iefix: font-url("fontawesome-webfont.eot?#iefix");
13
- @fontAwesomeWoffPath: font-url("fontawesome-webfont.woff");
14
- @fontAwesomeTtfPath: font-url("fontawesome-webfont.ttf");
15
- @fontAwesomeSvgPath: font-url("fontawesome-webfont.svg#fontawesomeregular");
16
-
17
- // Font Awesome
18
- @import "fontawesome/font-awesome";
19
-
20
- // Glyphicons
3
+ // Glyphicons are not required by default, uncomment the following lines to enable them.
4
+ //@glyphiconsEotPath: font-url("glyphicons-halflings-regular.eot");
5
+ //@glyphiconsEotPath_iefix: font-url("glyphicons-halflings-regular.eot?#iefix");
6
+ //@glyphiconsWoffPath: font-url("glyphicons-halflings-regular.woff");
7
+ //@glyphiconsTtfPath: font-url("glyphicons-halflings-regular.ttf");
8
+ //@glyphiconsSvgPath: font-url("glyphicons-halflings-regular.svg#glyphicons_halflingsregular");
9
+ //
21
10
  //@import "twitter/bootstrap/glyphicons.less";
22
11
 
23
12
  // Your custom LESS stylesheets goes here
@@ -22,6 +22,8 @@
22
22
  <%- end -%>
23
23
  <td><%%=l <%= resource_name %>.created_at %></td>
24
24
  <td>
25
+ <%%= link_to t('.show', :default => t("helpers.links.show")),
26
+ <%= singular_controller_routing_path %>_path(<%= resource_name %>), :class => 'btn btn-default btn-xs' %>
25
27
  <%%= link_to t('.edit', :default => t("helpers.links.edit")),
26
28
  edit_<%= singular_controller_routing_path %>_path(<%= resource_name %>), :class => 'btn btn-default btn-xs' %>
27
29
  <%%= link_to t('.destroy', :default => t("helpers.links.destroy")),
@@ -19,6 +19,7 @@
19
19
  <%- end -%>
20
20
  %td=l <%= resource_name %>.created_at
21
21
  %td
22
+ = link_to t('.show', :default => t("helpers.links.show")), <%= singular_controller_routing_path %>_path(<%= resource_name %>), :class => 'btn btn-default btn-xs'
22
23
  = link_to t('.edit', :default => t("helpers.links.edit")), edit_<%= singular_controller_routing_path %>_path(<%= resource_name %>), :class => 'btn btn-default btn-xs'
23
24
  = link_to t('.destroy', :default => t("helpers.links.destroy")), <%= singular_controller_routing_path %>_path(<%= resource_name %>), :method => :delete, :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) }, :class => 'btn btn-xs btn-danger'
24
25
 
@@ -19,6 +19,8 @@ table.table.table-striped
19
19
  <%- end -%>
20
20
  td=l <%= resource_name %>.created_at
21
21
  td
22
+ = link_to t('.show', :default => t("helpers.links.show")), <%= singular_controller_routing_path %>_path(<%= resource_name %>), :class => 'btn btn-default btn-xs'
23
+ '
22
24
  = link_to t('.edit', :default => t("helpers.links.edit")), edit_<%= singular_controller_routing_path %>_path(<%= resource_name %>), :class => 'btn btn-default btn-xs'
23
25
  '
24
26
  = link_to t('.destroy', :default => t("helpers.links.destroy")), <%= singular_controller_routing_path %>_path(<%= resource_name %>), :method => :delete, :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) }, :class => 'btn btn-xs btn-danger'
@@ -1,7 +1,7 @@
1
1
  module Twitter
2
2
  module Bootstrap
3
3
  module Rails
4
- VERSION = "3.2.2"
4
+ VERSION = "4.0.0"
5
5
  end
6
6
  end
7
7
  end
@@ -18,6 +18,7 @@
18
18
  // Specified for the h4 to prevent conflicts of changing @headings-color
19
19
  color: inherit;
20
20
  }
21
+
21
22
  // Provide class for links that match alerts
22
23
  .alert-link {
23
24
  font-weight: @alert-link-font-weight;
@@ -28,6 +29,7 @@
28
29
  > ul {
29
30
  margin-bottom: 0;
30
31
  }
32
+
31
33
  > p + p {
32
34
  margin-top: 5px;
33
35
  }
@@ -57,12 +59,15 @@
57
59
  .alert-success {
58
60
  .alert-variant(@alert-success-bg; @alert-success-border; @alert-success-text);
59
61
  }
62
+
60
63
  .alert-info {
61
64
  .alert-variant(@alert-info-bg; @alert-info-border; @alert-info-text);
62
65
  }
66
+
63
67
  .alert-warning {
64
68
  .alert-variant(@alert-warning-bg; @alert-warning-border; @alert-warning-text);
65
69
  }
70
+
66
71
  .alert-danger {
67
72
  .alert-variant(@alert-danger-bg; @alert-danger-border; @alert-danger-text);
68
73
  }
@@ -12,7 +12,7 @@
12
12
  font-weight: @badge-font-weight;
13
13
  color: @badge-color;
14
14
  line-height: @badge-line-height;
15
- vertical-align: baseline;
15
+ vertical-align: middle;
16
16
  white-space: nowrap;
17
17
  text-align: center;
18
18
  background-color: @badge-bg;
@@ -28,7 +28,9 @@
28
28
  position: relative;
29
29
  top: -1px;
30
30
  }
31
- .btn-xs & {
31
+
32
+ .btn-xs &,
33
+ .btn-group-xs > .btn & {
32
34
  top: 0;
33
35
  padding: 1px 5px;
34
36
  }
@@ -44,11 +46,20 @@
44
46
  }
45
47
 
46
48
  // Account for badges in navs
47
- a.list-group-item.active > &,
49
+ .list-group-item.active > &,
48
50
  .nav-pills > .active > a > & {
49
51
  color: @badge-active-color;
50
52
  background-color: @badge-active-bg;
51
53
  }
54
+
55
+ .list-group-item > & {
56
+ float: right;
57
+ }
58
+
59
+ .list-group-item > & + & {
60
+ margin-right: 5px;
61
+ }
62
+
52
63
  .nav-pills > li > a > & {
53
64
  margin-left: 3px;
54
65
  }
@@ -1,3 +1,9 @@
1
+ /*!
2
+ * Bootstrap v3.3.6 (http://getbootstrap.com)
3
+ * Copyright 2011-2015 Twitter, Inc.
4
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5
+ */
6
+
1
7
  // Core variables and mixins
2
8
  @import "variables.less";
3
9
  @import "mixins.less";
@@ -18,10 +18,6 @@
18
18
  &.active {
19
19
  z-index: 2;
20
20
  }
21
- &:focus {
22
- // Remove focus outline when dropdown JS adds it after closing the menu
23
- outline: 0;
24
- }
25
21
  }
26
22
  }
27
23
 
@@ -40,6 +36,7 @@
40
36
  margin-left: -5px; // Offset the first child's margin
41
37
  &:extend(.clearfix all);
42
38
 
39
+ .btn,
43
40
  .btn-group,
44
41
  .input-group {
45
42
  float: left;
@@ -75,13 +72,13 @@
75
72
  .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
76
73
  border-radius: 0;
77
74
  }
78
- .btn-group > .btn-group:first-child {
75
+ .btn-group > .btn-group:first-child:not(:last-child) {
79
76
  > .btn:last-child,
80
77
  > .dropdown-toggle {
81
78
  .border-right-radius(0);
82
79
  }
83
80
  }
84
- .btn-group > .btn-group:last-child > .btn:first-child {
81
+ .btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child {
85
82
  .border-left-radius(0);
86
83
  }
87
84
 
@@ -176,12 +173,12 @@
176
173
  border-radius: 0;
177
174
  }
178
175
  &:first-child:not(:last-child) {
179
- border-top-right-radius: @border-radius-base;
176
+ .border-top-radius(@btn-border-radius-base);
180
177
  .border-bottom-radius(0);
181
178
  }
182
179
  &:last-child:not(:first-child) {
183
- border-bottom-left-radius: @border-radius-base;
184
180
  .border-top-radius(0);
181
+ .border-bottom-radius(@btn-border-radius-base);
185
182
  }
186
183
  }
187
184
  .btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
@@ -198,7 +195,6 @@
198
195
  }
199
196
 
200
197
 
201
-
202
198
  // Justified button groups
203
199
  // ----------------------
204
200
 
@@ -226,11 +222,14 @@
226
222
  // Checkbox and radio options
227
223
  //
228
224
  // In order to support the browser's form validation feedback, powered by the
229
- // `required` attribute, we have to "hide" the inputs via `opacity`. We cannot
230
- // use `display: none;` or `visibility: hidden;` as that also hides the popover.
225
+ // `required` attribute, we have to "hide" the inputs via `clip`. We cannot use
226
+ // `display: none;` or `visibility: hidden;` as that also hides the popover.
227
+ // Simply visually hiding the inputs via `opacity` would leave them clickable in
228
+ // certain cases which is prevented by using `clip` and `pointer-events`.
231
229
  // This way, we ensure a DOM element is visible to position the popover from.
232
230
  //
233
- // See https://github.com/twbs/bootstrap/pull/12794 for more.
231
+ // See https://github.com/twbs/bootstrap/pull/12794 and
232
+ // https://github.com/twbs/bootstrap/pull/14559 for more information.
234
233
 
235
234
  [data-toggle="buttons"] {
236
235
  > .btn,
@@ -238,8 +237,8 @@
238
237
  input[type="radio"],
239
238
  input[type="checkbox"] {
240
239
  position: absolute;
241
- z-index: -1;
242
- .opacity(0);
240
+ clip: rect(0,0,0,0);
241
+ pointer-events: none;
243
242
  }
244
243
  }
245
244
  }
@@ -17,7 +17,7 @@
17
17
  background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
18
18
  border: 1px solid transparent;
19
19
  white-space: nowrap;
20
- .button-size(@padding-base-vertical; @padding-base-horizontal; @font-size-base; @line-height-base; @border-radius-base);
20
+ .button-size(@padding-base-vertical; @padding-base-horizontal; @font-size-base; @line-height-base; @btn-border-radius-base);
21
21
  .user-select(none);
22
22
 
23
23
  &,
@@ -46,11 +46,17 @@
46
46
  &.disabled,
47
47
  &[disabled],
48
48
  fieldset[disabled] & {
49
- cursor: not-allowed;
50
- pointer-events: none; // Future-proof disabling of clicks
49
+ cursor: @cursor-disabled;
51
50
  .opacity(.65);
52
51
  .box-shadow(none);
53
52
  }
53
+
54
+ a& {
55
+ &.disabled,
56
+ fieldset[disabled] & {
57
+ pointer-events: none; // Future-proof disabling of clicks on `<a>` elements
58
+ }
59
+ }
54
60
  }
55
61
 
56
62
 
@@ -92,6 +98,7 @@
92
98
 
93
99
  &,
94
100
  &:active,
101
+ &.active,
95
102
  &[disabled],
96
103
  fieldset[disabled] & {
97
104
  background-color: transparent;
@@ -106,7 +113,7 @@
106
113
  &:hover,
107
114
  &:focus {
108
115
  color: @link-hover-color;
109
- text-decoration: underline;
116
+ text-decoration: @link-hover-decoration;
110
117
  background-color: transparent;
111
118
  }
112
119
  &[disabled],
@@ -125,14 +132,14 @@
125
132
 
126
133
  .btn-lg {
127
134
  // line-height: ensure even-numbered height of button next to large input
128
- .button-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
135
+ .button-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @btn-border-radius-large);
129
136
  }
130
137
  .btn-sm {
131
138
  // line-height: ensure proper height of button next to small input
132
- .button-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);
139
+ .button-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @btn-border-radius-small);
133
140
  }
134
141
  .btn-xs {
135
- .button-size(@padding-xs-vertical; @padding-xs-horizontal; @font-size-small; @line-height-small; @border-radius-small);
142
+ .button-size(@padding-xs-vertical; @padding-xs-horizontal; @font-size-small; @line-height-small; @btn-border-radius-small);
136
143
  }
137
144
 
138
145
 
@@ -24,6 +24,30 @@
24
24
  &:extend(.img-responsive);
25
25
  line-height: 1;
26
26
  }
27
+
28
+ // WebKit CSS3 transforms for supported devices
29
+ @media all and (transform-3d), (-webkit-transform-3d) {
30
+ .transition-transform(~'0.6s ease-in-out');
31
+ .backface-visibility(~'hidden');
32
+ .perspective(1000px);
33
+
34
+ &.next,
35
+ &.active.right {
36
+ .translate3d(100%, 0, 0);
37
+ left: 0;
38
+ }
39
+ &.prev,
40
+ &.active.left {
41
+ .translate3d(-100%, 0, 0);
42
+ left: 0;
43
+ }
44
+ &.next.left,
45
+ &.prev.right,
46
+ &.active {
47
+ .translate3d(0, 0, 0);
48
+ left: 0;
49
+ }
50
+ }
27
51
  }
28
52
 
29
53
  > .active,
@@ -77,6 +101,7 @@
77
101
  color: @carousel-control-color;
78
102
  text-align: center;
79
103
  text-shadow: @carousel-text-shadow;
104
+ background-color: rgba(0, 0, 0, 0); // Fix IE9 click-thru bug
80
105
  // We can't have this transition here because WebKit cancels the carousel
81
106
  // animation if you trip this while in the middle of another animation.
82
107
 
@@ -106,6 +131,7 @@
106
131
  .glyphicon-chevron-right {
107
132
  position: absolute;
108
133
  top: 50%;
134
+ margin-top: -10px;
109
135
  z-index: 5;
110
136
  display: inline-block;
111
137
  }
@@ -123,7 +149,7 @@
123
149
  .icon-next {
124
150
  width: 20px;
125
151
  height: 20px;
126
- margin-top: -10px;
152
+ line-height: 1;
127
153
  font-family: serif;
128
154
  }
129
155
 
@@ -171,6 +197,7 @@
171
197
  // Internet Explorer 8-9 does not support clicks on elements without a set
172
198
  // `background-color`. We cannot use `filter` since that's not viewed as a
173
199
  // background color by the browser. Thus, a hack is needed.
200
+ // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Internet_Explorer
174
201
  //
175
202
  // For IE8, we set solid black as it doesn't support `rgba()`. For IE9, we
176
203
  // set alpha transparency for the best results possible.
@@ -214,18 +241,18 @@
214
241
  .glyphicon-chevron-right,
215
242
  .icon-prev,
216
243
  .icon-next {
217
- width: 30px;
218
- height: 30px;
219
- margin-top: -15px;
220
- font-size: 30px;
244
+ width: (@carousel-control-font-size * 1.5);
245
+ height: (@carousel-control-font-size * 1.5);
246
+ margin-top: (@carousel-control-font-size / -2);
247
+ font-size: (@carousel-control-font-size * 1.5);
221
248
  }
222
249
  .glyphicon-chevron-left,
223
250
  .icon-prev {
224
- margin-left: -15px;
251
+ margin-left: (@carousel-control-font-size / -2);
225
252
  }
226
253
  .glyphicon-chevron-right,
227
254
  .icon-next {
228
- margin-right: -15px;
255
+ margin-right: (@carousel-control-font-size / -2);
229
256
  }
230
257
  }
231
258
 
@@ -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;
@@ -27,5 +27,7 @@
27
27
  position: relative;
28
28
  height: 0;
29
29
  overflow: hidden;
30
- .transition(height .35s ease);
30
+ .transition-property(~"height, visibility");
31
+ .transition-duration(.35s);
32
+ .transition-timing-function(ease);
31
33
  }