mirror of
https://github.com/Fluffy-Bean/TastyBites.git
synced 2025-06-05 09:53:12 +00:00
Calendar
This commit is contained in:
parent
3538e4d9bc
commit
cb6721ab96
4 changed files with 186 additions and 4 deletions
107
front/src/styles/_calendar.scss
Normal file
107
front/src/styles/_calendar.scss
Normal file
|
@ -0,0 +1,107 @@
|
|||
.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;
|
||||
}
|
||||
|
||||
> button {
|
||||
padding: $spacing-normal;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
font-size: $font-size-p;
|
||||
|
||||
border-radius: $border-radius-normal;
|
||||
border: 1px 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-normal;
|
||||
border: 1px solid transparent;
|
||||
background-color: transparent;
|
||||
|
||||
&:hover {
|
||||
border: 1px solid rgba($color-dark, 0.3);
|
||||
}
|
||||
}
|
||||
|
||||
&.today {
|
||||
> button {
|
||||
background-color: $color-primary;
|
||||
color: $color-on-primary;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -8,3 +8,4 @@
|
|||
@import "container";
|
||||
@import "menu_item";
|
||||
@import "form_element";
|
||||
@import "calendar";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue