scinote-web/app/assets/stylesheets/dashboard/calendar.scss

135 lines
2.6 KiB
SCSS
Raw Normal View History

2020-02-19 22:57:06 +08:00
// scss-lint:disable SelectorDepth
// scss-lint:disable NestingDepth
2020-02-13 20:50:29 +08:00
.dashboard-container .calendar-widget {
grid-column: 10 / span 3;
grid-row: 1 / span 6;
2020-02-19 22:57:06 +08:00
.dashboard-calendar {
height: 100%;
width: 100%;
}
.clndr {
display: flex;
flex-direction: column;
height: 100%;
.controls {
border-bottom: $border-default;
display: flex;
flex-basis: 42px;
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-grow: 1;
grid-column-gap: 6px;
grid-row-gap: 6px;
grid-template-columns: repeat(7, 1fr);
grid-template-rows: repeat(7, 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;
2020-02-21 00:02:38 +08:00
animation-timing-function: $timing-function-sharp;
border-radius: 50%;
2020-02-19 22:57:06 +08:00
display: flex;
height: 32px;
justify-content: center;
2020-02-21 00:02:38 +08:00
position: relative;
transition: .3s;
2020-02-19 22:57:06 +08:00
user-select: none;
width: 32px;
&.adjacent-month {
color: $color-alto;
}
&.today {
border: $border-primary;
2020-02-21 00:02:38 +08:00
}
&.event {
.event-day {
align-items: center;
border-radius: 50%;
cursor: pointer;
display: flex;
height: 32px;
justify-content: center;
width: 32px;
&:hover {
background: $color-concrete;
2020-02-21 00:02:38 +08:00
color: inherit;
}
}
&::after {
background: $brand-danger;
border-radius: 50%;
content: "";
height: 4px;
left: 14px;
position: absolute;
top: 24px;
width: 4px;
}
}
.events-container {
color: $color-black;
padding: 8px;
width: 280px;
.title {
@include font-h3;
margin-bottom: 8px;
}
2020-02-19 22:57:06 +08:00
}
}
}
}
}
@media (max-width: 1250px) {
.dashboard-container .calendar-widget {
grid-column: 9 / span 4;
}
2020-02-13 20:50:29 +08:00
}
2020-02-13 21:44:59 +08:00
@media (max-width: 1000px) {
2020-02-13 20:50:29 +08:00
.dashboard-container .calendar-widget {
grid-column: 1 / span 6;
grid-row: 5 / span 4;
2020-02-21 00:02:38 +08:00
.clndr {
.events-container {
left: 0;
right: auto;
}
}
2020-02-13 20:50:29 +08:00
}
}