bootstrap-sass 3.3.4.1 → 3.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of bootstrap-sass might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +4 -3
- data/assets/javascripts/bootstrap-sprockets.js +2 -2
- data/assets/javascripts/bootstrap.js +143 -97
- data/assets/javascripts/bootstrap.min.js +4 -4
- data/assets/javascripts/bootstrap/affix.js +3 -3
- data/assets/javascripts/bootstrap/alert.js +2 -2
- data/assets/javascripts/bootstrap/button.js +13 -9
- data/assets/javascripts/bootstrap/carousel.js +2 -2
- data/assets/javascripts/bootstrap/collapse.js +2 -2
- data/assets/javascripts/bootstrap/dropdown.js +46 -42
- data/assets/javascripts/bootstrap/modal.js +5 -7
- data/assets/javascripts/bootstrap/popover.js +2 -2
- data/assets/javascripts/bootstrap/scrollspy.js +2 -2
- data/assets/javascripts/bootstrap/tab.js +5 -3
- data/assets/javascripts/bootstrap/tooltip.js +58 -20
- data/assets/javascripts/bootstrap/transition.js +1 -1
- data/assets/stylesheets/_bootstrap.scss +6 -0
- data/assets/stylesheets/bootstrap/_badges.scss +1 -1
- data/assets/stylesheets/bootstrap/_button-groups.scss +3 -2
- data/assets/stylesheets/bootstrap/_buttons.scss +13 -5
- data/assets/stylesheets/bootstrap/_carousel.scss +2 -2
- data/assets/stylesheets/bootstrap/_dropdowns.scss +3 -1
- data/assets/stylesheets/bootstrap/_forms.scss +46 -13
- data/assets/stylesheets/bootstrap/_glyphicons.scss +11 -9
- data/assets/stylesheets/bootstrap/_input-groups.scss +1 -0
- data/assets/stylesheets/bootstrap/_jumbotron.scss +5 -3
- data/assets/stylesheets/bootstrap/_list-group.scss +9 -3
- data/assets/stylesheets/bootstrap/_media.scss +5 -0
- data/assets/stylesheets/bootstrap/_mixins.scss +1 -0
- data/assets/stylesheets/bootstrap/_normalize.scss +8 -11
- data/assets/stylesheets/bootstrap/_pagination.scss +3 -2
- data/assets/stylesheets/bootstrap/_panels.scss +6 -0
- data/assets/stylesheets/bootstrap/_popovers.scss +4 -8
- data/assets/stylesheets/bootstrap/_print.scss +0 -6
- data/assets/stylesheets/bootstrap/_responsive-utilities.scss +4 -2
- data/assets/stylesheets/bootstrap/_scaffolding.scss +1 -2
- data/assets/stylesheets/bootstrap/_theme.scss +23 -5
- data/assets/stylesheets/bootstrap/_tooltip.scss +4 -5
- data/assets/stylesheets/bootstrap/_variables.scss +7 -1
- data/assets/stylesheets/bootstrap/mixins/_background-variant.scss +2 -1
- data/assets/stylesheets/bootstrap/mixins/_buttons.scss +18 -2
- data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +2 -2
- data/assets/stylesheets/bootstrap/mixins/_grid.scss +2 -2
- data/assets/stylesheets/bootstrap/mixins/_hide-text.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_list-group.scss +3 -2
- data/assets/stylesheets/bootstrap/mixins/_pagination.scss +2 -1
- data/assets/stylesheets/bootstrap/mixins/_reset-text.scss +18 -0
- data/assets/stylesheets/bootstrap/mixins/_responsive-visibility.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +2 -1
- data/bower.json +1 -6
- data/lib/bootstrap-sass.rb +1 -1
- data/lib/bootstrap-sass/version.rb +2 -2
- data/package.json +1 -1
- data/tasks/converter/less_conversion.rb +9 -2
- data/templates/project/_bootstrap-variables.sass +8 -2
- metadata +4 -4
@@ -76,6 +76,7 @@
|
|
76
76
|
@include 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
|
+
@include 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
|
-
//
|
15
|
-
font
|
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
|
+
@include reset-text;
|
16
17
|
font-size: $font-size-base;
|
17
|
-
|
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
|
@include 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 {
|
@@ -18,8 +18,10 @@
|
|
18
18
|
// Source: http://timkadlec.com/2013/01/windows-phone-8-and-device-width/
|
19
19
|
// Source: http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/
|
20
20
|
|
21
|
-
|
22
|
-
|
21
|
+
@at-root {
|
22
|
+
@-ms-viewport {
|
23
|
+
width: device-width;
|
24
|
+
}
|
23
25
|
}
|
24
26
|
|
25
27
|
|
@@ -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
|
@include box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
|
29
34
|
}
|
30
35
|
|
36
|
+
&.disabled,
|
37
|
+
&[disabled],
|
38
|
+
fieldset[disabled] & {
|
39
|
+
@include 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
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
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
|
@include gradient-vertical($start-color: lighten($navbar-inverse-bg, 10%), $end-color: $navbar-inverse-bg);
|
134
152
|
@include 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
|
@include 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
|
-
//
|
12
|
-
font
|
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
|
+
@include reset-text;
|
13
14
|
font-size: $font-size-small;
|
14
|
-
|
15
|
-
line-height: 1.4;
|
15
|
+
|
16
16
|
@include opacity(0);
|
17
17
|
|
18
18
|
&.in { @include 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
|
}
|
@@ -175,6 +175,11 @@ $btn-danger-border: darken($btn-danger-bg, 5%) !default;
|
|
175
175
|
|
176
176
|
$btn-link-disabled-color: $gray-light !default;
|
177
177
|
|
178
|
+
// Allows for customizing button radius independently from global border radius
|
179
|
+
$btn-border-radius-base: $border-radius-base !default;
|
180
|
+
$btn-border-radius-large: $border-radius-large !default;
|
181
|
+
$btn-border-radius-small: $border-radius-small !default;
|
182
|
+
|
178
183
|
|
179
184
|
//== Forms
|
180
185
|
//
|
@@ -388,7 +393,7 @@ $navbar-default-toggle-icon-bar-bg: #888 !default;
|
|
388
393
|
$navbar-default-toggle-border-color: #ddd !default;
|
389
394
|
|
390
395
|
|
391
|
-
|
396
|
+
//=== Inverted navbar
|
392
397
|
// Reset inverted navbar basics
|
393
398
|
$navbar-inverse-color: lighten($gray-light, 15%) !default;
|
394
399
|
$navbar-inverse-bg: #222 !default;
|
@@ -489,6 +494,7 @@ $jumbotron-color: inherit !default;
|
|
489
494
|
$jumbotron-bg: $gray-lighter !default;
|
490
495
|
$jumbotron-heading-color: inherit !default;
|
491
496
|
$jumbotron-font-size: ceil(($font-size-base * 1.5)) !default;
|
497
|
+
$jumbotron-heading-font-size: ceil(($font-size-base * 4.5)) !default;
|
492
498
|
|
493
499
|
|
494
500
|
//== Form states and alerts
|
@@ -8,15 +8,31 @@
|
|
8
8
|
background-color: $background;
|
9
9
|
border-color: $border;
|
10
10
|
|
11
|
-
&:hover,
|
12
11
|
&:focus,
|
13
|
-
&.focus
|
12
|
+
&.focus {
|
13
|
+
color: $color;
|
14
|
+
background-color: darken($background, 10%);
|
15
|
+
border-color: darken($border, 25%);
|
16
|
+
}
|
17
|
+
&:hover {
|
18
|
+
color: $color;
|
19
|
+
background-color: darken($background, 10%);
|
20
|
+
border-color: darken($border, 12%);
|
21
|
+
}
|
14
22
|
&:active,
|
15
23
|
&.active,
|
16
24
|
.open > &.dropdown-toggle {
|
17
25
|
color: $color;
|
18
26
|
background-color: darken($background, 10%);
|
19
27
|
border-color: darken($border, 12%);
|
28
|
+
|
29
|
+
&:hover,
|
30
|
+
&:focus,
|
31
|
+
&.focus {
|
32
|
+
color: $color;
|
33
|
+
background-color: darken($background, 17%);
|
34
|
+
border-color: darken($border, 25%);
|
35
|
+
}
|
20
36
|
}
|
21
37
|
&:active,
|
22
38
|
&.active,
|
@@ -13,8 +13,8 @@
|
|
13
13
|
// Prevent columns from collapsing when empty
|
14
14
|
min-height: 1px;
|
15
15
|
// Inner gutter via padding
|
16
|
-
padding-left: ($grid-gutter-width / 2);
|
17
|
-
padding-right: ($grid-gutter-width / 2);
|
16
|
+
padding-left: ceil(($grid-gutter-width / 2));
|
17
|
+
padding-right: floor(($grid-gutter-width / 2));
|
18
18
|
}
|
19
19
|
}
|
20
20
|
|
@@ -13,8 +13,8 @@
|
|
13
13
|
|
14
14
|
// Creates a wrapper for a series of columns
|
15
15
|
@mixin make-row($gutter: $grid-gutter-width) {
|
16
|
-
margin-left: ($gutter / -2);
|
17
|
-
margin-right: ($gutter / -2);
|
16
|
+
margin-left: ceil(($gutter / -2));
|
17
|
+
margin-right: floor(($gutter / -2));
|
18
18
|
@include clearfix;
|
19
19
|
}
|
20
20
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
// CSS image replacement
|
2
2
|
//
|
3
|
-
// Heads up! v3 launched with
|
3
|
+
// Heads up! v3 launched with only `.hide-text()`, but per our pattern for
|
4
4
|
// mixins being reused as classes with the same name, this doesn't hold up. As
|
5
5
|
// of v3.0.1 we have added `.text-hide()` and deprecated `.hide-text()`.
|
6
6
|
//
|
@@ -5,10 +5,11 @@
|
|
5
5
|
color: $color;
|
6
6
|
background-color: $background;
|
7
7
|
|
8
|
-
// [converter] extracted a& to a.list-group-item-#{$state}
|
8
|
+
// [converter] extracted a&, button& to a.list-group-item-#{$state}, button.list-group-item-#{$state}
|
9
9
|
}
|
10
10
|
|
11
|
-
a.list-group-item-#{$state}
|
11
|
+
a.list-group-item-#{$state},
|
12
|
+
button.list-group-item-#{$state} {
|
12
13
|
color: $color;
|
13
14
|
|
14
15
|
.list-group-item-heading {
|
@@ -1,11 +1,12 @@
|
|
1
1
|
// Pagination
|
2
2
|
|
3
|
-
@mixin pagination-size($padding-vertical, $padding-horizontal, $font-size, $border-radius) {
|
3
|
+
@mixin pagination-size($padding-vertical, $padding-horizontal, $font-size, $line-height, $border-radius) {
|
4
4
|
> li {
|
5
5
|
> a,
|
6
6
|
> span {
|
7
7
|
padding: $padding-vertical $padding-horizontal;
|
8
8
|
font-size: $font-size;
|
9
|
+
line-height: $line-height;
|
9
10
|
}
|
10
11
|
&:first-child {
|
11
12
|
> a,
|
@@ -0,0 +1,18 @@
|
|
1
|
+
@mixin 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
|
+
}
|
data/bower.json
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
{
|
2
2
|
"name": "bootstrap-sass",
|
3
|
-
"version": "3.3.4",
|
4
3
|
"homepage": "https://github.com/twbs/bootstrap-sass",
|
5
4
|
"authors": [
|
6
5
|
"Thomas McDonald",
|
@@ -9,13 +8,9 @@
|
|
9
8
|
"Gleb Mazovetskiy"
|
10
9
|
],
|
11
10
|
"description": "bootstrap-sass is a Sass-powered version of Bootstrap, ready to drop right into your Sass powered applications.",
|
11
|
+
"moduleType": "globals",
|
12
12
|
"main": [
|
13
13
|
"assets/stylesheets/_bootstrap.scss",
|
14
|
-
"assets/fonts/bootstrap/glyphicons-halflings-regular.eot",
|
15
|
-
"assets/fonts/bootstrap/glyphicons-halflings-regular.svg",
|
16
|
-
"assets/fonts/bootstrap/glyphicons-halflings-regular.ttf",
|
17
|
-
"assets/fonts/bootstrap/glyphicons-halflings-regular.woff",
|
18
|
-
"assets/fonts/bootstrap/glyphicons-halflings-regular.woff2",
|
19
14
|
"assets/javascripts/bootstrap.js"
|
20
15
|
],
|
21
16
|
"keywords": [
|
data/lib/bootstrap-sass.rb
CHANGED
data/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "bootstrap-sass",
|
3
|
-
"version": "3.3.
|
3
|
+
"version": "3.3.5",
|
4
4
|
"description": "bootstrap-sass is a Sass-powered version of Bootstrap, ready to drop right into your Sass powered applications.",
|
5
5
|
"main": "assets/javascripts/bootstrap.js",
|
6
6
|
"repository": {
|
@@ -118,10 +118,10 @@ class Converter
|
|
118
118
|
file = replace_all file, /(\s*)\.navbar-(right|left)\s*\{\s*@extend\s*\.pull-(right|left);\s*/, "\\1.navbar-\\2 {\\1 float: \\2 !important;\\1"
|
119
119
|
when 'tables.less'
|
120
120
|
file = replace_all file, /(@include\s*table-row-variant\()(\w+)/, "\\1'\\2'"
|
121
|
-
when 'thumbnails.less', 'labels.less', 'badges.less'
|
121
|
+
when 'thumbnails.less', 'labels.less', 'badges.less', 'buttons.less'
|
122
122
|
file = extract_nested_rule file, 'a&'
|
123
123
|
when 'glyphicons.less'
|
124
|
-
file = replace_rules(file,
|
124
|
+
file = replace_rules(file, /\s*@font-face/) { |rule|
|
125
125
|
rule = replace_all rule, /(\$icon-font(?:-\w+)+)/, '#{\1}'
|
126
126
|
replace_asset_url rule, :font
|
127
127
|
}
|
@@ -169,9 +169,16 @@ class Converter
|
|
169
169
|
file = deinterpolate_vararg_mixins(file)
|
170
170
|
file = replace_calculation_semantics(file)
|
171
171
|
file = replace_file_imports(file)
|
172
|
+
file = wrap_at_groups_with_at_root(file)
|
172
173
|
file
|
173
174
|
end
|
174
175
|
|
176
|
+
def wrap_at_groups_with_at_root(file)
|
177
|
+
replace_rules(file, /@(?:font-face|-ms-viewport)/) { |rule, _pos|
|
178
|
+
%Q(@at-root {\n#{indent rule, 2}\n})
|
179
|
+
}
|
180
|
+
end
|
181
|
+
|
175
182
|
def sass_fn_exists(fn)
|
176
183
|
%Q{(#{fn}("") != unquote('#{fn}("")'))}
|
177
184
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
// Override Bootstrap variables here (defaults from bootstrap-sass v3.3.
|
1
|
+
// Override Bootstrap variables here (defaults from bootstrap-sass v3.3.5):
|
2
2
|
|
3
3
|
//
|
4
4
|
// Variables
|
@@ -176,6 +176,11 @@
|
|
176
176
|
|
177
177
|
// $btn-link-disabled-color: $gray-light
|
178
178
|
|
179
|
+
// Allows for customizing button radius independently from global border radius
|
180
|
+
// $btn-border-radius-base: $border-radius-base
|
181
|
+
// $btn-border-radius-large: $border-radius-large
|
182
|
+
// $btn-border-radius-small: $border-radius-small
|
183
|
+
|
179
184
|
|
180
185
|
//== Forms
|
181
186
|
//
|
@@ -389,7 +394,7 @@
|
|
389
394
|
// $navbar-default-toggle-border-color: #ddd
|
390
395
|
|
391
396
|
|
392
|
-
|
397
|
+
//=== Inverted navbar
|
393
398
|
// Reset inverted navbar basics
|
394
399
|
// $navbar-inverse-color: lighten($gray-light, 15%)
|
395
400
|
// $navbar-inverse-bg: #222
|
@@ -490,6 +495,7 @@
|
|
490
495
|
// $jumbotron-bg: $gray-lighter
|
491
496
|
// $jumbotron-heading-color: inherit
|
492
497
|
// $jumbotron-font-size: ceil(($font-size-base * 1.5))
|
498
|
+
// $jumbotron-heading-font-size: ceil(($font-size-base * 4.5))
|
493
499
|
|
494
500
|
|
495
501
|
//== Form states and alerts
|