administrate-bootstrap-theme 1.0.6 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/administrate-bootstrap-theme/bootstrap.bundle.js +2503 -3001
  3. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_accordion.scss +73 -33
  4. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_alert.scss +25 -14
  5. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_badge.scss +14 -5
  6. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_breadcrumb.scss +22 -10
  7. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_button-group.scss +6 -3
  8. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_buttons.scss +133 -28
  9. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_card.scss +60 -37
  10. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_carousel.scss +22 -15
  11. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_close.scss +33 -10
  12. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_containers.scss +1 -1
  13. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_dropdown.scss +86 -76
  14. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_functions.scss +10 -10
  15. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_grid.scss +9 -3
  16. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_helpers.scss +3 -0
  17. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_list-group.scss +60 -37
  18. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_maps.scss +174 -0
  19. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_mixins.scss +1 -2
  20. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_modal.scss +71 -44
  21. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_nav.scss +86 -28
  22. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_navbar.scss +101 -147
  23. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_offcanvas.scss +121 -61
  24. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_pagination.scss +66 -21
  25. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_placeholders.scss +1 -1
  26. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_popover.scss +90 -52
  27. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_progress.scss +30 -10
  28. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_reboot.scss +31 -45
  29. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_root.scss +155 -22
  30. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_spinners.scss +38 -22
  31. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_tables.scss +40 -24
  32. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_toasts.scss +38 -16
  33. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_tooltip.scss +60 -56
  34. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_type.scss +2 -0
  35. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_utilities.scss +209 -33
  36. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_variables-dark.scss +87 -0
  37. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_variables.scss +404 -294
  38. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/bootstrap-grid.scss +4 -9
  39. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/bootstrap-reboot.scss +4 -7
  40. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/bootstrap-utilities.scss +7 -6
  41. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/bootstrap.scss +5 -6
  42. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_floating-labels.scss +37 -5
  43. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_form-check.scss +51 -14
  44. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_form-control.scss +36 -41
  45. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_form-range.scss +3 -3
  46. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_form-select.scss +12 -4
  47. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_input-group.scss +20 -9
  48. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_color-bg.scss +7 -0
  49. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_colored-links.scss +20 -2
  50. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_focus-ring.scss +5 -0
  51. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_icon-link.scss +25 -0
  52. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_position.scss +7 -1
  53. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_ratio.scss +2 -2
  54. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_vr.scss +2 -2
  55. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_alert.scss +11 -4
  56. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_banner.scss +7 -0
  57. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_breakpoints.scss +8 -8
  58. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_buttons.scss +32 -95
  59. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_caret.scss +30 -25
  60. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_color-mode.scss +21 -0
  61. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_container.scss +4 -2
  62. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_forms.scss +38 -19
  63. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_gradients.scss +1 -1
  64. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_grid.scss +14 -14
  65. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_list-group.scss +2 -0
  66. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_pagination.scss +4 -25
  67. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_reset-text.scss +1 -1
  68. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_table-variants.scss +12 -9
  69. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_utilities.scss +14 -6
  70. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_visually-hidden.scss +5 -1
  71. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/vendor/_rfs.scss +23 -29
  72. data/app/assets/stylesheets/administrate-bootstrap-theme/components/_content_body.scss +21 -7
  73. data/app/assets/stylesheets/administrate-bootstrap-theme/components/_navigation.scss +4 -0
  74. data/app/assets/stylesheets/administrate-bootstrap-theme/components/_pagination.scss +11 -3
  75. data/lib/administrate-bootstrap-theme/version.rb +2 -2
  76. data/package.json +2 -2
  77. metadata +24 -3
@@ -1,17 +1,119 @@
1
- .offcanvas {
2
- position: fixed;
3
- bottom: 0;
4
- z-index: $zindex-offcanvas;
5
- display: flex;
6
- flex-direction: column;
7
- max-width: 100%;
8
- color: $offcanvas-color;
9
- visibility: hidden;
10
- background-color: $offcanvas-bg-color;
11
- background-clip: padding-box;
12
- outline: 0;
13
- @include box-shadow($offcanvas-box-shadow);
14
- @include transition(transform $offcanvas-transition-duration ease-in-out);
1
+ // stylelint-disable function-disallowed-list
2
+
3
+ %offcanvas-css-vars {
4
+ // scss-docs-start offcanvas-css-vars
5
+ --#{$prefix}offcanvas-zindex: #{$zindex-offcanvas};
6
+ --#{$prefix}offcanvas-width: #{$offcanvas-horizontal-width};
7
+ --#{$prefix}offcanvas-height: #{$offcanvas-vertical-height};
8
+ --#{$prefix}offcanvas-padding-x: #{$offcanvas-padding-x};
9
+ --#{$prefix}offcanvas-padding-y: #{$offcanvas-padding-y};
10
+ --#{$prefix}offcanvas-color: #{$offcanvas-color};
11
+ --#{$prefix}offcanvas-bg: #{$offcanvas-bg-color};
12
+ --#{$prefix}offcanvas-border-width: #{$offcanvas-border-width};
13
+ --#{$prefix}offcanvas-border-color: #{$offcanvas-border-color};
14
+ --#{$prefix}offcanvas-box-shadow: #{$offcanvas-box-shadow};
15
+ --#{$prefix}offcanvas-transition: #{transform $offcanvas-transition-duration ease-in-out};
16
+ --#{$prefix}offcanvas-title-line-height: #{$offcanvas-title-line-height};
17
+ // scss-docs-end offcanvas-css-vars
18
+ }
19
+
20
+ @each $breakpoint in map-keys($grid-breakpoints) {
21
+ $next: breakpoint-next($breakpoint, $grid-breakpoints);
22
+ $infix: breakpoint-infix($next, $grid-breakpoints);
23
+
24
+ .offcanvas#{$infix} {
25
+ @extend %offcanvas-css-vars;
26
+ }
27
+ }
28
+
29
+ @each $breakpoint in map-keys($grid-breakpoints) {
30
+ $next: breakpoint-next($breakpoint, $grid-breakpoints);
31
+ $infix: breakpoint-infix($next, $grid-breakpoints);
32
+
33
+ .offcanvas#{$infix} {
34
+ @include media-breakpoint-down($next) {
35
+ position: fixed;
36
+ bottom: 0;
37
+ z-index: var(--#{$prefix}offcanvas-zindex);
38
+ display: flex;
39
+ flex-direction: column;
40
+ max-width: 100%;
41
+ color: var(--#{$prefix}offcanvas-color);
42
+ visibility: hidden;
43
+ background-color: var(--#{$prefix}offcanvas-bg);
44
+ background-clip: padding-box;
45
+ outline: 0;
46
+ @include box-shadow(var(--#{$prefix}offcanvas-box-shadow));
47
+ @include transition(var(--#{$prefix}offcanvas-transition));
48
+
49
+ &.offcanvas-start {
50
+ top: 0;
51
+ left: 0;
52
+ width: var(--#{$prefix}offcanvas-width);
53
+ border-right: var(--#{$prefix}offcanvas-border-width) solid var(--#{$prefix}offcanvas-border-color);
54
+ transform: translateX(-100%);
55
+ }
56
+
57
+ &.offcanvas-end {
58
+ top: 0;
59
+ right: 0;
60
+ width: var(--#{$prefix}offcanvas-width);
61
+ border-left: var(--#{$prefix}offcanvas-border-width) solid var(--#{$prefix}offcanvas-border-color);
62
+ transform: translateX(100%);
63
+ }
64
+
65
+ &.offcanvas-top {
66
+ top: 0;
67
+ right: 0;
68
+ left: 0;
69
+ height: var(--#{$prefix}offcanvas-height);
70
+ max-height: 100%;
71
+ border-bottom: var(--#{$prefix}offcanvas-border-width) solid var(--#{$prefix}offcanvas-border-color);
72
+ transform: translateY(-100%);
73
+ }
74
+
75
+ &.offcanvas-bottom {
76
+ right: 0;
77
+ left: 0;
78
+ height: var(--#{$prefix}offcanvas-height);
79
+ max-height: 100%;
80
+ border-top: var(--#{$prefix}offcanvas-border-width) solid var(--#{$prefix}offcanvas-border-color);
81
+ transform: translateY(100%);
82
+ }
83
+
84
+ &.showing,
85
+ &.show:not(.hiding) {
86
+ transform: none;
87
+ }
88
+
89
+ &.showing,
90
+ &.hiding,
91
+ &.show {
92
+ visibility: visible;
93
+ }
94
+ }
95
+
96
+ @if not ($infix == "") {
97
+ @include media-breakpoint-up($next) {
98
+ --#{$prefix}offcanvas-height: auto;
99
+ --#{$prefix}offcanvas-border-width: 0;
100
+ background-color: transparent !important; // stylelint-disable-line declaration-no-important
101
+
102
+ .offcanvas-header {
103
+ display: none;
104
+ }
105
+
106
+ .offcanvas-body {
107
+ display: flex;
108
+ flex-grow: 0;
109
+ padding: 0;
110
+ overflow-y: visible;
111
+ // Reset `background-color` in case `.bg-*` classes are used in offcanvas
112
+ background-color: transparent !important; // stylelint-disable-line declaration-no-important
113
+ }
114
+ }
115
+ }
116
+ }
15
117
  }
16
118
 
17
119
  .offcanvas-backdrop {
@@ -21,63 +123,21 @@
21
123
  .offcanvas-header {
22
124
  display: flex;
23
125
  align-items: center;
24
- justify-content: space-between;
25
- padding: $offcanvas-padding-y $offcanvas-padding-x;
126
+ padding: var(--#{$prefix}offcanvas-padding-y) var(--#{$prefix}offcanvas-padding-x);
26
127
 
27
128
  .btn-close {
28
- padding: ($offcanvas-padding-y * .5) ($offcanvas-padding-x * .5);
29
- margin-top: $offcanvas-padding-y * -.5;
30
- margin-right: $offcanvas-padding-x * -.5;
31
- margin-bottom: $offcanvas-padding-y * -.5;
129
+ padding: calc(var(--#{$prefix}offcanvas-padding-y) * .5) calc(var(--#{$prefix}offcanvas-padding-x) * .5);
130
+ margin: calc(-.5 * var(--#{$prefix}offcanvas-padding-y)) calc(-.5 * var(--#{$prefix}offcanvas-padding-x)) calc(-.5 * var(--#{$prefix}offcanvas-padding-y)) auto;
32
131
  }
33
132
  }
34
133
 
35
134
  .offcanvas-title {
36
135
  margin-bottom: 0;
37
- line-height: $offcanvas-title-line-height;
136
+ line-height: var(--#{$prefix}offcanvas-title-line-height);
38
137
  }
39
138
 
40
139
  .offcanvas-body {
41
140
  flex-grow: 1;
42
- padding: $offcanvas-padding-y $offcanvas-padding-x;
141
+ padding: var(--#{$prefix}offcanvas-padding-y) var(--#{$prefix}offcanvas-padding-x);
43
142
  overflow-y: auto;
44
143
  }
45
-
46
- .offcanvas-start {
47
- top: 0;
48
- left: 0;
49
- width: $offcanvas-horizontal-width;
50
- border-right: $offcanvas-border-width solid $offcanvas-border-color;
51
- transform: translateX(-100%);
52
- }
53
-
54
- .offcanvas-end {
55
- top: 0;
56
- right: 0;
57
- width: $offcanvas-horizontal-width;
58
- border-left: $offcanvas-border-width solid $offcanvas-border-color;
59
- transform: translateX(100%);
60
- }
61
-
62
- .offcanvas-top {
63
- top: 0;
64
- right: 0;
65
- left: 0;
66
- height: $offcanvas-vertical-height;
67
- max-height: 100%;
68
- border-bottom: $offcanvas-border-width solid $offcanvas-border-color;
69
- transform: translateY(-100%);
70
- }
71
-
72
- .offcanvas-bottom {
73
- right: 0;
74
- left: 0;
75
- height: $offcanvas-vertical-height;
76
- max-height: 100%;
77
- border-top: $offcanvas-border-width solid $offcanvas-border-color;
78
- transform: translateY(100%);
79
- }
80
-
81
- .offcanvas.show {
82
- transform: none;
83
- }
@@ -1,4 +1,27 @@
1
1
  .pagination {
2
+ // scss-docs-start pagination-css-vars
3
+ --#{$prefix}pagination-padding-x: #{$pagination-padding-x};
4
+ --#{$prefix}pagination-padding-y: #{$pagination-padding-y};
5
+ @include rfs($pagination-font-size, --#{$prefix}pagination-font-size);
6
+ --#{$prefix}pagination-color: #{$pagination-color};
7
+ --#{$prefix}pagination-bg: #{$pagination-bg};
8
+ --#{$prefix}pagination-border-width: #{$pagination-border-width};
9
+ --#{$prefix}pagination-border-color: #{$pagination-border-color};
10
+ --#{$prefix}pagination-border-radius: #{$pagination-border-radius};
11
+ --#{$prefix}pagination-hover-color: #{$pagination-hover-color};
12
+ --#{$prefix}pagination-hover-bg: #{$pagination-hover-bg};
13
+ --#{$prefix}pagination-hover-border-color: #{$pagination-hover-border-color};
14
+ --#{$prefix}pagination-focus-color: #{$pagination-focus-color};
15
+ --#{$prefix}pagination-focus-bg: #{$pagination-focus-bg};
16
+ --#{$prefix}pagination-focus-box-shadow: #{$pagination-focus-box-shadow};
17
+ --#{$prefix}pagination-active-color: #{$pagination-active-color};
18
+ --#{$prefix}pagination-active-bg: #{$pagination-active-bg};
19
+ --#{$prefix}pagination-active-border-color: #{$pagination-active-border-color};
20
+ --#{$prefix}pagination-disabled-color: #{$pagination-disabled-color};
21
+ --#{$prefix}pagination-disabled-bg: #{$pagination-disabled-bg};
22
+ --#{$prefix}pagination-disabled-border-color: #{$pagination-disabled-border-color};
23
+ // scss-docs-end pagination-css-vars
24
+
2
25
  display: flex;
3
26
  @include list-unstyled();
4
27
  }
@@ -6,26 +29,44 @@
6
29
  .page-link {
7
30
  position: relative;
8
31
  display: block;
9
- color: $pagination-color;
32
+ padding: var(--#{$prefix}pagination-padding-y) var(--#{$prefix}pagination-padding-x);
33
+ @include font-size(var(--#{$prefix}pagination-font-size));
34
+ color: var(--#{$prefix}pagination-color);
10
35
  text-decoration: if($link-decoration == none, null, none);
11
- background-color: $pagination-bg;
12
- border: $pagination-border-width solid $pagination-border-color;
36
+ background-color: var(--#{$prefix}pagination-bg);
37
+ border: var(--#{$prefix}pagination-border-width) solid var(--#{$prefix}pagination-border-color);
13
38
  @include transition($pagination-transition);
14
39
 
15
40
  &:hover {
16
41
  z-index: 2;
17
- color: $pagination-hover-color;
42
+ color: var(--#{$prefix}pagination-hover-color);
18
43
  text-decoration: if($link-hover-decoration == underline, none, null);
19
- background-color: $pagination-hover-bg;
20
- border-color: $pagination-hover-border-color;
44
+ background-color: var(--#{$prefix}pagination-hover-bg);
45
+ border-color: var(--#{$prefix}pagination-hover-border-color);
21
46
  }
22
47
 
23
48
  &:focus {
24
49
  z-index: 3;
25
- color: $pagination-focus-color;
26
- background-color: $pagination-focus-bg;
50
+ color: var(--#{$prefix}pagination-focus-color);
51
+ background-color: var(--#{$prefix}pagination-focus-bg);
27
52
  outline: $pagination-focus-outline;
28
- box-shadow: $pagination-focus-box-shadow;
53
+ box-shadow: var(--#{$prefix}pagination-focus-box-shadow);
54
+ }
55
+
56
+ &.active,
57
+ .active > & {
58
+ z-index: 3;
59
+ color: var(--#{$prefix}pagination-active-color);
60
+ @include gradient-bg(var(--#{$prefix}pagination-active-bg));
61
+ border-color: var(--#{$prefix}pagination-active-border-color);
62
+ }
63
+
64
+ &.disabled,
65
+ .disabled > & {
66
+ color: var(--#{$prefix}pagination-disabled-color);
67
+ pointer-events: none;
68
+ background-color: var(--#{$prefix}pagination-disabled-bg);
69
+ border-color: var(--#{$prefix}pagination-disabled-border-color);
29
70
  }
30
71
  }
31
72
 
@@ -34,18 +75,23 @@
34
75
  margin-left: $pagination-margin-start;
35
76
  }
36
77
 
37
- &.active .page-link {
38
- z-index: 3;
39
- color: $pagination-active-color;
40
- @include gradient-bg($pagination-active-bg);
41
- border-color: $pagination-active-border-color;
42
- }
78
+ @if $pagination-margin-start == calc(#{$pagination-border-width} * -1) {
79
+ &:first-child {
80
+ .page-link {
81
+ @include border-start-radius(var(--#{$prefix}pagination-border-radius));
82
+ }
83
+ }
43
84
 
44
- &.disabled .page-link {
45
- color: $pagination-disabled-color;
46
- pointer-events: none;
47
- background-color: $pagination-disabled-bg;
48
- border-color: $pagination-disabled-border-color;
85
+ &:last-child {
86
+ .page-link {
87
+ @include border-end-radius(var(--#{$prefix}pagination-border-radius));
88
+ }
89
+ }
90
+ } @else {
91
+ // Add border-radius to all pageLinks in case they have left margin
92
+ .page-link {
93
+ @include border-radius(var(--#{$prefix}pagination-border-radius));
94
+ }
49
95
  }
50
96
  }
51
97
 
@@ -53,7 +99,6 @@
53
99
  //
54
100
  // Sizing
55
101
  //
56
- @include pagination-size($pagination-padding-y, $pagination-padding-x, null, $pagination-border-radius);
57
102
 
58
103
  .pagination-lg {
59
104
  @include pagination-size($pagination-padding-y-lg, $pagination-padding-x-lg, $font-size-lg, $pagination-border-radius-lg);
@@ -3,7 +3,7 @@
3
3
  min-height: 1em;
4
4
  vertical-align: middle;
5
5
  cursor: wait;
6
- background-color: currentColor;
6
+ background-color: currentcolor;
7
7
  opacity: $placeholder-opacity-max;
8
8
 
9
9
  &.btn::before {
@@ -1,27 +1,46 @@
1
1
  .popover {
2
- position: absolute;
3
- top: 0;
4
- left: 0 #{"/* rtl:ignore */"};
5
- z-index: $zindex-popover;
2
+ // scss-docs-start popover-css-vars
3
+ --#{$prefix}popover-zindex: #{$zindex-popover};
4
+ --#{$prefix}popover-max-width: #{$popover-max-width};
5
+ @include rfs($popover-font-size, --#{$prefix}popover-font-size);
6
+ --#{$prefix}popover-bg: #{$popover-bg};
7
+ --#{$prefix}popover-border-width: #{$popover-border-width};
8
+ --#{$prefix}popover-border-color: #{$popover-border-color};
9
+ --#{$prefix}popover-border-radius: #{$popover-border-radius};
10
+ --#{$prefix}popover-inner-border-radius: #{$popover-inner-border-radius};
11
+ --#{$prefix}popover-box-shadow: #{$popover-box-shadow};
12
+ --#{$prefix}popover-header-padding-x: #{$popover-header-padding-x};
13
+ --#{$prefix}popover-header-padding-y: #{$popover-header-padding-y};
14
+ @include rfs($popover-header-font-size, --#{$prefix}popover-header-font-size);
15
+ --#{$prefix}popover-header-color: #{$popover-header-color};
16
+ --#{$prefix}popover-header-bg: #{$popover-header-bg};
17
+ --#{$prefix}popover-body-padding-x: #{$popover-body-padding-x};
18
+ --#{$prefix}popover-body-padding-y: #{$popover-body-padding-y};
19
+ --#{$prefix}popover-body-color: #{$popover-body-color};
20
+ --#{$prefix}popover-arrow-width: #{$popover-arrow-width};
21
+ --#{$prefix}popover-arrow-height: #{$popover-arrow-height};
22
+ --#{$prefix}popover-arrow-border: var(--#{$prefix}popover-border-color);
23
+ // scss-docs-end popover-css-vars
24
+
25
+ z-index: var(--#{$prefix}popover-zindex);
6
26
  display: block;
7
- max-width: $popover-max-width;
27
+ max-width: var(--#{$prefix}popover-max-width);
8
28
  // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
9
29
  // So reset our font and text properties to avoid inheriting weird values.
10
30
  @include reset-text();
11
- @include font-size($popover-font-size);
31
+ @include font-size(var(--#{$prefix}popover-font-size));
12
32
  // Allow breaking very long words so they don't overflow the popover's bounds
13
33
  word-wrap: break-word;
14
- background-color: $popover-bg;
34
+ background-color: var(--#{$prefix}popover-bg);
15
35
  background-clip: padding-box;
16
- border: $popover-border-width solid $popover-border-color;
17
- @include border-radius($popover-border-radius);
18
- @include box-shadow($popover-box-shadow);
36
+ border: var(--#{$prefix}popover-border-width) solid var(--#{$prefix}popover-border-color);
37
+ @include border-radius(var(--#{$prefix}popover-border-radius));
38
+ @include box-shadow(var(--#{$prefix}popover-box-shadow));
19
39
 
20
40
  .popover-arrow {
21
- position: absolute;
22
41
  display: block;
23
- width: $popover-arrow-width;
24
- height: $popover-arrow-height;
42
+ width: var(--#{$prefix}popover-arrow-width);
43
+ height: var(--#{$prefix}popover-arrow-height);
25
44
 
26
45
  &::before,
27
46
  &::after {
@@ -30,62 +49,75 @@
30
49
  content: "";
31
50
  border-color: transparent;
32
51
  border-style: solid;
52
+ border-width: 0;
33
53
  }
34
54
  }
35
55
  }
36
56
 
37
57
  .bs-popover-top {
38
58
  > .popover-arrow {
39
- bottom: subtract(-$popover-arrow-height, $popover-border-width);
59
+ bottom: calc(-1 * (var(--#{$prefix}popover-arrow-height)) - var(--#{$prefix}popover-border-width)); // stylelint-disable-line function-disallowed-list
60
+
61
+ &::before,
62
+ &::after {
63
+ border-width: var(--#{$prefix}popover-arrow-height) calc(var(--#{$prefix}popover-arrow-width) * .5) 0; // stylelint-disable-line function-disallowed-list
64
+ }
40
65
 
41
66
  &::before {
42
67
  bottom: 0;
43
- border-width: $popover-arrow-height ($popover-arrow-width * .5) 0;
44
- border-top-color: $popover-arrow-outer-color;
68
+ border-top-color: var(--#{$prefix}popover-arrow-border);
45
69
  }
46
70
 
47
71
  &::after {
48
- bottom: $popover-border-width;
49
- border-width: $popover-arrow-height ($popover-arrow-width * .5) 0;
50
- border-top-color: $popover-arrow-color;
72
+ bottom: var(--#{$prefix}popover-border-width);
73
+ border-top-color: var(--#{$prefix}popover-bg);
51
74
  }
52
75
  }
53
76
  }
54
77
 
78
+ /* rtl:begin:ignore */
55
79
  .bs-popover-end {
56
80
  > .popover-arrow {
57
- left: subtract(-$popover-arrow-height, $popover-border-width);
58
- width: $popover-arrow-height;
59
- height: $popover-arrow-width;
81
+ left: calc(-1 * (var(--#{$prefix}popover-arrow-height)) - var(--#{$prefix}popover-border-width)); // stylelint-disable-line function-disallowed-list
82
+ width: var(--#{$prefix}popover-arrow-height);
83
+ height: var(--#{$prefix}popover-arrow-width);
84
+
85
+ &::before,
86
+ &::after {
87
+ border-width: calc(var(--#{$prefix}popover-arrow-width) * .5) var(--#{$prefix}popover-arrow-height) calc(var(--#{$prefix}popover-arrow-width) * .5) 0; // stylelint-disable-line function-disallowed-list
88
+ }
60
89
 
61
90
  &::before {
62
91
  left: 0;
63
- border-width: ($popover-arrow-width * .5) $popover-arrow-height ($popover-arrow-width * .5) 0;
64
- border-right-color: $popover-arrow-outer-color;
92
+ border-right-color: var(--#{$prefix}popover-arrow-border);
65
93
  }
66
94
 
67
95
  &::after {
68
- left: $popover-border-width;
69
- border-width: ($popover-arrow-width * .5) $popover-arrow-height ($popover-arrow-width * .5) 0;
70
- border-right-color: $popover-arrow-color;
96
+ left: var(--#{$prefix}popover-border-width);
97
+ border-right-color: var(--#{$prefix}popover-bg);
71
98
  }
72
99
  }
73
100
  }
74
101
 
102
+ /* rtl:end:ignore */
103
+
75
104
  .bs-popover-bottom {
76
105
  > .popover-arrow {
77
- top: subtract(-$popover-arrow-height, $popover-border-width);
106
+ top: calc(-1 * (var(--#{$prefix}popover-arrow-height)) - var(--#{$prefix}popover-border-width)); // stylelint-disable-line function-disallowed-list
107
+
108
+ &::before,
109
+ &::after {
110
+ border-width: 0 calc(var(--#{$prefix}popover-arrow-width) * .5) var(--#{$prefix}popover-arrow-height); // stylelint-disable-line function-disallowed-list
111
+ }
78
112
 
79
113
  &::before {
80
114
  top: 0;
81
- border-width: 0 ($popover-arrow-width * .5) $popover-arrow-height ($popover-arrow-width * .5);
82
- border-bottom-color: $popover-arrow-outer-color;
115
+ border-bottom-color: var(--#{$prefix}popover-arrow-border);
83
116
  }
84
117
 
85
118
  &::after {
86
- top: $popover-border-width;
87
- border-width: 0 ($popover-arrow-width * .5) $popover-arrow-height ($popover-arrow-width * .5);
88
- border-bottom-color: $popover-arrow-color;
119
+ top: var(--#{$prefix}popover-border-width);
120
+ border-bottom-color: var(--#{$prefix}popover-bg);
89
121
  }
90
122
  }
91
123
 
@@ -95,33 +127,39 @@
95
127
  top: 0;
96
128
  left: 50%;
97
129
  display: block;
98
- width: $popover-arrow-width;
99
- margin-left: -$popover-arrow-width * .5;
130
+ width: var(--#{$prefix}popover-arrow-width);
131
+ margin-left: calc(-.5 * var(--#{$prefix}popover-arrow-width)); // stylelint-disable-line function-disallowed-list
100
132
  content: "";
101
- border-bottom: $popover-border-width solid $popover-header-bg;
133
+ border-bottom: var(--#{$prefix}popover-border-width) solid var(--#{$prefix}popover-header-bg);
102
134
  }
103
135
  }
104
136
 
137
+ /* rtl:begin:ignore */
105
138
  .bs-popover-start {
106
139
  > .popover-arrow {
107
- right: subtract(-$popover-arrow-height, $popover-border-width);
108
- width: $popover-arrow-height;
109
- height: $popover-arrow-width;
140
+ right: calc(-1 * (var(--#{$prefix}popover-arrow-height)) - var(--#{$prefix}popover-border-width)); // stylelint-disable-line function-disallowed-list
141
+ width: var(--#{$prefix}popover-arrow-height);
142
+ height: var(--#{$prefix}popover-arrow-width);
143
+
144
+ &::before,
145
+ &::after {
146
+ border-width: calc(var(--#{$prefix}popover-arrow-width) * .5) 0 calc(var(--#{$prefix}popover-arrow-width) * .5) var(--#{$prefix}popover-arrow-height); // stylelint-disable-line function-disallowed-list
147
+ }
110
148
 
111
149
  &::before {
112
150
  right: 0;
113
- border-width: ($popover-arrow-width * .5) 0 ($popover-arrow-width * .5) $popover-arrow-height;
114
- border-left-color: $popover-arrow-outer-color;
151
+ border-left-color: var(--#{$prefix}popover-arrow-border);
115
152
  }
116
153
 
117
154
  &::after {
118
- right: $popover-border-width;
119
- border-width: ($popover-arrow-width * .5) 0 ($popover-arrow-width * .5) $popover-arrow-height;
120
- border-left-color: $popover-arrow-color;
155
+ right: var(--#{$prefix}popover-border-width);
156
+ border-left-color: var(--#{$prefix}popover-bg);
121
157
  }
122
158
  }
123
159
  }
124
160
 
161
+ /* rtl:end:ignore */
162
+
125
163
  .bs-popover-auto {
126
164
  &[data-popper-placement^="top"] {
127
165
  @extend .bs-popover-top;
@@ -139,13 +177,13 @@
139
177
 
140
178
  // Offset the popover to account for the popover arrow
141
179
  .popover-header {
142
- padding: $popover-header-padding-y $popover-header-padding-x;
180
+ padding: var(--#{$prefix}popover-header-padding-y) var(--#{$prefix}popover-header-padding-x);
143
181
  margin-bottom: 0; // Reset the default from Reboot
144
- @include font-size($font-size-base);
145
- color: $popover-header-color;
146
- background-color: $popover-header-bg;
147
- border-bottom: $popover-border-width solid $popover-border-color;
148
- @include border-top-radius($popover-inner-border-radius);
182
+ @include font-size(var(--#{$prefix}popover-header-font-size));
183
+ color: var(--#{$prefix}popover-header-color);
184
+ background-color: var(--#{$prefix}popover-header-bg);
185
+ border-bottom: var(--#{$prefix}popover-border-width) solid var(--#{$prefix}popover-border-color);
186
+ @include border-top-radius(var(--#{$prefix}popover-inner-border-radius));
149
187
 
150
188
  &:empty {
151
189
  display: none;
@@ -153,6 +191,6 @@
153
191
  }
154
192
 
155
193
  .popover-body {
156
- padding: $popover-body-padding-y $popover-body-padding-x;
157
- color: $popover-body-color;
194
+ padding: var(--#{$prefix}popover-body-padding-y) var(--#{$prefix}popover-body-padding-x);
195
+ color: var(--#{$prefix}popover-body-color);
158
196
  }
@@ -8,14 +8,26 @@
8
8
  }
9
9
  // scss-docs-end progress-keyframes
10
10
 
11
- .progress {
11
+ .progress,
12
+ .progress-stacked {
13
+ // scss-docs-start progress-css-vars
14
+ --#{$prefix}progress-height: #{$progress-height};
15
+ @include rfs($progress-font-size, --#{$prefix}progress-font-size);
16
+ --#{$prefix}progress-bg: #{$progress-bg};
17
+ --#{$prefix}progress-border-radius: #{$progress-border-radius};
18
+ --#{$prefix}progress-box-shadow: #{$progress-box-shadow};
19
+ --#{$prefix}progress-bar-color: #{$progress-bar-color};
20
+ --#{$prefix}progress-bar-bg: #{$progress-bar-bg};
21
+ --#{$prefix}progress-bar-transition: #{$progress-bar-transition};
22
+ // scss-docs-end progress-css-vars
23
+
12
24
  display: flex;
13
- height: $progress-height;
25
+ height: var(--#{$prefix}progress-height);
14
26
  overflow: hidden; // force rounded corners by cropping it
15
- @include font-size($progress-font-size);
16
- background-color: $progress-bg;
17
- @include border-radius($progress-border-radius);
18
- @include box-shadow($progress-box-shadow);
27
+ @include font-size(var(--#{$prefix}progress-font-size));
28
+ background-color: var(--#{$prefix}progress-bg);
29
+ @include border-radius(var(--#{$prefix}progress-border-radius));
30
+ @include box-shadow(var(--#{$prefix}progress-box-shadow));
19
31
  }
20
32
 
21
33
  .progress-bar {
@@ -23,16 +35,24 @@
23
35
  flex-direction: column;
24
36
  justify-content: center;
25
37
  overflow: hidden;
26
- color: $progress-bar-color;
38
+ color: var(--#{$prefix}progress-bar-color);
27
39
  text-align: center;
28
40
  white-space: nowrap;
29
- background-color: $progress-bar-bg;
30
- @include transition($progress-bar-transition);
41
+ background-color: var(--#{$prefix}progress-bar-bg);
42
+ @include transition(var(--#{$prefix}progress-bar-transition));
31
43
  }
32
44
 
33
45
  .progress-bar-striped {
34
46
  @include gradient-striped();
35
- background-size: $progress-height $progress-height;
47
+ background-size: var(--#{$prefix}progress-height) var(--#{$prefix}progress-height);
48
+ }
49
+
50
+ .progress-stacked > .progress {
51
+ overflow: visible;
52
+ }
53
+
54
+ .progress-stacked > .progress > .progress-bar {
55
+ width: 100%;
36
56
  }
37
57
 
38
58
  @if $enable-transitions {