File tree Expand file tree Collapse file tree 3 files changed +126
-2
lines changed Expand file tree Collapse file tree 3 files changed +126
-2
lines changed Original file line number Diff line number Diff line change 2
2
// Calendar
3
3
// --------------------------------------------------
4
4
5
-
6
5
table .cal {
7
6
width : 100% ;
8
7
margin-bottom : $line-height-computed ;
@@ -59,9 +58,91 @@ table.cal {
59
58
}
60
59
}
61
60
61
+ ul .cal {
62
+ display : grid ;
63
+ grid-template-columns : 2rem repeat (7 , 1fr );
64
+ width : 100% ;
65
+ margin : 0 ;
66
+ padding : 0 ;
67
+ border-spacing : 0 ;
68
+ list-style : none ;
69
+ border : 1px solid $table-border-color ;
70
+ border-radius : 3px ;
71
+
72
+ li {
73
+ & .calhead {
74
+ padding : 4px ;
75
+ background-color : $table-bg-active ;
76
+ font-weight : bold ;
77
+ text-align : center ;
78
+ }
79
+
80
+ & .week-number {
81
+ padding : 4px ;
82
+ border : none ;
83
+ background-color : $table-bg-active ;
84
+ font-size : 1em ;
85
+ text-align : center ;
86
+
87
+ span .label-week {
88
+ display : none ;
89
+ }
90
+ }
91
+
92
+ & .calbody {
93
+ min-height : calc (1.2em * 6 );
94
+ padding : 2px ;
95
+ border : 1px solid $table-border-color ;
96
+ border-right : 0 ;
97
+ border-bottom : 0 ;
98
+ font-size : 1em ;
99
+ line-height : 1.6 ;
100
+ vertical-align : top ;
101
+
102
+ p .day-num {
103
+ font-size : 1.1em ;
104
+ text-align : right ;
105
+
106
+ .abbr-day {
107
+ display : none ;
108
+ }
109
+ }
110
+
111
+ .day-letter {
112
+ display : none ;
113
+ }
114
+
115
+ & .odd {
116
+ p .day-num {
117
+ color : $gray-600 ;
118
+ }
119
+ }
120
+
121
+ & .today {
122
+ background : $highlight-bg ;
123
+
124
+ p .day-num {
125
+ font-weight : $font-weight-bold ;
126
+ }
127
+ }
128
+
129
+ .icon {
130
+ padding-top : 2px ;
131
+ padding-bottom : 3px ;
132
+ }
133
+
134
+ & .nwday :not (.odd ) {
135
+ background-color : $table-bg-accent ;
136
+ }
137
+ }
138
+ }
139
+ }
140
+
62
141
table .cal .starting a ,
142
+ ul .cal .starting a ,
63
143
p .cal.legend .starting ,
64
144
table .cal .ending a ,
145
+ ul .cal .ending a ,
65
146
p .cal.legend .ending {
66
147
@extend %fa-icon ;
67
148
@@ -73,6 +154,7 @@ p.cal.legend .ending {
73
154
}
74
155
75
156
table .cal .ending a ,
157
+ ul .cal .ending a ,
76
158
p .cal.legend .ending {
77
159
& ::before {
78
160
content : $fa-var-caret-left ;
@@ -81,6 +163,7 @@ p.cal.legend .ending {
81
163
}
82
164
83
165
table .cal .starting.ending a ,
166
+ ul .cal .starting.ending a ,
84
167
p .cal.legend .starting.ending {
85
168
& ::before {
86
169
content : $fa-var-square ;
Original file line number Diff line number Diff line change @@ -433,6 +433,47 @@ body {
433
433
background-position : 8px center !important ; // stylelint-disable-line declaration-no-important
434
434
}
435
435
}
436
+
437
+ /* Calendar */
438
+ ul .cal {
439
+ display : block ;
440
+
441
+ .calhead {
442
+ display : none ;
443
+ }
444
+
445
+ .calbody {
446
+ min-height : calc (1.2em * 3 );
447
+ }
448
+
449
+ .calbody .day-letter {
450
+ display : inline ;
451
+ }
452
+
453
+ .week-number {
454
+ border : none ;
455
+ background-color : $table-bg-active ;
456
+ font-weight : bold ;
457
+ text-align : left ;
458
+
459
+ span .label-week {
460
+ display : inline ;
461
+ }
462
+ }
463
+
464
+ .week-number .label-week {
465
+ display : inline ;
466
+ }
467
+
468
+ .calbody p .day-num {
469
+ font-size : 1.1em ;
470
+ text-align : left ;
471
+
472
+ .abbr-day {
473
+ display : inline ;
474
+ }
475
+ }
476
+ }
436
477
}
437
478
438
479
// Tweaks for smartphones, touchscreens
You can’t perform that action at this time.
0 commit comments