bootstrap 4.0.0.beta3 → 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 bootstrap might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/assets/javascripts/bootstrap-sprockets.js +6 -6
- data/assets/javascripts/bootstrap.js +112 -110
- data/assets/javascripts/bootstrap.min.js +3 -3
- data/assets/javascripts/bootstrap/alert.js +6 -6
- data/assets/javascripts/bootstrap/button.js +5 -5
- data/assets/javascripts/bootstrap/carousel.js +9 -10
- data/assets/javascripts/bootstrap/collapse.js +18 -16
- data/assets/javascripts/bootstrap/dropdown.js +17 -16
- data/assets/javascripts/bootstrap/modal.js +11 -11
- data/assets/javascripts/bootstrap/popover.js +8 -8
- data/assets/javascripts/bootstrap/scrollspy.js +9 -9
- data/assets/javascripts/bootstrap/tab.js +7 -7
- data/assets/javascripts/bootstrap/tooltip.js +13 -13
- data/assets/javascripts/bootstrap/util.js +6 -6
- data/assets/stylesheets/_bootstrap-grid.scss +4 -7
- data/assets/stylesheets/_bootstrap-reboot.scss +3 -3
- data/assets/stylesheets/_bootstrap.scss +3 -3
- data/assets/stylesheets/bootstrap/_alert.scss +1 -1
- data/assets/stylesheets/bootstrap/_buttons.scss +5 -9
- data/assets/stylesheets/bootstrap/_close.scss +1 -1
- data/assets/stylesheets/bootstrap/_custom-forms.scss +16 -1
- data/assets/stylesheets/bootstrap/_input-group.scss +15 -12
- data/assets/stylesheets/bootstrap/_navbar.scss +3 -3
- data/assets/stylesheets/bootstrap/_pagination.scss +7 -2
- data/assets/stylesheets/bootstrap/_popover.scss +2 -2
- data/assets/stylesheets/bootstrap/_print.scss +17 -3
- data/assets/stylesheets/bootstrap/_reboot.scss +0 -23
- data/assets/stylesheets/bootstrap/_tooltip.scss +2 -2
- data/assets/stylesheets/bootstrap/_variables.scss +41 -19
- data/assets/stylesheets/bootstrap/mixins/_breakpoints.scss +9 -7
- data/assets/stylesheets/bootstrap/mixins/_buttons.scss +17 -9
- data/assets/stylesheets/bootstrap/mixins/_forms.scss +6 -2
- data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +5 -7
- data/assets/stylesheets/bootstrap/mixins/_hover.scss +24 -46
- data/assets/stylesheets/bootstrap/mixins/_list-group.scss +10 -13
- data/assets/stylesheets/bootstrap/utilities/_borders.scss +6 -1
- data/assets/stylesheets/bootstrap/utilities/_display.scss +10 -28
- data/bootstrap.gemspec +1 -1
- data/lib/bootstrap/version.rb +2 -2
- metadata +7 -7
@@ -117,6 +117,15 @@
|
|
117
117
|
background-image: $custom-checkbox-indicator-icon-indeterminate;
|
118
118
|
}
|
119
119
|
}
|
120
|
+
|
121
|
+
.custom-control-input:disabled {
|
122
|
+
&:checked ~ .custom-control-label::before {
|
123
|
+
background-color: $custom-control-indicator-checked-disabled-bg;
|
124
|
+
}
|
125
|
+
&:indeterminate ~ .custom-control-label::before {
|
126
|
+
background-color: $custom-control-indicator-checked-disabled-bg;
|
127
|
+
}
|
128
|
+
}
|
120
129
|
}
|
121
130
|
|
122
131
|
// Radios
|
@@ -136,6 +145,12 @@
|
|
136
145
|
background-image: $custom-radio-indicator-icon-checked;
|
137
146
|
}
|
138
147
|
}
|
148
|
+
|
149
|
+
.custom-control-input:disabled {
|
150
|
+
&:checked ~ .custom-control-label::before {
|
151
|
+
background-color: $custom-control-indicator-checked-disabled-bg;
|
152
|
+
}
|
153
|
+
}
|
139
154
|
}
|
140
155
|
|
141
156
|
|
@@ -148,7 +163,7 @@
|
|
148
163
|
.custom-select {
|
149
164
|
display: inline-block;
|
150
165
|
width: 100%;
|
151
|
-
height: $
|
166
|
+
height: $custom-select-height;
|
152
167
|
padding: $custom-select-padding-y ($custom-select-padding-x + $custom-select-indicator-padding) $custom-select-padding-y $custom-select-padding-x;
|
153
168
|
line-height: $custom-select-line-height;
|
154
169
|
color: $custom-select-color;
|
@@ -11,9 +11,9 @@
|
|
11
11
|
align-items: stretch;
|
12
12
|
width: 100%;
|
13
13
|
|
14
|
-
.form-control,
|
15
|
-
.custom-select,
|
16
|
-
.custom-file {
|
14
|
+
> .form-control,
|
15
|
+
> .custom-select,
|
16
|
+
> .custom-file {
|
17
17
|
position: relative; // For focus state's z-index
|
18
18
|
flex: 1 1 auto;
|
19
19
|
// Add width 1% and flex-basis auto to ensure that button will not wrap out
|
@@ -26,27 +26,29 @@
|
|
26
26
|
z-index: 3;
|
27
27
|
}
|
28
28
|
|
29
|
-
+ .form-control
|
29
|
+
+ .form-control,
|
30
|
+
+ .custom-select,
|
31
|
+
+ .custom-file {
|
30
32
|
margin-left: -$input-border-width;
|
31
33
|
}
|
32
34
|
}
|
33
35
|
|
34
|
-
.form-control,
|
35
|
-
.custom-select {
|
36
|
+
> .form-control,
|
37
|
+
> .custom-select {
|
36
38
|
&:not(:last-child) { @include border-right-radius(0); }
|
37
39
|
&:not(:first-child) { @include border-left-radius(0); }
|
38
40
|
}
|
39
41
|
|
40
42
|
// Custom file inputs have more complex markup, thus requiring different
|
41
43
|
// border-radius overrides.
|
42
|
-
.custom-file {
|
44
|
+
> .custom-file {
|
43
45
|
display: flex;
|
44
46
|
align-items: center;
|
45
47
|
|
46
|
-
&:not(:last-child) .custom-file-
|
47
|
-
&:not(:last-child) .custom-file-
|
48
|
-
&:not(:first-child) .custom-file-
|
49
|
-
&:not(:first-child) .custom-file-
|
48
|
+
&:not(:last-child) .custom-file-label,
|
49
|
+
&:not(:last-child) .custom-file-label::before { @include border-right-radius(0); }
|
50
|
+
&:not(:first-child) .custom-file-label,
|
51
|
+
&:not(:first-child) .custom-file-label::before { @include border-left-radius(0); }
|
50
52
|
}
|
51
53
|
}
|
52
54
|
|
@@ -60,7 +62,6 @@
|
|
60
62
|
.input-group-prepend,
|
61
63
|
.input-group-append {
|
62
64
|
display: flex;
|
63
|
-
align-items: center;
|
64
65
|
|
65
66
|
// Ensure buttons are always above inputs for more visually pleasing borders.
|
66
67
|
// This isn't needed for `.input-group-text` since it shares the same border-color
|
@@ -88,6 +89,8 @@
|
|
88
89
|
// to prepend or append to an input.
|
89
90
|
|
90
91
|
.input-group-text {
|
92
|
+
display: flex;
|
93
|
+
align-items: center;
|
91
94
|
padding: $input-padding-y $input-padding-x;
|
92
95
|
margin-bottom: 0; // Allow use of <label> elements by overriding our default margin-bottom
|
93
96
|
font-size: $font-size-base; // Match inputs
|
@@ -118,7 +118,7 @@
|
|
118
118
|
}
|
119
119
|
|
120
120
|
// Opinionated: add "hand" cursor to non-disabled .navbar-toggler elements
|
121
|
-
&:not(
|
121
|
+
&:not(:disabled):not(.disabled) {
|
122
122
|
cursor: pointer;
|
123
123
|
}
|
124
124
|
}
|
@@ -168,8 +168,8 @@
|
|
168
168
|
}
|
169
169
|
|
170
170
|
.nav-link {
|
171
|
-
padding-right:
|
172
|
-
padding-left:
|
171
|
+
padding-right: $navbar-nav-link-padding-x;
|
172
|
+
padding-left: $navbar-nav-link-padding-x;
|
173
173
|
}
|
174
174
|
}
|
175
175
|
|
@@ -14,16 +14,21 @@
|
|
14
14
|
background-color: $pagination-bg;
|
15
15
|
border: $pagination-border-width solid $pagination-border-color;
|
16
16
|
|
17
|
-
|
17
|
+
&:hover {
|
18
18
|
color: $pagination-hover-color;
|
19
19
|
text-decoration: none;
|
20
20
|
background-color: $pagination-hover-bg;
|
21
21
|
border-color: $pagination-hover-border-color;
|
22
22
|
}
|
23
23
|
|
24
|
+
&:focus {
|
25
|
+
z-index: 2;
|
26
|
+
outline: 0;
|
27
|
+
box-shadow: $pagination-focus-box-shadow;
|
28
|
+
}
|
24
29
|
|
25
30
|
// Opinionated: add "hand" cursor to non-disabled .page-link elements
|
26
|
-
&:not(
|
31
|
+
&:not(:disabled):not(.disabled) {
|
27
32
|
cursor: pointer;
|
28
33
|
}
|
29
34
|
}
|
@@ -8,13 +8,13 @@
|
|
8
8
|
// Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
|
9
9
|
// So reset our font and text properties to avoid inheriting weird values.
|
10
10
|
@include reset-text();
|
11
|
-
font-size: $font-size
|
11
|
+
font-size: $popover-font-size;
|
12
12
|
// Allow breaking very long words so they don't overflow the popover's bounds
|
13
13
|
word-wrap: break-word;
|
14
14
|
background-color: $popover-bg;
|
15
15
|
background-clip: padding-box;
|
16
16
|
border: $popover-border-width solid $popover-border-color;
|
17
|
-
@include border-radius($border-radius
|
17
|
+
@include border-radius($popover-border-radius);
|
18
18
|
@include box-shadow($popover-box-shadow);
|
19
19
|
|
20
20
|
.arrow {
|
@@ -20,9 +20,10 @@
|
|
20
20
|
box-shadow: none !important;
|
21
21
|
}
|
22
22
|
|
23
|
-
a
|
24
|
-
|
25
|
-
|
23
|
+
a {
|
24
|
+
&:not(.btn) {
|
25
|
+
text-decoration: underline;
|
26
|
+
}
|
26
27
|
}
|
27
28
|
|
28
29
|
// Bootstrap specific; comment the following selector out
|
@@ -82,6 +83,19 @@
|
|
82
83
|
|
83
84
|
// Bootstrap specific changes start
|
84
85
|
|
86
|
+
// Specify a size and min-width to make printing closer across browsers.
|
87
|
+
// We don't set margin here because it breaks `size` in Chrome. We also
|
88
|
+
// don't use `!important` on `size` as it breaks in Chrome.
|
89
|
+
@page {
|
90
|
+
size: $print-page-size;
|
91
|
+
}
|
92
|
+
body {
|
93
|
+
min-width: $print-body-min-width !important;
|
94
|
+
}
|
95
|
+
.container {
|
96
|
+
min-width: $print-body-min-width !important;
|
97
|
+
}
|
98
|
+
|
85
99
|
// Bootstrap components
|
86
100
|
.navbar {
|
87
101
|
display: none;
|
@@ -279,29 +279,6 @@ svg:not(:root) {
|
|
279
279
|
}
|
280
280
|
|
281
281
|
|
282
|
-
// Avoid 300ms click delay on touch devices that support the `touch-action` CSS property.
|
283
|
-
//
|
284
|
-
// In particular, unlike most other browsers, IE11+Edge on Windows 10 on touch devices and IE Mobile 10-11
|
285
|
-
// DON'T remove the click delay when `<meta name="viewport" content="width=device-width">` is present.
|
286
|
-
// However, they DO support removing the click delay via `touch-action: manipulation`.
|
287
|
-
// See:
|
288
|
-
// * https://getbootstrap.com/docs/4.0/content/reboot/#click-delay-optimization-for-touch
|
289
|
-
// * https://caniuse.com/#feat=css-touch-action
|
290
|
-
// * https://patrickhlauke.github.io/touch/tests/results/#suppressing-300ms-delay
|
291
|
-
|
292
|
-
a,
|
293
|
-
area,
|
294
|
-
button,
|
295
|
-
[role="button"],
|
296
|
-
input:not([type="range"]),
|
297
|
-
label,
|
298
|
-
select,
|
299
|
-
summary,
|
300
|
-
textarea {
|
301
|
-
touch-action: manipulation;
|
302
|
-
}
|
303
|
-
|
304
|
-
|
305
282
|
//
|
306
283
|
// Tables
|
307
284
|
//
|
@@ -7,7 +7,7 @@
|
|
7
7
|
// Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
|
8
8
|
// So reset our font and text properties to avoid inheriting weird values.
|
9
9
|
@include reset-text();
|
10
|
-
font-size: $font-size
|
10
|
+
font-size: $tooltip-font-size;
|
11
11
|
// Allow breaking very long words so they don't overflow the tooltip's bounds
|
12
12
|
word-wrap: break-word;
|
13
13
|
opacity: 0;
|
@@ -111,5 +111,5 @@
|
|
111
111
|
color: $tooltip-color;
|
112
112
|
text-align: center;
|
113
113
|
background-color: $tooltip-bg;
|
114
|
-
@include border-radius($border-radius);
|
114
|
+
@include border-radius($tooltip-border-radius);
|
115
115
|
}
|
@@ -15,7 +15,7 @@ $gray-200: #e9ecef !default;
|
|
15
15
|
$gray-300: #dee2e6 !default;
|
16
16
|
$gray-400: #ced4da !default;
|
17
17
|
$gray-500: #adb5bd !default;
|
18
|
-
$gray-600: #
|
18
|
+
$gray-600: #6c757d !default;
|
19
19
|
$gray-700: #495057 !default;
|
20
20
|
$gray-800: #343a40 !default;
|
21
21
|
$gray-900: #212529 !default;
|
@@ -103,7 +103,7 @@ $enable-rounded: true !default;
|
|
103
103
|
$enable-shadows: false !default;
|
104
104
|
$enable-gradients: false !default;
|
105
105
|
$enable-transitions: true !default;
|
106
|
-
$enable-hover-media-query: false !default;
|
106
|
+
$enable-hover-media-query: false !default; // Deprecated, no longer affects any compiled CSS
|
107
107
|
$enable-grid-classes: true !default;
|
108
108
|
$enable-print-styles: true !default;
|
109
109
|
|
@@ -114,23 +114,27 @@ $enable-print-styles: true !default;
|
|
114
114
|
// variables. Mostly focused on spacing.
|
115
115
|
// You can add more entries to the $spacers map, should you need more variation.
|
116
116
|
|
117
|
+
// stylelint-disable
|
117
118
|
$spacer: 1rem !default;
|
118
|
-
$spacers: (
|
119
|
+
$spacers: () !default;
|
120
|
+
$spacers: map-merge((
|
119
121
|
0: 0,
|
120
122
|
1: ($spacer * .25),
|
121
123
|
2: ($spacer * .5),
|
122
124
|
3: $spacer,
|
123
125
|
4: ($spacer * 1.5),
|
124
126
|
5: ($spacer * 3)
|
125
|
-
)
|
127
|
+
), $spacers);
|
126
128
|
|
127
129
|
// This variable affects the `.h-*` and `.w-*` classes.
|
128
|
-
$sizes: (
|
130
|
+
$sizes: () !default;
|
131
|
+
$sizes: map-merge((
|
129
132
|
25: 25%,
|
130
133
|
50: 50%,
|
131
134
|
75: 75%,
|
132
135
|
100: 100%
|
133
|
-
)
|
136
|
+
), $sizes);
|
137
|
+
// stylelint-enable
|
134
138
|
|
135
139
|
// Body
|
136
140
|
//
|
@@ -201,7 +205,7 @@ $line-height-lg: 1.5 !default;
|
|
201
205
|
$line-height-sm: 1.5 !default;
|
202
206
|
|
203
207
|
$border-width: 1px !default;
|
204
|
-
$border-color: $gray-
|
208
|
+
$border-color: $gray-300 !default;
|
205
209
|
|
206
210
|
$border-radius: .25rem !default;
|
207
211
|
$border-radius-lg: .3rem !default;
|
@@ -323,7 +327,7 @@ $input-btn-padding-x: .75rem !default;
|
|
323
327
|
$input-btn-line-height: $line-height-base !default;
|
324
328
|
|
325
329
|
$input-btn-focus-width: .2rem !default;
|
326
|
-
$input-btn-focus-color: rgba(
|
330
|
+
$input-btn-focus-color: rgba($component-active-bg, .25) !default;
|
327
331
|
$input-btn-focus-box-shadow: 0 0 0 $input-btn-focus-width $input-btn-focus-color !default;
|
328
332
|
|
329
333
|
$input-btn-padding-y-sm: .25rem !default;
|
@@ -401,14 +405,14 @@ $input-border-radius-lg: $border-radius-lg !default;
|
|
401
405
|
$input-border-radius-sm: $border-radius-sm !default;
|
402
406
|
|
403
407
|
$input-focus-bg: $input-bg !default;
|
404
|
-
$input-focus-border-color: lighten(
|
408
|
+
$input-focus-border-color: lighten($component-active-bg, 25%) !default;
|
405
409
|
$input-focus-color: $input-color !default;
|
406
410
|
$input-focus-width: $input-btn-focus-width !default;
|
407
411
|
$input-focus-box-shadow: $input-btn-focus-box-shadow !default;
|
408
412
|
|
409
413
|
$input-placeholder-color: $gray-600 !default;
|
410
414
|
|
411
|
-
$input-height-border: $input-
|
415
|
+
$input-height-border: $input-border-width * 2 !default;
|
412
416
|
|
413
417
|
$input-height-inner: ($font-size-base * $input-btn-line-height) + ($input-btn-padding-y * 2) !default;
|
414
418
|
$input-height: calc(#{$input-height-inner} + #{$input-height-border}) !default;
|
@@ -447,20 +451,21 @@ $custom-control-indicator-box-shadow: inset 0 .25rem .25rem rgba($black, .1) !
|
|
447
451
|
$custom-control-indicator-disabled-bg: $gray-200 !default;
|
448
452
|
$custom-control-label-disabled-color: $gray-600 !default;
|
449
453
|
|
450
|
-
$custom-control-indicator-checked-color: $
|
451
|
-
$custom-control-indicator-checked-bg:
|
454
|
+
$custom-control-indicator-checked-color: $component-active-color !default;
|
455
|
+
$custom-control-indicator-checked-bg: $component-active-bg !default;
|
456
|
+
$custom-control-indicator-checked-disabled-bg: rgba(theme-color("primary"), .5) !default;
|
452
457
|
$custom-control-indicator-checked-box-shadow: none !default;
|
453
458
|
|
454
459
|
$custom-control-indicator-focus-box-shadow: 0 0 0 1px $body-bg, $input-btn-focus-box-shadow !default;
|
455
460
|
|
456
|
-
$custom-control-indicator-active-color: $
|
457
|
-
$custom-control-indicator-active-bg: lighten(
|
461
|
+
$custom-control-indicator-active-color: $component-active-color !default;
|
462
|
+
$custom-control-indicator-active-bg: lighten($component-active-bg, 35%) !default;
|
458
463
|
$custom-control-indicator-active-box-shadow: none !default;
|
459
464
|
|
460
465
|
$custom-checkbox-indicator-border-radius: $border-radius !default;
|
461
466
|
$custom-checkbox-indicator-icon-checked: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='#{$custom-control-indicator-checked-color}' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E"), "#", "%23") !default;
|
462
467
|
|
463
|
-
$custom-checkbox-indicator-indeterminate-bg:
|
468
|
+
$custom-checkbox-indicator-indeterminate-bg: $component-active-bg !default;
|
464
469
|
$custom-checkbox-indicator-indeterminate-color: $custom-control-indicator-checked-color !default;
|
465
470
|
$custom-checkbox-indicator-icon-indeterminate: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3E%3Cpath stroke='#{$custom-checkbox-indicator-indeterminate-color}' d='M0 2h4'/%3E%3C/svg%3E"), "#", "%23") !default;
|
466
471
|
$custom-checkbox-indicator-indeterminate-box-shadow: none !default;
|
@@ -485,7 +490,7 @@ $custom-select-border-color: $input-border-color !default;
|
|
485
490
|
$custom-select-border-radius: $border-radius !default;
|
486
491
|
|
487
492
|
$custom-select-focus-border-color: $input-focus-border-color !default;
|
488
|
-
$custom-select-focus-box-shadow: inset 0 1px 2px rgba($black, .075), $
|
493
|
+
$custom-select-focus-box-shadow: inset 0 1px 2px rgba($black, .075), 0 0 5px rgba($custom-select-focus-border-color, .5) !default;
|
489
494
|
|
490
495
|
$custom-select-font-size-sm: 75% !default;
|
491
496
|
$custom-select-height-sm: $input-height-sm !default;
|
@@ -585,6 +590,8 @@ $nav-pills-link-active-bg: $component-active-bg !default;
|
|
585
590
|
$navbar-padding-y: ($spacer / 2) !default;
|
586
591
|
$navbar-padding-x: $spacer !default;
|
587
592
|
|
593
|
+
$navbar-nav-link-padding-x: .5rem !default;
|
594
|
+
|
588
595
|
$navbar-brand-font-size: $font-size-lg !default;
|
589
596
|
// Compute the navbar-brand padding-y so the navbar-brand will have the same height as navbar-text and nav-link
|
590
597
|
$nav-link-height: ($font-size-base * $line-height-base + $nav-link-padding-y * 2) !default;
|
@@ -625,13 +632,15 @@ $pagination-bg: $white !default;
|
|
625
632
|
$pagination-border-width: $border-width !default;
|
626
633
|
$pagination-border-color: $gray-300 !default;
|
627
634
|
|
635
|
+
$pagination-focus-box-shadow: $input-btn-focus-box-shadow !default;
|
636
|
+
|
628
637
|
$pagination-hover-color: $link-hover-color !default;
|
629
638
|
$pagination-hover-bg: $gray-200 !default;
|
630
639
|
$pagination-hover-border-color: $gray-300 !default;
|
631
640
|
|
632
|
-
$pagination-active-color: $
|
633
|
-
$pagination-active-bg:
|
634
|
-
$pagination-active-border-color:
|
641
|
+
$pagination-active-color: $component-active-color !default;
|
642
|
+
$pagination-active-bg: $component-active-bg !default;
|
643
|
+
$pagination-active-border-color: $pagination-active-bg !default;
|
635
644
|
|
636
645
|
$pagination-disabled-color: $gray-600 !default;
|
637
646
|
$pagination-disabled-bg: $white !default;
|
@@ -667,9 +676,11 @@ $card-columns-margin: $card-spacer-y !default;
|
|
667
676
|
|
668
677
|
// Tooltips
|
669
678
|
|
679
|
+
$tooltip-font-size: $font-size-sm !default;
|
670
680
|
$tooltip-max-width: 200px !default;
|
671
681
|
$tooltip-color: $white !default;
|
672
682
|
$tooltip-bg: $black !default;
|
683
|
+
$tooltip-border-radius: $border-radius !default;
|
673
684
|
$tooltip-opacity: .9 !default;
|
674
685
|
$tooltip-padding-y: .25rem !default;
|
675
686
|
$tooltip-padding-x: .5rem !default;
|
@@ -682,10 +693,12 @@ $tooltip-arrow-color: $tooltip-bg !default;
|
|
682
693
|
|
683
694
|
// Popovers
|
684
695
|
|
696
|
+
$popover-font-size: $font-size-sm !default;
|
685
697
|
$popover-bg: $white !default;
|
686
698
|
$popover-max-width: 276px !default;
|
687
699
|
$popover-border-width: $border-width !default;
|
688
700
|
$popover-border-color: rgba($black, .2) !default;
|
701
|
+
$popover-border-radius: $border-radius-lg !default;
|
689
702
|
$popover-box-shadow: 0 .25rem .5rem rgba($black, .2) !default;
|
690
703
|
|
691
704
|
$popover-header-bg: darken($popover-bg, 3%) !default;
|
@@ -760,6 +773,10 @@ $alert-border-radius: $border-radius !default;
|
|
760
773
|
$alert-link-font-weight: $font-weight-bold !default;
|
761
774
|
$alert-border-width: $border-width !default;
|
762
775
|
|
776
|
+
$alert-bg-level: -10 !default;
|
777
|
+
$alert-border-level: -9 !default;
|
778
|
+
$alert-color-level: 6 !default;
|
779
|
+
|
763
780
|
|
764
781
|
// Progress bars
|
765
782
|
|
@@ -870,3 +887,8 @@ $kbd-bg: $gray-900 !default;
|
|
870
887
|
|
871
888
|
$pre-color: $gray-900 !default;
|
872
889
|
$pre-scrollable-max-height: 340px !default;
|
890
|
+
|
891
|
+
|
892
|
+
// Printing
|
893
|
+
$print-page-size: a3 !default;
|
894
|
+
$print-body-min-width: map-get($grid-breakpoints, "lg") !default;
|
@@ -29,15 +29,17 @@
|
|
29
29
|
}
|
30
30
|
|
31
31
|
// Maximum breakpoint width. Null for the largest (last) breakpoint.
|
32
|
-
// The maximum value is calculated as the minimum of the next one less 0.
|
32
|
+
// The maximum value is calculated as the minimum of the next one less 0.02px
|
33
33
|
// to work around the limitations of `min-` and `max-` prefixes and viewports with fractional widths.
|
34
34
|
// See https://www.w3.org/TR/mediaqueries-4/#mq-min-max
|
35
|
+
// Uses 0.02px rather than 0.01px to work around a current rounding bug in Safari.
|
36
|
+
// See https://bugs.webkit.org/show_bug.cgi?id=178261
|
35
37
|
//
|
36
38
|
// >> breakpoint-max(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
37
|
-
//
|
39
|
+
// 767.98px
|
38
40
|
@function breakpoint-max($name, $breakpoints: $grid-breakpoints) {
|
39
41
|
$next: breakpoint-next($name, $breakpoints);
|
40
|
-
@return if($next, breakpoint-min($next, $breakpoints) - .
|
42
|
+
@return if($next, breakpoint-min($next, $breakpoints) - .02px, null);
|
41
43
|
}
|
42
44
|
|
43
45
|
// Returns a blank string if smallest breakpoint, otherwise returns the name with a dash infront.
|
@@ -88,11 +90,11 @@
|
|
88
90
|
@content;
|
89
91
|
}
|
90
92
|
} @else if $max == null {
|
91
|
-
@include media-breakpoint-up($lower) {
|
93
|
+
@include media-breakpoint-up($lower, $breakpoints) {
|
92
94
|
@content;
|
93
95
|
}
|
94
96
|
} @else if $min == null {
|
95
|
-
@include media-breakpoint-down($upper) {
|
97
|
+
@include media-breakpoint-down($upper, $breakpoints) {
|
96
98
|
@content;
|
97
99
|
}
|
98
100
|
}
|
@@ -110,11 +112,11 @@
|
|
110
112
|
@content;
|
111
113
|
}
|
112
114
|
} @else if $max == null {
|
113
|
-
@include media-breakpoint-up($name) {
|
115
|
+
@include media-breakpoint-up($name, $breakpoints) {
|
114
116
|
@content;
|
115
117
|
}
|
116
118
|
} @else if $min == null {
|
117
|
-
@include media-breakpoint-down($name) {
|
119
|
+
@include media-breakpoint-down($name, $breakpoints) {
|
118
120
|
@content;
|
119
121
|
}
|
120
122
|
}
|