This repository has been archived by the owner on Oct 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 112
/
datepicker-content.scss
85 lines (72 loc) · 1.86 KB
/
datepicker-content.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
@import '../core/style/elevation';
$md2-datepicker-calendar-padding: 8px;
$md2-datepicker-calendar-cell-size: 40px;
$md2-datepicker-calendar-portrait-width: $md2-datepicker-calendar-cell-size * 7 + $md2-datepicker-calendar-padding * 2;
$md2-datepicker-calendar-landscape-width: 446px;
$md2-datepicker-calendar-portrait-height: 405px;
$md2-datepicker-calendar-landscape-height: 328px;
.md2-datepicker-content {
@include mat-elevation(8);
display: block;
background-color: white;
border-radius: 2px;
overflow: hidden;
}
.md2-calendar {
width: $md2-datepicker-calendar-portrait-width;
height: $md2-datepicker-calendar-portrait-height;
&[mode='landscape'] {
width: $md2-datepicker-calendar-landscape-width;
height: $md2-datepicker-calendar-landscape-height;
}
}
@media (min-width: 480px) {
.md2-calendar[mode='auto'] {
width: $md2-datepicker-calendar-landscape-width;
height: $md2-datepicker-calendar-landscape-height;
}
}
.md2-datepicker-content-touch {
@include mat-elevation(0);
display: block;
box-shadow: 0 11px 15px -7px rgba(black, 0.2), 0 24px 38px 3px rgba(black, 0.14), 0 9px 46px 8px rgba(black, 0.12);
}
.cdk-overlay-container, .cdk-global-overlay-wrapper {
pointer-events: none;
top: 0;
left: 0;
height: 100%;
width: 100%;
}
.cdk-overlay-container {
position: fixed;
z-index: 999;
}
.cdk-global-overlay-wrapper {
display: flex;
position: absolute;
z-index: 999;
}
.cdk-overlay-pane {
position: absolute;
pointer-events: auto;
box-sizing: border-box;
z-index: 999;
}
.cdk-overlay-backdrop {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: 999;
pointer-events: auto;
transition: opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
opacity: 0;
}
.cdk-overlay-backdrop.cdk-overlay-backdrop-showing {
opacity: 0.48;
}
.cdk-overlay-dark-backdrop {
background: rgba(black, 0.6);
}