2022-02-17 15:56:54 -07:00
|
|
|
/* apply a natural box layout model to all elements, but allowing components to change */
|
|
|
|
html {
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
*,
|
|
|
|
*:before,
|
|
|
|
*:after {
|
|
|
|
box-sizing: inherit;
|
|
|
|
}
|
|
|
|
|
2022-06-10 14:57:22 -06:00
|
|
|
body {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2022-02-10 01:21:49 -07:00
|
|
|
/* Based on .SessionView from Hydrogen */
|
|
|
|
.ArchiveView {
|
|
|
|
/* this takes into account whether or not the url bar is hidden on mobile
|
|
|
|
(have tested Firefox Android and Safari on iOS),
|
|
|
|
see https://developers.google.com/web/updates/2016/12/url-bar-resizing */
|
|
|
|
position: fixed;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
display: grid;
|
|
|
|
grid-template:
|
|
|
|
'status status' auto
|
|
|
|
'middle right' 1fr /
|
|
|
|
1fr 300px;
|
|
|
|
min-height: 0;
|
|
|
|
min-width: 0;
|
2022-02-10 00:42:02 -07:00
|
|
|
}
|
2022-02-14 20:11:55 -07:00
|
|
|
|
|
|
|
.CalendarView {
|
|
|
|
max-width: 280px;
|
|
|
|
font: 100% system-ui;
|
|
|
|
}
|
|
|
|
|
2022-02-17 19:40:48 -07:00
|
|
|
.CalendarView_header {
|
2022-02-14 20:11:55 -07:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
|
2022-02-17 19:40:48 -07:00
|
|
|
.CalendarView_header_prevButton,
|
|
|
|
.CalendarView_header_nextButton {
|
2022-02-14 20:11:55 -07:00
|
|
|
padding-left: 2em;
|
|
|
|
padding-right: 2em;
|
|
|
|
|
|
|
|
background: none;
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
2022-02-17 19:40:48 -07:00
|
|
|
.CalendarView_header_prevButton:hover,
|
|
|
|
.CalendarView_header_nextButton:hover {
|
2022-02-14 20:11:55 -07:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2022-02-17 19:40:48 -07:00
|
|
|
.CalendarView_heading {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2022-02-14 20:11:55 -07:00
|
|
|
.CalendarView_heading_text {
|
2022-02-17 19:40:48 -07:00
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CalendarView_heading_monthInput {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
|
|
|
|
opacity: 0;
|
2022-02-17 20:10:36 -07:00
|
|
|
|
|
|
|
cursor: pointer;
|
2022-02-17 19:40:48 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.fallback-input-month .CalendarView_heading_monthInput {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2022-02-17 20:10:36 -07:00
|
|
|
/* The little calendar icon button in the input that opens the date picker.
|
|
|
|
* We're stretching this out over the heading */
|
2022-02-17 19:40:48 -07:00
|
|
|
.CalendarView_heading_monthInput::-webkit-calendar-picker-indicator {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2022-02-17 20:10:36 -07:00
|
|
|
margin-left: 0;
|
|
|
|
|
2022-02-17 19:40:48 -07:00
|
|
|
background-color: #f00;
|
2022-02-17 20:10:36 -07:00
|
|
|
|
|
|
|
cursor: pointer;
|
2022-02-17 19:40:48 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.CalendarView_heading_yearSelectFallback {
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
opacity: 0;
|
2022-02-17 20:10:36 -07:00
|
|
|
|
|
|
|
cursor: pointer;
|
2022-02-17 19:40:48 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.fallback-input-month .CalendarView_heading_yearSelectFallback {
|
|
|
|
display: block;
|
2022-02-14 20:11:55 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.CalendarView_calendar {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: repeat(7, 1fr);
|
|
|
|
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CalendarView_dayName {
|
|
|
|
background: #eee;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CalendarView_day {
|
|
|
|
padding: 2px;
|
|
|
|
}
|
2022-02-16 22:08:18 -07:00
|
|
|
|
|
|
|
.CalendarView_dayLink {
|
2022-02-17 15:56:54 -07:00
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
|
|
|
padding: 2px 5px;
|
|
|
|
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CalendarView_dayLink:hover {
|
|
|
|
background-color: rgba(141, 151, 165, 0.1);
|
2022-02-16 22:08:18 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.CalendarView_dayLink_active {
|
2022-02-17 15:56:54 -07:00
|
|
|
background-color: #0dbd8b;
|
|
|
|
color: #ffffff;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CalendarView_dayLink_active:hover {
|
|
|
|
background-color: #0a8f69;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CalendarView_dayLink_disabled {
|
|
|
|
opacity: 0.5;
|
2022-02-16 22:08:18 -07:00
|
|
|
}
|