umami/components/common/Calendar.module.css

111 lines
1.5 KiB
CSS
Raw Normal View History

2020-09-13 10:26:54 +02:00
.calendar {
display: flex;
flex-direction: column;
flex: 1;
2020-09-17 01:43:13 +02:00
min-height: 306px;
2020-09-13 10:26:54 +02:00
}
.calendar table {
2020-09-17 01:43:13 +02:00
width: 100%;
2020-09-14 17:46:35 +02:00
border-spacing: 5px;
2020-09-13 10:26:54 +02:00
}
.calendar td {
color: var(--base800);
2020-09-13 10:26:54 +02:00
cursor: pointer;
text-align: center;
vertical-align: center;
height: 40px;
2020-09-22 06:34:55 +02:00
width: 40px;
2020-09-13 10:26:54 +02:00
border-radius: 5px;
2020-09-14 17:46:35 +02:00
border: 1px solid transparent;
2020-09-13 10:26:54 +02:00
}
.calendar td:hover {
border: 1px solid var(--base300);
background: var(--base75);
2020-09-13 10:26:54 +02:00
}
.calendar td.faded {
color: var(--base500);
2020-09-13 10:26:54 +02:00
}
.calendar td.selected {
font-weight: 600;
border: 1px solid var(--base600);
2020-09-13 10:26:54 +02:00
}
.calendar td.selected:hover {
background: transparent;
}
.calendar td.disabled {
color: var(--base400);
background: var(--base75);
2020-09-13 10:26:54 +02:00
}
.calendar td.disabled:hover {
cursor: default;
background: var(--base75);
2020-09-14 17:46:35 +02:00
border-color: transparent;
2020-09-13 10:26:54 +02:00
}
.calendar td.faded.disabled {
background: var(--base100);
2020-09-13 10:26:54 +02:00
}
.header {
display: flex;
justify-content: space-evenly;
align-items: center;
font-weight: 700;
line-height: 40px;
font-size: var(--font-size-md);
2020-09-13 10:26:54 +02:00
}
2020-09-17 01:43:13 +02:00
.body {
display: flex;
}
2020-09-13 10:26:54 +02:00
.selector {
cursor: pointer;
}
.pager {
display: flex;
2020-09-17 01:43:13 +02:00
flex: 1;
2020-09-13 10:26:54 +02:00
}
.pager button {
align-self: center;
}
2020-09-17 01:43:13 +02:00
.middle {
flex: 1;
}
.left,
.right {
display: flex;
justify-content: center;
align-items: center;
}
2020-09-13 10:26:54 +02:00
.left svg {
transform: rotate(90deg);
}
.right svg {
transform: rotate(-90deg);
}
.icon {
margin-left: 10px;
}
2020-09-22 06:34:55 +02:00
@media only screen and (max-width: 992px) {
.calendar table {
max-width: calc(100vw - 30px);
}
}