1
0
mirror of https://github.com/kremalicious/umami.git synced 2024-12-24 02:06:19 +01:00
umami/components/common/Calendar.module.css

112 lines
1.5 KiB
CSS
Raw Normal View History

2020-09-13 10:26:54 +02:00
.calendar {
display: flex;
flex-direction: column;
font-size: var(--font-size-small);
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(--gray800);
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 {
2020-09-14 17:46:35 +02:00
border: 1px solid var(--gray300);
background: var(--gray75);
2020-09-13 10:26:54 +02:00
}
.calendar td.faded {
color: var(--gray500);
}
.calendar td.selected {
font-weight: 600;
border: 1px solid var(--gray600);
}
.calendar td.selected:hover {
background: transparent;
}
.calendar td.disabled {
color: var(--gray400);
2020-09-13 10:26:54 +02:00
background: var(--gray75);
}
.calendar td.disabled:hover {
cursor: default;
background: var(--gray75);
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(--gray100);
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-normal);
}
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);
}
}