bootstrap-sass 3.0.1.0 → 3.0.2.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of bootstrap-sass might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b8797364bd5213c140e56b51051fb21da8f2c11
4
- data.tar.gz: ef4549f3ba70b18f94076ced4bdb735e4e0e70ad
3
+ metadata.gz: 406353c9ec5de3ac96f4f954e900f11aa511553e
4
+ data.tar.gz: d008d48d93324d8652723d8dfed1fd7831f70cd2
5
5
  SHA512:
6
- metadata.gz: b932bde89af172f7c61ae4abc40716c517388b04f006ed1d39f3979821abd2bc4c9391e52e2e66bcfd025aa7856c719fe91561d85fc737d0d88299cb01ac15dc
7
- data.tar.gz: 7f75a705ed281b6a7a61502f304be08ba8bccaec314e6bb98029038830694de35a05ecff2f2d6c8054d00ca13ef98278c635c28290fcfd63cc5cc8997958ef5d
6
+ metadata.gz: 17701036ba1df529d39ea4c085db5ce342851d201c4c666ecc1eda80c9a156e924e0ccb864567343976eeb4a9410c0db810bcbd4cda0942cd088f993f3e79ddf
7
+ data.tar.gz: e35a825e74cc14d75feadbaef5f59c2bd6ce976a39dbef09ebc062c4b8a32f1392c4b0c6edb7a9b8ddc7925dadb6467337a2a97670f05d7b80e44118f4cf44dc
@@ -1,4 +1,4 @@
1
1
  module Bootstrap
2
- VERSION = '3.0.1.0'
3
- BOOTSTRAP_SHA = 'ea3c89189a6b922c08729857006713de209b66d8'
2
+ VERSION = '3.0.2.0'
3
+ BOOTSTRAP_SHA = '463343af63344dbbc3db04f40b0b804baa919b7e'
4
4
  end
@@ -71,12 +71,6 @@ class Converter
71
71
  when 'close.less'
72
72
  # extract .close { button& {...} } rule
73
73
  file = extract_nested_rule file, 'button&'
74
- when 'modals.less'
75
- # pre 3.0.1:
76
- if file =~ /body&,/
77
- file = replace_all file, /body&,(.*?)(\{.*?\})/m, "\\1\\2\nbody& \\2"
78
- file = extract_nested_rule file, 'body&'
79
- end
80
74
  when 'dropdowns.less'
81
75
  file = replace_all file, /(\s*)@extend \.pull-right-dropdown-menu;/, "\\1right: 0;\\1left: auto;"
82
76
  when 'forms.less'
@@ -86,7 +80,7 @@ class Converter
86
80
  file = replace_all file, /(\s*)\.navbar-(right|left)\s*\{\s*@extend\s*\.pull-(right|left);\s*/, "\\1.navbar-\\2 {\\1 float: \\2 !important;\\1"
87
81
  when 'tables.less'
88
82
  file = replace_all file, /(@include\s*table-row-variant\()(\w+)/, "\\1'\\2'"
89
- when 'list-group.less'
83
+ when 'thumbnails.less'
90
84
  file = extract_nested_rule file, 'a&'
91
85
  when 'glyphicons.less'
92
86
  file = replace_rules(file, '@font-face') { |rule|
@@ -137,11 +131,11 @@ class Converter
137
131
  // [converter] Grid converted to use SASS cycles (LESS uses recursive nested mixin defs not supported by SASS)
138
132
  #{mxn_def.strip}
139
133
  $list: '';
140
- @for $i from 1 to $grid-columns {
134
+ $i: 1;
135
+ $list: "#{classes}";
136
+ @for $i from 2 through $grid-columns {
141
137
  $list: "#{classes}, \#{$list}";
142
138
  }
143
- $i: $grid-columns;
144
- $list: "\#{$list}, #{classes}";
145
139
  \#{$list} {
146
140
  #{unindent body}
147
141
  }
@@ -149,7 +143,7 @@ class Converter
149
143
  SASS
150
144
  end
151
145
  file = replace_rules file, /@mixin calc-grid/ do |css|
152
- css = indent css.gsub(/.*when \((.*?)\) {/, '@if \1 {').gsub(/(?<=\$type) = (\w+)/, ' == \1').gsub(/(?<=-)(\$[a-z]+)/, '#{\1}')
146
+ css = indent css.gsub(/.*when (.*?) {/, '@if \1 {').gsub(/(?<=\$type) = (\w+)/, ' == \1').gsub(/(?<=-)(\$[a-z]+)/, '#{\1}')
153
147
  if css =~ /== width/
154
148
  css = "@mixin calc-grid($index, $class, $type) {\n#{css}"
155
149
  elsif css =~ /== offset/
@@ -161,7 +155,7 @@ class Converter
161
155
  unindent <<-SASS, 8
162
156
  // [converter] This is defined recursively in LESS, but SASS supports real loops
163
157
  @mixin make-grid($columns, $class, $type) {
164
- @for $i from 1 through $columns {
158
+ @for $i from 0 through $columns {
165
159
  @include calc-grid($i, $class, $type);
166
160
  }
167
161
  }
@@ -283,9 +277,10 @@ class Converter
283
277
  # first find the rules, and remove them
284
278
  file = replace_rules(file, "\s*#{selector}", comments: true) { |rule, pos, css|
285
279
  matches << [rule, pos]
286
- new_selector ||= "#{get_selector(rule).sub(/&$/, '')}#{selector_for_pos(css, pos.begin)}"
287
- indent "// [converter] extracted #{get_selector(rule)} to #{new_selector}", indent_width(rule)
280
+ new_selector ||= "#{get_selector(rule).gsub(/&/, selector_for_pos(css, pos.begin))}"
281
+ indent "// [converter] extracted #{get_selector(rule)} to #{new_selector}".tr("\n", ' ').squeeze(' '), indent_width(rule)
288
282
  }
283
+ raise "extract_nested_rule: no such selector: #{selector}" if matches.empty?
289
284
  log_transform selector, new_selector
290
285
  # replace rule selector with new_selector
291
286
  matches.each do |m|
@@ -1,5 +1,5 @@
1
1
  /* ========================================================================
2
- * Bootstrap: affix.js v3.0.1
2
+ * Bootstrap: affix.js v3.0.2
3
3
  * http://getbootstrap.com/javascript/#affix
4
4
  * ========================================================================
5
5
  * Copyright 2013 Twitter, Inc.
@@ -123,4 +123,4 @@
123
123
  })
124
124
  })
125
125
 
126
- }(window.jQuery);
126
+ }(jQuery);
@@ -1,5 +1,5 @@
1
1
  /* ========================================================================
2
- * Bootstrap: alert.js v3.0.1
2
+ * Bootstrap: alert.js v3.0.2
3
3
  * http://getbootstrap.com/javascript/#alerts
4
4
  * ========================================================================
5
5
  * Copyright 2013 Twitter, Inc.
@@ -95,4 +95,4 @@
95
95
 
96
96
  $(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close)
97
97
 
98
- }(window.jQuery);
98
+ }(jQuery);
@@ -1,5 +1,5 @@
1
1
  /* ========================================================================
2
- * Bootstrap: button.js v3.0.1
2
+ * Bootstrap: button.js v3.0.2
3
3
  * http://getbootstrap.com/javascript/#buttons
4
4
  * ========================================================================
5
5
  * Copyright 2013 Twitter, Inc.
@@ -106,4 +106,4 @@
106
106
  e.preventDefault()
107
107
  })
108
108
 
109
- }(window.jQuery);
109
+ }(jQuery);
@@ -1,5 +1,5 @@
1
1
  /* ========================================================================
2
- * Bootstrap: carousel.js v3.0.1
2
+ * Bootstrap: carousel.js v3.0.2
3
3
  * http://getbootstrap.com/javascript/#carousel
4
4
  * ========================================================================
5
5
  * Copyright 2013 Twitter, Inc.
@@ -214,4 +214,4 @@
214
214
  })
215
215
  })
216
216
 
217
- }(window.jQuery);
217
+ }(jQuery);
@@ -1,5 +1,5 @@
1
1
  /* ========================================================================
2
- * Bootstrap: collapse.js v3.0.1
2
+ * Bootstrap: collapse.js v3.0.2
3
3
  * http://getbootstrap.com/javascript/#collapse
4
4
  * ========================================================================
5
5
  * Copyright 2013 Twitter, Inc.
@@ -176,4 +176,4 @@
176
176
  $target.collapse(option)
177
177
  })
178
178
 
179
- }(window.jQuery);
179
+ }(jQuery);
@@ -1,5 +1,5 @@
1
1
  /* ========================================================================
2
- * Bootstrap: dropdown.js v3.0.1
2
+ * Bootstrap: dropdown.js v3.0.2
3
3
  * http://getbootstrap.com/javascript/#dropdowns
4
4
  * ========================================================================
5
5
  * Copyright 2013 Twitter, Inc.
@@ -151,4 +151,4 @@
151
151
  .on('click.bs.dropdown.data-api' , toggle, Dropdown.prototype.toggle)
152
152
  .on('keydown.bs.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown)
153
153
 
154
- }(window.jQuery);
154
+ }(jQuery);
@@ -1,5 +1,5 @@
1
1
  /* ========================================================================
2
- * Bootstrap: modal.js v3.0.1
2
+ * Bootstrap: modal.js v3.0.2
3
3
  * http://getbootstrap.com/javascript/#modals
4
4
  * ========================================================================
5
5
  * Copyright 2013 Twitter, Inc.
@@ -243,4 +243,4 @@
243
243
  .on('show.bs.modal', '.modal', function () { $(document.body).addClass('modal-open') })
244
244
  .on('hidden.bs.modal', '.modal', function () { $(document.body).removeClass('modal-open') })
245
245
 
246
- }(window.jQuery);
246
+ }(jQuery);
@@ -1,5 +1,5 @@
1
1
  /* ========================================================================
2
- * Bootstrap: popover.js v3.0.1
2
+ * Bootstrap: popover.js v3.0.2
3
3
  * http://getbootstrap.com/javascript/#popovers
4
4
  * ========================================================================
5
5
  * Copyright 2013 Twitter, Inc.
@@ -114,4 +114,4 @@
114
114
  return this
115
115
  }
116
116
 
117
- }(window.jQuery);
117
+ }(jQuery);
@@ -1,5 +1,5 @@
1
1
  /* ========================================================================
2
- * Bootstrap: scrollspy.js v3.0.1
2
+ * Bootstrap: scrollspy.js v3.0.2
3
3
  * http://getbootstrap.com/javascript/#scrollspy
4
4
  * ========================================================================
5
5
  * Copyright 2013 Twitter, Inc.
@@ -155,4 +155,4 @@
155
155
  })
156
156
  })
157
157
 
158
- }(window.jQuery);
158
+ }(jQuery);
@@ -1,5 +1,5 @@
1
1
  /* ========================================================================
2
- * Bootstrap: tab.js v3.0.1
2
+ * Bootstrap: tab.js v3.0.2
3
3
  * http://getbootstrap.com/javascript/#tabs
4
4
  * ========================================================================
5
5
  * Copyright 2013 Twitter, Inc.
@@ -132,4 +132,4 @@
132
132
  $(this).tab('show')
133
133
  })
134
134
 
135
- }(window.jQuery);
135
+ }(jQuery);
@@ -1,5 +1,5 @@
1
1
  /* ========================================================================
2
- * Bootstrap: tooltip.js v3.0.1
2
+ * Bootstrap: tooltip.js v3.0.2
3
3
  * http://getbootstrap.com/javascript/#tooltip
4
4
  * Inspired by the original jQuery.tipsy by Jason Frame
5
5
  * ========================================================================
@@ -383,4 +383,4 @@
383
383
  return this
384
384
  }
385
385
 
386
- }(window.jQuery);
386
+ }(jQuery);
@@ -1,5 +1,5 @@
1
1
  /* ========================================================================
2
- * Bootstrap: transition.js v3.0.1
2
+ * Bootstrap: transition.js v3.0.2
3
3
  * http://getbootstrap.com/javascript/#transitions
4
4
  * ========================================================================
5
5
  * Copyright 2013 Twitter, Inc.
@@ -53,4 +53,4 @@
53
53
  $.support.transition = transitionEnd()
54
54
  })
55
55
 
56
- }(window.jQuery);
56
+ }(jQuery);
@@ -92,14 +92,6 @@ output {
92
92
  vertical-align: middle;
93
93
  }
94
94
 
95
- // Placeholder
96
- //
97
- // Placeholder text gets special styles because when browsers invalidate entire
98
- // lines if it doesn't understand a selector/
99
- .form-control {
100
- @include placeholder();
101
- }
102
-
103
95
 
104
96
  // Common form controls
105
97
  //
@@ -142,6 +134,12 @@ output {
142
134
  // Customize the `:focus` state to imitate native WebKit styles.
143
135
  @include form-control-focus();
144
136
 
137
+ // Placeholder
138
+ //
139
+ // Placeholder text gets special styles because when browsers invalidate entire
140
+ // lines if it doesn't understand a selector/
141
+ @include placeholder();
142
+
145
143
  // Disabled and read-only inputs
146
144
  // Note: HTML5 says that controls under a fieldset > legend:first-child won't
147
145
  // be disabled if the fieldset is disabled. Due to implementation difficulty,
@@ -720,11 +720,11 @@
720
720
  // [converter] Grid converted to use SASS cycles (LESS uses recursive nested mixin defs not supported by SASS)
721
721
  @mixin make-grid-columns() {
722
722
  $list: '';
723
- @for $i from 1 to $grid-columns {
723
+ $i: 1;
724
+ $list: ".col-xs-#{$i}, .col-sm-#{$i}, .col-md-#{$i}, .col-lg-#{$i}";
725
+ @for $i from 2 through $grid-columns {
724
726
  $list: ".col-xs-#{$i}, .col-sm-#{$i}, .col-md-#{$i}, .col-lg-#{$i}, #{$list}";
725
727
  }
726
- $i: $grid-columns;
727
- $list: "#{$list}, .col-xs-#{$i}, .col-sm-#{$i}, .col-md-#{$i}, .col-lg-#{$i}";
728
728
  #{$list} {
729
729
  position: relative;
730
730
  // Prevent columns from collapsing when empty
@@ -739,11 +739,11 @@
739
739
  // [converter] Grid converted to use SASS cycles (LESS uses recursive nested mixin defs not supported by SASS)
740
740
  @mixin make-grid-columns-float($class) {
741
741
  $list: '';
742
- @for $i from 1 to $grid-columns {
742
+ $i: 1;
743
+ $list: ".col-#{$class}-#{$i}";
744
+ @for $i from 2 through $grid-columns {
743
745
  $list: ".col-#{$class}-#{$i}, #{$list}";
744
746
  }
745
- $i: $grid-columns;
746
- $list: "#{$list}, .col-#{$class}-#{$i}";
747
747
  #{$list} {
748
748
  float: left;
749
749
  }
@@ -751,22 +751,22 @@
751
751
 
752
752
 
753
753
  @mixin calc-grid($index, $class, $type) {
754
- @if $type == width {
754
+ @if ($type == width) and ($index > 0) {
755
755
  .col-#{$class}-#{$index} {
756
756
  width: percentage(($index / $grid-columns));
757
757
  }
758
758
  }
759
- @if $type == push {
759
+ @if ($type == push) {
760
760
  .col-#{$class}-push-#{$index} {
761
761
  left: percentage(($index / $grid-columns));
762
762
  }
763
763
  }
764
- @if $type == pull {
764
+ @if ($type == pull) {
765
765
  .col-#{$class}-pull-#{$index} {
766
766
  right: percentage(($index / $grid-columns));
767
767
  }
768
768
  }
769
- @if $type == offset {
769
+ @if ($type == offset) {
770
770
  .col-#{$class}-offset-#{$index} {
771
771
  margin-left: percentage(($index / $grid-columns));
772
772
  }
@@ -775,7 +775,7 @@
775
775
 
776
776
  // [converter] This is defined recursively in LESS, but SASS supports real loops
777
777
  @mixin make-grid($columns, $class, $type) {
778
- @for $i from 1 through $columns {
778
+ @for $i from 0 through $columns {
779
779
  @include calc-grid($i, $class, $type);
780
780
  }
781
781
  }
@@ -104,10 +104,12 @@ th {
104
104
  //
105
105
  // Default zebra-stripe styles (alternating gray and transparent backgrounds)
106
106
 
107
- .table-striped > tbody > tr:nth-child(odd) {
108
- > td,
109
- > th {
110
- background-color: $table-bg-accent;
107
+ .table-striped {
108
+ > tbody > tr:nth-child(odd) {
109
+ > td,
110
+ > th {
111
+ background-color: $table-bg-accent;
112
+ }
111
113
  }
112
114
  }
113
115
 
@@ -116,10 +118,12 @@ th {
116
118
  //
117
119
  // Placed here since it has to come after the potential zebra striping
118
120
 
119
- .table-hover > tbody > tr:hover {
120
- > td,
121
- > th {
122
- background-color: $table-bg-hover;
121
+ .table-hover {
122
+ > tbody > tr:hover {
123
+ > td,
124
+ > th {
125
+ background-color: $table-bg-hover;
126
+ }
123
127
  }
124
128
  }
125
129
 
@@ -148,14 +152,18 @@ table {
148
152
  // Exact selectors below required to override `.table-striped` and prevent
149
153
  // inheritance to nested tables.
150
154
 
151
- .table > thead > tr,
152
- .table > tbody > tr,
153
- .table > tfoot > tr {
154
- > td.active,
155
- > th.active,
156
- &.active > td,
157
- &.active > th {
158
- background-color: $table-bg-active;
155
+ .table {
156
+ > thead,
157
+ > tbody,
158
+ > tfoot {
159
+ > tr {
160
+ > td.active,
161
+ > th.active,
162
+ &.active > td,
163
+ &.active > th {
164
+ background-color: $table-bg-active;
165
+ }
166
+ }
159
167
  }
160
168
  }
161
169
 
@@ -14,8 +14,15 @@
14
14
  margin-left: auto;
15
15
  margin-right: auto;
16
16
  }
17
- }
18
17
 
18
+ // [converter] extracted a&:hover, a&:focus, a&.active to a.thumbnail:hover, a.thumbnail:focus, a.thumbnail.active
19
+
20
+ // Image captions
21
+ .caption {
22
+ padding: $thumbnail-caption-padding;
23
+ color: $thumbnail-caption-color;
24
+ }
25
+ }
19
26
 
20
27
  // Add a hover state for linked versions only
21
28
  a.thumbnail:hover,
@@ -23,9 +30,3 @@ a.thumbnail:focus,
23
30
  a.thumbnail.active {
24
31
  border-color: $link-color;
25
32
  }
26
-
27
- // Image captions
28
- .thumbnail .caption {
29
- padding: $thumbnail-caption-padding;
30
- color: $thumbnail-caption-color;
31
- }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-sass
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1.0
4
+ version: 3.0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas McDonald