@elastic/eui-theme-common 0.0.3 → 0.0.4
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/package.json +1 -1
- package/src/global_styling/index.scss +0 -3
- package/src/global_styling/mixins/_helpers.scss +0 -9
- package/src/global_styling/mixins/_shadow.scss +0 -8
- package/src/global_styling/variables/_size.scss +0 -2
- package/src/global_styling/react_date_picker/_date_picker.scss +0 -772
- package/src/global_styling/react_date_picker/_index.scss +0 -2
- package/src/global_styling/react_date_picker/_variables.scss +0 -1
- package/src/global_styling/utility/_animations.scss +0 -55
- package/src/global_styling/utility/_index.scss +0 -1
package/package.json
CHANGED
|
@@ -81,15 +81,6 @@
|
|
|
81
81
|
@include euiOverflowShadow('x');
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
/**
|
|
85
|
-
* For quickly applying a full-height element whether using flex or not
|
|
86
|
-
*/
|
|
87
|
-
@mixin euiFullHeight {
|
|
88
|
-
height: 100%;
|
|
89
|
-
flex: 1 1 auto;
|
|
90
|
-
overflow: hidden;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
84
|
// Hiding elements offscreen to only be read by screen reader
|
|
94
85
|
// See https://github.com/elastic/eui/pull/5130 and https://github.com/elastic/eui/pull/5152 for more info
|
|
95
86
|
@mixin euiScreenReaderOnly {
|
|
@@ -63,14 +63,6 @@
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
@mixin euiSlightShadowHover($color: $euiShadowColor) {
|
|
67
|
-
box-shadow:
|
|
68
|
-
0 1px 5px rgba($color, shadowOpacity(.1)),
|
|
69
|
-
0 3.6px 13px rgba($color, shadowOpacity(.07)),
|
|
70
|
-
0 8.4px 23px rgba($color, shadowOpacity(.06)),
|
|
71
|
-
0 23px 35px rgba($color, shadowOpacity(.05));
|
|
72
|
-
}
|
|
73
|
-
|
|
74
66
|
// stylelint-disable color-named
|
|
75
67
|
@mixin euiOverflowShadow($direction: 'y', $side: 'both') {
|
|
76
68
|
$hideHeight: $euiScrollBarCornerThin * 1.25;
|
|
@@ -7,8 +7,6 @@ $euiSizeL: $euiSize * 1.5 !default;
|
|
|
7
7
|
$euiSizeXL: $euiSize * 2 !default;
|
|
8
8
|
$euiSizeXXL: $euiSize * 2.5 !default;
|
|
9
9
|
|
|
10
|
-
$euiButtonMinWidth: $euiSize * 7 !default;
|
|
11
|
-
|
|
12
10
|
$euiScrollBar: $euiSize !default;
|
|
13
11
|
// Corner sizes are used as an inset border and therefore a smaller corner size means a larger thumb
|
|
14
12
|
$euiScrollBarCorner: $euiSizeXS !default;
|
|
@@ -1,772 +0,0 @@
|
|
|
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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iM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
-
|
|
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
|
-
// }
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
$euiDatePickerCalendarWidth: 284px;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
// Animations as utility so they don't get duplicated in compiled CSS
|
|
2
|
-
|
|
3
|
-
@keyframes euiAnimFadeIn {
|
|
4
|
-
0% {
|
|
5
|
-
opacity: 0;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
100% {
|
|
9
|
-
opacity: 1;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@keyframes euiGrow {
|
|
14
|
-
0% {
|
|
15
|
-
opacity: 0;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
1% {
|
|
19
|
-
opacity: 0;
|
|
20
|
-
transform: scale(0);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
100% {
|
|
24
|
-
opacity: 1;
|
|
25
|
-
transform: scale(1);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@keyframes focusRingAnimate {
|
|
30
|
-
0% {
|
|
31
|
-
box-shadow: 0 0 0 $euiFocusRingAnimStartSize $euiFocusRingAnimStartColor;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
100% {
|
|
35
|
-
box-shadow: 0 0 0 $euiFocusRingSize $euiFocusRingColor;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@keyframes focusRingAnimateLarge {
|
|
40
|
-
0% {
|
|
41
|
-
box-shadow: 0 0 0 $euiFocusRingAnimStartSizeLarge $euiFocusRingAnimStartColor;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
100% {
|
|
45
|
-
box-shadow: 0 0 0 $euiFocusRingSizeLarge $euiFocusRingColor;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
// Component specific
|
|
50
|
-
|
|
51
|
-
@keyframes euiButtonActive {
|
|
52
|
-
50% {
|
|
53
|
-
transform: translateY(1px);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import 'animations';
|