@gitlab/ui 128.13.2 → 128.13.3
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/dist/components/base/toast/toast.js +26 -24
- package/dist/index.css.map +1 -1
- package/dist/vendor/bootstrap-vue/src/components/toast/helpers/bv-toast.js +17 -3
- package/dist/vendor/bootstrap-vue/src/components/toast/toast.js +6 -1
- package/package.json +2 -2
- package/src/components/base/alert/alert.scss +11 -6
- package/src/components/base/animated_icon/animated_icon.scss +31 -20
- package/src/components/base/avatar/avatar.scss +8 -9
- package/src/components/base/avatars_inline/avatars_inline.scss +12 -4
- package/src/components/base/breadcrumb/breadcrumb.scss +2 -2
- package/src/components/base/button/button.scss +16 -14
- package/src/components/base/button_group/button_group.scss +9 -9
- package/src/components/base/datepicker/datepicker.scss +6 -6
- package/src/components/base/drawer/drawer.scss +2 -2
- package/src/components/base/dropdown/dropdown.scss +4 -4
- package/src/components/base/dropdown/dropdown_divider.scss +1 -1
- package/src/components/base/form/form_checkbox/form_checkbox.scss +12 -12
- package/src/components/base/form/form_combobox/form_combobox.scss +3 -2
- package/src/components/base/form/form_input/form_input.scss +3 -1
- package/src/components/base/form/form_select/form_select.scss +2 -2
- package/src/components/base/label/label.scss +5 -2
- package/src/components/base/link/link.scss +1 -1
- package/src/components/base/loading_icon/loading_icon.scss +1 -1
- package/src/components/base/markdown/markdown.scss +1 -1
- package/src/components/base/new_dropdowns/dropdown.scss +15 -3
- package/src/components/base/new_dropdowns/dropdown_item.scss +3 -2
- package/src/components/base/pagination/pagination.scss +5 -4
- package/src/components/base/path/path.scss +8 -3
- package/src/components/base/progress_bar/progress_bar.scss +2 -2
- package/src/components/base/table/table.scss +4 -4
- package/src/components/base/tabs/tabs/tabs.scss +7 -6
- package/src/components/base/toast/toast.js +31 -29
- package/src/components/base/toast/toast.scss +2 -2
- package/src/components/charts/legend/legend.scss +12 -8
- package/src/components/charts/single_stat/single_stat.scss +2 -2
- package/src/components/dashboards/dashboard_layout/grid_layout/grid_layout.scss +1 -1
- package/src/components/regions/empty_state/empty_state.scss +1 -1
- package/src/components/utilities/truncate/truncate.scss +1 -1
- package/src/scss/bootstrap.scss +34 -34
- package/src/scss/bootstrap_vue.scss +10 -10
- package/src/scss/components.scss +77 -77
- package/src/scss/fonts.scss +10 -10
- package/src/scss/functions.scss +6 -6
- package/src/scss/gitlab_ui.scss +10 -10
- package/src/scss/mixins.scss +23 -23
- package/src/scss/storybook.scss +14 -15
- package/src/scss/tokens.scss +2 -2
- package/src/scss/typescale/_index.scss +1 -1
- package/src/scss/typescale/typescale_demo.scss +4 -4
- package/src/scss/typography.scss +16 -6
- package/src/scss/variables.scss +29 -14
- package/src/vendor/bootstrap-vue/src/components/toast/helpers/bv-toast.js +19 -3
- package/src/vendor/bootstrap-vue/src/components/toast/toast.js +6 -1
package/src/scss/components.scss
CHANGED
|
@@ -2,80 +2,80 @@
|
|
|
2
2
|
// Import component stylesheets located in components here. i.e.
|
|
3
3
|
// @import '../components/base/dropdown/dropdown'
|
|
4
4
|
//
|
|
5
|
-
@import
|
|
6
|
-
@import
|
|
7
|
-
@import
|
|
8
|
-
@import
|
|
9
|
-
@import
|
|
10
|
-
@import
|
|
11
|
-
@import
|
|
12
|
-
@import
|
|
13
|
-
@import
|
|
14
|
-
@import
|
|
15
|
-
@import
|
|
16
|
-
@import
|
|
17
|
-
@import
|
|
18
|
-
@import
|
|
19
|
-
@import
|
|
20
|
-
@import
|
|
21
|
-
@import
|
|
22
|
-
@import
|
|
23
|
-
@import
|
|
24
|
-
@import
|
|
25
|
-
@import
|
|
26
|
-
@import
|
|
27
|
-
@import
|
|
28
|
-
@import
|
|
29
|
-
@import
|
|
30
|
-
@import
|
|
31
|
-
@import
|
|
32
|
-
@import
|
|
33
|
-
@import
|
|
34
|
-
@import
|
|
35
|
-
@import
|
|
36
|
-
@import
|
|
37
|
-
@import
|
|
38
|
-
@import
|
|
39
|
-
@import
|
|
40
|
-
@import
|
|
41
|
-
@import
|
|
42
|
-
@import
|
|
43
|
-
@import
|
|
44
|
-
@import
|
|
45
|
-
@import
|
|
46
|
-
@import
|
|
47
|
-
@import
|
|
48
|
-
@import
|
|
49
|
-
@import
|
|
50
|
-
@import
|
|
51
|
-
@import
|
|
52
|
-
@import
|
|
53
|
-
@import
|
|
54
|
-
@import
|
|
55
|
-
@import
|
|
56
|
-
@import
|
|
57
|
-
@import
|
|
58
|
-
@import
|
|
59
|
-
@import
|
|
60
|
-
@import
|
|
61
|
-
@import
|
|
62
|
-
@import
|
|
63
|
-
@import
|
|
64
|
-
@import
|
|
65
|
-
@import
|
|
66
|
-
@import
|
|
67
|
-
@import
|
|
68
|
-
@import
|
|
69
|
-
@import
|
|
70
|
-
@import
|
|
71
|
-
@import
|
|
72
|
-
@import
|
|
73
|
-
@import
|
|
74
|
-
@import
|
|
75
|
-
@import
|
|
76
|
-
@import
|
|
77
|
-
@import
|
|
78
|
-
@import
|
|
79
|
-
@import
|
|
80
|
-
@import
|
|
81
|
-
@import
|
|
5
|
+
@import "../components/base/new_dropdowns/disclosure/disclosure_dropdown";
|
|
6
|
+
@import "../components/base/keyset_pagination/keyset_pagination";
|
|
7
|
+
@import "../components/charts/gauge/gauge";
|
|
8
|
+
@import "../components/base/token_selector/token_selector";
|
|
9
|
+
@import "../components/base/card/card";
|
|
10
|
+
@import "../components/shared_components/clear_icon_button/clear_icon_button";
|
|
11
|
+
@import "../components/base/accordion/accordion_item";
|
|
12
|
+
@import "../components/base/alert/alert";
|
|
13
|
+
@import "../components/base/attribute_list/attribute_list";
|
|
14
|
+
@import "../components/base/avatar/avatar";
|
|
15
|
+
@import "../components/base/avatar_labeled/avatar_labeled";
|
|
16
|
+
@import "../components/base/avatar_link/avatar_link";
|
|
17
|
+
@import "../components/base/avatars_inline/avatars_inline";
|
|
18
|
+
@import "../components/base/animated_icon/animated_icon";
|
|
19
|
+
@import "../components/base/badge/badge";
|
|
20
|
+
@import "../components/base/breadcrumb/breadcrumb";
|
|
21
|
+
@import "../components/base/banner/banner";
|
|
22
|
+
@import "../components/base/broadcast_message/broadcast_message";
|
|
23
|
+
@import "../components/base/datepicker/datepicker";
|
|
24
|
+
@import "../components/base/daterange_picker/daterange_picker";
|
|
25
|
+
@import "../components/base/drawer/drawer";
|
|
26
|
+
@import "../components/base/dropdown/dropdown";
|
|
27
|
+
@import "../components/base/dropdown/dropdown_divider";
|
|
28
|
+
@import "../components/base/dropdown/dropdown_section_header";
|
|
29
|
+
@import "../components/base/dropdown/dropdown_item";
|
|
30
|
+
@import "../components/base/dropdown/dropdown_text";
|
|
31
|
+
@import "../components/base/filtered_search/filtered_search";
|
|
32
|
+
@import "../components/base/filtered_search/filtered_search_suggestion";
|
|
33
|
+
@import "../components/base/filtered_search/filtered_search_suggestion_list";
|
|
34
|
+
@import "../components/base/filtered_search/filtered_search_term";
|
|
35
|
+
@import "../components/base/filtered_search/filtered_search_token";
|
|
36
|
+
@import "../components/base/filtered_search/filtered_search_token_segment";
|
|
37
|
+
@import "../components/base/form/form_date/form_date";
|
|
38
|
+
@import "../components/base/form/form_input/form_input";
|
|
39
|
+
@import "../components/base/form/form_input_group/form_input_group";
|
|
40
|
+
@import "../components/base/form/form_checkbox/form_checkbox";
|
|
41
|
+
@import "../components/base/form/form_group/form_group";
|
|
42
|
+
@import "../components/base/form/form_radio/form_radio";
|
|
43
|
+
@import "../components/base/form/form_radio_group/form_radio_group";
|
|
44
|
+
@import "../components/base/form/form_select/form_select";
|
|
45
|
+
@import "../components/base/form/form_combobox/form_combobox";
|
|
46
|
+
@import "../components/base/form/input_group_text/input_group_text";
|
|
47
|
+
@import "../components/base/icon/icon";
|
|
48
|
+
@import "../components/base/infinite_scroll/infinite_scroll";
|
|
49
|
+
@import "../components/base/label/label";
|
|
50
|
+
@import "../components/base/link/link";
|
|
51
|
+
@import "../components/base/loading_icon/loading_icon";
|
|
52
|
+
@import "../components/base/markdown/markdown";
|
|
53
|
+
@import "../components/base/modal/modal";
|
|
54
|
+
@import "../components/base/button/button";
|
|
55
|
+
@import "../components/base/button_group/button_group";
|
|
56
|
+
@import "../components/base/pagination/pagination";
|
|
57
|
+
@import "../components/base/path/path";
|
|
58
|
+
@import "../components/base/popover/popover";
|
|
59
|
+
@import "../components/base/progress_bar/progress_bar";
|
|
60
|
+
@import "../components/base/search_box_by_type/search_box_by_type";
|
|
61
|
+
@import "../components/base/search_box_by_click/search_box_by_click";
|
|
62
|
+
@import "../components/base/skeleton_loader/skeleton_loader";
|
|
63
|
+
@import "../components/base/tabs/tabs/tabs";
|
|
64
|
+
@import "../components/base/toast/toast";
|
|
65
|
+
@import "../components/base/table/table";
|
|
66
|
+
@import "../components/base/toggle/toggle";
|
|
67
|
+
@import "../components/base/token/token";
|
|
68
|
+
@import "../components/base/tooltip/tooltip";
|
|
69
|
+
@import "../components/charts/heatmap/heatmap";
|
|
70
|
+
@import "../components/charts/legend/legend";
|
|
71
|
+
@import "../components/charts/series_label/series_label";
|
|
72
|
+
@import "../components/charts/single_stat/single_stat";
|
|
73
|
+
@import "../components/charts/shared/tooltip/tooltip";
|
|
74
|
+
@import "../components/charts/shared/tooltip/tooltip_default_format/tooltip_default_format";
|
|
75
|
+
@import "../components/dashboards/dashboard_layout/grid_layout/grid_layout";
|
|
76
|
+
@import "../components/utilities/truncate/truncate";
|
|
77
|
+
@import "../components/utilities/truncate_text/truncate_text";
|
|
78
|
+
@import "../components/base/new_dropdowns/dropdown";
|
|
79
|
+
@import "../components/base/new_dropdowns/dropdown_item";
|
|
80
|
+
@import "../components/base/new_dropdowns/listbox/listbox";
|
|
81
|
+
@import "../components/regions/empty_state/empty_state";
|
package/src/scss/fonts.scss
CHANGED
|
@@ -5,7 +5,7 @@ Usage:
|
|
|
5
5
|
html { font-family: 'GitLab Sans', sans-serif; }
|
|
6
6
|
*/
|
|
7
7
|
@font-face {
|
|
8
|
-
font-family:
|
|
8
|
+
font-family: "GitLab Sans";
|
|
9
9
|
font-weight: 100 900;
|
|
10
10
|
/**
|
|
11
11
|
* Applications should use a less aggressive font-display value than this.
|
|
@@ -14,12 +14,12 @@ Usage:
|
|
|
14
14
|
font-display: block;
|
|
15
15
|
font-style: normal;
|
|
16
16
|
/* stylelint-disable-next-line property-no-unknown */
|
|
17
|
-
font-named-instance:
|
|
18
|
-
src: url(
|
|
17
|
+
font-named-instance: "Regular";
|
|
18
|
+
src: url("../../static/fonts/GitLabSans.woff2") format("woff2");
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
@font-face {
|
|
22
|
-
font-family:
|
|
22
|
+
font-family: "GitLab Sans";
|
|
23
23
|
font-weight: 100 900;
|
|
24
24
|
/**
|
|
25
25
|
* Applications should use a less aggressive font-display value than this.
|
|
@@ -28,8 +28,8 @@ Usage:
|
|
|
28
28
|
font-display: block;
|
|
29
29
|
font-style: italic;
|
|
30
30
|
/* stylelint-disable-next-line property-no-unknown */
|
|
31
|
-
font-named-instance:
|
|
32
|
-
src: url(
|
|
31
|
+
font-named-instance: "Regular";
|
|
32
|
+
src: url("../../static/fonts/GitLabSans-Italic.woff2") format("woff2");
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/* -------------------------------------------------------
|
|
@@ -39,7 +39,7 @@ Usage:
|
|
|
39
39
|
html { font-family: 'GitLab Mono', monospace; }
|
|
40
40
|
*/
|
|
41
41
|
@font-face {
|
|
42
|
-
font-family:
|
|
42
|
+
font-family: "GitLab Mono";
|
|
43
43
|
font-weight: 100 900;
|
|
44
44
|
/**
|
|
45
45
|
* Applications should use a less aggressive font-display value than this.
|
|
@@ -47,11 +47,11 @@ Usage:
|
|
|
47
47
|
*/
|
|
48
48
|
font-display: block;
|
|
49
49
|
font-style: normal;
|
|
50
|
-
src: url(
|
|
50
|
+
src: url("../../static/fonts/GitLabMono.woff2") format("woff2");
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
@font-face {
|
|
54
|
-
font-family:
|
|
54
|
+
font-family: "GitLab Mono";
|
|
55
55
|
font-weight: 100 900;
|
|
56
56
|
/**
|
|
57
57
|
* Applications should use a less aggressive font-display value than this.
|
|
@@ -59,7 +59,7 @@ Usage:
|
|
|
59
59
|
*/
|
|
60
60
|
font-display: block;
|
|
61
61
|
font-style: italic;
|
|
62
|
-
src: url(
|
|
62
|
+
src: url("../../static/fonts/GitLabMono-Italic.woff2") format("woff2");
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
* {
|
package/src/scss/functions.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@use
|
|
2
|
-
@use
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
@use "sass:meta";
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
* SASS preserves units in arithmetic operations. For example:
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
@function strip-unit($number) {
|
|
15
|
-
@if meta.type-of($number) ==
|
|
15
|
+
@if meta.type-of($number) == "number" and not math.is-unitless($number) {
|
|
16
16
|
@return math.div($number, extract-unit($number));
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
@function px-to-rem($px, $font-size-base: 16px) {
|
|
43
|
-
@if meta.type-of($px) ==
|
|
43
|
+
@if meta.type-of($px) == "number" {
|
|
44
44
|
@return single-unit-rem($px, $font-size-base);
|
|
45
|
-
} @else if meta.type-of($px) ==
|
|
45
|
+
} @else if meta.type-of($px) == "list" {
|
|
46
46
|
@return multiple-units-rem($px, $font-size-base);
|
|
47
47
|
} @else {
|
|
48
48
|
@return $px;
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
@function if-important($important) {
|
|
53
|
-
@return #{if($important,
|
|
53
|
+
@return #{if($important, "!important", "")};
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
@function clamp-between($min, $max, $min-width: $breakpoint-md, $max-width: $breakpoint-xl) {
|
package/src/scss/gitlab_ui.scss
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
@import
|
|
1
|
+
@import "mixins";
|
|
2
2
|
|
|
3
|
-
@import
|
|
4
|
-
@import
|
|
3
|
+
@import "bootstrap";
|
|
4
|
+
@import "bootstrap_vue";
|
|
5
5
|
|
|
6
6
|
// Design Tokens
|
|
7
|
-
@import
|
|
7
|
+
@import "tokens";
|
|
8
8
|
|
|
9
9
|
// Settings
|
|
10
|
-
@import
|
|
11
|
-
@import
|
|
12
|
-
@import
|
|
10
|
+
@import "functions";
|
|
11
|
+
@import "variables";
|
|
12
|
+
@import "typescale/index";
|
|
13
13
|
|
|
14
14
|
// Body
|
|
15
|
-
@import
|
|
15
|
+
@import "body";
|
|
16
16
|
|
|
17
17
|
// Typography
|
|
18
|
-
@import
|
|
18
|
+
@import "typography";
|
|
19
19
|
|
|
20
20
|
// Components
|
|
21
|
-
@import
|
|
21
|
+
@import "components";
|
package/src/scss/mixins.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use
|
|
1
|
+
@use "sass:map";
|
|
2
2
|
|
|
3
3
|
@mixin str-truncated($max-width: 82%) {
|
|
4
4
|
display: inline-block;
|
|
@@ -10,18 +10,18 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
@mixin mask-chevron-down {
|
|
13
|
-
mask-image: url(
|
|
13
|
+
mask-image: url("#{$gl-icon-chevron-down}");
|
|
14
14
|
mask-repeat: no-repeat;
|
|
15
15
|
mask-position: center;
|
|
16
16
|
mask-size: cover;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
@mixin gl-fluid-font-size($min, $max) {
|
|
20
|
-
@include gl-responsive-property(
|
|
20
|
+
@include gl-responsive-property("font-size", $min, $max);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
@mixin gl-fluid-line-height($min, $max) {
|
|
24
|
-
@include gl-responsive-property(
|
|
24
|
+
@include gl-responsive-property("line-height", $min, $max);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
/**
|
|
@@ -56,7 +56,8 @@
|
|
|
56
56
|
) {
|
|
57
57
|
@if $inset == true {
|
|
58
58
|
@if $color {
|
|
59
|
-
box-shadow:
|
|
59
|
+
box-shadow:
|
|
60
|
+
inset 0 0 0 $outline-width var(--gl-focus-ring-outer-color),
|
|
60
61
|
inset 0 0 0 #{$outline-width + $outline-offset} var(--gl-focus-ring-inner-color),
|
|
61
62
|
inset 0 0 0 #{$outline-width + $outline-offset + 1px} $color,
|
|
62
63
|
$focus-ring-inset if-important($important);
|
|
@@ -68,7 +69,8 @@
|
|
|
68
69
|
outline: $focus-ring-outline if-important($important);
|
|
69
70
|
outline-offset: $outline-offset;
|
|
70
71
|
} @else {
|
|
71
|
-
box-shadow:
|
|
72
|
+
box-shadow:
|
|
73
|
+
inset 0 0 0 $outline-width var(--gl-focus-ring-outer-color),
|
|
72
74
|
$focus-ring-inset if-important($important);
|
|
73
75
|
outline: none if-important($important);
|
|
74
76
|
@media (forced-colors: active) {
|
|
@@ -76,7 +78,9 @@
|
|
|
76
78
|
}
|
|
77
79
|
}
|
|
78
80
|
} @else if $color {
|
|
79
|
-
box-shadow:
|
|
81
|
+
box-shadow:
|
|
82
|
+
inset 0 0 0 $gl-border-size-1 $color,
|
|
83
|
+
$focus-ring if-important($important);
|
|
80
84
|
outline: none if-important($important);
|
|
81
85
|
@media (forced-colors: active) {
|
|
82
86
|
outline: 2px solid LinkText if-important($important);
|
|
@@ -145,7 +149,7 @@
|
|
|
145
149
|
}
|
|
146
150
|
}
|
|
147
151
|
|
|
148
|
-
@mixin gl-container-width-up($name, $containerName:
|
|
152
|
+
@mixin gl-container-width-up($name, $containerName: "", $includeMQFallback: true) {
|
|
149
153
|
$min: map.get($breakpoints, $name);
|
|
150
154
|
@if $min == null {
|
|
151
155
|
@error "#{$name} is not a valid breakpoint for this @container query.";
|
|
@@ -154,12 +158,11 @@
|
|
|
154
158
|
@container #{$containerName} (width >= #{$min}) {
|
|
155
159
|
@if & {
|
|
156
160
|
:where(html.with-gl-container-queries) & {
|
|
157
|
-
@content
|
|
161
|
+
@content;
|
|
158
162
|
}
|
|
159
|
-
}
|
|
160
|
-
@else {
|
|
163
|
+
} @else {
|
|
161
164
|
:where(html.with-gl-container-queries) {
|
|
162
|
-
@content
|
|
165
|
+
@content;
|
|
163
166
|
}
|
|
164
167
|
}
|
|
165
168
|
}
|
|
@@ -169,10 +172,9 @@
|
|
|
169
172
|
:where(html:not(.with-gl-container-queries)) & {
|
|
170
173
|
@content;
|
|
171
174
|
}
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
@content
|
|
175
|
+
} @else {
|
|
176
|
+
:where(html:not(.with-gl-container-queries)) {
|
|
177
|
+
@content;
|
|
176
178
|
}
|
|
177
179
|
}
|
|
178
180
|
}
|
|
@@ -182,7 +184,7 @@
|
|
|
182
184
|
}
|
|
183
185
|
}
|
|
184
186
|
|
|
185
|
-
@mixin gl-container-width-down($name, $containerName:
|
|
187
|
+
@mixin gl-container-width-down($name, $containerName: "", $includeMQFallback: true) {
|
|
186
188
|
$max: map.get($breakpoints, $name);
|
|
187
189
|
@if ($max == null or $max == 0) {
|
|
188
190
|
@error "#{$name} is not a valid breakpoint for this @container query.";
|
|
@@ -193,8 +195,7 @@
|
|
|
193
195
|
:where(html.with-gl-container-queries) & {
|
|
194
196
|
@content;
|
|
195
197
|
}
|
|
196
|
-
}
|
|
197
|
-
@else {
|
|
198
|
+
} @else {
|
|
198
199
|
:where(html.with-gl-container-queries) {
|
|
199
200
|
@content;
|
|
200
201
|
}
|
|
@@ -206,8 +207,7 @@
|
|
|
206
207
|
:where(html:not(.with-gl-container-queries)) & {
|
|
207
208
|
@content;
|
|
208
209
|
}
|
|
209
|
-
}
|
|
210
|
-
@else {
|
|
210
|
+
} @else {
|
|
211
211
|
:where(html:not(.with-gl-container-queries)) {
|
|
212
212
|
@content;
|
|
213
213
|
}
|
|
@@ -243,14 +243,14 @@
|
|
|
243
243
|
|
|
244
244
|
@mixin gl-prefers-reduced-motion-transition {
|
|
245
245
|
@media (prefers-reduced-motion) {
|
|
246
|
-
transition-duration: .01ms !important;
|
|
246
|
+
transition-duration: 0.01ms !important;
|
|
247
247
|
transition-delay: 0ms !important;
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
@mixin gl-prefers-reduced-motion-animation {
|
|
252
252
|
@media (prefers-reduced-motion) {
|
|
253
|
-
animation-duration: .01ms !important;
|
|
253
|
+
animation-duration: 0.01ms !important;
|
|
254
254
|
animation-iteration-count: 1 !important;
|
|
255
255
|
animation-delay: 0ms !important;
|
|
256
256
|
}
|
package/src/scss/storybook.scss
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
@import
|
|
1
|
+
@import "tokens";
|
|
2
2
|
|
|
3
|
-
@import
|
|
4
|
-
@import
|
|
3
|
+
@import "functions";
|
|
4
|
+
@import "variables";
|
|
5
5
|
|
|
6
|
-
@import
|
|
7
|
-
@import
|
|
8
|
-
@import
|
|
6
|
+
@import "../vendor/bootstrap/scss/functions";
|
|
7
|
+
@import "../vendor/bootstrap/scss/variables";
|
|
8
|
+
@import "../vendor/bootstrap/scss/mixins";
|
|
9
9
|
|
|
10
|
-
@import
|
|
10
|
+
@import "mixins";
|
|
11
11
|
|
|
12
|
-
@import
|
|
13
|
-
@import
|
|
12
|
+
@import "bootstrap";
|
|
13
|
+
@import "bootstrap_vue";
|
|
14
14
|
|
|
15
|
+
@import "fonts";
|
|
15
16
|
|
|
16
|
-
@import
|
|
17
|
-
|
|
18
|
-
@import
|
|
19
|
-
@import 'typography';
|
|
20
|
-
@import 'components';
|
|
17
|
+
@import "body";
|
|
18
|
+
@import "typography";
|
|
19
|
+
@import "components";
|
|
21
20
|
|
|
22
21
|
/**
|
|
23
22
|
* Custom padding for docs pages. This improves the integration in Pajamas pages.
|
|
@@ -36,4 +35,4 @@
|
|
|
36
35
|
// Note that adding `.css` here would break the inline import.
|
|
37
36
|
// These utilities are imported last, because that's
|
|
38
37
|
// what we do in GitLab as well.
|
|
39
|
-
@import
|
|
38
|
+
@import "tailwind";
|
package/src/scss/tokens.scss
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@import
|
|
2
|
-
@import
|
|
1
|
+
@import "../tokens/build/css/tokens";
|
|
2
|
+
@import "../tokens/build/css/tokens.dark";
|
package/src/scss/typography.scss
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
h1,
|
|
2
|
-
|
|
1
|
+
h1,
|
|
2
|
+
h2,
|
|
3
|
+
h3,
|
|
4
|
+
h4,
|
|
5
|
+
h5,
|
|
6
|
+
h6,
|
|
7
|
+
.h1,
|
|
8
|
+
.h2,
|
|
9
|
+
.h3,
|
|
10
|
+
.h4,
|
|
11
|
+
.h5,
|
|
12
|
+
.h6 {
|
|
3
13
|
@apply gl-text-heading;
|
|
4
14
|
}
|
|
5
15
|
|
|
@@ -25,7 +35,7 @@ pre {
|
|
|
25
35
|
}
|
|
26
36
|
|
|
27
37
|
kbd {
|
|
28
|
-
@apply gl-inline-block gl-
|
|
38
|
+
@apply gl-border gl-inline-block gl-border-b-strong gl-bg-subtle gl-leading-1 gl-text-default;
|
|
29
39
|
font-size: 87.5%;
|
|
30
40
|
padding: 3px 5px;
|
|
31
41
|
vertical-align: unset;
|
|
@@ -35,15 +45,15 @@ kbd {
|
|
|
35
45
|
}
|
|
36
46
|
|
|
37
47
|
.table {
|
|
38
|
-
@apply gl-w-full gl-
|
|
48
|
+
@apply gl-mb-3 gl-w-full gl-bg-transparent gl-text-default;
|
|
39
49
|
|
|
40
50
|
th,
|
|
41
51
|
td {
|
|
42
|
-
@apply gl-p-4 gl-align-top
|
|
52
|
+
@apply gl-border-t gl-p-4 gl-align-top;
|
|
43
53
|
}
|
|
44
54
|
|
|
45
55
|
thead th {
|
|
46
|
-
@apply gl-
|
|
56
|
+
@apply gl-border-b gl-border-b-2 gl-align-bottom;
|
|
47
57
|
}
|
|
48
58
|
|
|
49
59
|
tbody + tbody {
|
package/src/scss/variables.scss
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@use
|
|
2
|
-
@import
|
|
3
|
-
@import
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@import "functions";
|
|
3
|
+
@import "../tokens/build/scss/tokens";
|
|
4
4
|
|
|
5
5
|
// Layout
|
|
6
6
|
$grid-size: px-to-rem(8px);
|
|
@@ -45,20 +45,33 @@ $gl-font-weight-semibold: 500;
|
|
|
45
45
|
$gl-font-weight-bold: 600;
|
|
46
46
|
|
|
47
47
|
$gl-font-weights: (
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
"normal": $gl-font-weight-normal,
|
|
49
|
+
"bold": $gl-font-weight-bold,
|
|
50
50
|
);
|
|
51
51
|
|
|
52
52
|
// Fonts
|
|
53
|
-
$gl-monospace-font:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
$gl-monospace-font:
|
|
54
|
+
"GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas",
|
|
55
|
+
"Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace !default;
|
|
56
|
+
$gl-regular-font:
|
|
57
|
+
"GitLab Sans",
|
|
58
|
+
-apple-system,
|
|
59
|
+
BlinkMacSystemFont,
|
|
60
|
+
"Segoe UI",
|
|
61
|
+
Roboto,
|
|
62
|
+
"Noto Sans",
|
|
63
|
+
Ubuntu,
|
|
64
|
+
Cantarell,
|
|
65
|
+
"Helvetica Neue",
|
|
66
|
+
sans-serif,
|
|
67
|
+
"Apple Color Emoji",
|
|
68
|
+
"Segoe UI Emoji",
|
|
69
|
+
"Segoe UI Symbol",
|
|
70
|
+
"Noto Color Emoji" !default;
|
|
58
71
|
|
|
59
72
|
$gl-fonts: (
|
|
60
|
-
|
|
61
|
-
|
|
73
|
+
"monospace": $gl-monospace-font,
|
|
74
|
+
"regular": $gl-regular-font,
|
|
62
75
|
);
|
|
63
76
|
|
|
64
77
|
// New UI type scale
|
|
@@ -195,9 +208,11 @@ $gl-easing-out-cubic: cubic-bezier(0.22, 0.61, 0.36, 1);
|
|
|
195
208
|
$outline-offset: 1px;
|
|
196
209
|
$outline-width: 2px;
|
|
197
210
|
$outline: #{$outline-offset + $outline-width};
|
|
198
|
-
$focus-ring:
|
|
211
|
+
$focus-ring:
|
|
212
|
+
0 0 0 $outline-offset var(--gl-focus-ring-inner-color),
|
|
199
213
|
0 0 0 #{$outline-offset + $outline-width} var(--gl-focus-ring-outer-color);
|
|
200
|
-
$focus-ring-inset:
|
|
214
|
+
$focus-ring-inset:
|
|
215
|
+
inset 0 0 0 #{$outline-width + $outline-offset} var(--gl-focus-ring-inner-color),
|
|
201
216
|
inset 0 0 0 $outline-offset var(--gl-focus-ring-inner-color);
|
|
202
217
|
$focus-ring-outline: $outline-width solid var(--gl-focus-ring-outer-color);
|
|
203
218
|
|