@gitlab/ui 113.3.2 → 113.5.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.
- package/CHANGELOG.md +14 -0
- package/dist/components/base/new_dropdowns/base_dropdown/base_dropdown.js +6 -2
- package/dist/components/base/new_dropdowns/listbox/listbox.js +145 -44
- package/dist/components/base/new_dropdowns/listbox/listbox_search_input.js +2 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/tailwind.css.map +1 -1
- package/package.json +4 -4
- package/src/components/base/animated_icon/animated_icon.scss +2 -2
- package/src/components/base/avatar/avatar.scss +12 -9
- package/src/components/base/badge/badge.scss +1 -1
- package/src/components/base/breadcrumb/breadcrumb.scss +1 -1
- package/src/components/base/button/button.scss +4 -4
- package/src/components/base/form/form_input/form_input.scss +4 -4
- package/src/components/base/new_dropdowns/base_dropdown/base_dropdown.vue +15 -5
- package/src/components/base/new_dropdowns/dropdown_item.scss +2 -2
- package/src/components/base/new_dropdowns/listbox/listbox.vue +321 -186
- package/src/components/base/new_dropdowns/listbox/listbox_search_input.vue +2 -0
- package/src/components/base/pagination/pagination.scss +4 -4
- package/src/components/charts/single_stat/single_stat.scss +3 -1
- package/src/scss/functions.scss +4 -3
- package/src/scss/mixins.scss +6 -4
- package/src/scss/variables.scss +9 -8
- package/src/vendor/bootstrap/scss/_custom-forms.scss +3 -3
- package/src/vendor/bootstrap/scss/_dropdown.scss +2 -1
- package/src/vendor/bootstrap/scss/_forms.scss +2 -1
- package/src/vendor/bootstrap/scss/_functions.scss +36 -30
- package/src/vendor/bootstrap/scss/_list-group.scss +2 -1
- package/src/vendor/bootstrap/scss/_modal.scss +1 -1
- package/src/vendor/bootstrap/scss/_navbar.scss +2 -1
- package/src/vendor/bootstrap/scss/_popover.scss +2 -1
- package/src/vendor/bootstrap/scss/_root.scss +3 -2
- package/src/vendor/bootstrap/scss/_tables.scss +2 -1
- package/src/vendor/bootstrap/scss/_variables.scss +21 -17
- package/src/vendor/bootstrap/scss/mixins/_alert.scss +3 -2
- package/src/vendor/bootstrap/scss/mixins/_background-variant.scss +3 -2
- package/src/vendor/bootstrap/scss/mixins/_badge.scss +2 -1
- package/src/vendor/bootstrap/scss/mixins/_border-radius.scss +5 -3
- package/src/vendor/bootstrap/scss/mixins/_box-shadow.scss +6 -5
- package/src/vendor/bootstrap/scss/mixins/_breakpoints.scss +6 -4
- package/src/vendor/bootstrap/scss/mixins/_buttons.scss +6 -5
- package/src/vendor/bootstrap/scss/mixins/_forms.scss +3 -2
- package/src/vendor/bootstrap/scss/mixins/_gradients.scss +2 -1
- package/src/vendor/bootstrap/scss/mixins/_grid-framework.scss +2 -1
- package/src/vendor/bootstrap/scss/mixins/_grid.scss +4 -3
- package/src/vendor/bootstrap/scss/mixins/_list-group.scss +2 -1
- package/src/vendor/bootstrap/scss/mixins/_table-row.scss +2 -1
- package/src/vendor/bootstrap/scss/mixins/_text-emphasis.scss +2 -1
- package/src/vendor/bootstrap/scss/mixins/_transition.scss +5 -4
- package/src/vendor/bootstrap/scss/utilities/_display.scss +2 -1
- package/src/vendor/bootstrap/scss/utilities/_embed.scss +5 -3
- package/src/vendor/bootstrap/scss/utilities/_flex.scss +2 -1
- package/src/vendor/bootstrap/scss/utilities/_float.scss +2 -1
- package/src/vendor/bootstrap/scss/utilities/_spacing.scss +2 -1
- package/src/vendor/bootstrap/scss/utilities/_text.scss +2 -1
- package/src/vendor/bootstrap/scss/vendor/_rfs.scss +13 -10
- package/src/vendor/bootstrap-vue/src/_variables.scss +3 -1
- package/src/vendor/bootstrap-vue/src/components/form-input/_form-input.scss +8 -6
- package/src/vendor/bootstrap-vue/src/components/table/_table.scss +5 -2
- package/src/vendor/bootstrap-vue/src/components/toast/_toast.scss +4 -2
- package/translations.js +3 -0
|
@@ -1,19 +1,20 @@
|
|
|
1
|
+
@use "sass:list";
|
|
1
2
|
@mixin box-shadow($shadow...) {
|
|
2
3
|
@if $enable-shadows {
|
|
3
4
|
$result: ();
|
|
4
5
|
|
|
5
|
-
@if (length($shadow) == 1) {
|
|
6
|
+
@if (list.length($shadow) == 1) {
|
|
6
7
|
// We can pass `@include box-shadow(none);`
|
|
7
8
|
$result: $shadow;
|
|
8
9
|
} @else {
|
|
9
10
|
// Filter to avoid invalid properties for example `box-shadow: none, 1px 1px black;`
|
|
10
|
-
@for $i from 1 through length($shadow) {
|
|
11
|
-
@if nth($shadow, $i) != "none" {
|
|
12
|
-
$result: append($result, nth($shadow, $i), "comma");
|
|
11
|
+
@for $i from 1 through list.length($shadow) {
|
|
12
|
+
@if list.nth($shadow, $i) != "none" {
|
|
13
|
+
$result: list.append($result, list.nth($shadow, $i), "comma");
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
|
-
@if (length($result) > 0) {
|
|
17
|
+
@if (list.length($result) > 0) {
|
|
17
18
|
box-shadow: $result;
|
|
18
19
|
}
|
|
19
20
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
@use "sass:map";
|
|
1
3
|
// Breakpoint viewport sizes and media queries.
|
|
2
4
|
//
|
|
3
5
|
// Breakpoints are defined as a map of (name: minimum width), order from small to large:
|
|
@@ -14,9 +16,9 @@
|
|
|
14
16
|
// md
|
|
15
17
|
// >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl))
|
|
16
18
|
// md
|
|
17
|
-
@function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map
|
|
18
|
-
$n: index($breakpoint-names, $name);
|
|
19
|
-
@return if($n != null and $n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);
|
|
19
|
+
@function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map.keys($breakpoints)) {
|
|
20
|
+
$n: list.index($breakpoint-names, $name);
|
|
21
|
+
@return if($n != null and $n < list.length($breakpoint-names), list.nth($breakpoint-names, $n + 1), null);
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
// Minimum breakpoint width. Null for the smallest (first) breakpoint.
|
|
@@ -24,7 +26,7 @@
|
|
|
24
26
|
// >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
|
25
27
|
// 576px
|
|
26
28
|
@function breakpoint-min($name, $breakpoints: $grid-breakpoints) {
|
|
27
|
-
$min: map
|
|
29
|
+
$min: map.get($breakpoints, $name);
|
|
28
30
|
@return if($min != 0, $min, null);
|
|
29
31
|
}
|
|
30
32
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
@use "sass:color";
|
|
1
2
|
// Button variants
|
|
2
3
|
//
|
|
3
4
|
// Easily pump out default styles, as well as :hover, :focus, :active,
|
|
4
5
|
// and disabled options for all buttons
|
|
5
6
|
|
|
6
|
-
@mixin button-variant($background, $border, $hover-background:
|
|
7
|
+
@mixin button-variant($background, $border, $hover-background: color.adjust($background, $lightness: -7.5%), $hover-border: color.adjust($border, $lightness: -10%), $active-background: color.adjust($background, $lightness: -10%), $active-border: color.adjust($border, $lightness: -12.5%)) {
|
|
7
8
|
color: color-yiq($background);
|
|
8
9
|
@include gradient-bg($background);
|
|
9
10
|
border-color: $border;
|
|
@@ -21,10 +22,10 @@
|
|
|
21
22
|
@include gradient-bg($hover-background);
|
|
22
23
|
border-color: $hover-border;
|
|
23
24
|
@if $enable-shadows {
|
|
24
|
-
@include box-shadow($btn-box-shadow, 0 0 0 $btn-focus-width rgba(mix(color-yiq($background), $border, 15%), .5));
|
|
25
|
+
@include box-shadow($btn-box-shadow, 0 0 0 $btn-focus-width rgba(color.mix(color-yiq($background), $border, 15%), .5));
|
|
25
26
|
} @else {
|
|
26
27
|
// Avoid using mixin so we can pass custom focus shadow properly
|
|
27
|
-
box-shadow: 0 0 0 $btn-focus-width rgba(mix(color-yiq($background), $border, 15%), .5);
|
|
28
|
+
box-shadow: 0 0 0 $btn-focus-width rgba(color.mix(color-yiq($background), $border, 15%), .5);
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
|
|
@@ -52,10 +53,10 @@
|
|
|
52
53
|
|
|
53
54
|
&:focus {
|
|
54
55
|
@if $enable-shadows and $btn-active-box-shadow != none {
|
|
55
|
-
@include box-shadow($btn-active-box-shadow, 0 0 0 $btn-focus-width rgba(mix(color-yiq($background), $border, 15%), .5));
|
|
56
|
+
@include box-shadow($btn-active-box-shadow, 0 0 0 $btn-focus-width rgba(color.mix(color-yiq($background), $border, 15%), .5));
|
|
56
57
|
} @else {
|
|
57
58
|
// Avoid using mixin so we can pass custom focus shadow properly
|
|
58
|
-
box-shadow: 0 0 0 $btn-focus-width rgba(mix(color-yiq($background), $border, 15%), .5);
|
|
59
|
+
box-shadow: 0 0 0 $btn-focus-width rgba(color.mix(color-yiq($background), $border, 15%), .5);
|
|
59
60
|
}
|
|
60
61
|
}
|
|
61
62
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:color";
|
|
1
2
|
// Form control focus state
|
|
2
3
|
//
|
|
3
4
|
// Generate a customized focus state and for any input with the specified color,
|
|
@@ -160,8 +161,8 @@
|
|
|
160
161
|
|
|
161
162
|
&:checked {
|
|
162
163
|
~ .custom-control-label::before {
|
|
163
|
-
border-color:
|
|
164
|
-
@include gradient-bg(
|
|
164
|
+
border-color: color.adjust($color, $lightness: 10%);
|
|
165
|
+
@include gradient-bg(color.adjust($color, $lightness: 10%));
|
|
165
166
|
}
|
|
166
167
|
}
|
|
167
168
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
@use "sass:color";
|
|
1
2
|
// Gradients
|
|
2
3
|
|
|
3
4
|
@mixin gradient-bg($color) {
|
|
4
5
|
@if $enable-gradients {
|
|
5
|
-
background: $color linear-gradient(180deg, mix($body-bg, $color, 15%), $color) repeat-x;
|
|
6
|
+
background: $color linear-gradient(180deg, color.mix($body-bg, $color, 15%), $color) repeat-x;
|
|
6
7
|
} @else {
|
|
7
8
|
background-color: $color;
|
|
8
9
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:map";
|
|
1
2
|
// Framework grid generation
|
|
2
3
|
//
|
|
3
4
|
// Used only by Bootstrap to generate the correct number of grid classes given
|
|
@@ -12,7 +13,7 @@
|
|
|
12
13
|
padding-left: $gutter * .5;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
@each $breakpoint in map
|
|
16
|
+
@each $breakpoint in map.keys($breakpoints) {
|
|
16
17
|
$infix: breakpoint-infix($breakpoint, $breakpoints);
|
|
17
18
|
|
|
18
19
|
@if $columns > 0 {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:math";
|
|
1
2
|
/// Grid system
|
|
2
3
|
//
|
|
3
4
|
// Generate semantic grid columns with these mixins.
|
|
@@ -38,11 +39,11 @@
|
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
@mixin make-col($size, $columns: $grid-columns) {
|
|
41
|
-
flex: 0 0 percentage(divide($size, $columns));
|
|
42
|
+
flex: 0 0 math.percentage(divide($size, $columns));
|
|
42
43
|
// Add a `max-width` to ensure content within each column does not blow out
|
|
43
44
|
// the width of the column. Applies to IE10+ and Firefox. Chrome and Safari
|
|
44
45
|
// do not appear to require this.
|
|
45
|
-
max-width: percentage(divide($size, $columns));
|
|
46
|
+
max-width: math.percentage(divide($size, $columns));
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
@mixin make-col-auto() {
|
|
@@ -53,7 +54,7 @@
|
|
|
53
54
|
|
|
54
55
|
@mixin make-col-offset($size, $columns: $grid-columns) {
|
|
55
56
|
$num: divide($size, $columns);
|
|
56
|
-
margin-left: if($num == 0, 0, percentage($num));
|
|
57
|
+
margin-left: if($num == 0, 0, math.percentage($num));
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
// Row columns
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:color";
|
|
1
2
|
// List Groups
|
|
2
3
|
|
|
3
4
|
@mixin list-group-item-variant($state, $background, $color) {
|
|
@@ -8,7 +9,7 @@
|
|
|
8
9
|
&.list-group-item-action {
|
|
9
10
|
@include hover-focus() {
|
|
10
11
|
color: $color;
|
|
11
|
-
background-color:
|
|
12
|
+
background-color: color.adjust($background, $lightness: -5%);
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
&.active {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:color";
|
|
1
2
|
// Tables
|
|
2
3
|
|
|
3
4
|
@mixin table-row-variant($state, $background, $border: null) {
|
|
@@ -23,7 +24,7 @@
|
|
|
23
24
|
// Hover states for `.table-hover`
|
|
24
25
|
// Note: this is not available for cells or rows within `thead` or `tfoot`.
|
|
25
26
|
.table-hover {
|
|
26
|
-
$hover-background:
|
|
27
|
+
$hover-background: color.adjust($background, $lightness: -5%);
|
|
27
28
|
|
|
28
29
|
.table-#{$state} {
|
|
29
30
|
@include hover() {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:color";
|
|
1
2
|
// stylelint-disable declaration-no-important
|
|
2
3
|
|
|
3
4
|
// Typography
|
|
@@ -9,7 +10,7 @@
|
|
|
9
10
|
@if $emphasized-link-hover-darken-percentage != 0 {
|
|
10
11
|
a#{$parent} {
|
|
11
12
|
@include hover-focus() {
|
|
12
|
-
color:
|
|
13
|
+
color: color.adjust($color, $lightness: -($emphasized-link-hover-darken-percentage)) !important;
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
16
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
@use "sass:list";
|
|
1
2
|
// stylelint-disable property-disallowed-list
|
|
2
3
|
@mixin transition($transition...) {
|
|
3
|
-
@if length($transition) == 0 {
|
|
4
|
+
@if list.length($transition) == 0 {
|
|
4
5
|
$transition: $transition-base;
|
|
5
6
|
}
|
|
6
7
|
|
|
7
|
-
@if length($transition) > 1 {
|
|
8
|
+
@if list.length($transition) > 1 {
|
|
8
9
|
@each $value in $transition {
|
|
9
10
|
@if $value == null or $value == none {
|
|
10
11
|
@warn "The keyword 'none' or 'null' must be used as a single argument.";
|
|
@@ -13,11 +14,11 @@
|
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
@if $enable-transitions {
|
|
16
|
-
@if nth($transition, 1) != null {
|
|
17
|
+
@if list.nth($transition, 1) != null {
|
|
17
18
|
transition: $transition;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
|
-
@if $enable-prefers-reduced-motion-media-query and nth($transition, 1) != null and nth($transition, 1) != none {
|
|
21
|
+
@if $enable-prefers-reduced-motion-media-query and list.nth($transition, 1) != null and list.nth($transition, 1) != none {
|
|
21
22
|
@media (prefers-reduced-motion: reduce) {
|
|
22
23
|
transition: none;
|
|
23
24
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
@use "sass:map";
|
|
1
2
|
// stylelint-disable declaration-no-important
|
|
2
3
|
|
|
3
4
|
//
|
|
4
5
|
// Utilities for common `display` values
|
|
5
6
|
//
|
|
6
7
|
|
|
7
|
-
@each $breakpoint in map
|
|
8
|
+
@each $breakpoint in map.keys($grid-breakpoints) {
|
|
8
9
|
@include media-breakpoint-up($breakpoint) {
|
|
9
10
|
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
|
10
11
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
@use "sass:math";
|
|
1
3
|
// Credit: Nicolas Gallagher and SUIT CSS.
|
|
2
4
|
|
|
3
5
|
.embed-responsive {
|
|
@@ -28,12 +30,12 @@
|
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
@each $embed-responsive-aspect-ratio in $embed-responsive-aspect-ratios {
|
|
31
|
-
$embed-responsive-aspect-ratio-x: nth($embed-responsive-aspect-ratio, 1);
|
|
32
|
-
$embed-responsive-aspect-ratio-y: nth($embed-responsive-aspect-ratio, 2);
|
|
33
|
+
$embed-responsive-aspect-ratio-x: list.nth($embed-responsive-aspect-ratio, 1);
|
|
34
|
+
$embed-responsive-aspect-ratio-y: list.nth($embed-responsive-aspect-ratio, 2);
|
|
33
35
|
|
|
34
36
|
.embed-responsive-#{$embed-responsive-aspect-ratio-x}by#{$embed-responsive-aspect-ratio-y} {
|
|
35
37
|
&::before {
|
|
36
|
-
padding-top: percentage(divide($embed-responsive-aspect-ratio-y, $embed-responsive-aspect-ratio-x));
|
|
38
|
+
padding-top: math.percentage(divide($embed-responsive-aspect-ratio-y, $embed-responsive-aspect-ratio-x));
|
|
37
39
|
}
|
|
38
40
|
}
|
|
39
41
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
@use "sass:map";
|
|
1
2
|
// stylelint-disable declaration-no-important
|
|
2
3
|
|
|
3
4
|
// Flex variation
|
|
4
5
|
//
|
|
5
6
|
// Custom styles for additional flex alignment options.
|
|
6
7
|
|
|
7
|
-
@each $breakpoint in map
|
|
8
|
+
@each $breakpoint in map.keys($grid-breakpoints) {
|
|
8
9
|
@include media-breakpoint-up($breakpoint) {
|
|
9
10
|
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
|
10
11
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
@use "sass:map";
|
|
1
2
|
// stylelint-disable declaration-no-important
|
|
2
3
|
|
|
3
|
-
@each $breakpoint in map
|
|
4
|
+
@each $breakpoint in map.keys($grid-breakpoints) {
|
|
4
5
|
@include media-breakpoint-up($breakpoint) {
|
|
5
6
|
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
|
6
7
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
@use "sass:map";
|
|
1
2
|
// stylelint-disable declaration-no-important
|
|
2
3
|
|
|
3
4
|
// Margin and Padding
|
|
4
5
|
|
|
5
|
-
@each $breakpoint in map
|
|
6
|
+
@each $breakpoint in map.keys($grid-breakpoints) {
|
|
6
7
|
@include media-breakpoint-up($breakpoint) {
|
|
7
8
|
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
|
8
9
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:map";
|
|
1
2
|
// stylelint-disable declaration-no-important
|
|
2
3
|
|
|
3
4
|
//
|
|
@@ -15,7 +16,7 @@
|
|
|
15
16
|
|
|
16
17
|
// Responsive alignment
|
|
17
18
|
|
|
18
|
-
@each $breakpoint in map
|
|
19
|
+
@each $breakpoint in map.keys($grid-breakpoints) {
|
|
19
20
|
@include media-breakpoint-up($breakpoint) {
|
|
20
21
|
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
|
21
22
|
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "sass:math";
|
|
3
|
+
@use "sass:meta";
|
|
1
4
|
// stylelint-disable property-blacklist, scss/dollar-variable-default
|
|
2
5
|
|
|
3
6
|
// SCSS RFS mixin
|
|
@@ -30,7 +33,7 @@ $rfs-two-dimensional: false !default;
|
|
|
30
33
|
// Factor of decrease
|
|
31
34
|
$rfs-factor: 10 !default;
|
|
32
35
|
|
|
33
|
-
@if type-of($rfs-factor) != "number" or $rfs-factor <= 1 {
|
|
36
|
+
@if meta.type-of($rfs-factor) != "number" or $rfs-factor <= 1 {
|
|
34
37
|
@error "`#{$rfs-factor}` is not a valid $rfs-factor, it must be greater than 1.";
|
|
35
38
|
}
|
|
36
39
|
|
|
@@ -47,12 +50,12 @@ $rfs-safari-iframe-resize-bug-fix: false !default;
|
|
|
47
50
|
$enable-responsive-font-sizes: true !default;
|
|
48
51
|
|
|
49
52
|
// Cache $rfs-base-font-size unit
|
|
50
|
-
$rfs-base-font-size-unit: unit($rfs-base-font-size);
|
|
53
|
+
$rfs-base-font-size-unit: math.unit($rfs-base-font-size);
|
|
51
54
|
|
|
52
55
|
@function divide($dividend, $divisor, $precision: 10) {
|
|
53
56
|
$sign: if($dividend > 0 and $divisor > 0 or $dividend < 0 and $divisor < 0, 1, -1);
|
|
54
|
-
$dividend: abs($dividend);
|
|
55
|
-
$divisor: abs($divisor);
|
|
57
|
+
$dividend: math.abs($dividend);
|
|
58
|
+
$divisor: math.abs($divisor);
|
|
56
59
|
@if $dividend == 0 {
|
|
57
60
|
@return 0;
|
|
58
61
|
}
|
|
@@ -77,16 +80,16 @@ $rfs-base-font-size-unit: unit($rfs-base-font-size);
|
|
|
77
80
|
}
|
|
78
81
|
}
|
|
79
82
|
$result: $result * $factor * $sign;
|
|
80
|
-
$dividend-unit: unit($dividend);
|
|
81
|
-
$divisor-unit: unit($divisor);
|
|
83
|
+
$dividend-unit: math.unit($dividend);
|
|
84
|
+
$divisor-unit: math.unit($divisor);
|
|
82
85
|
$unit-map: (
|
|
83
86
|
"px": 1px,
|
|
84
87
|
"rem": 1rem,
|
|
85
88
|
"em": 1em,
|
|
86
89
|
"%": 1%
|
|
87
90
|
);
|
|
88
|
-
@if ($dividend-unit != $divisor-unit and map
|
|
89
|
-
$result: $result * map
|
|
91
|
+
@if ($dividend-unit != $divisor-unit and map.has-key($unit-map, $dividend-unit)) {
|
|
92
|
+
$result: $result * map.get($unit-map, $dividend-unit);
|
|
90
93
|
}
|
|
91
94
|
@return $result;
|
|
92
95
|
}
|
|
@@ -100,7 +103,7 @@ $rfs-base-font-size-unit: unit($rfs-base-font-size);
|
|
|
100
103
|
}
|
|
101
104
|
|
|
102
105
|
// Cache $rfs-breakpoint unit to prevent multiple calls
|
|
103
|
-
$rfs-breakpoint-unit-cache: unit($rfs-breakpoint);
|
|
106
|
+
$rfs-breakpoint-unit-cache: math.unit($rfs-breakpoint);
|
|
104
107
|
|
|
105
108
|
// Remove unit from $rfs-breakpoint for calculations
|
|
106
109
|
@if $rfs-breakpoint-unit-cache == "px" {
|
|
@@ -155,7 +158,7 @@ $rfs-breakpoint-unit-cache: unit($rfs-breakpoint);
|
|
|
155
158
|
// Responsive font size mixin
|
|
156
159
|
@mixin rfs($fs, $important: false) {
|
|
157
160
|
// Cache $fs unit
|
|
158
|
-
$fs-unit: if(type-of($fs) == "number", unit($fs), false);
|
|
161
|
+
$fs-unit: if(meta.type-of($fs) == "number", math.unit($fs), false);
|
|
159
162
|
|
|
160
163
|
// Add !important suffix if needed
|
|
161
164
|
$rfs-suffix: if($important, " !important", "");
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'sass:color';
|
|
2
|
+
|
|
1
3
|
// --- BootstrapVue custom SCSS variables ---
|
|
2
4
|
//
|
|
3
5
|
// Users can override these variables in their custom SCSS
|
|
@@ -85,7 +87,7 @@ $b-toaster-offset-right: $b-toaster-offset-top !default;
|
|
|
85
87
|
// Value from 0 to 1, or 0% to 100%
|
|
86
88
|
// Bootstrap default is 0.85 (extracted from the `$toast-background-color` value)
|
|
87
89
|
// Bootstrap does not have this as a variable, so we add it in.
|
|
88
|
-
$b-toast-background-opacity: alpha($toast-background-color) !default;
|
|
90
|
+
$b-toast-background-opacity: color.alpha($toast-background-color) !default;
|
|
89
91
|
|
|
90
92
|
// Toast variant levels wrt theme color value
|
|
91
93
|
$b-toast-bg-level: $alert-bg-level !default;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'sass:color';
|
|
2
|
+
|
|
1
3
|
// Temporary fix for cssnano bug: https://github.com/cssnano/cssnano/issues/712
|
|
2
4
|
// By moving center to last value in `background-position` property
|
|
3
5
|
// See: https://github.com/bootstrap-vue/bootstrap-vue/issues/2599
|
|
@@ -150,13 +152,13 @@ input[type="color"].form-control:disabled {
|
|
|
150
152
|
// Pseudo-elements must be split across multiple rulesets to have an affect
|
|
151
153
|
&:focus {
|
|
152
154
|
&::-webkit-slider-thumb {
|
|
153
|
-
box-shadow: 0 0 0 1px $body-bg, 0 0 0 $input-btn-focus-width
|
|
155
|
+
box-shadow: 0 0 0 1px $body-bg, 0 0 0 $input-btn-focus-width color.adjust($color, $lightness: 35%);
|
|
154
156
|
}
|
|
155
157
|
&::-moz-range-thumb {
|
|
156
|
-
box-shadow: 0 0 0 1px $body-bg, 0 0 0 $input-btn-focus-width
|
|
158
|
+
box-shadow: 0 0 0 1px $body-bg, 0 0 0 $input-btn-focus-width color.adjust($color, $lightness: 35%);
|
|
157
159
|
}
|
|
158
160
|
&::-ms-thumb {
|
|
159
|
-
box-shadow: 0 0 0 1px $body-bg, 0 0 0 $input-btn-focus-width
|
|
161
|
+
box-shadow: 0 0 0 1px $body-bg, 0 0 0 $input-btn-focus-width color.adjust($color, $lightness: 35%);
|
|
160
162
|
}
|
|
161
163
|
}
|
|
162
164
|
|
|
@@ -165,7 +167,7 @@ input[type="color"].form-control:disabled {
|
|
|
165
167
|
background-image: none;
|
|
166
168
|
|
|
167
169
|
&:active {
|
|
168
|
-
background-color:
|
|
170
|
+
background-color: color.adjust($color, $lightness: 35%);
|
|
169
171
|
background-image: none;
|
|
170
172
|
}
|
|
171
173
|
}
|
|
@@ -179,7 +181,7 @@ input[type="color"].form-control:disabled {
|
|
|
179
181
|
background-image: none;
|
|
180
182
|
|
|
181
183
|
&:active {
|
|
182
|
-
background-color:
|
|
184
|
+
background-color: color.adjust($color, $lightness: 35%);
|
|
183
185
|
background-image: none;
|
|
184
186
|
}
|
|
185
187
|
}
|
|
@@ -198,7 +200,7 @@ input[type="color"].form-control:disabled {
|
|
|
198
200
|
background-image: none;
|
|
199
201
|
|
|
200
202
|
&:active {
|
|
201
|
-
background-color:
|
|
203
|
+
background-color: color.adjust($color, $lightness: 35%);
|
|
202
204
|
background-image: none;
|
|
203
205
|
}
|
|
204
206
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'sass:string';
|
|
3
|
+
|
|
1
4
|
// --- General styling ---
|
|
2
5
|
|
|
3
6
|
.table.b-table {
|
|
@@ -259,7 +262,7 @@ $bv-escaped-characters: (("<", "%3c"), (">", "%3e"), ("#", "%23"));
|
|
|
259
262
|
// But if we want to preserve backwards compatibility with v4.3, we leave this in
|
|
260
263
|
// See https://codepen.io/kevinweber/pen/dXWoRw
|
|
261
264
|
@function bv-escape-svg($string) {
|
|
262
|
-
@if
|
|
265
|
+
@if string.index($string, "data:image/svg+xml") {
|
|
263
266
|
@each $char, $encoded in $bv-escaped-characters {
|
|
264
267
|
$string: str-replace($string, $char, $encoded);
|
|
265
268
|
}
|
|
@@ -380,7 +383,7 @@ $bv-escaped-characters: (("<", "%3c"), (">", "%3e"), ("#", "%23"));
|
|
|
380
383
|
@if $bv-enable-table-stacked {
|
|
381
384
|
.table.b-table {
|
|
382
385
|
&.b-table-stacked {
|
|
383
|
-
@each $breakpoint in map
|
|
386
|
+
@each $breakpoint in map.keys($grid-breakpoints) {
|
|
384
387
|
$next: breakpoint-next($breakpoint, $grid-breakpoints);
|
|
385
388
|
$infix: breakpoint-infix($next, $grid-breakpoints);
|
|
386
389
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use 'sass:color';
|
|
2
|
+
|
|
1
3
|
// --- <b-toast> custom SCSS ---
|
|
2
4
|
|
|
3
5
|
// Toast wrapper element class (needed for list transition in toasters)
|
|
@@ -45,7 +47,7 @@
|
|
|
45
47
|
@mixin b-toast-variant($background, $border, $color) {
|
|
46
48
|
// Based on alert-variant mixin
|
|
47
49
|
.toast {
|
|
48
|
-
background-color: rgba(
|
|
50
|
+
background-color: rgba(color.adjust($background, $lightness: 5%), $b-toast-background-opacity);
|
|
49
51
|
border-color: rgba($border, $b-toast-background-opacity);
|
|
50
52
|
color: $color;
|
|
51
53
|
|
|
@@ -62,7 +64,7 @@
|
|
|
62
64
|
|
|
63
65
|
&.b-toast-solid {
|
|
64
66
|
.toast {
|
|
65
|
-
background-color: rgba(
|
|
67
|
+
background-color: rgba(color.adjust($background, $lightness: 5%), 1);
|
|
66
68
|
}
|
|
67
69
|
}
|
|
68
70
|
}
|
package/translations.js
CHANGED
|
@@ -10,6 +10,9 @@ export default {
|
|
|
10
10
|
'GlChartLegend.current': 'Current',
|
|
11
11
|
'GlChartLegend.max': 'Max',
|
|
12
12
|
'GlChartLegend.min': 'Min',
|
|
13
|
+
'GlCollapsibleListbox.loadingAnnouncementText.loadingItems': 'Loading items',
|
|
14
|
+
'GlCollapsibleListbox.loadingAnnouncementText.loadingMoreItems': 'Loading more items',
|
|
15
|
+
'GlCollapsibleListbox.loadingAnnouncementText.searching': 'Searching',
|
|
13
16
|
'GlCollapsibleListbox.srOnlyResultsLabel': null,
|
|
14
17
|
'GlDatepicker.monthLabel': 'Month',
|
|
15
18
|
'GlDatepicker.yearLabel': 'Year',
|