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.

Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +1 -1
  4. data/Rakefile +2 -0
  5. data/assets/javascripts/bootstrap-sprockets.js +6 -6
  6. data/assets/javascripts/bootstrap.js +3075 -3044
  7. data/assets/javascripts/bootstrap.min.js +2 -2
  8. data/assets/javascripts/bootstrap/alert.js +5 -5
  9. data/assets/javascripts/bootstrap/button.js +2 -2
  10. data/assets/javascripts/bootstrap/carousel.js +13 -11
  11. data/assets/javascripts/bootstrap/collapse.js +11 -19
  12. data/assets/javascripts/bootstrap/dropdown.js +34 -16
  13. data/assets/javascripts/bootstrap/modal.js +27 -24
  14. data/assets/javascripts/bootstrap/popover.js +7 -5
  15. data/assets/javascripts/bootstrap/scrollspy.js +6 -4
  16. data/assets/javascripts/bootstrap/tab.js +5 -5
  17. data/assets/javascripts/bootstrap/tooltip.js +15 -12
  18. data/assets/javascripts/bootstrap/util.js +28 -35
  19. data/assets/stylesheets/_bootstrap-grid.scss +1 -1
  20. data/assets/stylesheets/_bootstrap-reboot.scss +1 -1
  21. data/assets/stylesheets/_bootstrap.scss +1 -1
  22. data/assets/stylesheets/bootstrap/_breadcrumb.scss +9 -6
  23. data/assets/stylesheets/bootstrap/_button-group.scss +7 -1
  24. data/assets/stylesheets/bootstrap/_buttons.scss +1 -0
  25. data/assets/stylesheets/bootstrap/_card.scss +33 -2
  26. data/assets/stylesheets/bootstrap/_carousel.scss +48 -4
  27. data/assets/stylesheets/bootstrap/_custom-forms.scss +126 -3
  28. data/assets/stylesheets/bootstrap/_dropdown.scss +36 -1
  29. data/assets/stylesheets/bootstrap/_forms.scss +3 -1
  30. data/assets/stylesheets/bootstrap/_functions.scss +1 -1
  31. data/assets/stylesheets/bootstrap/_input-group.scss +2 -2
  32. data/assets/stylesheets/bootstrap/_mixins.scss +0 -1
  33. data/assets/stylesheets/bootstrap/_modal.scss +2 -2
  34. data/assets/stylesheets/bootstrap/_navbar.scss +0 -12
  35. data/assets/stylesheets/bootstrap/_pagination.scss +2 -1
  36. data/assets/stylesheets/bootstrap/_print.scss +6 -6
  37. data/assets/stylesheets/bootstrap/_progress.scss +1 -0
  38. data/assets/stylesheets/bootstrap/_reboot.scss +3 -3
  39. data/assets/stylesheets/bootstrap/_tables.scss +11 -3
  40. data/assets/stylesheets/bootstrap/_transitions.scss +4 -18
  41. data/assets/stylesheets/bootstrap/_utilities.scss +1 -0
  42. data/assets/stylesheets/bootstrap/_variables.scss +75 -41
  43. data/assets/stylesheets/bootstrap/mixins/_caret.scss +1 -0
  44. data/assets/stylesheets/bootstrap/mixins/_forms.scss +1 -1
  45. data/assets/stylesheets/bootstrap/mixins/_gradients.scss +7 -7
  46. data/assets/stylesheets/bootstrap/mixins/_hover.scss +1 -3
  47. data/assets/stylesheets/bootstrap/mixins/_list-group.scss +1 -1
  48. data/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +2 -2
  49. data/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +1 -3
  50. data/assets/stylesheets/bootstrap/mixins/_text-hide.scss +2 -0
  51. data/assets/stylesheets/bootstrap/mixins/_transition.scss +4 -0
  52. data/assets/stylesheets/bootstrap/utilities/_flex.scss +5 -0
  53. data/assets/stylesheets/bootstrap/utilities/_position.scss +1 -0
  54. data/assets/stylesheets/bootstrap/utilities/_shadows.scss +6 -0
  55. data/assets/stylesheets/bootstrap/utilities/_text.scss +7 -1
  56. data/lib/bootstrap/version.rb +2 -2
  57. metadata +3 -3
  58. data/assets/stylesheets/bootstrap/mixins/_navbar-align.scss +0 -10
@@ -19,6 +19,7 @@
19
19
  justify-content: center;
20
20
  color: $progress-bar-color;
21
21
  text-align: center;
22
+ white-space: nowrap;
22
23
  background-color: $progress-bar-bg;
23
24
  @include transition($progress-bar-transition);
24
25
  }
@@ -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(0, 0, 0, 0); // 6
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: $text-muted;
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: .5rem;
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
- // Bordered version
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(odd) {
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
- &.show {
8
- opacity: 1;
6
+ &:not(.show) {
7
+ opacity: 0;
9
8
  }
10
9
  }
11
10
 
12
11
  .collapse {
13
- display: none;
14
- &.show {
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
 
@@ -8,6 +8,7 @@
8
8
  @import "utilities/float";
9
9
  @import "utilities/position";
10
10
  @import "utilities/screenreaders";
11
+ @import "utilities/shadows";
11
12
  @import "utilities/sizing";
12
13
  @import "utilities/spacing";
13
14
  @import "utilities/text";
@@ -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: 150 !default;
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: $gray-900 !default;
95
- $yiq-text-light: $white !default;
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: $gray-600 !default;
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: $component-active-bg !default;
469
- $custom-checkbox-indicator-indeterminate-color: $custom-control-indicator-checked-color !default;
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;
471
- $custom-checkbox-indicator-indeterminate-box-shadow: none !default;
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: .75rem !default;
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: $white !default;
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: $font-size-sm !default;
680
- $tooltip-max-width: 200px !default;
681
- $tooltip-color: $white !default;
682
- $tooltip-bg: $black !default;
683
- $tooltip-border-radius: $border-radius !default;
684
- $tooltip-opacity: .9 !default;
685
- $tooltip-padding-y: .25rem !default;
686
- $tooltip-padding-x: .5rem !default;
687
- $tooltip-margin: 0 !default;
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: .8rem !default;
690
- $tooltip-arrow-height: .4rem !default;
691
- $tooltip-arrow-color: $tooltip-bg !default;
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: 1rem !default;
768
+ $modal-inner-padding: 1rem !default;
738
769
 
739
- $modal-dialog-margin: .5rem !default;
740
- $modal-dialog-margin-y-sm-up: 1.75rem !default;
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: $white !default;
745
- $modal-content-border-color: rgba($black, .2) !default;
746
- $modal-content-border-width: $border-width !default;
747
- $modal-content-box-shadow-xs: 0 .25rem .5rem rgba($black, .5) !default;
748
- $modal-content-box-shadow-sm-up: 0 .5rem 1rem rgba($black, .5) !default;
749
-
750
- $modal-backdrop-bg: $black !default;
751
- $modal-backdrop-opacity: .5 !default;
752
- $modal-header-border-color: $gray-200 !default;
753
- $modal-footer-border-color: $modal-header-border-color !default;
754
- $modal-header-border-width: $modal-content-border-width !default;
755
- $modal-footer-border-width: $modal-header-border-width !default;
756
- $modal-header-padding: 1rem !default;
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
@@ -14,6 +14,7 @@
14
14
 
15
15
  @mixin caret-right {
16
16
  border-top: $caret-width solid transparent;
17
+ border-right: 0;
17
18
  border-bottom: $caret-width solid transparent;
18
19
  border-left: $caret-width solid;
19
20
  }
@@ -45,7 +45,7 @@
45
45
  margin-top: .1rem;
46
46
  font-size: .875rem;
47
47
  line-height: 1;
48
- color: #fff;
48
+ color: $white;
49
49
  background-color: rgba($color, .8);
50
50
  border-radius: .2rem;
51
51
  }
@@ -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: #555, $end-color: #333, $start-percent: 0%, $end-percent: 100%) {
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: #555, $end-color: #333, $start-percent: 0%, $end-percent: 100%) {
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: #555, $end-color: #333, $deg: 45deg) {
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: #00b3ee, $mid-color: #7a43b6, $color-stop: 50%, $end-color: #c3325f) {
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: #00b3ee, $mid-color: #7a43b6, $color-stop: 50%, $end-color: #c3325f) {
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: #555, $outer-color: #333) {
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(255,255,255,.15), $angle: 45deg) {
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 iOSan issue where hover styles
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
@@ -12,7 +12,7 @@
12
12
  }
13
13
 
14
14
  &.active {
15
- color: #fff;
15
+ color: $white;
16
16
  background-color: $color;
17
17
  border-color: $color;
18
18
  }
@@ -2,9 +2,9 @@
2
2
  //
3
3
  // Dividers (basically an hr) within dropdowns and nav lists
4
4
 
5
- @mixin nav-divider($color: #e5e5e5) {
5
+ @mixin nav-divider($color: $nav-divider-color, $margin-y: $nav-divider-margin-y) {
6
6
  height: 0;
7
- margin: ($spacer / 2) 0;
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: http://a11yproject.com/posts/how-to-hide-content/
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
  }