@elastic/eui-theme-common 0.0.1
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/LICENSE.txt +6 -0
- package/README.md +11 -0
- package/lib/cjs/.tsbuildinfo +1 -0
- package/lib/cjs/global_styling/functions/index.d.ts +2 -0
- package/lib/cjs/global_styling/functions/index.d.ts.map +1 -0
- package/lib/cjs/global_styling/functions/index.js +22 -0
- package/lib/cjs/global_styling/functions/index.js.map +1 -0
- package/lib/cjs/global_styling/functions/size.d.ts +13 -0
- package/lib/cjs/global_styling/functions/size.d.ts.map +1 -0
- package/lib/cjs/global_styling/functions/size.js +42 -0
- package/lib/cjs/global_styling/functions/size.js.map +1 -0
- package/lib/cjs/global_styling/index.d.ts +4 -0
- package/lib/cjs/global_styling/index.d.ts.map +1 -0
- package/lib/cjs/global_styling/index.js +44 -0
- package/lib/cjs/global_styling/index.js.map +1 -0
- package/lib/cjs/global_styling/types.d.ts +66 -0
- package/lib/cjs/global_styling/types.d.ts.map +1 -0
- package/lib/cjs/global_styling/types.js +21 -0
- package/lib/cjs/global_styling/types.js.map +1 -0
- package/lib/cjs/global_styling/variables/_colors_vis.d.ts +13 -0
- package/lib/cjs/global_styling/variables/_colors_vis.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/_colors_vis.js +69 -0
- package/lib/cjs/global_styling/variables/_colors_vis.js.map +1 -0
- package/lib/cjs/global_styling/variables/animations.d.ts +36 -0
- package/lib/cjs/global_styling/variables/animations.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/animations.js +38 -0
- package/lib/cjs/global_styling/variables/animations.js.map +1 -0
- package/lib/cjs/global_styling/variables/borders.d.ts +61 -0
- package/lib/cjs/global_styling/variables/borders.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/borders.js +7 -0
- package/lib/cjs/global_styling/variables/borders.js.map +1 -0
- package/lib/cjs/global_styling/variables/breakpoint.d.ts +15 -0
- package/lib/cjs/global_styling/variables/breakpoint.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/breakpoint.js +23 -0
- package/lib/cjs/global_styling/variables/breakpoint.js.map +1 -0
- package/lib/cjs/global_styling/variables/buttons.d.ts +44 -0
- package/lib/cjs/global_styling/variables/buttons.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/buttons.js +7 -0
- package/lib/cjs/global_styling/variables/buttons.js.map +1 -0
- package/lib/cjs/global_styling/variables/colors.d.ts +245 -0
- package/lib/cjs/global_styling/variables/colors.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/colors.js +7 -0
- package/lib/cjs/global_styling/variables/colors.js.map +1 -0
- package/lib/cjs/global_styling/variables/components.d.ts +69 -0
- package/lib/cjs/global_styling/variables/components.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/components.js +7 -0
- package/lib/cjs/global_styling/variables/components.js.map +1 -0
- package/lib/cjs/global_styling/variables/forms.d.ts +20 -0
- package/lib/cjs/global_styling/variables/forms.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/forms.js +7 -0
- package/lib/cjs/global_styling/variables/forms.js.map +1 -0
- package/lib/cjs/global_styling/variables/index.d.ts +14 -0
- package/lib/cjs/global_styling/variables/index.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/index.js +154 -0
- package/lib/cjs/global_styling/variables/index.js.map +1 -0
- package/lib/cjs/global_styling/variables/levels.d.ts +39 -0
- package/lib/cjs/global_styling/variables/levels.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/levels.js +33 -0
- package/lib/cjs/global_styling/variables/levels.js.map +1 -0
- package/lib/cjs/global_styling/variables/shadow.d.ts +11 -0
- package/lib/cjs/global_styling/variables/shadow.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/shadow.js +27 -0
- package/lib/cjs/global_styling/variables/shadow.js.map +1 -0
- package/lib/cjs/global_styling/variables/size.d.ts +26 -0
- package/lib/cjs/global_styling/variables/size.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/size.js +17 -0
- package/lib/cjs/global_styling/variables/size.js.map +1 -0
- package/lib/cjs/global_styling/variables/states.d.ts +25 -0
- package/lib/cjs/global_styling/variables/states.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/states.js +7 -0
- package/lib/cjs/global_styling/variables/states.js.map +1 -0
- package/lib/cjs/global_styling/variables/typography.d.ts +93 -0
- package/lib/cjs/global_styling/variables/typography.d.ts.map +1 -0
- package/lib/cjs/global_styling/variables/typography.js +48 -0
- package/lib/cjs/global_styling/variables/typography.js.map +1 -0
- package/lib/cjs/index.d.ts +4 -0
- package/lib/cjs/index.d.ts.map +1 -0
- package/lib/cjs/index.js +44 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/types.d.ts +33 -0
- package/lib/cjs/types.d.ts.map +1 -0
- package/lib/cjs/types.js +7 -0
- package/lib/cjs/types.js.map +1 -0
- package/lib/cjs/utils.d.ts +104 -0
- package/lib/cjs/utils.d.ts.map +1 -0
- package/lib/cjs/utils.js +382 -0
- package/lib/cjs/utils.js.map +1 -0
- package/lib/cjs/utils.test.js +411 -0
- package/lib/cjs/utils.test.js.map +1 -0
- package/lib/esm/.tsbuildinfo +1 -0
- package/lib/esm/global_styling/functions/index.d.ts +1 -0
- package/lib/esm/global_styling/functions/index.js +9 -0
- package/lib/esm/global_styling/functions/index.js.map +1 -0
- package/lib/esm/global_styling/functions/size.d.ts +12 -0
- package/lib/esm/global_styling/functions/size.js +21 -0
- package/lib/esm/global_styling/functions/size.js.map +1 -0
- package/lib/esm/global_styling/index.d.ts +3 -0
- package/lib/esm/global_styling/index.js +11 -0
- package/lib/esm/global_styling/index.js.map +1 -0
- package/lib/esm/global_styling/types.d.ts +65 -0
- package/lib/esm/global_styling/types.js +13 -0
- package/lib/esm/global_styling/types.js.map +1 -0
- package/lib/esm/global_styling/variables/_colors_vis.d.ts +12 -0
- package/lib/esm/global_styling/variables/_colors_vis.js +60 -0
- package/lib/esm/global_styling/variables/_colors_vis.js.map +1 -0
- package/lib/esm/global_styling/variables/animations.d.ts +35 -0
- package/lib/esm/global_styling/variables/animations.js +25 -0
- package/lib/esm/global_styling/variables/animations.js.map +1 -0
- package/lib/esm/global_styling/variables/borders.d.ts +60 -0
- package/lib/esm/global_styling/variables/borders.js +9 -0
- package/lib/esm/global_styling/variables/borders.js.map +1 -0
- package/lib/esm/global_styling/variables/breakpoint.d.ts +14 -0
- package/lib/esm/global_styling/variables/breakpoint.js +9 -0
- package/lib/esm/global_styling/variables/breakpoint.js.map +1 -0
- package/lib/esm/global_styling/variables/buttons.d.ts +43 -0
- package/lib/esm/global_styling/variables/buttons.js +9 -0
- package/lib/esm/global_styling/variables/buttons.js.map +1 -0
- package/lib/esm/global_styling/variables/colors.d.ts +244 -0
- package/lib/esm/global_styling/variables/colors.js +9 -0
- package/lib/esm/global_styling/variables/colors.js.map +1 -0
- package/lib/esm/global_styling/variables/components.d.ts +68 -0
- package/lib/esm/global_styling/variables/components.js +9 -0
- package/lib/esm/global_styling/variables/components.js.map +1 -0
- package/lib/esm/global_styling/variables/forms.d.ts +19 -0
- package/lib/esm/global_styling/variables/forms.js +9 -0
- package/lib/esm/global_styling/variables/forms.js.map +1 -0
- package/lib/esm/global_styling/variables/index.d.ts +13 -0
- package/lib/esm/global_styling/variables/index.js +21 -0
- package/lib/esm/global_styling/variables/index.js.map +1 -0
- package/lib/esm/global_styling/variables/levels.d.ts +38 -0
- package/lib/esm/global_styling/variables/levels.js +34 -0
- package/lib/esm/global_styling/variables/levels.js.map +1 -0
- package/lib/esm/global_styling/variables/shadow.d.ts +10 -0
- package/lib/esm/global_styling/variables/shadow.js +19 -0
- package/lib/esm/global_styling/variables/shadow.js.map +1 -0
- package/lib/esm/global_styling/variables/size.d.ts +25 -0
- package/lib/esm/global_styling/variables/size.js +20 -0
- package/lib/esm/global_styling/variables/size.js.map +1 -0
- package/lib/esm/global_styling/variables/states.d.ts +24 -0
- package/lib/esm/global_styling/variables/states.js +9 -0
- package/lib/esm/global_styling/variables/states.js.map +1 -0
- package/lib/esm/global_styling/variables/typography.d.ts +92 -0
- package/lib/esm/global_styling/variables/typography.js +35 -0
- package/lib/esm/global_styling/variables/typography.js.map +1 -0
- package/lib/esm/index.d.ts +3 -0
- package/lib/esm/index.js +11 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/types.d.ts +32 -0
- package/lib/esm/types.js +9 -0
- package/lib/esm/types.js.map +1 -0
- package/lib/esm/utils.d.ts +103 -0
- package/lib/esm/utils.js +300 -0
- package/lib/esm/utils.js.map +1 -0
- package/lib/esm/utils.test.d.ts +1 -0
- package/lib/esm/utils.test.js +233 -0
- package/lib/esm/utils.test.js.map +1 -0
- package/licenses/ELASTIC-LICENSE-2.0.md +93 -0
- package/licenses/SSPL-LICENSE.md +557 -0
- package/package.json +78 -0
- package/src/global_styling/functions/_colors.scss +138 -0
- package/src/global_styling/functions/_index.scss +5 -0
- package/src/global_styling/functions/_math.scss +1 -0
- package/src/global_styling/functions/_math_pow.scss +82 -0
- package/src/global_styling/index.scss +18 -0
- package/src/global_styling/mixins/_button.scss +149 -0
- package/src/global_styling/mixins/_form.scss +273 -0
- package/src/global_styling/mixins/_helpers.scss +126 -0
- package/src/global_styling/mixins/_index.scss +14 -0
- package/src/global_styling/mixins/_link.scss +11 -0
- package/src/global_styling/mixins/_loading.scss +6 -0
- package/src/global_styling/mixins/_panel.scss +55 -0
- package/src/global_styling/mixins/_range.scss +62 -0
- package/src/global_styling/mixins/_responsive.scss +44 -0
- package/src/global_styling/mixins/_shadow.scss +108 -0
- package/src/global_styling/mixins/_size.scss +4 -0
- package/src/global_styling/mixins/_states.scss +50 -0
- package/src/global_styling/mixins/_tool_tip.scss +25 -0
- package/src/global_styling/mixins/_typography.scss +167 -0
- package/src/global_styling/react_date_picker/_date_picker.scss +772 -0
- package/src/global_styling/react_date_picker/_index.scss +2 -0
- package/src/global_styling/react_date_picker/_variables.scss +1 -0
- package/src/global_styling/utility/_animations.scss +55 -0
- package/src/global_styling/utility/_index.scss +1 -0
- package/src/global_styling/variables/_animations.scss +13 -0
- package/src/global_styling/variables/_borders.scss +11 -0
- package/src/global_styling/variables/_buttons.scss +18 -0
- package/src/global_styling/variables/_colors_vis.scss +72 -0
- package/src/global_styling/variables/_font_weight.scss +10 -0
- package/src/global_styling/variables/_form.scss +8 -0
- package/src/global_styling/variables/_index.scss +23 -0
- package/src/global_styling/variables/_responsive.scss +9 -0
- package/src/global_styling/variables/_shadows.scss +2 -0
- package/src/global_styling/variables/_size.scss +15 -0
- package/src/global_styling/variables/_states.scss +14 -0
- package/src/global_styling/variables/_typography.scss +75 -0
- package/src/global_styling/variables/_z_index.scss +34 -0
|
@@ -0,0 +1,772 @@
|
|
|
1
|
+
/* This file is a heavy retheme of react-datepicker's Sass as of v1.4.0
|
|
2
|
+
** https://github.com/Hacker0x01/react-datepicker
|
|
3
|
+
**
|
|
4
|
+
** In places where features were disabled, I've commented out the original Sass
|
|
5
|
+
** selectors rather than removing it so we can better understand what's changed.
|
|
6
|
+
** Commented out selectors that don't have properties indicate that we are not
|
|
7
|
+
** using those dom elements for styling of any kind. For example, react-datepicker
|
|
8
|
+
** has lots of pointer arrows attached to its popovers, but we choose not to render
|
|
9
|
+
** then in any way.
|
|
10
|
+
**
|
|
11
|
+
** Similarly, you will also find several times where we use display: none to
|
|
12
|
+
** completely remove extraneous UI (they had some overly obvious legends for example).
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// Because we don't have control over react-datepicker's dom we use SVG URIs for the navigation arrows.
|
|
17
|
+
// There is one for light and dark.
|
|
18
|
+
@mixin datePickerArrow {
|
|
19
|
+
background-position: center;
|
|
20
|
+
@if (lightness($euiColorEmptyShade) > 50) {
|
|
21
|
+
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiI+ICA8ZGVmcz4gICAgPHBhdGggaWQ9ImFycm93X2Rvd24tYSIgZD0iTTEzLjA2ODg1MDgsNS4xNTcyNTAzOCBMOC4zODQyMzk3NSw5Ljc2ODI3NDI4IEM4LjE3MDU0NDE1LDkuOTc4NjEzMDggNy44Mjk5OTIxNCw5Ljk3OTE0MDk1IDcuNjE1NzYwMjUsOS43NjgyNzQyOCBMMi45MzExNDkxNSw1LjE1NzI1MDM4IEMyLjcxODEzNTksNC45NDc1ODMyMSAyLjM3Mjc3MzE5LDQuOTQ3NTgzMjEgMi4xNTk3NTk5NCw1LjE1NzI1MDM4IEMxLjk0Njc0NjY5LDUuMzY2OTE3NTYgMS45NDY3NDY2OSw1LjcwNjg1NTIyIDIuMTU5NzU5OTQsNS45MTY1MjI0IEw2Ljg0NDM3MTA0LDEwLjUyNzU0NjMgQzcuNDg1MTc0MjQsMTEuMTU4MjgzNiA4LjUxNjQ0OTc5LDExLjE1NjY4NTEgOS4xNTU2Mjg5NiwxMC41Mjc1NDYzIEwxMy44NDAyNDAxLDUuOTE2NTIyNCBDMTQuMDUzMjUzMyw1LjcwNjg1NTIyIDE0LjA1MzI1MzMsNS4zNjY5MTc1NiAxMy44NDAyNDAxLDUuMTU3MjUwMzggQzEzLjYyNzIyNjgsNC45NDc1ODMyMSAxMy4yODE4NjQxLDQuOTQ3NTgzMjEgMTMuMDY4ODUwOCw1LjE1NzI1MDM4IFoiLz4gIDwvZGVmcz4gIDxnIGZpbGwtcnVsZT0iZXZlbm9kZCI+ICAgIDx1c2UgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYXJyb3dfZG93bi1hIi8+ICA8L2c+PC9zdmc+);
|
|
22
|
+
} @else {
|
|
23
|
+
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiI+ICA8ZGVmcz4gICAgPHBhdGggaWQ9ImRvd25hcnJvd3doaXRlLWEiIGQ9Ik0xMy4wNjg4NTA4LDUuMTU3MjUwMzggTDguMzg0MjM5NzUsOS43NjgyNzQyOCBDOC4xNzA1NDQxNSw5Ljk3ODYxMzA4IDcuODI5OTkyMTQsOS45NzkxNDA5NSA3LjYxNTc2MDI1LDkuNzY4Mjc0MjggTDIuOTMxMTQ5MTUsNS4xNTcyNTAzOCBDMi43MTgxMzU5LDQuOTQ3NTgzMjEgMi4zNzI3NzMxOSw0Ljk0NzU4MzIxIDIuMTU5NzU5OTQsNS4xNTcyNTAzOCBDMS45NDY3NDY2OSw1LjM2NjkxNzU2IDEuOTQ2NzQ2NjksNS43MDY4NTUyMiAyLjE1OTc1OTk0LDUuOTE2NTIyNCBMNi44NDQzNzEwNCwxMC41Mjc1NDYzIEM3LjQ4NTE3NDI0LDExLjE1ODI4MzYgOC41MTY0NDk3OSwxMS4xNTY2ODUxIDkuMTU1NjI4OTYsMTAuNTI3NTQ2MyBMMTMuODQwMjQwMSw1LjkxNjUyMjQgQzE0LjA1MzI1MzMsNS43MDY4NTUyMiAxNC4wNTMyNTMzLDUuMzY2OTE3NTYgMTMuODQwMjQwMSw1LjE1NzI1MDM4IEMxMy42MjcyMjY4LDQuOTQ3NTgzMjEgMTMuMjgxODY0MSw0Ljk0NzU4MzIxIDEzLjA2ODg1MDgsNS4xNTcyNTAzOCBaIi8+ICA8L2RlZnM+ICA8ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICA8dXNlIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0ibm9uemVybyIgeGxpbms6aHJlZj0iI2Rvd25hcnJvd3doaXRlLWEiLz4gIDwvZz48L3N2Zz4=);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// The only "new" css in this component is a wrapper class for dealing with shadows.
|
|
28
|
+
// This is mostly here so that we can provide an inline version that doesn't have the
|
|
29
|
+
// shadows and depth.
|
|
30
|
+
.euiDatePicker {
|
|
31
|
+
.euiFormControlLayout {
|
|
32
|
+
height: auto;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.euiDatePicker--shadow {
|
|
36
|
+
.react-datepicker-popper {
|
|
37
|
+
@include euiBottomShadowMedium;
|
|
38
|
+
|
|
39
|
+
border: $euiBorderThin;
|
|
40
|
+
background-color: $euiColorEmptyShade;
|
|
41
|
+
border-radius: 0 0 $euiBorderRadius $euiBorderRadius;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// If the shadow is on, and it is inline, we need to put the shadow on the datepicker
|
|
45
|
+
// itself rather than the popper.
|
|
46
|
+
&.euiDatePicker--inline {
|
|
47
|
+
.react-datepicker {
|
|
48
|
+
@include euiBottomShadowMedium;
|
|
49
|
+
|
|
50
|
+
border: $euiBorderThin;
|
|
51
|
+
background-color: $euiColorEmptyShade;
|
|
52
|
+
border-radius: $euiBorderRadius;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// .react-datepicker-wrapper {
|
|
59
|
+
// }
|
|
60
|
+
|
|
61
|
+
.react-datepicker {
|
|
62
|
+
@include euiFont;
|
|
63
|
+
font-size: $euiFontSizeXS;
|
|
64
|
+
color: $euiColorFullShade;
|
|
65
|
+
display: flex;
|
|
66
|
+
position: relative;
|
|
67
|
+
border-radius: $euiBorderRadius;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// When in time only mode we make the dropdown look more like the combo box styling.
|
|
71
|
+
.react-datepicker--time-only {
|
|
72
|
+
|
|
73
|
+
.react-datepicker__time-container {
|
|
74
|
+
|
|
75
|
+
.react-datepicker__time {
|
|
76
|
+
|
|
77
|
+
.react-datepicker__time-box {
|
|
78
|
+
width: 100%;
|
|
79
|
+
|
|
80
|
+
.react-datepicker__time-list li.react-datepicker__time-list-item {
|
|
81
|
+
font-size: $euiFontSizeS;
|
|
82
|
+
text-align: left;
|
|
83
|
+
padding-left: $euiSizeXL + $euiSizeXS;
|
|
84
|
+
padding-right: $euiSizeXL + $euiSizeXS;
|
|
85
|
+
color: $euiTextColor;
|
|
86
|
+
|
|
87
|
+
&.react-datepicker__time-list-item--selected {
|
|
88
|
+
color: $euiColorGhost;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&.react-datepicker__time-list-item--disabled{
|
|
92
|
+
color: $euiColorDisabledText
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
.react-datepicker__time-container {
|
|
101
|
+
border-left: 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// .react-datepicker__triangle {
|
|
105
|
+
// }
|
|
106
|
+
// .react-datepicker__time {
|
|
107
|
+
// }
|
|
108
|
+
// .react-datepicker__time-box {
|
|
109
|
+
// }
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// .react-datepicker__triangle {
|
|
113
|
+
// }
|
|
114
|
+
|
|
115
|
+
.euiDatePicker.euiDatePicker--shadow .react-datepicker-popper {
|
|
116
|
+
z-index: $euiZContentMenu;
|
|
117
|
+
animation: euiAnimFadeIn $euiAnimSpeedFast ease-in;
|
|
118
|
+
|
|
119
|
+
&[data-placement^="bottom"] {
|
|
120
|
+
|
|
121
|
+
// .react-datepicker__triangle {
|
|
122
|
+
// }
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&[data-placement^="top"] {
|
|
126
|
+
@include euiBottomShadowFlat;
|
|
127
|
+
|
|
128
|
+
border-radius: $euiBorderRadius $euiBorderRadius 0 0;
|
|
129
|
+
|
|
130
|
+
// .react-datepicker__triangle {
|
|
131
|
+
// }
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&[data-placement^="right"] {
|
|
135
|
+
margin-left: 0;
|
|
136
|
+
|
|
137
|
+
// .react-datepicker__triangle {
|
|
138
|
+
// }
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
&[data-placement^="left"] {
|
|
142
|
+
margin-right: 0;
|
|
143
|
+
|
|
144
|
+
// .react-datepicker__triangle {
|
|
145
|
+
// }
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.react-datepicker__header {
|
|
150
|
+
text-align: center;
|
|
151
|
+
border-top-left-radius: $euiBorderRadius;
|
|
152
|
+
border-top-right-radius: $euiBorderRadius;
|
|
153
|
+
|
|
154
|
+
&--time {
|
|
155
|
+
display: none;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.react-datepicker__header__dropdown {
|
|
160
|
+
padding: $euiSize 0 $euiSizeS 0;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.react-datepicker__year-dropdown-container--select,
|
|
164
|
+
.react-datepicker__month-dropdown-container--select,
|
|
165
|
+
.react-datepicker__month-year-dropdown-container--select,
|
|
166
|
+
.react-datepicker__year-dropdown-container--scroll,
|
|
167
|
+
.react-datepicker__month-dropdown-container--scroll,
|
|
168
|
+
.react-datepicker__month-year-dropdown-container--scroll {
|
|
169
|
+
display: inline-block;
|
|
170
|
+
margin: 0 $euiSizeXS;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.react-datepicker__current-month,
|
|
174
|
+
.react-datepicker-time__header {
|
|
175
|
+
display: none;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.react-datepicker-time__header {
|
|
179
|
+
text-overflow: ellipsis;
|
|
180
|
+
white-space: nowrap;
|
|
181
|
+
overflow: hidden;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.react-datepicker__navigation {
|
|
185
|
+
cursor: pointer;
|
|
186
|
+
position: absolute;
|
|
187
|
+
// Pixel pushing because these are icons against text
|
|
188
|
+
top: $euiSize + ($euiSizeXS / 2);
|
|
189
|
+
width: 0;
|
|
190
|
+
padding: 0;
|
|
191
|
+
z-index: 1;
|
|
192
|
+
text-indent: -999em;
|
|
193
|
+
overflow: hidden;
|
|
194
|
+
|
|
195
|
+
&--previous {
|
|
196
|
+
@include datePickerArrow;
|
|
197
|
+
left: $euiSize + $euiSizeXS;
|
|
198
|
+
height: $euiSize;
|
|
199
|
+
width: $euiSize;
|
|
200
|
+
transform: rotate(90deg);
|
|
201
|
+
transition: transform $euiAnimSpeedExtraFast ease-in-out;
|
|
202
|
+
|
|
203
|
+
&:hover, &:focus {
|
|
204
|
+
border-radius: $euiBorderRadius;
|
|
205
|
+
transform: scale(1.2) rotate(90deg);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
&:hover {
|
|
209
|
+
background-color: $euiColorLightestShade;
|
|
210
|
+
box-shadow: 0 0 0 ($euiSizeXS / 2) $euiColorLightestShade;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
&:focus {
|
|
214
|
+
background-color: $euiFocusBackgroundColor;
|
|
215
|
+
box-shadow: 0 0 0 ($euiSizeXS / 2) $euiFocusBackgroundColor;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
&--disabled,
|
|
219
|
+
&--disabled:hover {
|
|
220
|
+
cursor: not-allowed ;
|
|
221
|
+
opacity: .2;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
&--next {
|
|
226
|
+
@include datePickerArrow;
|
|
227
|
+
// Pixel value because of some padding on the icon
|
|
228
|
+
right: 20px;
|
|
229
|
+
height: $euiSize;
|
|
230
|
+
width: $euiSize;
|
|
231
|
+
transform: rotate(-90deg);
|
|
232
|
+
|
|
233
|
+
&--with-time:not(&--with-today-button) {
|
|
234
|
+
// This a pixel value against the width of the cal. It needs
|
|
235
|
+
// to be left because the timepicker adds more width
|
|
236
|
+
left: 248px;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
&:hover, &:focus {
|
|
240
|
+
border-radius: $euiBorderRadius;
|
|
241
|
+
transform: scale(1.2) rotate(-90deg);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
&:hover {
|
|
245
|
+
background-color: $euiColorLightestShade;
|
|
246
|
+
box-shadow: 0 0 0 ($euiSizeXS / 2) $euiColorLightestShade;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
&:focus {
|
|
250
|
+
background-color: $euiFocusBackgroundColor;
|
|
251
|
+
box-shadow: 0 0 0 ($euiSizeXS / 2) $euiFocusBackgroundColor;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
&--disabled,
|
|
255
|
+
&--disabled:hover {
|
|
256
|
+
cursor: not-allowed ;
|
|
257
|
+
opacity: .2;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
&--years {
|
|
262
|
+
position: relative;
|
|
263
|
+
top: 0;
|
|
264
|
+
display: block;
|
|
265
|
+
margin-left: auto;
|
|
266
|
+
margin-right: auto;
|
|
267
|
+
|
|
268
|
+
&-previous {
|
|
269
|
+
top: $euiSizeXS;
|
|
270
|
+
border-top-color: $euiColorLightestShade;
|
|
271
|
+
|
|
272
|
+
&:hover {
|
|
273
|
+
border-top-color: darken($euiColorLightestShade, 10%);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
&-upcoming {
|
|
278
|
+
top: -$euiSizeXS;
|
|
279
|
+
border-bottom-color: $euiColorLightestShade;
|
|
280
|
+
|
|
281
|
+
&:hover {
|
|
282
|
+
border-bottom-color: darken($euiColorLightestShade, 10%);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
// .react-datepicker__month-container {
|
|
289
|
+
// }
|
|
290
|
+
|
|
291
|
+
.react-datepicker__month {
|
|
292
|
+
margin: 0 $euiSize $euiSize $euiSize;
|
|
293
|
+
text-align: center;
|
|
294
|
+
border-radius: $euiBorderRadius;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.react-datepicker__time-container {
|
|
298
|
+
border-left: $euiBorderColor;
|
|
299
|
+
width: auto;
|
|
300
|
+
display: flex;
|
|
301
|
+
padding: $euiSize 0;
|
|
302
|
+
border-radius: 0 $euiBorderRadius $euiBorderRadius 0;
|
|
303
|
+
flex-grow: 1;
|
|
304
|
+
|
|
305
|
+
// &--with-today-button {
|
|
306
|
+
// }
|
|
307
|
+
|
|
308
|
+
.react-datepicker__time {
|
|
309
|
+
position: relative;
|
|
310
|
+
flex-grow: 1;
|
|
311
|
+
display: flex;
|
|
312
|
+
padding-left: $euiSizeXS;
|
|
313
|
+
flex-direction: column;
|
|
314
|
+
|
|
315
|
+
.react-datepicker__time-box {
|
|
316
|
+
width: auto;
|
|
317
|
+
display: flex;
|
|
318
|
+
flex-direction: column;
|
|
319
|
+
flex-grow: 1;
|
|
320
|
+
|
|
321
|
+
ul.react-datepicker__time-list {
|
|
322
|
+
@include euiScrollBar;
|
|
323
|
+
height: 204px !important;
|
|
324
|
+
display: flex;
|
|
325
|
+
flex-direction: column;
|
|
326
|
+
flex-grow: 1;
|
|
327
|
+
overflow-y: auto;
|
|
328
|
+
align-items: center;
|
|
329
|
+
|
|
330
|
+
li.react-datepicker__time-list-item {
|
|
331
|
+
padding: $euiSizeXS $euiSizeS;
|
|
332
|
+
margin-bottom: $euiSizeXS;
|
|
333
|
+
text-align: right;
|
|
334
|
+
color: $euiColorDarkShade;
|
|
335
|
+
white-space: nowrap;
|
|
336
|
+
// IE needs this to fix collapsing flex
|
|
337
|
+
line-height: $euiSizeM;
|
|
338
|
+
|
|
339
|
+
&:hover,
|
|
340
|
+
&:focus {
|
|
341
|
+
cursor: pointer;
|
|
342
|
+
text-decoration: underline;
|
|
343
|
+
}
|
|
344
|
+
&--selected {
|
|
345
|
+
background-color: $euiColorPrimary;
|
|
346
|
+
color: white;
|
|
347
|
+
border-radius: $euiBorderRadius / 2;
|
|
348
|
+
&:hover {
|
|
349
|
+
background-color: $euiColorPrimary;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
&--disabled {
|
|
353
|
+
color: $euiColorLightShade;
|
|
354
|
+
|
|
355
|
+
&:hover {
|
|
356
|
+
cursor: not-allowed;
|
|
357
|
+
text-decoration: none;
|
|
358
|
+
background-color: transparent;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.react-datepicker__week-number {
|
|
368
|
+
color: $euiColorLightestShade;
|
|
369
|
+
display: inline-block;
|
|
370
|
+
width: $euiSizeXL;
|
|
371
|
+
line-height: $euiSizeXL - $euiSizeXS;
|
|
372
|
+
text-align: center;
|
|
373
|
+
margin: 0 $euiSizeXS;
|
|
374
|
+
&.react-datepicker__week-number--clickable {
|
|
375
|
+
cursor: pointer;
|
|
376
|
+
&:hover {
|
|
377
|
+
border-radius: $euiBorderRadius;
|
|
378
|
+
background-color: $euiColorEmptyShade;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.react-datepicker__day-names,
|
|
384
|
+
.react-datepicker__week {
|
|
385
|
+
white-space: nowrap;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.react-datepicker__day-name,
|
|
389
|
+
.react-datepicker__day,
|
|
390
|
+
.react-datepicker__time-name {
|
|
391
|
+
color: $euiColorFullShade;
|
|
392
|
+
display: inline-block;
|
|
393
|
+
width: $euiSizeXL;
|
|
394
|
+
line-height: $euiSizeXL - $euiSizeXS;
|
|
395
|
+
text-align: center;
|
|
396
|
+
margin: 0 $euiSizeXS / 2;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.react-datepicker__day-name {
|
|
400
|
+
color: $euiColorDarkShade;
|
|
401
|
+
text-transform: uppercase;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.react-datepicker__day {
|
|
405
|
+
cursor: pointer;
|
|
406
|
+
border: solid 2px transparent;
|
|
407
|
+
transition: transform $euiAnimSpeedExtraFast ease-in-out;
|
|
408
|
+
|
|
409
|
+
&:hover:not(&--disabled) {
|
|
410
|
+
text-decoration: underline;
|
|
411
|
+
font-weight: $euiFontWeightBold;
|
|
412
|
+
transform: scale(1.2);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
&--today {
|
|
416
|
+
font-weight: bold;
|
|
417
|
+
color: $euiColorPrimary;
|
|
418
|
+
}
|
|
419
|
+
&--outside-month {
|
|
420
|
+
color: $euiColorDarkShade;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
&--highlighted {
|
|
424
|
+
border-radius: $euiBorderRadius;
|
|
425
|
+
background-color: $euiColorSuccess;
|
|
426
|
+
color: $euiColorGhost;
|
|
427
|
+
|
|
428
|
+
&:hover {
|
|
429
|
+
background-color: darken($euiColorSuccess, 5%);
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
&--in-range {
|
|
434
|
+
background-color: transparentize($euiColorPrimary, .9);
|
|
435
|
+
color: $euiColorFullShade;
|
|
436
|
+
border-radius: 0;
|
|
437
|
+
border-top: solid 6px $euiColorEmptyShade;
|
|
438
|
+
border-bottom: solid 6px $euiColorEmptyShade;
|
|
439
|
+
border-right: none;
|
|
440
|
+
border-left: none;
|
|
441
|
+
line-height: $euiSizeL - $euiSizeXS;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
&--selected,
|
|
445
|
+
&--in-selecting-range {
|
|
446
|
+
height: $euiSizeXL;
|
|
447
|
+
margin: 0 $euiSizeXS / 2;
|
|
448
|
+
border-radius: $euiBorderRadius;
|
|
449
|
+
background-color: $euiColorPrimary;
|
|
450
|
+
line-height: $euiSizeL + $euiSizeXS;
|
|
451
|
+
border: solid $euiSizeXS / 2 $euiColorPrimary;
|
|
452
|
+
color: $euiColorGhost;
|
|
453
|
+
|
|
454
|
+
&:hover {
|
|
455
|
+
background-color: darken($euiColorPrimary, 5%);
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
&--keyboard-selected {
|
|
460
|
+
border-radius: $euiBorderRadius;
|
|
461
|
+
border: solid $euiSizeXS / 2 $euiColorPrimary;
|
|
462
|
+
font-weight: $euiFontWeightBold;
|
|
463
|
+
|
|
464
|
+
&:hover {
|
|
465
|
+
background-color: darken($euiColorPrimary, 5%);
|
|
466
|
+
color: $euiColorGhost;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
&--in-selecting-range:not(&--in-range) {
|
|
471
|
+
background-color: rgba($euiColorPrimary, 0.5);
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
&--in-range:not(&--in-selecting-range) {
|
|
475
|
+
.react-datepicker__month--selecting-range & {
|
|
476
|
+
background-color: $euiColorEmptyShade;
|
|
477
|
+
color: $euiColorFullShade;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
&--disabled {
|
|
482
|
+
cursor: not-allowed;
|
|
483
|
+
color: $euiColorLightShade;
|
|
484
|
+
|
|
485
|
+
&:hover {
|
|
486
|
+
background-color: transparent;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.react-datepicker__input-container {
|
|
492
|
+
position: relative;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
.react-datepicker__year-read-view {
|
|
496
|
+
font-weight: $euiFontWeightLight;
|
|
497
|
+
color: $euiColorDarkShade;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.react-datepicker__month-read-view {
|
|
501
|
+
font-weight: $euiFontWeightMedium;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
.react-datepicker__year-read-view,
|
|
505
|
+
.react-datepicker__month-read-view,
|
|
506
|
+
.react-datepicker__month-year-read-view {
|
|
507
|
+
font-size: $euiFontSizeL;
|
|
508
|
+
|
|
509
|
+
&:hover {
|
|
510
|
+
cursor: pointer;
|
|
511
|
+
color: $euiColorPrimary;
|
|
512
|
+
|
|
513
|
+
.react-datepicker__year-read-view--down-arrow,
|
|
514
|
+
.react-datepicker__month-read-view--down-arrow {
|
|
515
|
+
border-top-color: darken($euiColorLightestShade, 10%);
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
&--down-arrow {
|
|
520
|
+
display: none;
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
.react-datepicker__year-dropdown,
|
|
525
|
+
.react-datepicker__month-dropdown,
|
|
526
|
+
.react-datepicker__month-year-dropdown {
|
|
527
|
+
background-color: $euiColorEmptyShade;
|
|
528
|
+
position: absolute;
|
|
529
|
+
width: 100%;
|
|
530
|
+
height: 100%;
|
|
531
|
+
left: 0;
|
|
532
|
+
top: 0;
|
|
533
|
+
bottom: 0;
|
|
534
|
+
right: 0;
|
|
535
|
+
z-index: 1;
|
|
536
|
+
text-align: center;
|
|
537
|
+
border-radius: $euiBorderRadius;
|
|
538
|
+
display: flex;
|
|
539
|
+
flex-wrap: wrap;
|
|
540
|
+
animation: euiAnimFadeIn $euiAnimSpeedFast ease-in;
|
|
541
|
+
align-content: space-around;
|
|
542
|
+
align-items: center;
|
|
543
|
+
padding: $euiSizeS;
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
&:hover {
|
|
547
|
+
cursor: pointer;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
// &--scrollable {
|
|
551
|
+
// height: 150px;
|
|
552
|
+
// overflow-y: scroll;
|
|
553
|
+
// }
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
// Strike that, reverse it Willy Wonka style
|
|
557
|
+
.react-datepicker__year-dropdown {
|
|
558
|
+
flex-wrap: wrap-reverse;
|
|
559
|
+
flex-direction: row-reverse;
|
|
560
|
+
justify-content: flex-end;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
.react-datepicker__year-option,
|
|
564
|
+
.react-datepicker__month-option,
|
|
565
|
+
.react-datepicker__month-year-option {
|
|
566
|
+
font-size: $euiFontSizeXS;
|
|
567
|
+
padding: $euiSizeS;
|
|
568
|
+
color: $euiColorDarkestShade;
|
|
569
|
+
flex-basis: 33.3%;
|
|
570
|
+
|
|
571
|
+
&:first-of-type {
|
|
572
|
+
border-top-left-radius: $euiBorderRadius;
|
|
573
|
+
border-top-right-radius: $euiBorderRadius;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
&:last-of-type {
|
|
577
|
+
-webkit-user-select: none;
|
|
578
|
+
-moz-user-select: none;
|
|
579
|
+
-ms-user-select: none;
|
|
580
|
+
user-select: none;
|
|
581
|
+
border-bottom-left-radius: $euiBorderRadius;
|
|
582
|
+
border-bottom-right-radius: $euiBorderRadius;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
&:hover {
|
|
586
|
+
background-color: $euiColorLightestShade;
|
|
587
|
+
|
|
588
|
+
.react-datepicker__navigation--years-upcoming {
|
|
589
|
+
border-bottom-color: darken($euiColorLightestShade, 10%);
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.react-datepicker__navigation--years-previous {
|
|
593
|
+
border-top-color: darken($euiColorLightestShade, 10%);
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
&--selected {
|
|
598
|
+
display: none;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
.react-datepicker__screenReaderOnly {
|
|
603
|
+
position: absolute;
|
|
604
|
+
left: -10000px;
|
|
605
|
+
top: auto;
|
|
606
|
+
width: 1px;
|
|
607
|
+
height: 1px;
|
|
608
|
+
overflow: hidden;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
.react-datepicker__year-option--preselected,
|
|
612
|
+
.react-datepicker__month-option--preselected {
|
|
613
|
+
background: $euiFocusBackgroundColor;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
.react-datepicker__year-option--selected_year.react-datepicker__year-option--preselected,
|
|
617
|
+
.react-datepicker__month-option--selected_month.react-datepicker__month-option--preselected{
|
|
618
|
+
background: $euiColorPrimary;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
.react-datepicker__time-list-item--preselected,
|
|
622
|
+
.react-datepicker__year-option--preselected,
|
|
623
|
+
.react-datepicker__month-option--preselected {
|
|
624
|
+
background: darken($euiFocusBackgroundColor, 5%);
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
.react-datepicker__time-container--focus {
|
|
628
|
+
background: $euiFocusBackgroundColor;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
.react-datepicker__month-read-view:focus,
|
|
632
|
+
.react-datepicker__year-read-view:focus {
|
|
633
|
+
text-decoration: underline;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
.react-datepicker__month--accessible:focus {
|
|
637
|
+
background: $euiFocusBackgroundColor;
|
|
638
|
+
|
|
639
|
+
.react-datepicker__day--in-range:not(.react-datepicker__day--selected) {
|
|
640
|
+
border-top-color: $euiFocusBackgroundColor;
|
|
641
|
+
border-bottom-color: $euiFocusBackgroundColor;
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
.react-datepicker__navigation:focus {
|
|
645
|
+
background-color: $euiFocusBackgroundColor;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
// These selectors are not a typo. react-datepicker has a bug where these selectors
|
|
649
|
+
// output as "--selected_year". Sass has trouble compiling .--selected_year, so instead
|
|
650
|
+
// we use this generic selector get around it.
|
|
651
|
+
.react-datepicker__year-option--selected_year,
|
|
652
|
+
.react-datepicker__month-option--selected_month {
|
|
653
|
+
background: $euiColorPrimary;
|
|
654
|
+
color: $euiColorEmptyShade;
|
|
655
|
+
font-weight: $euiFontWeightBold;
|
|
656
|
+
border-radius: $euiBorderRadius;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
.react-datepicker__focusTrap {
|
|
660
|
+
display: flex;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
// The below is for the portal version of react-datepicker which we do not use.
|
|
664
|
+
// It is shown here just to know what their baseline includes.
|
|
665
|
+
|
|
666
|
+
// .react-datepicker__close-icon {
|
|
667
|
+
// background-color: transparent;
|
|
668
|
+
// border: 0;
|
|
669
|
+
// cursor: pointer;
|
|
670
|
+
// display: inline-block;
|
|
671
|
+
// height: 0;
|
|
672
|
+
// outline: 0;
|
|
673
|
+
// padding: 0;
|
|
674
|
+
// vertical-align: middle;
|
|
675
|
+
//
|
|
676
|
+
// &::after {
|
|
677
|
+
// background-color: $euiColorPrimary;
|
|
678
|
+
// border-radius: 50%;
|
|
679
|
+
// bottom: 0;
|
|
680
|
+
// box-sizing: border-box;
|
|
681
|
+
// color: #fff;
|
|
682
|
+
// content: "\00d7";
|
|
683
|
+
// cursor: pointer;
|
|
684
|
+
// font-size: 12px;
|
|
685
|
+
// height: 16px;
|
|
686
|
+
// width: 16px;
|
|
687
|
+
// line-height: 1;
|
|
688
|
+
// margin: -8px auto 0;
|
|
689
|
+
// padding: 2px;
|
|
690
|
+
// position: absolute;
|
|
691
|
+
// right: 7px;
|
|
692
|
+
// text-align: center;
|
|
693
|
+
// top: 50%;
|
|
694
|
+
// }
|
|
695
|
+
// }
|
|
696
|
+
//
|
|
697
|
+
// .react-datepicker__today-button {
|
|
698
|
+
// background: $euiColorEmptyShade;
|
|
699
|
+
// border-top: 1px solid $euiBorderColor;
|
|
700
|
+
// cursor: pointer;
|
|
701
|
+
// text-align: center;
|
|
702
|
+
// font-weight: bold;
|
|
703
|
+
// padding: 5px 0;
|
|
704
|
+
// clear: left;
|
|
705
|
+
// }
|
|
706
|
+
//
|
|
707
|
+
// .react-datepicker__portal {
|
|
708
|
+
// position: fixed;
|
|
709
|
+
// width: 100vw;
|
|
710
|
+
// height: 100vh;
|
|
711
|
+
// background-color: rgba(0, 0, 0, 0.8);
|
|
712
|
+
// left: 0;
|
|
713
|
+
// top: 0;
|
|
714
|
+
// justify-content: center;
|
|
715
|
+
// align-items: center;
|
|
716
|
+
// display: flex;
|
|
717
|
+
// z-index: 2147483647;
|
|
718
|
+
//
|
|
719
|
+
// .react-datepicker__day-name,
|
|
720
|
+
// .react-datepicker__day,
|
|
721
|
+
// .react-datepicker__time-name {
|
|
722
|
+
// width: 3rem;
|
|
723
|
+
// line-height: 3rem;
|
|
724
|
+
// }
|
|
725
|
+
//
|
|
726
|
+
// // Resize for small screens
|
|
727
|
+
// @media (max-width: 400px), (max-height: 550px) {
|
|
728
|
+
// .react-datepicker__day-name,
|
|
729
|
+
// .react-datepicker__day,
|
|
730
|
+
// .react-datepicker__time-name {
|
|
731
|
+
// width: 2rem;
|
|
732
|
+
// line-height: 2rem;
|
|
733
|
+
// }
|
|
734
|
+
// }
|
|
735
|
+
//
|
|
736
|
+
// .react-datepicker__current-month,
|
|
737
|
+
// .react-datepicker-time__header {
|
|
738
|
+
// font-size: $euiFontSizeXS * 1.8;
|
|
739
|
+
// }
|
|
740
|
+
//
|
|
741
|
+
// .react-datepicker__navigation {
|
|
742
|
+
// border: 1.8 * $euiSize solid transparent;
|
|
743
|
+
// }
|
|
744
|
+
//
|
|
745
|
+
// .react-datepicker__navigation--previous {
|
|
746
|
+
// border-right-color: $euiColorLightestShade;
|
|
747
|
+
//
|
|
748
|
+
// &:hover {
|
|
749
|
+
// border-right-color: darken($euiColorLightestShade, 10%);
|
|
750
|
+
// }
|
|
751
|
+
//
|
|
752
|
+
// &--disabled,
|
|
753
|
+
// &--disabled:hover {
|
|
754
|
+
// border-right-color: $datepicker__navigation-disabled-color;
|
|
755
|
+
// cursor: default;
|
|
756
|
+
// }
|
|
757
|
+
// }
|
|
758
|
+
//
|
|
759
|
+
// .react-datepicker__navigation--next {
|
|
760
|
+
// border-left-color: $euiColorLightestShade;
|
|
761
|
+
//
|
|
762
|
+
// &:hover {
|
|
763
|
+
// border-left-color: darken($euiColorLightestShade, 10%);
|
|
764
|
+
// }
|
|
765
|
+
//
|
|
766
|
+
// &--disabled,
|
|
767
|
+
// &--disabled:hover {
|
|
768
|
+
// border-left-color: $datepicker__navigation-disabled-color;
|
|
769
|
+
// cursor: default;
|
|
770
|
+
// }
|
|
771
|
+
// }
|
|
772
|
+
// }
|