1+ .example-datepicker-popup {
2+ padding : 16px ;
3+ width : 320px ;
4+ max-height : none;
5+ overflow : visible;
6+ background-color : var (--mat-sys-surface );
7+ border : 1px solid var (--mat-sys-outline );
8+ border-radius : var (--mat-sys-corner-extra-small );
9+ box-shadow : var (--mat-sys-level2-shadow );
10+ }
11+
12+ .example-datepicker-header {
13+ display : flex;
14+ justify-content : space-between;
15+ align-items : center;
16+ padding-bottom : 12px ;
17+ border-bottom : 1px solid var (--mat-sys-outline-variant );
18+ margin-bottom : 12px ;
19+ }
20+
21+ .example-datepicker-title {
22+ font-weight : 600 ;
23+ font-size : 0.9rem ;
24+ color : var (--mat-sys-on-surface );
25+ }
26+
27+ .example-datepicker-nav-button {
28+ background-color : transparent;
29+ border : none;
30+ border-radius : 50% ;
31+ width : 32px ;
32+ height : 32px ;
33+ display : flex;
34+ align-items : center;
35+ justify-content : center;
36+ cursor : pointer;
37+ color : var (--mat-sys-on-surface );
38+ transition : background-color 0.2s ease;
39+ }
40+
41+ .example-datepicker-nav-button : hover {
42+ background-color : color-mix (in srgb, var (--mat-sys-on-surface ) 10% , transparent);
43+ }
44+
45+ .example-datepicker-grid {
46+ width : 100% ;
47+ border-collapse : collapse;
48+ }
49+
50+ .example-datepicker-cell {
51+ width : 40px ;
52+ height : 40px ;
53+ text-align : center;
54+ vertical-align : middle;
55+ padding : 0 ;
56+ }
57+
58+ .example-datepicker-weekday {
59+ font-size : 0.75rem ;
60+ font-weight : 500 ;
61+ color : var (--mat-sys-on-surface-variant );
62+ padding-bottom : 8px ;
63+ }
64+
65+ .example-datepicker-empty {
66+ color : color-mix (in srgb, var (--mat-sys-on-surface ) 30% , transparent);
67+ font-size : 0.8rem ;
68+ }
69+
70+ .example-datepicker-day-button {
71+ width : 32px ;
72+ height : 32px ;
73+ border-radius : 50% ;
74+ border : none;
75+ background-color : transparent;
76+ cursor : pointer;
77+ font-size : 0.85rem ;
78+ color : var (--mat-sys-on-surface );
79+ transition :
80+ background-color 0.2s ease,
81+ color 0.2s ease;
82+ }
83+
84+ .example-datepicker-cell : hover .example-datepicker-day-button {
85+ background-color : color-mix (in srgb, var (--mat-sys-on-surface ) 10% , transparent);
86+ }
87+
88+ /* Show circular focus ring on the day button when active using box-shadow */
89+ /* Subdued grey by default when navigating from the input */
90+ .example-datepicker-cell [data-active = 'true' ] .example-datepicker-day-button {
91+ box-shadow : 0 0 0 2px var (--mat-sys-outline );
92+ }
93+
94+ /* Highlight circle with primary color when the grid has actual focus */
95+ .example-datepicker-grid : focus .example-datepicker-cell [data-active = 'true' ] .example-datepicker-day-button ,
96+ .example-datepicker-grid : focus- within .example-datepicker-cell [data-active = 'true' ] .example-datepicker-day-button {
97+ box-shadow : 0 0 0 2px var (--mat-sys-primary );
98+ }
99+
100+ /* Hide all grid focus indicators when focus is in the header navigation */
101+ .example-datepicker-header : focus- within~ .example-datepicker-grid .example-datepicker-cell [data-active = 'true' ] .example-datepicker-day-button {
102+ box-shadow : none;
103+ }
104+
105+ .example-datepicker-cell [aria-selected = 'true' ] .example-datepicker-day-button {
106+ background-color : var (--mat-sys-primary );
107+ color : var (--mat-sys-on-primary );
108+ }
0 commit comments