@elastic/eui 71.0.0 → 71.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.
- package/README.md +0 -7
- package/dist/eui_theme_dark.css +7694 -5793
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +7736 -5835
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/datagrid/data_grid.a11y.js +251 -0
- package/es/components/date_picker/date_picker.a11y.js +83 -0
- package/es/components/delay_hide/delay_hide.a11y.js +106 -0
- package/es/components/delay_render/delay_render.a11y.js +106 -0
- package/es/components/empty_prompt/empty_prompt.a11y.js +63 -0
- package/es/components/error_boundary/error_boundary.js +45 -27
- package/es/components/page/page_side_bar/page_side_bar.js +3 -0
- package/es/components/page/page_template.js +1 -15
- package/eui.d.ts +19 -11
- package/i18ntokens.json +4 -4
- package/lib/components/datagrid/data_grid.a11y.js +255 -0
- package/lib/components/date_picker/date_picker.a11y.js +89 -0
- package/lib/components/delay_hide/delay_hide.a11y.js +111 -0
- package/lib/components/delay_render/delay_render.a11y.js +111 -0
- package/lib/components/empty_prompt/empty_prompt.a11y.js +72 -0
- package/lib/components/error_boundary/error_boundary.js +49 -29
- package/lib/components/page/page_side_bar/page_side_bar.js +4 -0
- package/lib/components/page/page_template.js +1 -15
- package/optimize/es/components/datagrid/data_grid.a11y.js +234 -0
- package/optimize/es/components/date_picker/date_picker.a11y.js +73 -0
- package/optimize/es/components/delay_hide/delay_hide.a11y.js +96 -0
- package/optimize/es/components/delay_render/delay_render.a11y.js +96 -0
- package/optimize/es/components/empty_prompt/empty_prompt.a11y.js +63 -0
- package/optimize/es/components/error_boundary/error_boundary.js +37 -26
- package/optimize/es/components/page/page_side_bar/page_side_bar.js +3 -0
- package/optimize/lib/components/datagrid/data_grid.a11y.js +248 -0
- package/optimize/lib/components/date_picker/date_picker.a11y.js +87 -0
- package/optimize/lib/components/delay_hide/delay_hide.a11y.js +111 -0
- package/optimize/lib/components/delay_render/delay_render.a11y.js +111 -0
- package/optimize/lib/components/empty_prompt/empty_prompt.a11y.js +72 -0
- package/optimize/lib/components/error_boundary/error_boundary.js +41 -28
- package/optimize/lib/components/page/page_side_bar/page_side_bar.js +4 -0
- package/package.json +11 -14
- package/src/components/basic_table/_basic_table.scss +1 -4
- package/src/components/button/button_empty/_button_empty.scss +2 -4
- package/src/components/button/button_group/_button_group.scss +1 -1
- package/src/components/button/button_group/_button_group_button.scss +3 -4
- package/src/components/button/button_icon/_button_icon.scss +0 -3
- package/src/components/collapsible_nav/_collapsible_nav.scss +1 -1
- package/src/components/collapsible_nav/collapsible_nav_group/_collapsible_nav_group.scss +1 -1
- package/src/components/color_picker/_color_picker.scss +3 -2
- package/src/components/color_picker/_hue.scss +7 -7
- package/src/components/color_picker/_saturation.scss +1 -1
- package/src/components/color_picker/color_palette_display/_mixins.scss +1 -1
- package/src/components/color_picker/color_stops/_color_stops.scss +2 -3
- package/src/components/combo_box/_combo_box.scss +7 -6
- package/src/components/combo_box/combo_box_input/_combo_box_input.scss +2 -1
- package/src/components/combo_box/combo_box_input/_combo_box_placeholder.scss +1 -1
- package/src/components/combo_box/combo_box_options_list/_combo_box_options_list.scss +2 -3
- package/src/components/control_bar/_variables.scss +0 -1
- package/src/components/datagrid/_data_grid_data_row.scss +4 -5
- package/src/components/datagrid/_mixins.scss +1 -1
- package/src/components/datagrid/body/_data_grid_footer_row.scss +2 -1
- package/src/components/datagrid/body/header/_data_grid_column_resizer.scss +3 -4
- package/src/components/datagrid/body/header/_data_grid_header_row.scss +1 -1
- package/src/components/datagrid/controls/_data_grid_column_sorting.scss +1 -2
- package/src/components/date_picker/_date_picker_range.scss +1 -1
- package/src/components/date_picker/super_date_picker/_super_date_picker.scss +1 -4
- package/src/components/date_picker/super_date_picker/quick_select_popover/_quick_select_popover.scss +1 -1
- package/src/components/drag_and_drop/_draggable.scss +3 -5
- package/src/components/drag_and_drop/_droppable.scss +1 -1
- package/src/components/empty_prompt/_empty_prompt.scss +1 -1
- package/src/components/filter_group/_filter_group.scss +2 -2
- package/src/components/filter_group/_filter_select_item.scss +0 -1
- package/src/components/form/checkbox/_checkbox.scss +5 -3
- package/src/components/form/described_form_group/_described_form_group.scss +0 -1
- package/src/components/form/field_password/_field_password.scss +1 -1
- package/src/components/form/field_search/_field_search.scss +1 -1
- package/src/components/form/file_picker/_file_picker.scss +1 -2
- package/src/components/form/form_control_layout/_form_control_layout.scss +6 -7
- package/src/components/form/form_control_layout/_form_control_layout_delimited.scss +4 -6
- package/src/components/form/form_row/_form_row.scss +3 -0
- package/src/components/form/radio/_radio.scss +5 -3
- package/src/components/form/select/_select.scss +1 -1
- package/src/components/form/switch/_switch.scss +3 -1
- package/src/components/header/_mixins.scss +1 -1
- package/src/components/header/header_section/_header_section_item.scss +4 -4
- package/src/components/header/header_section/_header_section_item_button.scss +0 -1
- package/src/components/key_pad_menu/_key_pad_menu_item.scss +2 -7
- package/src/components/markdown_editor/_markdown_editor_drop_zone.scss +4 -4
- package/src/components/markdown_editor/_markdown_editor_footer.scss +1 -1
- package/src/components/markdown_editor/_markdown_editor_text_area.scss +2 -3
- package/src/components/markdown_editor/_markdown_format.scss +4 -2
- package/src/components/notification/_notification_event.scss +2 -2
- package/src/components/page/page_content/_page_content_body.scss +0 -1
- package/src/components/page/page_content/_page_content_header_section.scss +0 -1
- package/src/components/page/page_side_bar/_page_side_bar.scss +0 -1
- package/src/components/panel/split_panel/_split_panel.scss +2 -2
- package/src/components/resizable_container/_resizable_button.scss +31 -31
- package/src/components/resizable_container/_resizable_collapse_button.scss +9 -9
- package/src/components/selectable/selectable_templates/_selectable_template_sitewide_option.scss +1 -1
- package/src/components/side_nav/_mixins.scss +1 -1
- package/src/components/side_nav/_side_nav.scss +2 -1
- package/src/components/side_nav/_side_nav_item.scss +2 -3
- package/src/components/steps/_steps.scss +2 -1
- package/src/components/suggest/_suggest_input.scss +1 -1
- package/src/components/suggest/_suggest_item.scss +4 -3
- package/src/components/table/_responsive.scss +5 -3
- package/src/components/table/_table.scss +2 -4
- package/src/components/table/mobile/_mobile.scss +0 -2
- package/src/components/tree_view/tree_view.scss +2 -2
- package/src/global_styling/mixins/_form.scss +7 -18
- package/src/global_styling/mixins/_header.scss +2 -2
- package/src/global_styling/mixins/_helpers.scss +1 -2
- package/src/global_styling/mixins/_icons.scss +1 -1
- package/src/global_styling/mixins/_range.scss +4 -8
- package/src/global_styling/mixins/_responsive.scss +3 -8
- package/src/global_styling/mixins/_shadow.scss +5 -9
- package/src/global_styling/mixins/_states.scss +2 -2
- package/src/global_styling/mixins/_typography.scss +16 -19
- package/src/global_styling/variables/_colors_vis.scss +1 -1
- package/src/global_styling/variables/_typography.scss +1 -3
- package/src/themes/amsterdam/_colors_dark.scss +2 -1
- package/src/themes/amsterdam/_colors_light.scss +2 -0
- package/src/themes/amsterdam/global_styling/mixins/_link.scss +1 -1
- package/src/themes/amsterdam/global_styling/mixins/_states.scss +0 -1
- package/src/themes/amsterdam/global_styling/mixins/_typography.scss +1 -2
- package/src/themes/amsterdam/global_styling/react_date_picker/_date_picker_days.scss +0 -1
- package/src/themes/amsterdam/global_styling/react_date_picker/_date_picker_month_year.scss +0 -1
- package/src/themes/amsterdam/global_styling/react_date_picker/_date_picker_times.scss +3 -4
- package/src/themes/amsterdam/global_styling/react_date_picker/_mixins.scss +0 -1
- package/src/themes/amsterdam/global_styling/variables/_typography.scss +1 -2
- package/src/themes/amsterdam/overrides/_color_stops.scss +4 -5
- package/src/themes/amsterdam/overrides/_combo_box.scss +3 -0
- package/src/themes/amsterdam/overrides/_form_control_layout.scss +3 -0
- package/src/themes/amsterdam/overrides/_form_control_layout_delimited.scss +5 -4
- package/src/themes/amsterdam/overrides/_header.scss +2 -2
- package/src/themes/amsterdam/overrides/_hue.scss +6 -6
- package/src/themes/amsterdam/overrides/_key_pad_menu.scss +2 -2
- package/src/themes/amsterdam/overrides/_steps.scss +1 -2
- package/src/themes/legacy/_colors_dark.scss +2 -1
- package/src/themes/legacy/_colors_light.scss +2 -0
- package/src/themes/legacy/reset/_reset.scss +8 -7
- package/test-env/components/datagrid/data_grid.a11y.js +248 -0
- package/test-env/components/date_picker/date_picker.a11y.js +87 -0
- package/test-env/components/delay_hide/delay_hide.a11y.js +111 -0
- package/test-env/components/delay_render/delay_render.a11y.js +111 -0
- package/test-env/components/empty_prompt/empty_prompt.a11y.js +72 -0
- package/test-env/components/error_boundary/error_boundary.js +48 -28
- package/test-env/components/page/page_side_bar/page_side_bar.js +4 -0
- package/test-env/components/page/page_template.js +1 -15
- package/scripts/postinstall.js +0 -9
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
.euiFieldText.euiDatePicker {
|
|
19
19
|
height: $euiFormControlLayoutGroupInputHeight;
|
|
20
20
|
// including all states
|
|
21
|
-
box-shadow: none !important; //
|
|
21
|
+
box-shadow: none !important; // stylelint-disable-line declaration-no-important
|
|
22
22
|
text-align: center;
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
// sass-lint:disable-block function-name-format
|
|
2
|
-
|
|
3
1
|
.euiSuperDatePicker__flexWrapper {
|
|
4
2
|
max-width: 100%;
|
|
5
3
|
// Set a sensible min-width for when width is auto
|
|
@@ -34,10 +32,9 @@
|
|
|
34
32
|
width: $euiSuperDatePickerWidth;
|
|
35
33
|
}
|
|
36
34
|
|
|
37
|
-
|
|
38
35
|
.euiSuperDatePicker {
|
|
39
|
-
// sass-lint:disable-block no-important
|
|
40
36
|
// Allow it to always grow to fit the container since the default form max width is too small
|
|
37
|
+
// stylelint-disable-next-line declaration-no-important
|
|
41
38
|
max-width: 100% !important;
|
|
42
39
|
|
|
43
40
|
> .euiFormControlLayout__childrenWrapper {
|
package/src/components/date_picker/super_date_picker/quick_select_popover/_quick_select_popover.scss
CHANGED
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
margin: $euiSizeS 0 0;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
// sass-lint:disable no-important
|
|
15
14
|
.euiQuickSelectPopover__buttonText {
|
|
16
15
|
// Override specificity from universal and sibling selectors
|
|
16
|
+
// stylelint-disable-next-line declaration-no-important
|
|
17
17
|
margin-right: $euiSizeXS !important;
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
// sass-lint:disable no-empty-rulesets
|
|
2
|
-
|
|
3
1
|
.euiDraggable {
|
|
4
2
|
&.euiDraggable--isDragging {
|
|
5
3
|
// Overriding inline styles on JS-inserted HTML elements
|
|
6
|
-
z-index: $euiZLevel9 !important; //
|
|
4
|
+
z-index: $euiZLevel9 !important; // stylelint-disable-line declaration-no-important
|
|
7
5
|
}
|
|
8
6
|
|
|
9
7
|
&.euiDraggable--hasClone:not(.euiDraggable--isDragging) {
|
|
10
8
|
// Overriding inline styles on JS-inserted HTML elements
|
|
11
|
-
transform: none !important; //
|
|
9
|
+
transform: none !important; // stylelint-disable-line declaration-no-important
|
|
12
10
|
}
|
|
13
11
|
|
|
14
12
|
&.euiDraggable--withoutDropAnimation {
|
|
15
13
|
// Overriding inline styles on JS-inserted HTML elements
|
|
16
|
-
transition-duration: .001s !important; //
|
|
14
|
+
transition-duration: .001s !important; // stylelint-disable-line declaration-no-important
|
|
17
15
|
}
|
|
18
16
|
|
|
19
17
|
&:focus > .euiDraggable__item,
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
.euiDroppable__placeholder {
|
|
14
14
|
&.euiDroppable__placeholder--isHidden {
|
|
15
15
|
// Overriding inline styles on JS-inserted HTML elements
|
|
16
|
-
display: none !important; //
|
|
16
|
+
display: none !important; // stylelint-disable-line declaration-no-important
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
min-width: $euiSize * 3;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
> .euiFilterButton--noGrow
|
|
13
|
+
> .euiFilterButton--noGrow {
|
|
14
14
|
flex-grow: 0;
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
display: flex;
|
|
57
57
|
|
|
58
58
|
.euiFilterButton {
|
|
59
|
-
//
|
|
59
|
+
// stylelint-disable-next-line declaration-no-important
|
|
60
60
|
flex-grow: 1 !important;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// TODO: Address nesting during Emotion conversion, if possible
|
|
2
|
+
// stylelint-disable max-nesting-depth
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
5
|
* 1. Float above the visual radio and match its dimension, so that when users try to click it
|
|
3
6
|
* they actually click this input.
|
|
@@ -48,12 +51,11 @@
|
|
|
48
51
|
}
|
|
49
52
|
|
|
50
53
|
&[disabled] {
|
|
51
|
-
//
|
|
52
|
-
cursor: not-allowed !important;
|
|
54
|
+
cursor: not-allowed !important; // stylelint-disable-line declaration-no-important
|
|
53
55
|
|
|
54
56
|
~ .euiCheckbox__label {
|
|
55
57
|
color: $euiFormControlDisabledColor;
|
|
56
|
-
cursor: not-allowed !important;
|
|
58
|
+
cursor: not-allowed !important; // stylelint-disable-line declaration-no-important
|
|
57
59
|
}
|
|
58
60
|
|
|
59
61
|
+ .euiCheckbox__square {
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* 1. Fix for Safari to ensure that it renders like a normal text input
|
|
3
3
|
* and doesn't add extra spacing around text
|
|
4
4
|
*/
|
|
5
|
+
// stylelint-disable property-no-vendor-prefix, selector-no-vendor-prefix
|
|
5
6
|
|
|
6
7
|
.euiFieldSearch {
|
|
7
8
|
@include euiFormControlStyle;
|
|
8
9
|
@include euiFormControlWithIcon($isIconOptional: false);
|
|
9
10
|
@include euiFormControlIsLoading;
|
|
10
11
|
|
|
11
|
-
// sass-lint:disable-block no-vendor-prefixes
|
|
12
12
|
-webkit-appearance: textfield; /* 1 */
|
|
13
13
|
|
|
14
14
|
&::-webkit-search-decoration,
|
|
@@ -77,7 +77,6 @@
|
|
|
77
77
|
pointer-events: none; /* 1 */
|
|
78
78
|
border-radius: $euiFormControlBorderRadius;
|
|
79
79
|
|
|
80
|
-
// sass-lint:disable-block indentation
|
|
81
80
|
transition:
|
|
82
81
|
box-shadow $euiAnimSpeedFast ease-in,
|
|
83
82
|
background-color $euiAnimSpeedFast ease-in,
|
|
@@ -178,7 +177,7 @@
|
|
|
178
177
|
|
|
179
178
|
// Large styles only
|
|
180
179
|
.euiFilePicker--large {
|
|
181
|
-
//
|
|
180
|
+
// stylelint-disable max-nesting-depth
|
|
182
181
|
// Hover and focus
|
|
183
182
|
.euiFilePicker__input:hover:not(:disabled),
|
|
184
183
|
.euiFilePicker__input:focus {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// TODO: Address nesting during Emotion conversion, if possible
|
|
2
|
+
// stylelint-disable max-nesting-depth
|
|
3
|
+
|
|
1
4
|
.euiFormControlLayout {
|
|
2
5
|
// Let the height expand as needed
|
|
3
6
|
@include euiFormControlSize($includeAlternates: true);
|
|
@@ -71,16 +74,15 @@
|
|
|
71
74
|
background-color: $euiFormInputGroupLabelBackground;
|
|
72
75
|
}
|
|
73
76
|
|
|
74
|
-
|
|
75
77
|
&.euiButtonIcon,
|
|
76
78
|
&.euiButtonEmpty,
|
|
77
79
|
.euiButtonIcon,
|
|
78
80
|
.euiButtonEmpty {
|
|
79
|
-
transform: none !important;
|
|
81
|
+
transform: none !important; // stylelint-disable-line declaration-no-important
|
|
80
82
|
|
|
81
83
|
// Undo sizing from icons inside buttons
|
|
82
84
|
.euiIcon {
|
|
83
|
-
background: none !important;
|
|
85
|
+
background: none !important; // stylelint-disable-line declaration-no-important
|
|
84
86
|
padding: 0;
|
|
85
87
|
width: $euiSize;
|
|
86
88
|
}
|
|
@@ -115,7 +117,7 @@
|
|
|
115
117
|
max-width: 50%; // Make sure max-width only applies to the outer most append/prepend element
|
|
116
118
|
}
|
|
117
119
|
|
|
118
|
-
//
|
|
120
|
+
// stylelint-disable declaration-no-important
|
|
119
121
|
// This is the only way to target specific components to override styling
|
|
120
122
|
|
|
121
123
|
// TEXT
|
|
@@ -141,7 +143,6 @@
|
|
|
141
143
|
}
|
|
142
144
|
}
|
|
143
145
|
|
|
144
|
-
//
|
|
145
146
|
// BORDERS on buttons only
|
|
146
147
|
|
|
147
148
|
.euiButtonEmpty {
|
|
@@ -156,7 +157,6 @@
|
|
|
156
157
|
border-left: $euiFormInputGroupBorder;
|
|
157
158
|
}
|
|
158
159
|
|
|
159
|
-
//
|
|
160
160
|
// Compressed alterations
|
|
161
161
|
|
|
162
162
|
&.euiFormControlLayout--compressed {
|
|
@@ -184,7 +184,6 @@
|
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
//
|
|
188
187
|
// ReadOnly alterations
|
|
189
188
|
&.euiFormControlLayout--readOnly {
|
|
190
189
|
cursor: default;
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
.euiFormControlLayoutDelimited__input {
|
|
24
24
|
height: 100%;
|
|
25
|
+
max-width: none;
|
|
25
26
|
padding-left: $euiFormControlCompressedPadding;
|
|
26
27
|
padding-right: $euiFormControlCompressedPadding;
|
|
27
28
|
}
|
|
@@ -72,20 +73,17 @@
|
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
.euiFormControlLayoutDelimited__input {
|
|
75
|
-
//
|
|
76
|
+
// stylelint-disable declaration-no-important
|
|
76
77
|
box-shadow: none !important;
|
|
77
78
|
border-radius: 0 !important;
|
|
79
|
+
// stylelint-enable declaration-no-important
|
|
78
80
|
text-align: center;
|
|
79
81
|
height: 100%;
|
|
80
82
|
min-width: 0; // Fixes FF
|
|
81
|
-
|
|
82
|
-
.euiFormControlLayoutDelimited[class*='--compressed'] & {
|
|
83
|
-
max-width: none;
|
|
84
|
-
}
|
|
85
83
|
}
|
|
86
84
|
|
|
87
85
|
.euiFormControlLayoutDelimited__delimeter {
|
|
88
|
-
//
|
|
86
|
+
// stylelint-disable-next-line declaration-no-important
|
|
89
87
|
line-height: 1 !important; // Override EuiText line-height
|
|
90
88
|
flex: 0 0 auto;
|
|
91
89
|
padding-left: $euiFormControlPadding / 2;
|
|
@@ -61,6 +61,8 @@
|
|
|
61
61
|
margin-top: $euiSizeM; // More spacing since we reduced the height to match that of the switch
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
+
// TODO: Address nesting during Emotion conversion, if possible
|
|
65
|
+
// stylelint-disable max-nesting-depth
|
|
64
66
|
&.euiFormRow--hasSwitch {
|
|
65
67
|
.euiFormRow__labelWrapper {
|
|
66
68
|
line-height: $euiSwitchHeight - 1px; // The 1px less helps the alignment of the text baseline
|
|
@@ -80,6 +82,7 @@
|
|
|
80
82
|
margin-top: $euiSizeM; // More spacing since we reduced the height to match that of the switch
|
|
81
83
|
}
|
|
82
84
|
}
|
|
85
|
+
// stylelint-enable max-nesting-depth
|
|
83
86
|
}
|
|
84
87
|
|
|
85
88
|
.euiFormRow__fieldWrapperDisplayOnly {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// TODO: Address nesting during Emotion conversion, if possible
|
|
2
|
+
// stylelint-disable max-nesting-depth
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
5
|
* 1. Float above the visual radio and match its dimension, so that when users try to click it
|
|
3
6
|
* they actually click this input.
|
|
@@ -43,12 +46,11 @@
|
|
|
43
46
|
}
|
|
44
47
|
|
|
45
48
|
&[disabled] {
|
|
46
|
-
//
|
|
47
|
-
cursor: not-allowed !important;
|
|
49
|
+
cursor: not-allowed !important; // stylelint-disable-line declaration-no-important
|
|
48
50
|
|
|
49
51
|
~ .euiRadio__label {
|
|
50
52
|
color: $euiFormControlDisabledColor;
|
|
51
|
-
cursor: not-allowed !important;
|
|
53
|
+
cursor: not-allowed !important; // stylelint-disable-line declaration-no-important
|
|
52
54
|
}
|
|
53
55
|
|
|
54
56
|
+ .euiRadio__circle {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// TODO: Address nesting during Emotion conversion, if possible
|
|
2
|
+
// stylelint-disable max-nesting-depth
|
|
3
|
+
|
|
1
4
|
.euiSwitch {
|
|
2
5
|
position: relative;
|
|
3
6
|
display: inline-flex;
|
|
@@ -181,7 +184,6 @@
|
|
|
181
184
|
// Compressed and mini switches have some style overlap
|
|
182
185
|
&.euiSwitch--compressed,
|
|
183
186
|
&.euiSwitch--mini {
|
|
184
|
-
|
|
185
187
|
.euiSwitch__button[aria-checked='false'] {
|
|
186
188
|
.euiSwitch__thumb {
|
|
187
189
|
left: 1px;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
display: flex;
|
|
6
6
|
align-items: center;
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
&::after {
|
|
9
9
|
position: absolute;
|
|
10
10
|
content: '';
|
|
11
11
|
top: $euiSize;
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.euiHeaderSectionItem--borderLeft {
|
|
19
|
-
|
|
19
|
+
&::after {
|
|
20
20
|
left: 0;
|
|
21
21
|
width: 1px;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.euiHeaderSectionItem--borderRight {
|
|
26
|
-
|
|
26
|
+
&::after {
|
|
27
27
|
width: 1px;
|
|
28
28
|
left: auto;
|
|
29
29
|
right: 0;
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
|
|
38
38
|
.euiHeaderSectionItem--borderLeft,
|
|
39
39
|
.euiHeaderSectionItem--borderRight {
|
|
40
|
-
|
|
40
|
+
&::after {
|
|
41
41
|
display: none;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
.euiKeyPadMenuItem {
|
|
6
6
|
@include euiFont; /* 1 */
|
|
7
|
-
// Disable indentation for transition legibility
|
|
8
|
-
// sass-lint:disable-block indentation
|
|
9
7
|
display: block;
|
|
10
8
|
padding: $euiSizeXS;
|
|
11
9
|
height: $euiKeyPadMenuSize;
|
|
@@ -15,7 +13,6 @@
|
|
|
15
13
|
border-radius: $euiBorderRadius;
|
|
16
14
|
color: $euiTextColor; // Override possible link color
|
|
17
15
|
|
|
18
|
-
// sass-lint:disable-block mixins-before-declarations
|
|
19
16
|
@include euiCanAnimate {
|
|
20
17
|
transition:
|
|
21
18
|
background-color $euiAnimSpeedFast ease-in,
|
|
@@ -32,8 +29,6 @@
|
|
|
32
29
|
@include euiSlightShadow;
|
|
33
30
|
border-color: $euiBorderColor;
|
|
34
31
|
|
|
35
|
-
// sass-lint:disable-block mixins-before-declarations
|
|
36
|
-
// sass-lint:disable-block nesting-depth
|
|
37
32
|
@include euiCanAnimate {
|
|
38
33
|
.euiKeyPadMenuItem__icon {
|
|
39
34
|
transform: translateY(0);
|
|
@@ -50,10 +45,10 @@
|
|
|
50
45
|
&.euiKeyPadMenuItem-isDisabled {
|
|
51
46
|
@include euiDisabledState;
|
|
52
47
|
|
|
53
|
-
.euiKeyPadMenuItem__icon
|
|
48
|
+
.euiKeyPadMenuItem__icon {
|
|
54
49
|
filter: grayscale(100%);
|
|
55
50
|
|
|
56
|
-
svg * { //
|
|
51
|
+
svg * { // stylelint-disable-line max-nesting-depth
|
|
57
52
|
fill: $euiButtonColorDisabledText;
|
|
58
53
|
}
|
|
59
54
|
}
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
.euiMarkdownEditorTextArea,
|
|
28
28
|
.euiMarkdownEditorTextArea:focus,
|
|
29
29
|
.euiMarkdownEditor:focus-within .euiMarkdownEditorTextArea {
|
|
30
|
-
//
|
|
30
|
+
// stylelint-disable-next-line declaration-no-important
|
|
31
31
|
background-color: transparentize($euiColorPrimary, .9) !important;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.euiMarkdownEditorTextArea,
|
|
35
35
|
.euiMarkdownEditorTextArea:focus {
|
|
36
|
-
//
|
|
36
|
+
// stylelint-disable-next-line declaration-no-important
|
|
37
37
|
background-image: euiFormControlGradient($euiColorPrimary) !important;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
.euiMarkdownEditorTextArea,
|
|
44
44
|
.euiMarkdownEditorTextArea:focus,
|
|
45
45
|
.euiMarkdownEditor:focus-within .euiMarkdownEditorTextArea {
|
|
46
|
-
//
|
|
46
|
+
// stylelint-disable-next-line declaration-no-important
|
|
47
47
|
background-color: transparentize($euiColorDanger, .9) !important;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
&--hasError {
|
|
52
52
|
.euiMarkdownEditorTextArea,
|
|
53
53
|
.euiMarkdownEditorTextArea:focus {
|
|
54
|
-
//
|
|
54
|
+
// stylelint-disable-next-line declaration-no-important
|
|
55
55
|
background-image: euiFormControlGradient($euiColorDanger) !important;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
// overrides button empty styles so it can match the button icon
|
|
24
|
-
// So when we have an error this button appears smoothly
|
|
24
|
+
// So when we have an error this button appears smoothly
|
|
25
25
|
.euiMarkdownEditorFooter__uploadError {
|
|
26
26
|
position: relative;
|
|
27
27
|
left: -1px;
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
// Removes default firefox margin
|
|
17
17
|
margin: 0;
|
|
18
18
|
|
|
19
|
-
// sass-lint:disable-block indentation
|
|
20
19
|
transition:
|
|
21
20
|
box-shadow $euiAnimSpeedFast ease-in,
|
|
22
21
|
background-image $euiAnimSpeedFast ease-in,
|
|
@@ -26,7 +25,7 @@
|
|
|
26
25
|
&:focus,
|
|
27
26
|
// preventing the text area of loosing focus when clicking on an action button
|
|
28
27
|
// from the toolbar
|
|
29
|
-
.euiMarkdownEditor:focus-within &
|
|
28
|
+
.euiMarkdownEditor:focus-within & {
|
|
30
29
|
background-color: tintOrShade($euiColorEmptyShade, 0%, 40%);
|
|
31
30
|
background-image: euiFormControlGradient();
|
|
32
31
|
background-size: 100% 100%;
|
|
@@ -41,4 +40,4 @@
|
|
|
41
40
|
.euiMarkdownEditor:focus-within & {
|
|
42
41
|
background: none;
|
|
43
42
|
}
|
|
44
|
-
}
|
|
43
|
+
}
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
.euiMarkdownFormat {
|
|
35
35
|
$euiMarkdownAlphaShade: rgba($euiColorFullShade, .15);
|
|
36
36
|
|
|
37
|
+
// stylelint-disable indentation
|
|
37
38
|
$euiMarkdownBorderColors: (
|
|
38
39
|
default: $euiMarkdownAlphaShade,
|
|
39
40
|
subdued: $euiTextSubduedColor,
|
|
@@ -45,6 +46,7 @@
|
|
|
45
46
|
inherit: currentColor,
|
|
46
47
|
custom: currentColor,
|
|
47
48
|
);
|
|
49
|
+
// stylelint-enable indentation
|
|
48
50
|
|
|
49
51
|
// We're adjusting the borders of the elements by passing a color defined in $euiMarkdownBorderColors.
|
|
50
52
|
// For the `custom` and `inherit` colors we're assigning the `currentColor` so we can get the current or computed value of the `color` property
|
|
@@ -59,12 +61,12 @@
|
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
.euiCheckbox {
|
|
62
|
-
//
|
|
64
|
+
// stylelint-disable-next-line declaration-no-important
|
|
63
65
|
margin-bottom: 0 !important;
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
// We're adjusting the position of the checkboxes so that when the text size is `relative` the checkboxes get better positioned
|
|
67
|
-
.euiCheckbox .euiCheckbox__input + .euiCheckbox__square
|
|
69
|
+
.euiCheckbox .euiCheckbox__input + .euiCheckbox__square {
|
|
68
70
|
top: 50%;
|
|
69
71
|
transform: translateY(-50%);
|
|
70
72
|
}
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
&--isRead {
|
|
25
|
-
color: $euiColorDarkShade !important; //
|
|
25
|
+
color: $euiColorDarkShade !important; // stylelint-disable-line declaration-no-important
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -37,4 +37,4 @@
|
|
|
37
37
|
margin-top: $euiSizeS;
|
|
38
38
|
margin-right: $euiSizeM;
|
|
39
39
|
}
|
|
40
|
-
}
|
|
40
|
+
}
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
.euiSplitPanel__inner {
|
|
8
8
|
flex-basis: 0%; // Make sure they're evenly split
|
|
9
9
|
// Ensure no movement if they have click handlers
|
|
10
|
-
transform: none !important; //
|
|
11
|
-
box-shadow: none !important; //
|
|
10
|
+
transform: none !important; // stylelint-disable-line declaration-no-important
|
|
11
|
+
box-shadow: none !important; // stylelint-disable-line declaration-no-important
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|