TastyBites/front/src/styles/_calendar.scss
deepsource-autofix[bot] 5b85c5224d
style: format code with Prettier
This commit fixes the style issues introduced in 475ac92 according to the output
from Prettier.

Details: None
2024-05-11 12:51:01 +00:00

141 lines
2.9 KiB
SCSS

.calendar {
width: 400px;
display: flex;
flex-direction: column;
justify-content: flex-start;
border-radius: $border-radius-large;
background-color: $color-light;
color: $color-on-light;
overflow: hidden;
}
.calendar-header {
position: relative;
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
border-bottom: 1px dotted rgba($color-light, 0.2);
background-color: $color-dark;
color: $color-on-dark;
z-index: 4;
> p {
padding-left: $spacing-normal;
flex-grow: 1;
font-size: $font-size-h4;
font-weight: $font-weight-thin;
> span {
font-weight: $font-weight-bolder;
}
}
> button {
padding: 0 $spacing-normal;
height: 50px;
display: flex;
justify-content: center;
align-items: center;
font-size: $font-size-p;
border: 0 solid transparent;
background-color: transparent;
color: $color-on-dark;
&:hover {
color: $color-primary;
}
}
}
.calendar-weeks {
padding: $spacing-small;
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
background-color: $color-dark;
color: $color-on-dark;
box-shadow: 0 0 3px 1px rgba(#000, 0.3);
> span {
display: flex;
justify-content: center;
}
}
.calendar-days {
padding: $spacing-small;
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
> div {
height: 40px;
overflow: hidden;
list-style: none;
> button {
padding: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
border-radius: $border-radius-circle;
border: 1px solid transparent;
background-color: transparent;
color: $color-on-light;
&:hover {
border: 1px solid rgba($color-dark, 0.3);
}
}
&:nth-child(7n-1),
&:nth-child(7n) {
> button {
color: rgba($color-on-light, 0.5);
}
}
&.today {
> button {
font-weight: $font-weight-black;
text-decoration: underline;
color: $color-on-light;
//background-color: $color-primary;
//color: $color-on-primary;
}
}
&.selected {
> button {
//background-color: $color-dark;
//color: $color-on-dark;
background-color: $color-primary;
color: $color-on-primary;
}
&.before {
> button {
background-color: $color-error;
color: $color-on-error;
}
}
}
}
}