twbs_less_rails 2.19.0 → 2.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/Appraisals +3 -3
  3. data/CHANGELOG.md +5 -0
  4. data/gemfiles/rails_3.2.gemfile +1 -1
  5. data/gemfiles/rails_4.1.gemfile +1 -1
  6. data/gemfiles/rails_4.2.gemfile +1 -1
  7. data/lib/twbs_less_rails/version.rb +1 -1
  8. data/vendor/assets/javascripts/twbs/bootstrap/affix.js +3 -3
  9. data/vendor/assets/javascripts/twbs/bootstrap/alert.js +2 -2
  10. data/vendor/assets/javascripts/twbs/bootstrap/button.js +13 -9
  11. data/vendor/assets/javascripts/twbs/bootstrap/carousel.js +2 -2
  12. data/vendor/assets/javascripts/twbs/bootstrap/collapse.js +2 -2
  13. data/vendor/assets/javascripts/twbs/bootstrap/dropdown.js +46 -42
  14. data/vendor/assets/javascripts/twbs/bootstrap/modal.js +5 -7
  15. data/vendor/assets/javascripts/twbs/bootstrap/popover.js +2 -2
  16. data/vendor/assets/javascripts/twbs/bootstrap/scrollspy.js +2 -2
  17. data/vendor/assets/javascripts/twbs/bootstrap/tab.js +5 -3
  18. data/vendor/assets/javascripts/twbs/bootstrap/tooltip.js +58 -20
  19. data/vendor/assets/javascripts/twbs/bootstrap/transition.js +1 -1
  20. data/vendor/assets/stylesheets/twbs/bootstrap/badges.less +1 -1
  21. data/vendor/assets/stylesheets/twbs/bootstrap/bootstrap.less +6 -0
  22. data/vendor/assets/stylesheets/twbs/bootstrap/button-groups.less +3 -2
  23. data/vendor/assets/stylesheets/twbs/bootstrap/buttons.less +11 -5
  24. data/vendor/assets/stylesheets/twbs/bootstrap/carousel.less +2 -2
  25. data/vendor/assets/stylesheets/twbs/bootstrap/dropdowns.less +3 -1
  26. data/vendor/assets/stylesheets/twbs/bootstrap/forms.less +44 -11
  27. data/vendor/assets/stylesheets/twbs/bootstrap/input-groups.less +1 -0
  28. data/vendor/assets/stylesheets/twbs/bootstrap/jumbotron.less +5 -3
  29. data/vendor/assets/stylesheets/twbs/bootstrap/list-group.less +9 -3
  30. data/vendor/assets/stylesheets/twbs/bootstrap/media.less +5 -0
  31. data/vendor/assets/stylesheets/twbs/bootstrap/mixins.less +1 -0
  32. data/vendor/assets/stylesheets/twbs/bootstrap/mixins/background-variant.less +2 -1
  33. data/vendor/assets/stylesheets/twbs/bootstrap/mixins/buttons.less +18 -2
  34. data/vendor/assets/stylesheets/twbs/bootstrap/mixins/grid-framework.less +2 -2
  35. data/vendor/assets/stylesheets/twbs/bootstrap/mixins/grid.less +2 -2
  36. data/vendor/assets/stylesheets/twbs/bootstrap/mixins/hide-text.less +1 -1
  37. data/vendor/assets/stylesheets/twbs/bootstrap/mixins/list-group.less +2 -1
  38. data/vendor/assets/stylesheets/twbs/bootstrap/mixins/pagination.less +2 -1
  39. data/vendor/assets/stylesheets/twbs/bootstrap/mixins/reset-text.less +18 -0
  40. data/vendor/assets/stylesheets/twbs/bootstrap/mixins/responsive-visibility.less +1 -1
  41. data/vendor/assets/stylesheets/twbs/bootstrap/mixins/text-emphasis.less +2 -1
  42. data/vendor/assets/stylesheets/twbs/bootstrap/normalize.less +8 -11
  43. data/vendor/assets/stylesheets/twbs/bootstrap/pagination.less +3 -2
  44. data/vendor/assets/stylesheets/twbs/bootstrap/panels.less +6 -0
  45. data/vendor/assets/stylesheets/twbs/bootstrap/popovers.less +4 -8
  46. data/vendor/assets/stylesheets/twbs/bootstrap/print.less +0 -6
  47. data/vendor/assets/stylesheets/twbs/bootstrap/scaffolding.less +1 -2
  48. data/vendor/assets/stylesheets/twbs/bootstrap/theme.less +23 -5
  49. data/vendor/assets/stylesheets/twbs/bootstrap/tooltip.less +4 -5
  50. data/vendor/assets/stylesheets/twbs/bootstrap/variables.less +7 -1
  51. metadata +3 -2
@@ -0,0 +1,18 @@
1
+ .reset-text() {
2
+ font-family: @font-family-base;
3
+ // We deliberately do NOT reset font-size.
4
+ font-style: normal;
5
+ font-weight: normal;
6
+ letter-spacing: normal;
7
+ line-break: auto;
8
+ line-height: @line-height-base;
9
+ text-align: left; // Fallback for where `start` is not supported
10
+ text-align: start;
11
+ text-decoration: none;
12
+ text-shadow: none;
13
+ text-transform: none;
14
+ white-space: normal;
15
+ word-break: normal;
16
+ word-spacing: normal;
17
+ word-wrap: normal;
18
+ }
@@ -4,7 +4,7 @@
4
4
  // More easily include all the states for responsive-utilities.less.
5
5
  .responsive-visibility() {
6
6
  display: block !important;
7
- table& { display: table; }
7
+ table& { display: table !important; }
8
8
  tr& { display: table-row !important; }
9
9
  th&,
10
10
  td& { display: table-cell !important; }
@@ -2,7 +2,8 @@
2
2
 
3
3
  .text-emphasis-variant(@color) {
4
4
  color: @color;
5
- a&:hover {
5
+ a&:hover,
6
+ a&:focus {
6
7
  color: darken(@color, 10%);
7
8
  }
8
9
  }
@@ -1,9 +1,9 @@
1
- /*! normalize.css v3.0.2 | MIT License | git.io/normalize */
1
+ /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
2
2
 
3
3
  //
4
4
  // 1. Set default font family to sans-serif.
5
- // 2. Prevent iOS text size adjust after orientation change, without disabling
6
- // user zoom.
5
+ // 2. Prevent iOS and IE text size adjust after device orientation change,
6
+ // without disabling user zoom.
7
7
  //
8
8
 
9
9
  html {
@@ -71,7 +71,7 @@ audio:not([controls]) {
71
71
 
72
72
  //
73
73
  // Address `[hidden]` styling not present in IE 8/9/10.
74
- // Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
74
+ // Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
75
75
  //
76
76
 
77
77
  [hidden],
@@ -91,7 +91,8 @@ a {
91
91
  }
92
92
 
93
93
  //
94
- // Improve readability when focused and also mouse hovered in all browsers.
94
+ // Improve readability of focused elements when they are also in an
95
+ // active/hover state.
95
96
  //
96
97
 
97
98
  a:active,
@@ -209,7 +210,6 @@ figure {
209
210
  //
210
211
 
211
212
  hr {
212
- -moz-box-sizing: content-box;
213
213
  box-sizing: content-box;
214
214
  height: 0;
215
215
  }
@@ -350,15 +350,12 @@ input[type="number"]::-webkit-outer-spin-button {
350
350
 
351
351
  //
352
352
  // 1. Address `appearance` set to `searchfield` in Safari and Chrome.
353
- // 2. Address `box-sizing` set to `border-box` in Safari and Chrome
354
- // (include `-moz` to future-proof).
353
+ // 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
355
354
  //
356
355
 
357
356
  input[type="search"] {
358
357
  -webkit-appearance: textfield; // 1
359
- -moz-box-sizing: content-box;
360
- -webkit-box-sizing: content-box; // 2
361
- box-sizing: content-box;
358
+ box-sizing: content-box; //2
362
359
  }
363
360
 
364
361
  //
@@ -40,6 +40,7 @@
40
40
  > li > span {
41
41
  &:hover,
42
42
  &:focus {
43
+ z-index: 3;
43
44
  color: @pagination-hover-color;
44
45
  background-color: @pagination-hover-bg;
45
46
  border-color: @pagination-hover-border;
@@ -79,10 +80,10 @@
79
80
 
80
81
  // Large
81
82
  .pagination-lg {
82
- .pagination-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @border-radius-large);
83
+ .pagination-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
83
84
  }
84
85
 
85
86
  // Small
86
87
  .pagination-sm {
87
- .pagination-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @border-radius-small);
88
+ .pagination-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);
88
89
  }
@@ -76,6 +76,7 @@
76
76
  .border-top-radius((@panel-border-radius - 1));
77
77
  }
78
78
  }
79
+
79
80
  // Add border bottom radius for last one
80
81
  &:last-child {
81
82
  .list-group-item:last-child {
@@ -84,6 +85,11 @@
84
85
  }
85
86
  }
86
87
  }
88
+ > .panel-heading + .panel-collapse > .list-group {
89
+ .list-group-item:first-child {
90
+ .border-top-radius(0);
91
+ }
92
+ }
87
93
  }
88
94
  // Collapse space between when there's no additional content.
89
95
  .panel-heading + .list-group {
@@ -11,12 +11,11 @@
11
11
  display: none;
12
12
  max-width: @popover-max-width;
13
13
  padding: 1px;
14
- // Reset font and text properties given new insertion method
15
- font-family: @font-family-base;
14
+ // Our parent element can be arbitrary since popovers are by default inserted as a sibling of their target element.
15
+ // So reset our font and text properties to avoid inheriting weird values.
16
+ .reset-text();
16
17
  font-size: @font-size-base;
17
- font-weight: normal;
18
- line-height: @line-height-base;
19
- text-align: left;
18
+
20
19
  background-color: @popover-bg;
21
20
  background-clip: padding-box;
22
21
  border: 1px solid @popover-fallback-border-color;
@@ -24,9 +23,6 @@
24
23
  border-radius: @border-radius-large;
25
24
  .box-shadow(0 5px 10px rgba(0,0,0,.2));
26
25
 
27
- // Overrides for proper insertion
28
- white-space: normal;
29
-
30
26
  // Offset the popover to account for the popover arrow
31
27
  &.top { margin-top: -@popover-arrow-width; }
32
28
  &.right { margin-left: @popover-arrow-width; }
@@ -67,12 +67,6 @@
67
67
  }
68
68
 
69
69
  // Bootstrap specific changes start
70
- //
71
- // Chrome (OSX) fix for https://github.com/twbs/bootstrap/issues/11245
72
- // Once fixed, we can just straight up remove this.
73
- select {
74
- background: #fff !important;
75
- }
76
70
 
77
71
  // Bootstrap components
78
72
  .navbar {
@@ -155,8 +155,7 @@ hr {
155
155
  // Fixes "clickability" issue (and more generally, the firing of events such as focus as well)
156
156
  // for traditionally non-focusable elements with role="button"
157
157
  // see https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
158
- // Upstream patch for normalize.css submitted: https://github.com/necolas/normalize.css/pull/379 - remove this fix once that is merged
159
158
 
160
159
  [role="button"] {
161
160
  cursor: pointer;
162
- }
161
+ }
@@ -1,3 +1,8 @@
1
+ /*!
2
+ * Bootstrap v3.3.5 (http://getbootstrap.com)
3
+ * Copyright 2011-2015 Twitter, Inc.
4
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5
+ */
1
6
 
2
7
  //
3
8
  // Load core variables and mixins
@@ -28,6 +33,12 @@
28
33
  .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
29
34
  }
30
35
 
36
+ &.disabled,
37
+ &[disabled],
38
+ fieldset[disabled] & {
39
+ .box-shadow(none);
40
+ }
41
+
31
42
  .badge {
32
43
  text-shadow: none;
33
44
  }
@@ -53,10 +64,17 @@
53
64
  }
54
65
 
55
66
  &.disabled,
56
- &:disabled,
57
- &[disabled] {
58
- background-color: darken(@btn-color, 12%);
59
- background-image: none;
67
+ &[disabled],
68
+ fieldset[disabled] & {
69
+ &,
70
+ &:hover,
71
+ &:focus,
72
+ &.focus,
73
+ &:active,
74
+ &.active {
75
+ background-color: darken(@btn-color, 12%);
76
+ background-image: none;
77
+ }
60
78
  }
61
79
  }
62
80
 
@@ -132,7 +150,7 @@
132
150
  .navbar-inverse {
133
151
  #gradient > .vertical(@start-color: lighten(@navbar-inverse-bg, 10%); @end-color: @navbar-inverse-bg);
134
152
  .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered; see https://github.com/twbs/bootstrap/issues/10257
135
-
153
+ border-radius: @navbar-border-radius;
136
154
  .navbar-nav > .open > a,
137
155
  .navbar-nav > .active > a {
138
156
  #gradient > .vertical(@start-color: @navbar-inverse-link-active-bg; @end-color: lighten(@navbar-inverse-link-active-bg, 2.5%));
@@ -8,11 +8,11 @@
8
8
  position: absolute;
9
9
  z-index: @zindex-tooltip;
10
10
  display: block;
11
- // Reset font and text properties given new insertion method
12
- font-family: @font-family-base;
11
+ // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
12
+ // So reset our font and text properties to avoid inheriting weird values.
13
+ .reset-text();
13
14
  font-size: @font-size-small;
14
- font-weight: normal;
15
- line-height: 1.4;
15
+
16
16
  .opacity(0);
17
17
 
18
18
  &.in { .opacity(@tooltip-opacity); }
@@ -28,7 +28,6 @@
28
28
  padding: 3px 8px;
29
29
  color: @tooltip-color;
30
30
  text-align: center;
31
- text-decoration: none;
32
31
  background-color: @tooltip-bg;
33
32
  border-radius: @border-radius-base;
34
33
  }
@@ -170,6 +170,11 @@
170
170
 
171
171
  @btn-link-disabled-color: @gray-light;
172
172
 
173
+ // Allows for customizing button radius independently from global border radius
174
+ @btn-border-radius-base: @border-radius-base;
175
+ @btn-border-radius-large: @border-radius-large;
176
+ @btn-border-radius-small: @border-radius-small;
177
+
173
178
 
174
179
  //== Forms
175
180
  //
@@ -383,7 +388,7 @@
383
388
  @navbar-default-toggle-border-color: #ddd;
384
389
 
385
390
 
386
- // Inverted navbar
391
+ //=== Inverted navbar
387
392
  // Reset inverted navbar basics
388
393
  @navbar-inverse-color: lighten(@gray-light, 15%);
389
394
  @navbar-inverse-bg: #222;
@@ -484,6 +489,7 @@
484
489
  @jumbotron-bg: @gray-lighter;
485
490
  @jumbotron-heading-color: inherit;
486
491
  @jumbotron-font-size: ceil((@font-size-base * 1.5));
492
+ @jumbotron-heading-font-size: ceil((@font-size-base * 4.5));
487
493
 
488
494
 
489
495
  //== Form states and alerts
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twbs_less_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.19.0
4
+ version: 2.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - diowa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-19 00:00:00.000000000 Z
11
+ date: 2015-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -317,6 +317,7 @@ files:
317
317
  - vendor/assets/stylesheets/twbs/bootstrap/mixins/panels.less
318
318
  - vendor/assets/stylesheets/twbs/bootstrap/mixins/progress-bar.less
319
319
  - vendor/assets/stylesheets/twbs/bootstrap/mixins/reset-filter.less
320
+ - vendor/assets/stylesheets/twbs/bootstrap/mixins/reset-text.less
320
321
  - vendor/assets/stylesheets/twbs/bootstrap/mixins/resize.less
321
322
  - vendor/assets/stylesheets/twbs/bootstrap/mixins/responsive-visibility.less
322
323
  - vendor/assets/stylesheets/twbs/bootstrap/mixins/size.less