-
Notifications
You must be signed in to change notification settings - Fork 919
/
_base.scss
68 lines (58 loc) · 1.57 KB
/
_base.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Any modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
// Charts themes available app-wide
@import "@elastic/charts/dist/theme";
@import "@elastic/eui/src/themes/charts/theme";
// Grab some nav-specific EUI vars
@import "@elastic/eui/src/components/collapsible_nav/variables";
// Application Layout
$euiCollapsibleNavWidth: $euiSize * 20;
.application,
.app-container {
> * {
position: relative;
}
}
.application {
position: relative;
z-index: 0;
display: flex;
flex: 1 0 auto;
flex-direction: column;
> * {
flex-shrink: 0;
}
}
// We apply brute force focus states to anything not coming from Eui
// which has focus states designed at the component level.
// You can also use "osd-resetFocusState" to not apply the default focus
// state. This is useful when you've already hand crafted your own
// focus states in OpenSearch Dashboards.
:focus {
&:not([class^="eui"]):not(.osd-resetFocusState) {
@include euiFocusRing;
}
}
// A necessary hack so that the above focus policy doesn't pollute some EUI
// entrenched inputs.
.euiComboBox {
// :not() specificity needed to override the above
input:not([class^="eui"]):focus {
animation: none !important;
}
}
.euiBody--collapsibleNavIsDocked .euiBottomBar {
margin-left: $euiCollapsibleNavWidth;
}
.euiButtonIcon.euiButtonIcon--auto {
height: auto;
width: auto;
}