mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 07:01:58 +08:00
136 lines
2.8 KiB
SCSS
136 lines
2.8 KiB
SCSS
// scss-lint:disable SelectorDepth
|
|
// scss-lint:disable NestingDepth
|
|
|
|
|
|
|
|
.dashboard-container .calendar-widget {
|
|
--calendar-day-size: 32px;
|
|
|
|
.dashboard-calendar {
|
|
height: 100%;
|
|
position: absolute;
|
|
width: 100%;
|
|
}
|
|
|
|
.clndr {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
|
|
.controls {
|
|
border-bottom: $border-default;
|
|
display: flex;
|
|
flex-basis: 42px;
|
|
flex-shrink: 0;
|
|
padding: 3px;
|
|
|
|
.clndr-title {
|
|
@include font-h3;
|
|
align-items: center;
|
|
display: flex;
|
|
flex-grow: 1;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
.days-container {
|
|
align-items: center;
|
|
display: grid;
|
|
flex-basis: calc(100% - 42px);
|
|
flex-grow: 1;
|
|
grid-column-gap: 6px;
|
|
grid-row-gap: 2px;
|
|
grid-template-columns: repeat(7, 1fr);
|
|
grid-template-rows: repeat(auto-fit, minmax(1em, 1fr));
|
|
justify-items: center;
|
|
padding: 6px;
|
|
|
|
.day-header {
|
|
@include font-button;
|
|
color: $color-silver-chalice;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.day {
|
|
@include font-button;
|
|
align-items: center;
|
|
animation-timing-function: $timing-function-sharp;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
height: var(--calendar-day-size);
|
|
justify-content: center;
|
|
position: relative;
|
|
transition: .3s;
|
|
user-select: none;
|
|
width: var(--calendar-day-size);
|
|
|
|
&.adjacent-month {
|
|
color: $color-alto;
|
|
}
|
|
|
|
&.event {
|
|
|
|
.event-day {
|
|
align-items: center;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
display: flex;
|
|
height: calc(var(--calendar-day-size) - 2px);
|
|
justify-content: center;
|
|
width: calc(var(--calendar-day-size) - 2px);
|
|
|
|
&:hover {
|
|
background: $color-concrete;
|
|
color: inherit;
|
|
}
|
|
}
|
|
|
|
&::after {
|
|
@include red-dot;
|
|
right: calc((var(--calendar-day-size) / 2) - 4px);
|
|
top: calc((var(--calendar-day-size) / 2) + 6px);
|
|
}
|
|
}
|
|
|
|
&.today {
|
|
border: $border-primary;
|
|
|
|
&.event {
|
|
&::after {
|
|
left: 12px;
|
|
top: 21px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.events-container {
|
|
color: $color-black;
|
|
padding: 8px;
|
|
width: 280px;
|
|
|
|
.title {
|
|
@include font-h3;
|
|
margin-bottom: 8px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1600px) {
|
|
.dashboard-container .calendar-widget {
|
|
.clndr {
|
|
.events-container {
|
|
left: 0;
|
|
right: auto;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (max-width: 700px) {
|
|
.dashboard-container .calendar-widget {
|
|
--calendar-day-size: 28px;
|
|
}
|
|
}
|