nxt-pick-datetime 22.0.0 → 22.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.
@@ -1,675 +1,674 @@
1
- // We want overlays to always appear over user content, so set a baseline
2
- // very high z-index for the overlay container, which is where we create the new
3
- // stacking context for all overlays.
4
- $cdk-z-index-overlay-container: 1000;
5
- $cdk-z-index-overlay: 1000;
6
- $cdk-z-index-overlay-backdrop: 1000;
7
-
8
- // Background color for all of the backdrops
9
- $cdk-overlay-dark-backdrop-background: rgb(0, 0, 0, 0.288);
10
-
11
- // Default backdrop animation is based on the Material Design swift-ease-out.
12
- $backdrop-animation-duration: 400ms !default;
13
- $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
14
-
15
- .cdk-overlay-container,
16
- .cdk-global-overlay-wrapper {
17
- // Disable events from being captured on the overlay container.
18
- pointer-events: none;
19
-
20
- // The container should be the size of the viewport.
21
- top: 0;
22
- left: 0;
23
- height: 100%;
24
- width: 100%;
25
- }
26
-
27
- // The overlay-container is an invisible element which contains all individual overlays.
28
- .cdk-overlay-container {
29
- position: fixed;
30
- z-index: $cdk-z-index-overlay-container;
31
-
32
- &:empty {
33
- // Hide the element when it doesn't have any child nodes. This doesn't
34
- // include overlays that have been detached, rather than disposed.
35
- display: none;
36
- }
37
- }
38
-
39
- // We use an extra wrapper element in order to use make the overlay itself a flex item.
40
- // This makes centering the overlay easy without running into the subpixel rendering
41
- // problems tied to using `transform` and without interfering with the other position
42
- // strategies.
43
- .cdk-global-overlay-wrapper {
44
- display: flex;
45
- position: absolute;
46
- z-index: $cdk-z-index-overlay;
47
- }
48
-
49
- // A single overlay pane.
50
- .cdk-overlay-pane {
51
- // Note: it's important for this one to start off `absolute`,
52
- // in order for us to be able to measure it correctly.
53
- position: absolute;
54
- pointer-events: auto;
55
- box-sizing: border-box;
56
- z-index: $cdk-z-index-overlay;
57
-
58
- // For connected-position overlays, we set `display: flex` in
59
- // order to force `max-width` and `max-height` to take effect.
60
- display: flex;
61
- max-width: 100%;
62
- max-height: 100%;
63
- }
64
-
65
- .cdk-overlay-backdrop {
66
- // TODO(jelbourn): reuse sidenav fullscreen mixin.
67
- position: absolute;
68
- top: 0;
69
- bottom: 0;
70
- left: 0;
71
- right: 0;
72
- z-index: $cdk-z-index-overlay-backdrop;
73
- pointer-events: auto;
74
- transition: opacity $backdrop-animation-duration $backdrop-animation-timing-function;
75
- opacity: 0;
76
-
77
- &.cdk-overlay-backdrop-showing {
78
- opacity: 1;
79
-
80
- // In high contrast mode the rgba background will become solid so we need to fall back
81
- // to making it opaque using `opacity`. Note that we can't use the `cdk-high-contrast`
82
- // mixin, because we can't normalize the import path to the _a11y.scss both for the
83
- // source and when this file is distributed. See #10908.
84
- @media screen and (-ms-high-contrast: active) {
85
- opacity: 0.6;
86
- }
87
- }
88
- }
89
-
90
- .cdk-overlay-dark-backdrop {
91
- background: $cdk-overlay-dark-backdrop-background;
92
- }
93
-
94
- .cdk-overlay-transparent-backdrop {
95
-
96
- // Note: as of Firefox 57, having the backdrop be `background: none` will prevent it from
97
- // capturing the user's mouse scroll events. Since we also can't use something like
98
- // `rgba(0, 0, 0, 0)`, we work around the inconsistency by not setting the background at
99
- // all and using `opacity` to make the element transparent.
100
- &,
101
- &.cdk-overlay-backdrop-showing {
102
- opacity: 0;
103
- }
104
- }
105
-
106
- // Overlay parent element used with the connected position strategy. Used to constrain the
107
- // overlay element's size to fit within the viewport.
108
- .cdk-overlay-connected-position-bounding-box {
109
- position: absolute;
110
- z-index: $cdk-z-index-overlay;
111
-
112
- // We use `display: flex` on this element exclusively for centering connected overlays.
113
- // When *not* centering, a top/left/bottom/right will be set which overrides the normal
114
- // flex layout.
115
- display: flex;
116
-
117
- // We use the `column` direction here to avoid some flexbox issues in Edge
118
- // when using the "grow after open" options.
119
- flex-direction: column;
120
-
121
- // Add some dimensions so the element has an `innerText` which some people depend on in tests.
122
- min-width: 1px;
123
- min-height: 1px;
124
- }
125
-
126
- // Used when disabling global scrolling.
127
- .cdk-global-scrollblock {
128
- position: fixed;
129
-
130
- // Necessary for the content not to lose its width. Note that we're using 100%, instead of
131
- // 100vw, because 100vw includes the width plus the scrollbar, whereas 100% is the width
132
- // that the element had before we made it `fixed`.
133
- width: 100%;
134
-
135
- // Note: this will always add a scrollbar to whatever element it is on, which can
136
- // potentially result in double scrollbars. It shouldn't be an issue, because we won't
137
- // block scrolling on a page that doesn't have a scrollbar in the first place.
138
- overflow-y: scroll;
139
- }
140
-
141
- .nxt-dialog-container {
142
- position: relative;
143
- pointer-events: auto;
144
- box-sizing: border-box;
145
- display: block;
146
- padding: 1.5em;
147
- box-shadow: 0 11px 15px -7px rgb(0, 0, 0, 0.2), 0 24px 38px 3px rgb(0, 0, 0, 0.14), 0 9px 46px 8px rgb(0, 0, 0, 0.12);
148
- border-radius: 2px;
149
- overflow: auto;
150
- background: #fff;
151
- color: rgb(0, 0, 0, 0.87);
152
- width: 100%;
153
- height: 100%;
154
- outline: none;
155
- }
156
-
157
- $theme-color: #3f51b5;
158
-
159
- .nxt-dt-container,
160
- .nxt-dt-container * {
161
- box-sizing: border-box;
162
- }
163
-
164
- .nxt-dt-container {
165
- display: block;
166
- font-size: 1rem;
167
- background: #ffffff;
168
- pointer-events: auto;
169
- z-index: 1000;
170
- }
171
-
172
- .nxt-dt-container-row {
173
- border-bottom: 1px solid rgb(0, 0, 0, 0.12);
174
-
175
- &:last-child {
176
- border-bottom: none;
177
- }
178
- }
179
-
180
- .nxt-dt-calendar {
181
- display: flex;
182
- flex-direction: column;
183
- width: 100%;
184
- }
185
-
186
- .nxt-dt-calendar-control {
187
- display: flex;
188
- align-items: center;
189
- font-size: 1em;
190
- width: 100%;
191
- padding: 0.5em;
192
- color: #000000;
193
-
194
- .nxt-dt-calendar-control-content {
195
- flex: 1 1 auto;
196
- display: flex;
197
- justify-content: center;
198
- align-items: center;
199
-
200
- .nxt-dt-calendar-control-button {
201
- padding: 0 0.8em;
202
-
203
- &:hover {
204
- background-color: rgb(0, 0, 0, 0.12);
205
- }
206
- }
207
- }
208
- }
209
-
210
- .nxt-dt-calendar-main {
211
- display: flex;
212
- flex-direction: column;
213
- flex: 1 1 auto;
214
- padding: 0 0.5em 0.5em;
215
- outline: 0;
216
- }
217
-
218
- .nxt-dt-calendar-view {
219
- display: block;
220
- flex: 1 1 auto;
221
- }
222
-
223
- .nxt-dt-calendar-multi-year-view {
224
- display: flex;
225
- align-items: center;
226
-
227
- .nxt-dt-calendar-table {
228
- width: calc(100% - 3em);
229
-
230
- .nxt-dt-calendar-header th {
231
- padding-bottom: 0.25em;
232
- }
233
- }
234
- }
235
-
236
- .nxt-dt-calendar-table {
237
- width: 100%;
238
- border-collapse: collapse;
239
- border-spacing: 0;
240
-
241
- .nxt-dt-calendar-header {
242
- color: rgb(0, 0, 0, 0.4);
243
-
244
- .nxt-dt-weekdays {
245
- th {
246
- font-size: 0.7em;
247
- font-weight: 400;
248
- text-align: center;
249
- padding-bottom: 1em;
250
- }
251
- }
252
-
253
- .nxt-dt-calendar-table-divider {
254
- position: relative;
255
- height: 1px;
256
- padding-bottom: 0.5em;
257
-
258
- &:after {
259
- content: "";
260
- position: absolute;
261
- top: 0;
262
- left: -0.5em;
263
- right: -0.5em;
264
- height: 1px;
265
- background: rgb(0, 0, 0, 0.12);
266
- }
267
- }
268
- }
269
-
270
- .nxt-dt-calendar-cell {
271
- position: relative;
272
- height: 0;
273
- line-height: 0;
274
- text-align: center;
275
- outline: 0;
276
- color: rgb(0, 0, 0, 0.85);
277
- appearance: none;
278
- }
279
-
280
- .nxt-dt-calendar-cell-content {
281
- position: absolute;
282
- top: 5%;
283
- left: 5%;
284
- display: flex;
285
- align-items: center;
286
- justify-content: center;
287
- box-sizing: border-box;
288
- width: 90%;
289
- height: 90%;
290
- font-size: 0.8em;
291
- line-height: 1;
292
- border: 1px solid transparent;
293
- border-radius: 999px;
294
- color: inherit;
295
- cursor: pointer;
296
- }
297
-
298
- .nxt-dt-calendar-cell-out {
299
- opacity: 0.2;
300
- }
301
-
302
- .nxt-dt-calendar-cell-today:not(.nxt-dt-calendar-cell-selected) {
303
- border-color: rgb(0, 0, 0, 0.4);
304
- }
305
-
306
- .nxt-dt-calendar-cell-selected {
307
- color: hsl(0, 0%, 100%, 0.85);
308
- background-color: $theme-color;
309
-
310
- &.nxt-dt-calendar-cell-today {
311
- box-shadow: inset 0 0 0 1px hsl(0, 0%, 100%, 0.85);
312
- }
313
- }
314
-
315
- .nxt-dt-calendar-cell-disabled {
316
- cursor: default;
317
-
318
- &>.nxt-dt-calendar-cell-content:not(.nxt-dt-calendar-cell-selected) {
319
- color: rgb(0, 0, 0, 0.4);
320
- }
321
-
322
- &>.nxt-dt-calendar-cell-content.nxt-dt-calendar-cell-selected {
323
- opacity: 0.4;
324
- }
325
-
326
- &>.nxt-dt-calendar-cell-today:not(.nxt-dt-calendar-cell-selected) {
327
- border-color: rgb(0, 0, 0, 0.2);
328
- }
329
- }
330
-
331
- .nxt-dt-calendar-cell-active:focus>.nxt-dt-calendar-cell-content:not(.nxt-dt-calendar-cell-selected),
332
- :not(.nxt-dt-calendar-cell-disabled):hover>.nxt-dt-calendar-cell-content:not(.nxt-dt-calendar-cell-selected) {
333
- background-color: rgb(0, 0, 0, 0.04);
334
- }
335
-
336
- .nxt-dt-calendar-cell-in-range {
337
- background: rgba($theme-color, 0.2);
338
-
339
- &.nxt-dt-calendar-cell-range-from {
340
- border-top-left-radius: 50%;
341
-
342
- &:not(.nxt-dt-calendar-cell-range-from-long) {
343
- border-bottom-left-radius: 50%;
344
- }
345
- }
346
-
347
- &.nxt-dt-calendar-cell-range-to {
348
- border-bottom-right-radius: 50%;
349
-
350
- &:not(.nxt-dt-calendar-cell-range-to-long) {
351
- border-top-right-radius: 50%;
352
- }
353
- }
354
- }
355
- }
356
-
357
- .nxt-dt-timer {
358
- display: flex;
359
- justify-content: center;
360
- width: 100%;
361
- height: 7em;
362
- padding: 0.5em;
363
- outline: none;
364
- }
365
-
366
- .nxt-dt-timer-box {
367
- position: relative;
368
- display: inline-flex;
369
- flex-direction: column;
370
- align-items: center;
371
- width: 25%;
372
- flex: 5em 0 1;
373
- height: 100%;
374
- }
375
-
376
- .nxt-dt-timer-content {
377
- flex: 1 1 auto;
378
- display: flex;
379
- justify-content: center;
380
- align-items: center;
381
- width: 100%;
382
- margin: 0.2em 0;
383
-
384
- .nxt-dt-timer-input {
385
- display: block;
386
- width: 2em;
387
- text-align: center;
388
- border: 1px solid rgb(0, 0, 0, 0.5);
389
- border-radius: 3px;
390
- outline: medium none;
391
- font-size: 1.2em;
392
- padding: 0.2em;
393
- }
394
- }
395
-
396
- .nxt-dt-timer-divider {
397
- display: inline-block;
398
- align-self: flex-end;
399
- position: absolute;
400
- width: 0.6em;
401
- height: 100%;
402
- left: -0.3em;
403
-
404
- &:before,
405
- &:after {
406
- content: "";
407
- display: inline-block;
408
- width: 0.35em;
409
- height: 0.35em;
410
- position: absolute;
411
- left: 50%;
412
- border-radius: 50%;
413
- transform: translateX(-50%);
414
- background-color: currentcolor;
415
- }
416
-
417
- &:before {
418
- top: 35%;
419
- }
420
-
421
- &:after {
422
- bottom: 35%;
423
- }
424
- }
425
-
426
- .nxt-dt-control-button {
427
- user-select: none;
428
- cursor: pointer;
429
- outline: none;
430
- border: none;
431
- display: inline-block;
432
- white-space: nowrap;
433
- text-decoration: none;
434
- vertical-align: baseline;
435
- margin: 0;
436
- padding: 0;
437
- background-color: transparent;
438
- font-size: 1em;
439
- color: inherit;
440
-
441
- .nxt-dt-control-button-content {
442
- position: relative;
443
- display: inline-flex;
444
- justify-content: center;
445
- align-items: center;
446
- outline: none;
447
- }
448
- }
449
-
450
- .nxt-dt-control-period-button {
451
- .nxt-dt-control-button-content {
452
- height: 1.5em;
453
- padding: 0 0.5em;
454
- border-radius: 3px;
455
- transition: background-color 100ms linear;
456
- }
457
-
458
- &:hover>.nxt-dt-control-button-content {
459
- background-color: rgb(0, 0, 0, 0.12);
460
- }
461
-
462
- .nxt-dt-control-button-arrow {
463
- display: flex;
464
- justify-content: center;
465
- align-items: center;
466
- width: 1em;
467
- height: 1em;
468
- margin: 0.1em;
469
- transition: transform 200ms ease;
470
- }
471
- }
472
-
473
- .nxt-dt-control-arrow-button {
474
- .nxt-dt-control-button-content {
475
- padding: 0;
476
- border-radius: 50%;
477
- width: 1.5em;
478
- height: 1.5em;
479
- }
480
-
481
- &[disabled] {
482
- color: rgb(0, 0, 0, 0.4);
483
- cursor: default;
484
- }
485
-
486
- svg {
487
- width: 50%;
488
- height: 50%;
489
- fill: currentcolor;
490
- }
491
- }
492
-
493
- .nxt-dt-inline-container,
494
- .nxt-dt-popup-container {
495
- position: relative;
496
- width: 18.5em;
497
- box-shadow: 0 5px 5px -3px rgb(0, 0, 0, 0.2), 0 8px 10px 1px rgb(0, 0, 0, 0.14), 0 3px 14px 2px rgb(0, 0, 0, 0.12);
498
-
499
- .nxt-dt-calendar,
500
- .nxt-dt-timer {
501
- width: 100%;
502
- }
503
-
504
- .nxt-dt-calendar {
505
- height: 20.25em;
506
- }
507
- }
508
-
509
- .nxt-dt-dialog-container {
510
- max-height: 95vh;
511
- margin: -1.5em;
512
-
513
- .nxt-dt-calendar {
514
- min-width: 250px;
515
-
516
- //min-height: 330px;
517
- max-width: 750px;
518
- max-height: 750px;
519
- }
520
-
521
- .nxt-dt-timer {
522
- min-width: 250px;
523
- max-width: 750px;
524
- }
525
- }
526
-
527
- /* @media all and (orientation: landscape) {
528
- .nxt-dt-dialog-container {
529
- .nxt-dt-calendar {
530
- width: 58vh;
531
- height: 62vh;
532
- }
533
-
534
- .nxt-dt-timer {
535
- width: 58vh;
536
- }
537
- }
538
- }
539
-
540
- @media all and (orientation: portrait) {
541
- .nxt-dt-dialog-container {
542
- .nxt-dt-calendar {
543
- width: 80vw;
544
- height: 80vw;
545
- }
546
-
547
- .nxt-dt-timer {
548
- width: 80vw;
549
- }
550
- }
551
- } */
552
-
553
- .nxt-dt-container-buttons {
554
- display: flex;
555
- width: 100%;
556
- height: 2em;
557
- color: $theme-color;
558
- }
559
-
560
- .nxt-dt-container-control-button {
561
- font-size: 1em;
562
- width: 50%;
563
- height: 100%;
564
- border-radius: 0;
565
-
566
- .nxt-dt-control-button-content {
567
- height: 100%;
568
- width: 100%;
569
- transition: background-color 100ms linear;
570
- }
571
-
572
- &:hover {
573
- .nxt-dt-control-button-content {
574
- background-color: rgb(0, 0, 0, 0.1);
575
- }
576
- }
577
- }
578
-
579
- .nxt-dt-container-info {
580
- padding: 0 0.5em;
581
- cursor: pointer;
582
-
583
- .nxt-dt-container-range {
584
- outline: none;
585
-
586
- .nxt-dt-container-range-content {
587
- display: flex;
588
- justify-content: space-between;
589
- padding: 0.5em 0;
590
- font-size: 0.8em;
591
- }
592
-
593
- &:last-child {
594
- border-top: 1px solid rgb(0, 0, 0, 0.12);
595
- }
596
- }
597
-
598
- .nxt-dt-container-info-active {
599
- color: $theme-color;
600
- }
601
- }
602
-
603
- .nxt-dt-container-disabled,
604
- .nxt-dt-trigger-disabled {
605
- opacity: 0.35;
606
- filter: Alpha(opacity=35);
607
- background-image: none;
608
- cursor: default !important;
609
- }
610
-
611
- .nxt-dt-timer-hour12 {
612
- display: flex;
613
- justify-content: center;
614
- align-items: center;
615
- color: $theme-color;
616
-
617
- .nxt-dt-timer-hour12-box {
618
- border: 1px solid currentcolor;
619
- border-radius: 2px;
620
- transition: background 200ms ease;
621
-
622
- .nxt-dt-control-button-content {
623
- width: 100%;
624
- height: 100%;
625
- padding: 0.5em;
626
- }
627
-
628
- &:focus,
629
- &:hover {
630
- .nxt-dt-control-button-content {
631
- background: $theme-color;
632
- color: #ffffff;
633
- }
634
- }
635
- }
636
- }
637
-
638
- .nxt-dt-calendar-only-current-month {
639
- .nxt-dt-calendar-cell-out {
640
- visibility: hidden;
641
- cursor: default;
642
- }
643
- }
644
-
645
- .nxt-dt-inline {
646
- display: inline-block;
647
- }
648
-
649
- .nxt-dt-control {
650
- outline: none;
651
- cursor: pointer;
652
-
653
- .nxt-dt-control-content {
654
- outline: none;
655
- }
656
-
657
- &:focus>.nxt-dt-control-content {
658
- background-color: rgb(0, 0, 0, 0.12);
659
- }
660
-
661
- &:not(:-moz-focusring):focus>.nxt-dt-control-content {
662
- box-shadow: none;
663
- }
664
- }
665
-
666
- .nxt-hidden-accessible {
667
- border: 0;
668
- clip-path: rect(0 0 0 0);
669
- height: 1px;
670
- margin: -1px;
671
- overflow: hidden;
672
- padding: 0;
673
- position: absolute;
674
- width: 1px;
675
- }
1
+ // We want overlays to always appear over user content, so set a baseline
2
+ // very high z-index for the overlay container, which is where we create the new
3
+ // stacking context for all overlays.
4
+ $cdk-z-index-overlay-container: 1000;
5
+ $cdk-z-index-overlay: 1000;
6
+ $cdk-z-index-overlay-backdrop: 1000;
7
+
8
+ // Background color for all of the backdrops
9
+ $cdk-overlay-dark-backdrop-background: rgb(0, 0, 0, 0.288);
10
+
11
+ // Default backdrop animation is based on the Material Design swift-ease-out.
12
+ $backdrop-animation-duration: 400ms !default;
13
+ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
14
+
15
+ .cdk-overlay-container,
16
+ .cdk-global-overlay-wrapper {
17
+ // Disable events from being captured on the overlay container.
18
+ pointer-events: none;
19
+
20
+ // The container should be the size of the viewport.
21
+ top: 0;
22
+ left: 0;
23
+ height: 100%;
24
+ width: 100%;
25
+ }
26
+
27
+ // The overlay-container is an invisible element which contains all individual overlays.
28
+ .cdk-overlay-container {
29
+ position: fixed;
30
+ z-index: $cdk-z-index-overlay-container;
31
+
32
+ &:empty {
33
+ // Hide the element when it doesn't have any child nodes. This doesn't
34
+ // include overlays that have been detached, rather than disposed.
35
+ display: none;
36
+ }
37
+ }
38
+
39
+ // We use an extra wrapper element in order to use make the overlay itself a flex item.
40
+ // This makes centering the overlay easy without running into the subpixel rendering
41
+ // problems tied to using `transform` and without interfering with the other position
42
+ // strategies.
43
+ .cdk-global-overlay-wrapper {
44
+ display: flex;
45
+ position: absolute;
46
+ z-index: $cdk-z-index-overlay;
47
+ }
48
+
49
+ // A single overlay pane.
50
+ .cdk-overlay-pane {
51
+ // Note: it's important for this one to start off `absolute`,
52
+ // in order for us to be able to measure it correctly.
53
+ position: absolute;
54
+ pointer-events: auto;
55
+ box-sizing: border-box;
56
+ z-index: $cdk-z-index-overlay;
57
+
58
+ // For connected-position overlays, we set `display: flex` in
59
+ // order to force `max-width` and `max-height` to take effect.
60
+ display: flex;
61
+ max-width: 100%;
62
+ max-height: 100%;
63
+ }
64
+
65
+ .cdk-overlay-backdrop {
66
+ // TODO(jelbourn): reuse sidenav fullscreen mixin.
67
+ position: absolute;
68
+ top: 0;
69
+ bottom: 0;
70
+ left: 0;
71
+ right: 0;
72
+ z-index: $cdk-z-index-overlay-backdrop;
73
+ pointer-events: auto;
74
+ transition: opacity $backdrop-animation-duration $backdrop-animation-timing-function;
75
+ opacity: 0;
76
+
77
+ &.cdk-overlay-backdrop-showing {
78
+ opacity: 1;
79
+
80
+ // In high contrast mode the rgba background will become solid so we need to fall back
81
+ // to making it opaque using `opacity`. Note that we can't use the `cdk-high-contrast`
82
+ // mixin, because we can't normalize the import path to the _a11y.scss both for the
83
+ // source and when this file is distributed. See #10908.
84
+ @media screen and (-ms-high-contrast: active) {
85
+ opacity: 0.6;
86
+ }
87
+ }
88
+ }
89
+
90
+ .cdk-overlay-dark-backdrop {
91
+ background: $cdk-overlay-dark-backdrop-background;
92
+ }
93
+
94
+ .cdk-overlay-transparent-backdrop {
95
+ // Note: as of Firefox 57, having the backdrop be `background: none` will prevent it from
96
+ // capturing the user's mouse scroll events. Since we also can't use something like
97
+ // `rgba(0, 0, 0, 0)`, we work around the inconsistency by not setting the background at
98
+ // all and using `opacity` to make the element transparent.
99
+ &,
100
+ &.cdk-overlay-backdrop-showing {
101
+ opacity: 0;
102
+ }
103
+ }
104
+
105
+ // Overlay parent element used with the connected position strategy. Used to constrain the
106
+ // overlay element's size to fit within the viewport.
107
+ .cdk-overlay-connected-position-bounding-box {
108
+ position: absolute;
109
+ z-index: $cdk-z-index-overlay;
110
+
111
+ // We use `display: flex` on this element exclusively for centering connected overlays.
112
+ // When *not* centering, a top/left/bottom/right will be set which overrides the normal
113
+ // flex layout.
114
+ display: flex;
115
+
116
+ // We use the `column` direction here to avoid some flexbox issues in Edge
117
+ // when using the "grow after open" options.
118
+ flex-direction: column;
119
+
120
+ // Add some dimensions so the element has an `innerText` which some people depend on in tests.
121
+ min-width: 1px;
122
+ min-height: 1px;
123
+ }
124
+
125
+ // Used when disabling global scrolling.
126
+ .cdk-global-scrollblock {
127
+ position: fixed;
128
+
129
+ // Necessary for the content not to lose its width. Note that we're using 100%, instead of
130
+ // 100vw, because 100vw includes the width plus the scrollbar, whereas 100% is the width
131
+ // that the element had before we made it `fixed`.
132
+ width: 100%;
133
+
134
+ // Note: this will always add a scrollbar to whatever element it is on, which can
135
+ // potentially result in double scrollbars. It shouldn't be an issue, because we won't
136
+ // block scrolling on a page that doesn't have a scrollbar in the first place.
137
+ overflow-y: scroll;
138
+ }
139
+
140
+ .nxt-dialog-container {
141
+ position: relative;
142
+ pointer-events: auto;
143
+ box-sizing: border-box;
144
+ display: block;
145
+ padding: 1.5em;
146
+ box-shadow: 0 11px 15px -7px rgb(0, 0, 0, 0.2), 0 24px 38px 3px rgb(0, 0, 0, 0.14), 0 9px 46px 8px rgb(0, 0, 0, 0.12);
147
+ border-radius: 2px;
148
+ overflow: auto;
149
+ background: #fff;
150
+ color: rgb(0, 0, 0, 0.87);
151
+ width: 100%;
152
+ height: 100%;
153
+ outline: none;
154
+ }
155
+
156
+ $theme-color: #3f51b5;
157
+
158
+ .nxt-dt-container,
159
+ .nxt-dt-container * {
160
+ box-sizing: border-box;
161
+ }
162
+
163
+ .nxt-dt-container {
164
+ display: block;
165
+ font-size: 1rem;
166
+ background: #ffffff;
167
+ pointer-events: auto;
168
+ z-index: 1000;
169
+ }
170
+
171
+ .nxt-dt-container-row {
172
+ border-bottom: 1px solid rgb(0, 0, 0, 0.12);
173
+
174
+ &:last-child {
175
+ border-bottom: none;
176
+ }
177
+ }
178
+
179
+ .nxt-dt-calendar {
180
+ display: flex;
181
+ flex-direction: column;
182
+ width: 100%;
183
+ }
184
+
185
+ .nxt-dt-calendar-control {
186
+ display: flex;
187
+ align-items: center;
188
+ font-size: 1em;
189
+ width: 100%;
190
+ padding: 0.5em;
191
+ color: #000000;
192
+
193
+ .nxt-dt-calendar-control-content {
194
+ flex: 1 1 auto;
195
+ display: flex;
196
+ justify-content: center;
197
+ align-items: center;
198
+
199
+ .nxt-dt-calendar-control-button {
200
+ padding: 0 0.8em;
201
+
202
+ &:hover {
203
+ background-color: rgb(0, 0, 0, 0.12);
204
+ }
205
+ }
206
+ }
207
+ }
208
+
209
+ .nxt-dt-calendar-main {
210
+ display: flex;
211
+ flex-direction: column;
212
+ flex: 1 1 auto;
213
+ padding: 0 0.5em 0.5em;
214
+ outline: 0;
215
+ }
216
+
217
+ .nxt-dt-calendar-view {
218
+ display: block;
219
+ flex: 1 1 auto;
220
+ }
221
+
222
+ .nxt-dt-calendar-multi-year-view {
223
+ display: flex;
224
+ align-items: center;
225
+
226
+ .nxt-dt-calendar-table {
227
+ width: calc(100% - 3em);
228
+
229
+ .nxt-dt-calendar-header th {
230
+ padding-bottom: 0.25em;
231
+ }
232
+ }
233
+ }
234
+
235
+ .nxt-dt-calendar-table {
236
+ width: 100%;
237
+ border-collapse: collapse;
238
+ border-spacing: 0;
239
+
240
+ .nxt-dt-calendar-header {
241
+ color: rgb(0, 0, 0, 0.4);
242
+
243
+ .nxt-dt-weekdays {
244
+ th {
245
+ font-size: 0.7em;
246
+ font-weight: 400;
247
+ text-align: center;
248
+ padding-bottom: 1em;
249
+ }
250
+ }
251
+
252
+ .nxt-dt-calendar-table-divider {
253
+ position: relative;
254
+ height: 1px;
255
+ padding-bottom: 0.5em;
256
+
257
+ &:after {
258
+ content: "";
259
+ position: absolute;
260
+ top: 0;
261
+ left: -0.5em;
262
+ right: -0.5em;
263
+ height: 1px;
264
+ background: rgb(0, 0, 0, 0.12);
265
+ }
266
+ }
267
+ }
268
+
269
+ .nxt-dt-calendar-cell {
270
+ position: relative;
271
+ height: 0;
272
+ line-height: 0;
273
+ text-align: center;
274
+ outline: 0;
275
+ color: rgb(0, 0, 0, 0.85);
276
+ appearance: none;
277
+ }
278
+
279
+ .nxt-dt-calendar-cell-content {
280
+ position: absolute;
281
+ top: 5%;
282
+ left: 5%;
283
+ display: flex;
284
+ align-items: center;
285
+ justify-content: center;
286
+ box-sizing: border-box;
287
+ width: 90%;
288
+ height: 90%;
289
+ font-size: 0.8em;
290
+ line-height: 1;
291
+ border: 1px solid transparent;
292
+ border-radius: 999px;
293
+ color: inherit;
294
+ cursor: pointer;
295
+ }
296
+
297
+ .nxt-dt-calendar-cell-out {
298
+ opacity: 0.2;
299
+ }
300
+
301
+ .nxt-dt-calendar-cell-today:not(.nxt-dt-calendar-cell-selected) {
302
+ border-color: rgb(0, 0, 0, 0.4);
303
+ }
304
+
305
+ .nxt-dt-calendar-cell-selected {
306
+ color: hsl(0, 0%, 100%, 0.85);
307
+ background-color: $theme-color;
308
+
309
+ &.nxt-dt-calendar-cell-today {
310
+ box-shadow: inset 0 0 0 1px hsl(0, 0%, 100%, 0.85);
311
+ }
312
+ }
313
+
314
+ .nxt-dt-calendar-cell-disabled {
315
+ cursor: default;
316
+
317
+ & > .nxt-dt-calendar-cell-content:not(.nxt-dt-calendar-cell-selected) {
318
+ color: rgb(0, 0, 0, 0.4);
319
+ }
320
+
321
+ & > .nxt-dt-calendar-cell-content.nxt-dt-calendar-cell-selected {
322
+ opacity: 0.4;
323
+ }
324
+
325
+ & > .nxt-dt-calendar-cell-today:not(.nxt-dt-calendar-cell-selected) {
326
+ border-color: rgb(0, 0, 0, 0.2);
327
+ }
328
+ }
329
+
330
+ .nxt-dt-calendar-cell-active:focus > .nxt-dt-calendar-cell-content:not(.nxt-dt-calendar-cell-selected),
331
+ :not(.nxt-dt-calendar-cell-disabled):hover > .nxt-dt-calendar-cell-content:not(.nxt-dt-calendar-cell-selected) {
332
+ background-color: rgb(0, 0, 0, 0.04);
333
+ }
334
+
335
+ .nxt-dt-calendar-cell-in-range {
336
+ background: rgba($theme-color, 0.2);
337
+
338
+ &.nxt-dt-calendar-cell-range-from {
339
+ border-top-left-radius: 50%;
340
+
341
+ &:not(.nxt-dt-calendar-cell-range-from-long) {
342
+ border-bottom-left-radius: 50%;
343
+ }
344
+ }
345
+
346
+ &.nxt-dt-calendar-cell-range-to {
347
+ border-bottom-right-radius: 50%;
348
+
349
+ &:not(.nxt-dt-calendar-cell-range-to-long) {
350
+ border-top-right-radius: 50%;
351
+ }
352
+ }
353
+ }
354
+ }
355
+
356
+ .nxt-dt-timer {
357
+ display: flex;
358
+ justify-content: center;
359
+ width: 100%;
360
+ height: 7em;
361
+ padding: 0.5em;
362
+ outline: none;
363
+ }
364
+
365
+ .nxt-dt-timer-box {
366
+ position: relative;
367
+ display: inline-flex;
368
+ flex-direction: column;
369
+ align-items: center;
370
+ width: 25%;
371
+ flex: 5em 0 1;
372
+ height: 100%;
373
+ }
374
+
375
+ .nxt-dt-timer-content {
376
+ flex: 1 1 auto;
377
+ display: flex;
378
+ justify-content: center;
379
+ align-items: center;
380
+ width: 100%;
381
+ margin: 0.2em 0;
382
+
383
+ .nxt-dt-timer-input {
384
+ display: block;
385
+ width: 2em;
386
+ text-align: center;
387
+ border: 1px solid rgb(0, 0, 0, 0.5);
388
+ border-radius: 3px;
389
+ outline: medium none;
390
+ font-size: 1.2em;
391
+ padding: 0.2em;
392
+ }
393
+ }
394
+
395
+ .nxt-dt-timer-divider {
396
+ display: inline-block;
397
+ align-self: flex-end;
398
+ position: absolute;
399
+ width: 0.6em;
400
+ height: 100%;
401
+ left: -0.3em;
402
+
403
+ &:before,
404
+ &:after {
405
+ content: "";
406
+ display: inline-block;
407
+ width: 0.35em;
408
+ height: 0.35em;
409
+ position: absolute;
410
+ left: 50%;
411
+ border-radius: 50%;
412
+ transform: translateX(-50%);
413
+ background-color: currentcolor;
414
+ }
415
+
416
+ &:before {
417
+ top: 35%;
418
+ }
419
+
420
+ &:after {
421
+ bottom: 35%;
422
+ }
423
+ }
424
+
425
+ .nxt-dt-control-button {
426
+ user-select: none;
427
+ cursor: pointer;
428
+ outline: none;
429
+ border: none;
430
+ display: inline-block;
431
+ white-space: nowrap;
432
+ text-decoration: none;
433
+ vertical-align: baseline;
434
+ margin: 0;
435
+ padding: 0;
436
+ background-color: transparent;
437
+ font-size: 1em;
438
+ color: inherit;
439
+
440
+ .nxt-dt-control-button-content {
441
+ position: relative;
442
+ display: inline-flex;
443
+ justify-content: center;
444
+ align-items: center;
445
+ outline: none;
446
+ }
447
+ }
448
+
449
+ .nxt-dt-control-period-button {
450
+ .nxt-dt-control-button-content {
451
+ height: 1.5em;
452
+ padding: 0 0.5em;
453
+ border-radius: 3px;
454
+ transition: background-color 100ms linear;
455
+ }
456
+
457
+ &:hover > .nxt-dt-control-button-content {
458
+ background-color: rgb(0, 0, 0, 0.12);
459
+ }
460
+
461
+ .nxt-dt-control-button-arrow {
462
+ display: flex;
463
+ justify-content: center;
464
+ align-items: center;
465
+ width: 1em;
466
+ height: 1em;
467
+ margin: 0.1em;
468
+ transition: transform 200ms ease;
469
+ }
470
+ }
471
+
472
+ .nxt-dt-control-arrow-button {
473
+ .nxt-dt-control-button-content {
474
+ padding: 0;
475
+ border-radius: 50%;
476
+ width: 1.5em;
477
+ height: 1.5em;
478
+ }
479
+
480
+ &[disabled] {
481
+ color: rgb(0, 0, 0, 0.4);
482
+ cursor: default;
483
+ }
484
+
485
+ svg {
486
+ width: 50%;
487
+ height: 50%;
488
+ fill: currentcolor;
489
+ }
490
+ }
491
+
492
+ .nxt-dt-inline-container,
493
+ .nxt-dt-popup-container {
494
+ position: relative;
495
+ width: 18.5em;
496
+ box-shadow: 0 5px 5px -3px rgb(0, 0, 0, 0.2), 0 8px 10px 1px rgb(0, 0, 0, 0.14), 0 3px 14px 2px rgb(0, 0, 0, 0.12);
497
+
498
+ .nxt-dt-calendar,
499
+ .nxt-dt-timer {
500
+ width: 100%;
501
+ }
502
+
503
+ .nxt-dt-calendar {
504
+ height: 20.25em;
505
+ }
506
+ }
507
+
508
+ .nxt-dt-dialog-container {
509
+ max-height: 95vh;
510
+ margin: -1.5em;
511
+
512
+ .nxt-dt-calendar {
513
+ min-width: 250px;
514
+
515
+ //min-height: 330px;
516
+ max-width: 750px;
517
+ max-height: 750px;
518
+ }
519
+
520
+ .nxt-dt-timer {
521
+ min-width: 250px;
522
+ max-width: 750px;
523
+ }
524
+ }
525
+
526
+ /* @media all and (orientation: landscape) {
527
+ .nxt-dt-dialog-container {
528
+ .nxt-dt-calendar {
529
+ width: 58vh;
530
+ height: 62vh;
531
+ }
532
+
533
+ .nxt-dt-timer {
534
+ width: 58vh;
535
+ }
536
+ }
537
+ }
538
+
539
+ @media all and (orientation: portrait) {
540
+ .nxt-dt-dialog-container {
541
+ .nxt-dt-calendar {
542
+ width: 80vw;
543
+ height: 80vw;
544
+ }
545
+
546
+ .nxt-dt-timer {
547
+ width: 80vw;
548
+ }
549
+ }
550
+ } */
551
+
552
+ .nxt-dt-container-buttons {
553
+ display: flex;
554
+ width: 100%;
555
+ height: 2em;
556
+ color: $theme-color;
557
+ }
558
+
559
+ .nxt-dt-container-control-button {
560
+ font-size: 1em;
561
+ width: 50%;
562
+ height: 100%;
563
+ border-radius: 0;
564
+
565
+ .nxt-dt-control-button-content {
566
+ height: 100%;
567
+ width: 100%;
568
+ transition: background-color 100ms linear;
569
+ }
570
+
571
+ &:hover {
572
+ .nxt-dt-control-button-content {
573
+ background-color: rgb(0, 0, 0, 0.1);
574
+ }
575
+ }
576
+ }
577
+
578
+ .nxt-dt-container-info {
579
+ padding: 0 0.5em;
580
+ cursor: pointer;
581
+
582
+ .nxt-dt-container-range {
583
+ outline: none;
584
+
585
+ .nxt-dt-container-range-content {
586
+ display: flex;
587
+ justify-content: space-between;
588
+ padding: 0.5em 0;
589
+ font-size: 0.8em;
590
+ }
591
+
592
+ &:last-child {
593
+ border-top: 1px solid rgb(0, 0, 0, 0.12);
594
+ }
595
+ }
596
+
597
+ .nxt-dt-container-info-active {
598
+ color: $theme-color;
599
+ }
600
+ }
601
+
602
+ .nxt-dt-container-disabled,
603
+ .nxt-dt-trigger-disabled {
604
+ opacity: 0.35;
605
+ filter: Alpha(opacity=35);
606
+ background-image: none;
607
+ cursor: default !important;
608
+ }
609
+
610
+ .nxt-dt-timer-hour12 {
611
+ display: flex;
612
+ justify-content: center;
613
+ align-items: center;
614
+ color: $theme-color;
615
+
616
+ .nxt-dt-timer-hour12-box {
617
+ border: 1px solid currentcolor;
618
+ border-radius: 2px;
619
+ transition: background 200ms ease;
620
+
621
+ .nxt-dt-control-button-content {
622
+ width: 100%;
623
+ height: 100%;
624
+ padding: 0.5em;
625
+ }
626
+
627
+ &:focus,
628
+ &:hover {
629
+ .nxt-dt-control-button-content {
630
+ background: $theme-color;
631
+ color: #ffffff;
632
+ }
633
+ }
634
+ }
635
+ }
636
+
637
+ .nxt-dt-calendar-only-current-month {
638
+ .nxt-dt-calendar-cell-out {
639
+ visibility: hidden;
640
+ cursor: default;
641
+ }
642
+ }
643
+
644
+ .nxt-dt-inline {
645
+ display: inline-block;
646
+ }
647
+
648
+ .nxt-dt-control {
649
+ outline: none;
650
+ cursor: pointer;
651
+
652
+ .nxt-dt-control-content {
653
+ outline: none;
654
+ }
655
+
656
+ &:focus > .nxt-dt-control-content {
657
+ background-color: rgb(0, 0, 0, 0.12);
658
+ }
659
+
660
+ &:not(:-moz-focusring):focus > .nxt-dt-control-content {
661
+ box-shadow: none;
662
+ }
663
+ }
664
+
665
+ .nxt-hidden-accessible {
666
+ border: 0;
667
+ clip-path: rect(0 0 0 0);
668
+ height: 1px;
669
+ margin: -1px;
670
+ overflow: hidden;
671
+ padding: 0;
672
+ position: absolute;
673
+ width: 1px;
674
+ }