bootstrap 4.0.0 → 4.1.0
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 might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/Rakefile +2 -0
- data/assets/javascripts/bootstrap-sprockets.js +6 -6
- data/assets/javascripts/bootstrap.js +3075 -3044
- data/assets/javascripts/bootstrap.min.js +2 -2
- data/assets/javascripts/bootstrap/alert.js +5 -5
- data/assets/javascripts/bootstrap/button.js +2 -2
- data/assets/javascripts/bootstrap/carousel.js +13 -11
- data/assets/javascripts/bootstrap/collapse.js +11 -19
- data/assets/javascripts/bootstrap/dropdown.js +34 -16
- data/assets/javascripts/bootstrap/modal.js +27 -24
- data/assets/javascripts/bootstrap/popover.js +7 -5
- data/assets/javascripts/bootstrap/scrollspy.js +6 -4
- data/assets/javascripts/bootstrap/tab.js +5 -5
- data/assets/javascripts/bootstrap/tooltip.js +15 -12
- data/assets/javascripts/bootstrap/util.js +28 -35
- data/assets/stylesheets/_bootstrap-grid.scss +1 -1
- data/assets/stylesheets/_bootstrap-reboot.scss +1 -1
- data/assets/stylesheets/_bootstrap.scss +1 -1
- data/assets/stylesheets/bootstrap/_breadcrumb.scss +9 -6
- data/assets/stylesheets/bootstrap/_button-group.scss +7 -1
- data/assets/stylesheets/bootstrap/_buttons.scss +1 -0
- data/assets/stylesheets/bootstrap/_card.scss +33 -2
- data/assets/stylesheets/bootstrap/_carousel.scss +48 -4
- data/assets/stylesheets/bootstrap/_custom-forms.scss +126 -3
- data/assets/stylesheets/bootstrap/_dropdown.scss +36 -1
- data/assets/stylesheets/bootstrap/_forms.scss +3 -1
- data/assets/stylesheets/bootstrap/_functions.scss +1 -1
- data/assets/stylesheets/bootstrap/_input-group.scss +2 -2
- data/assets/stylesheets/bootstrap/_mixins.scss +0 -1
- data/assets/stylesheets/bootstrap/_modal.scss +2 -2
- data/assets/stylesheets/bootstrap/_navbar.scss +0 -12
- data/assets/stylesheets/bootstrap/_pagination.scss +2 -1
- data/assets/stylesheets/bootstrap/_print.scss +6 -6
- data/assets/stylesheets/bootstrap/_progress.scss +1 -0
- data/assets/stylesheets/bootstrap/_reboot.scss +3 -3
- data/assets/stylesheets/bootstrap/_tables.scss +11 -3
- data/assets/stylesheets/bootstrap/_transitions.scss +4 -18
- data/assets/stylesheets/bootstrap/_utilities.scss +1 -0
- data/assets/stylesheets/bootstrap/_variables.scss +75 -41
- data/assets/stylesheets/bootstrap/mixins/_caret.scss +1 -0
- data/assets/stylesheets/bootstrap/mixins/_forms.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_gradients.scss +7 -7
- data/assets/stylesheets/bootstrap/mixins/_hover.scss +1 -3
- data/assets/stylesheets/bootstrap/mixins/_list-group.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +2 -2
- data/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +1 -3
- data/assets/stylesheets/bootstrap/mixins/_text-hide.scss +2 -0
- data/assets/stylesheets/bootstrap/mixins/_transition.scss +4 -0
- data/assets/stylesheets/bootstrap/utilities/_flex.scss +5 -0
- data/assets/stylesheets/bootstrap/utilities/_position.scss +1 -0
- data/assets/stylesheets/bootstrap/utilities/_shadows.scss +6 -0
- data/assets/stylesheets/bootstrap/utilities/_text.scss +7 -1
- data/lib/bootstrap/version.rb +2 -2
- metadata +3 -3
- data/assets/stylesheets/bootstrap/mixins/_navbar-align.scss +0 -10
@@ -30,7 +30,7 @@ html {
|
|
30
30
|
-webkit-text-size-adjust: 100%; // 4
|
31
31
|
-ms-text-size-adjust: 100%; // 4
|
32
32
|
-ms-overflow-style: scrollbar; // 5
|
33
|
-
-webkit-tap-highlight-color: rgba(
|
33
|
+
-webkit-tap-highlight-color: rgba($black, 0); // 6
|
34
34
|
}
|
35
35
|
|
36
36
|
// IE10+ doesn't honor `<meta name="viewport">` in some cases.
|
@@ -290,7 +290,7 @@ table {
|
|
290
290
|
caption {
|
291
291
|
padding-top: $table-cell-padding;
|
292
292
|
padding-bottom: $table-cell-padding;
|
293
|
-
color: $
|
293
|
+
color: $table-caption-color;
|
294
294
|
text-align: left;
|
295
295
|
caption-side: bottom;
|
296
296
|
}
|
@@ -309,7 +309,7 @@ th {
|
|
309
309
|
label {
|
310
310
|
// Allow labels to use `margin` for spacing.
|
311
311
|
display: inline-block;
|
312
|
-
margin-bottom:
|
312
|
+
margin-bottom: $label-margin-bottom;
|
313
313
|
}
|
314
314
|
|
315
315
|
// Remove the default `border-radius` that macOS Chrome adds.
|
@@ -42,9 +42,9 @@
|
|
42
42
|
}
|
43
43
|
|
44
44
|
|
45
|
-
//
|
45
|
+
// Border versions
|
46
46
|
//
|
47
|
-
// Add borders all around the table and between all the columns.
|
47
|
+
// Add or remove borders all around the table and between all the columns.
|
48
48
|
|
49
49
|
.table-bordered {
|
50
50
|
border: $table-border-width solid $table-border-color;
|
@@ -62,13 +62,21 @@
|
|
62
62
|
}
|
63
63
|
}
|
64
64
|
|
65
|
+
.table-borderless {
|
66
|
+
th,
|
67
|
+
td,
|
68
|
+
thead th,
|
69
|
+
tbody + tbody {
|
70
|
+
border: 0;
|
71
|
+
}
|
72
|
+
}
|
65
73
|
|
66
74
|
// Zebra-striping
|
67
75
|
//
|
68
76
|
// Default zebra-stripe styles (alternating gray and transparent backgrounds)
|
69
77
|
|
70
78
|
.table-striped {
|
71
|
-
tbody tr:nth-of-type(
|
79
|
+
tbody tr:nth-of-type(#{$table-striped-order}) {
|
72
80
|
background-color: $table-accent-bg;
|
73
81
|
}
|
74
82
|
}
|
@@ -1,30 +1,16 @@
|
|
1
1
|
// stylelint-disable selector-no-qualifying-type
|
2
2
|
|
3
3
|
.fade {
|
4
|
-
opacity: 0;
|
5
4
|
@include transition($transition-fade);
|
6
5
|
|
7
|
-
|
8
|
-
opacity:
|
6
|
+
&:not(.show) {
|
7
|
+
opacity: 0;
|
9
8
|
}
|
10
9
|
}
|
11
10
|
|
12
11
|
.collapse {
|
13
|
-
|
14
|
-
|
15
|
-
display: block;
|
16
|
-
}
|
17
|
-
}
|
18
|
-
|
19
|
-
tr {
|
20
|
-
&.collapse.show {
|
21
|
-
display: table-row;
|
22
|
-
}
|
23
|
-
}
|
24
|
-
|
25
|
-
tbody {
|
26
|
-
&.collapse.show {
|
27
|
-
display: table-row-group;
|
12
|
+
&:not(.show) {
|
13
|
+
display: none;
|
28
14
|
}
|
29
15
|
}
|
30
16
|
|
@@ -88,11 +88,11 @@ $theme-colors: map-merge((
|
|
88
88
|
$theme-color-interval: 8% !default;
|
89
89
|
|
90
90
|
// The yiq lightness value that determines when the lightness of color changes from "dark" to "light". Acceptable values are between 0 and 255.
|
91
|
-
$yiq-contrasted-threshold:
|
91
|
+
$yiq-contrasted-threshold: 150 !default;
|
92
92
|
|
93
93
|
// Customize the light and dark text colors for use in our YIQ color contrast function.
|
94
|
-
$yiq-text-dark:
|
95
|
-
$yiq-text-light:
|
94
|
+
$yiq-text-dark: $gray-900 !default;
|
95
|
+
$yiq-text-light: $white !default;
|
96
96
|
|
97
97
|
// Options
|
98
98
|
//
|
@@ -132,7 +132,8 @@ $sizes: map-merge((
|
|
132
132
|
25: 25%,
|
133
133
|
50: 50%,
|
134
134
|
75: 75%,
|
135
|
-
100: 100
|
135
|
+
100: 100%,
|
136
|
+
auto: auto
|
136
137
|
), $sizes);
|
137
138
|
// stylelint-enable
|
138
139
|
|
@@ -211,6 +212,10 @@ $border-radius: .25rem !default;
|
|
211
212
|
$border-radius-lg: .3rem !default;
|
212
213
|
$border-radius-sm: .2rem !default;
|
213
214
|
|
215
|
+
$box-shadow-sm: 0 .125rem .25rem rgba($black, .075) !default;
|
216
|
+
$box-shadow: 0 .5rem 1rem rgba($black, .15) !default;
|
217
|
+
$box-shadow-lg: 0 1rem 3rem rgba($black, .175) !default;
|
218
|
+
|
214
219
|
$component-active-color: $white !default;
|
215
220
|
$component-active-bg: theme-color("primary") !default;
|
216
221
|
|
@@ -317,6 +322,9 @@ $table-dark-hover-bg: rgba($white, .075) !default;
|
|
317
322
|
$table-dark-border-color: lighten($gray-900, 7.5%) !default;
|
318
323
|
$table-dark-color: $body-bg !default;
|
319
324
|
|
325
|
+
$table-striped-order: odd !default;
|
326
|
+
|
327
|
+
$table-caption-color: $text-muted !default;
|
320
328
|
|
321
329
|
// Buttons + Forms
|
322
330
|
//
|
@@ -380,6 +388,8 @@ $btn-transition: color .15s ease-in-out, background-color .15s ease
|
|
380
388
|
|
381
389
|
// Forms
|
382
390
|
|
391
|
+
$label-margin-bottom: .5rem !default;
|
392
|
+
|
383
393
|
$input-padding-y: $input-btn-padding-y !default;
|
384
394
|
$input-padding-x: $input-btn-padding-x !default;
|
385
395
|
$input-line-height: $input-btn-line-height !default;
|
@@ -411,6 +421,7 @@ $input-focus-width: $input-btn-focus-width !default;
|
|
411
421
|
$input-focus-box-shadow: $input-btn-focus-box-shadow !default;
|
412
422
|
|
413
423
|
$input-placeholder-color: $gray-600 !default;
|
424
|
+
$input-plaintext-color: $body-color !default;
|
414
425
|
|
415
426
|
$input-height-border: $input-border-width * 2 !default;
|
416
427
|
|
@@ -449,7 +460,7 @@ $custom-control-indicator-bg-size: 50% 50% !default;
|
|
449
460
|
$custom-control-indicator-box-shadow: inset 0 .25rem .25rem rgba($black, .1) !default;
|
450
461
|
|
451
462
|
$custom-control-indicator-disabled-bg: $gray-200 !default;
|
452
|
-
$custom-control-label-disabled-color:
|
463
|
+
$custom-control-label-disabled-color: $gray-600 !default;
|
453
464
|
|
454
465
|
$custom-control-indicator-checked-color: $component-active-color !default;
|
455
466
|
$custom-control-indicator-checked-bg: $component-active-bg !default;
|
@@ -465,22 +476,22 @@ $custom-control-indicator-active-box-shadow: none !default;
|
|
465
476
|
$custom-checkbox-indicator-border-radius: $border-radius !default;
|
466
477
|
$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;
|
467
478
|
|
468
|
-
$custom-checkbox-indicator-indeterminate-bg:
|
469
|
-
$custom-checkbox-indicator-indeterminate-color:
|
470
|
-
$custom-checkbox-indicator-icon-indeterminate:
|
471
|
-
$custom-checkbox-indicator-indeterminate-box-shadow:
|
479
|
+
$custom-checkbox-indicator-indeterminate-bg: $component-active-bg !default;
|
480
|
+
$custom-checkbox-indicator-indeterminate-color: $custom-control-indicator-checked-color !default;
|
481
|
+
$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;
|
482
|
+
$custom-checkbox-indicator-indeterminate-box-shadow: none !default;
|
472
483
|
|
473
484
|
$custom-radio-indicator-border-radius: 50% !default;
|
474
485
|
$custom-radio-indicator-icon-checked: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='#{$custom-control-indicator-checked-color}'/%3E%3C/svg%3E"), "#", "%23") !default;
|
475
486
|
|
476
487
|
$custom-select-padding-y: .375rem !default;
|
477
|
-
$custom-select-padding-x:
|
488
|
+
$custom-select-padding-x: .75rem !default;
|
478
489
|
$custom-select-height: $input-height !default;
|
479
490
|
$custom-select-indicator-padding: 1rem !default; // Extra padding to account for the presence of the background-image based indicator
|
480
491
|
$custom-select-line-height: $input-btn-line-height !default;
|
481
492
|
$custom-select-color: $input-color !default;
|
482
493
|
$custom-select-disabled-color: $gray-600 !default;
|
483
|
-
$custom-select-bg: $
|
494
|
+
$custom-select-bg: $input-bg !default;
|
484
495
|
$custom-select-disabled-bg: $gray-200 !default;
|
485
496
|
$custom-select-bg-size: 8px 10px !default; // In pixels because image dimensions
|
486
497
|
$custom-select-indicator-color: $gray-800 !default;
|
@@ -498,6 +509,22 @@ $custom-select-height-sm: $input-height-sm !default;
|
|
498
509
|
$custom-select-font-size-lg: 125% !default;
|
499
510
|
$custom-select-height-lg: $input-height-lg !default;
|
500
511
|
|
512
|
+
$custom-range-track-width: 100% !default;
|
513
|
+
$custom-range-track-height: .5rem !default;
|
514
|
+
$custom-range-track-cursor: pointer !default;
|
515
|
+
$custom-range-track-bg: $gray-300 !default;
|
516
|
+
$custom-range-track-border-radius: 1rem !default;
|
517
|
+
$custom-range-track-box-shadow: inset 0 .25rem .25rem rgba($black, .1) !default;
|
518
|
+
|
519
|
+
$custom-range-thumb-width: 1rem !default;
|
520
|
+
$custom-range-thumb-height: $custom-range-thumb-width !default;
|
521
|
+
$custom-range-thumb-bg: $component-active-bg !default;
|
522
|
+
$custom-range-thumb-border: 0 !default;
|
523
|
+
$custom-range-thumb-border-radius: 1rem !default;
|
524
|
+
$custom-range-thumb-box-shadow: 0 .1rem .25rem rgba($black, .1) !default;
|
525
|
+
$custom-range-thumb-focus-box-shadow: 0 0 0 1px $body-bg, $input-btn-focus-box-shadow !default;
|
526
|
+
$custom-range-thumb-active-bg: lighten($component-active-bg, 35%) !default;
|
527
|
+
|
501
528
|
$custom-file-height: $input-height !default;
|
502
529
|
$custom-file-focus-border-color: $input-focus-border-color !default;
|
503
530
|
$custom-file-focus-box-shadow: $input-btn-focus-box-shadow !default;
|
@@ -585,6 +612,9 @@ $nav-pills-border-radius: $border-radius !default;
|
|
585
612
|
$nav-pills-link-active-color: $component-active-color !default;
|
586
613
|
$nav-pills-link-active-bg: $component-active-bg !default;
|
587
614
|
|
615
|
+
$nav-divider-color: $gray-200 !default;
|
616
|
+
$nav-divider-margin-y: ($spacer / 2) !default;
|
617
|
+
|
588
618
|
// Navbar
|
589
619
|
|
590
620
|
$navbar-padding-y: ($spacer / 2) !default;
|
@@ -633,6 +663,7 @@ $pagination-border-width: $border-width !default;
|
|
633
663
|
$pagination-border-color: $gray-300 !default;
|
634
664
|
|
635
665
|
$pagination-focus-box-shadow: $input-btn-focus-box-shadow !default;
|
666
|
+
$pagination-focus-outline: 0 !default;
|
636
667
|
|
637
668
|
$pagination-hover-color: $link-hover-color !default;
|
638
669
|
$pagination-hover-bg: $gray-200 !default;
|
@@ -676,19 +707,19 @@ $card-columns-margin: $card-spacer-y !default;
|
|
676
707
|
|
677
708
|
// Tooltips
|
678
709
|
|
679
|
-
$tooltip-font-size:
|
680
|
-
$tooltip-max-width:
|
681
|
-
$tooltip-color:
|
682
|
-
$tooltip-bg:
|
683
|
-
$tooltip-border-radius:
|
684
|
-
$tooltip-opacity:
|
685
|
-
$tooltip-padding-y:
|
686
|
-
$tooltip-padding-x:
|
687
|
-
$tooltip-margin:
|
710
|
+
$tooltip-font-size: $font-size-sm !default;
|
711
|
+
$tooltip-max-width: 200px !default;
|
712
|
+
$tooltip-color: $white !default;
|
713
|
+
$tooltip-bg: $black !default;
|
714
|
+
$tooltip-border-radius: $border-radius !default;
|
715
|
+
$tooltip-opacity: .9 !default;
|
716
|
+
$tooltip-padding-y: .25rem !default;
|
717
|
+
$tooltip-padding-x: .5rem !default;
|
718
|
+
$tooltip-margin: 0 !default;
|
688
719
|
|
689
|
-
$tooltip-arrow-width:
|
690
|
-
$tooltip-arrow-height:
|
691
|
-
$tooltip-arrow-color:
|
720
|
+
$tooltip-arrow-width: .8rem !default;
|
721
|
+
$tooltip-arrow-height: .4rem !default;
|
722
|
+
$tooltip-arrow-color: $tooltip-bg !default;
|
692
723
|
|
693
724
|
|
694
725
|
// Popovers
|
@@ -734,26 +765,27 @@ $badge-pill-border-radius: 10rem !default;
|
|
734
765
|
// Modals
|
735
766
|
|
736
767
|
// Padding applied to the modal body
|
737
|
-
$modal-inner-padding:
|
768
|
+
$modal-inner-padding: 1rem !default;
|
738
769
|
|
739
|
-
$modal-dialog-margin:
|
740
|
-
$modal-dialog-margin-y-sm-up:
|
770
|
+
$modal-dialog-margin: .5rem !default;
|
771
|
+
$modal-dialog-margin-y-sm-up: 1.75rem !default;
|
741
772
|
|
742
773
|
$modal-title-line-height: $line-height-base !default;
|
743
774
|
|
744
|
-
$modal-content-bg:
|
745
|
-
$modal-content-border-color:
|
746
|
-
$modal-content-border-width:
|
747
|
-
$modal-content-
|
748
|
-
$modal-content-box-shadow-
|
749
|
-
|
750
|
-
|
751
|
-
$modal-backdrop-
|
752
|
-
$modal-
|
753
|
-
$modal-
|
754
|
-
$modal-
|
755
|
-
$modal-
|
756
|
-
$modal-header-
|
775
|
+
$modal-content-bg: $white !default;
|
776
|
+
$modal-content-border-color: rgba($black, .2) !default;
|
777
|
+
$modal-content-border-width: $border-width !default;
|
778
|
+
$modal-content-border-radius: $border-radius-lg !default;
|
779
|
+
$modal-content-box-shadow-xs: 0 .25rem .5rem rgba($black, .5) !default;
|
780
|
+
$modal-content-box-shadow-sm-up: 0 .5rem 1rem rgba($black, .5) !default;
|
781
|
+
|
782
|
+
$modal-backdrop-bg: $black !default;
|
783
|
+
$modal-backdrop-opacity: .5 !default;
|
784
|
+
$modal-header-border-color: $gray-200 !default;
|
785
|
+
$modal-footer-border-color: $modal-header-border-color !default;
|
786
|
+
$modal-header-border-width: $modal-content-border-width !default;
|
787
|
+
$modal-footer-border-width: $modal-header-border-width !default;
|
788
|
+
$modal-header-padding: 1rem !default;
|
757
789
|
|
758
790
|
$modal-lg: 800px !default;
|
759
791
|
$modal-md: 500px !default;
|
@@ -842,7 +874,9 @@ $breadcrumb-margin-bottom: 1rem !default;
|
|
842
874
|
$breadcrumb-bg: $gray-200 !default;
|
843
875
|
$breadcrumb-divider-color: $gray-600 !default;
|
844
876
|
$breadcrumb-active-color: $gray-600 !default;
|
845
|
-
$breadcrumb-divider: "/" !default;
|
877
|
+
$breadcrumb-divider: quote("/") !default;
|
878
|
+
|
879
|
+
$breadcrumb-border-radius: $border-radius !default;
|
846
880
|
|
847
881
|
|
848
882
|
// Carousel
|
@@ -864,7 +898,7 @@ $carousel-control-icon-width: 20px !default;
|
|
864
898
|
$carousel-control-prev-icon-bg: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='#{$carousel-control-color}' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E"), "#", "%23") !default;
|
865
899
|
$carousel-control-next-icon-bg: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='#{$carousel-control-color}' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E"), "#", "%23") !default;
|
866
900
|
|
867
|
-
$carousel-transition: transform .6s ease !default;
|
901
|
+
$carousel-transition: transform .6s ease !default; // Define transform transition first if using multiple transitons (e.g., `transform 2s ease, opacity .5s ease-out`)
|
868
902
|
|
869
903
|
|
870
904
|
// Close
|
@@ -11,7 +11,7 @@
|
|
11
11
|
// Horizontal gradient, from left to right
|
12
12
|
//
|
13
13
|
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
14
|
-
@mixin gradient-x($start-color:
|
14
|
+
@mixin gradient-x($start-color: $gray-700, $end-color: $gray-800, $start-percent: 0%, $end-percent: 100%) {
|
15
15
|
background-image: linear-gradient(to right, $start-color $start-percent, $end-color $end-percent);
|
16
16
|
background-repeat: repeat-x;
|
17
17
|
}
|
@@ -19,27 +19,27 @@
|
|
19
19
|
// Vertical gradient, from top to bottom
|
20
20
|
//
|
21
21
|
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
22
|
-
@mixin gradient-y($start-color:
|
22
|
+
@mixin gradient-y($start-color: $gray-700, $end-color: $gray-800, $start-percent: 0%, $end-percent: 100%) {
|
23
23
|
background-image: linear-gradient(to bottom, $start-color $start-percent, $end-color $end-percent);
|
24
24
|
background-repeat: repeat-x;
|
25
25
|
}
|
26
26
|
|
27
|
-
@mixin gradient-directional($start-color:
|
27
|
+
@mixin gradient-directional($start-color: $gray-700, $end-color: $gray-800, $deg: 45deg) {
|
28
28
|
background-image: linear-gradient($deg, $start-color, $end-color);
|
29
29
|
background-repeat: repeat-x;
|
30
30
|
}
|
31
|
-
@mixin gradient-x-three-colors($start-color:
|
31
|
+
@mixin gradient-x-three-colors($start-color: $blue, $mid-color: $purple, $color-stop: 50%, $end-color: $red) {
|
32
32
|
background-image: linear-gradient(to right, $start-color, $mid-color $color-stop, $end-color);
|
33
33
|
background-repeat: no-repeat;
|
34
34
|
}
|
35
|
-
@mixin gradient-y-three-colors($start-color:
|
35
|
+
@mixin gradient-y-three-colors($start-color: $blue, $mid-color: $purple, $color-stop: 50%, $end-color: $red) {
|
36
36
|
background-image: linear-gradient($start-color, $mid-color $color-stop, $end-color);
|
37
37
|
background-repeat: no-repeat;
|
38
38
|
}
|
39
|
-
@mixin gradient-radial($inner-color:
|
39
|
+
@mixin gradient-radial($inner-color: $gray-700, $outer-color: $gray-800) {
|
40
40
|
background-image: radial-gradient(circle, $inner-color, $outer-color);
|
41
41
|
background-repeat: no-repeat;
|
42
42
|
}
|
43
|
-
@mixin gradient-striped($color: rgba(
|
43
|
+
@mixin gradient-striped($color: rgba($white, .15), $angle: 45deg) {
|
44
44
|
background-image: linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
|
45
45
|
}
|
@@ -1,9 +1,7 @@
|
|
1
|
-
// stylelint-disable indentation
|
2
|
-
|
3
1
|
// Hover mixin and `$enable-hover-media-query` are deprecated.
|
4
2
|
//
|
5
3
|
// Origally added during our alphas and maintained during betas, this mixin was
|
6
|
-
// designed to prevent `:hover` stickiness on iOS
|
4
|
+
// designed to prevent `:hover` stickiness on iOS-an issue where hover styles
|
7
5
|
// would persist after initial touch.
|
8
6
|
//
|
9
7
|
// For backward compatibility, we've kept these mixins and updated them to
|
@@ -2,9 +2,9 @@
|
|
2
2
|
//
|
3
3
|
// Dividers (basically an hr) within dropdowns and nav lists
|
4
4
|
|
5
|
-
@mixin nav-divider($color:
|
5
|
+
@mixin nav-divider($color: $nav-divider-color, $margin-y: $nav-divider-margin-y) {
|
6
6
|
height: 0;
|
7
|
-
margin:
|
7
|
+
margin: $margin-y 0;
|
8
8
|
overflow: hidden;
|
9
9
|
border-top: 1px solid $color;
|
10
10
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
// Only display content to screen readers
|
2
2
|
//
|
3
|
-
// See:
|
3
|
+
// See: https://a11yproject.com/posts/how-to-hide-content/
|
4
4
|
// See: https://hugogiraudel.com/2016/10/13/css-hide-and-seek/
|
5
5
|
|
6
6
|
@mixin sr-only {
|
@@ -11,7 +11,6 @@
|
|
11
11
|
overflow: hidden;
|
12
12
|
clip: rect(0, 0, 0, 0);
|
13
13
|
white-space: nowrap;
|
14
|
-
clip-path: inset(50%);
|
15
14
|
border: 0;
|
16
15
|
}
|
17
16
|
|
@@ -30,6 +29,5 @@
|
|
30
29
|
overflow: visible;
|
31
30
|
clip: auto;
|
32
31
|
white-space: normal;
|
33
|
-
clip-path: none;
|
34
32
|
}
|
35
33
|
}
|