react-trash-calendar/src/components/calendar/Calendar.scss

74 lines
1.2 KiB
SCSS

.calendar {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
&__header {
display: flex;
flex-direction: row;
justify-content: space-between;
font-size: 2rem;
}
&__month {
padding: 1rem;
}
&__button {
width: 4.25rem;
appearance: none;
border: none;
background: #ddd;
font-size: 2rem;
cursor: pointer;
}
&__inner {
display: grid;
height: 100%;
grid-template-areas:
"weekday weekday weekday weekday weekday weekday weekday"
"day day day day day day day";
grid-template-rows: 32px auto;
& > * {
border-top: 1px solid #ddd;
border-left: 1px solid #ddd;
}
}
&__weekday {
grid-template: 'weekday';
display: flex;
align-items: center;
justify-content: center;
}
&__day {
display: flex;
justify-content: flex-end;
align-items: flex-start;
grid-template: 'day';
padding: 1rem;
appearance: none;
background: transparent;
border-right: none;
border-bottom: none;
&--outside {
color: rgb(148, 148, 148);
}
&--today {
background-color: rgb(220, 235, 255);
font-weight: bold;
}
&--selected {
outline: 2px solid black;
}
}
}