Files
guild_front/src/components/Calendar/calendarComponent.scss
2024-08-02 13:48:08 +03:00

389 lines
6.6 KiB
SCSS

.calendar-component {
position: relative;
margin: 10px 0;
background-color: #f9f9f9;
padding: 20px 30px;
&__header {
display: flex;
justify-content: space-between;
@media (max-width: 760px) {
flex-direction: column;
row-gap: 15px;
}
&-info {
display: flex;
@media (max-width: 760px) {
font-size: 10px;
justify-content: center;
}
.calendar__hours {
margin: 0 5px;
font-size: 22px;
font-weight: 500;
display: flex;
align-items: center;
span {
font-size: 22px;
font-weight: 500;
}
}
}
&-switcher {
display: flex;
@media (max-width: 760px) {
justify-content: center;
font-size: 12px;
}
}
h3 {
font-size: 2.2em;
font-weight: 400;
font-style: normal;
letter-spacing: normal;
line-height: 30px;
text-align: left;
margin-bottom: 0;
@media (max-width: 500px) {
font-size: 1.7em;
}
}
&-box {
background-color: #e5f1fb;
height: 47px;
display: flex;
align-items: center;
margin: 0 15px;
padding: 0 20px;
border-radius: 5px;
font-weight: 400;
font-size: 16px;
color: #406128;
img {
width: 17px;
height: 17px;
margin: 0 10px 0 0;
}
}
&-arrow {
display: flex;
align-items: center;
cursor: pointer;
height: 47px;
padding: 0 8px;
background-color: #e5f1fb;
border-radius: 5px;
span {
color: #18586e;
font-size: 1.6em;
font-weight: 500;
font-style: normal;
letter-spacing: normal;
line-height: 16.81px;
text-align: left;
margin-left: 10px;
cursor: pointer;
@media (max-width: 500px) {
font-size: 1.2em;
}
}
@media (max-width: 560px) {
margin-left: 0 !important;
}
}
}
&__rectangle {
margin: 10px 0;
img {
width: 100%;
}
}
&__body {
&__week-days {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
@media (max-width: 680px) {
display: none;
}
p {
color: #9babc5;
font-size: 14px;
font-weight: 500;
text-align: center;
}
&-mobile {
display: none;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
@media (max-width: 680px) {
display: grid;
}
p {
color: #9babc5;
font-size: 14px;
font-weight: 500;
text-align: center;
}
}
}
margin: 20px 0 20px;
}
&__form {
display: grid;
grid-template-columns: repeat(7, 1fr);
justify-content: space-between;
button {
margin: 0 auto;
width: 135px;
height: 82px;
padding: 0px;
box-shadow: 0 0 59px rgba(44, 44, 44, 0.05);
border-radius: 10px;
border: 1px solid #c4c4c4;
background-color: #ffffff;
margin-top: 20px;
font-size: 1.2em;
text-align: center;
.form-date {
width: 100%;
padding: 5px 0 0 0;
height: 100%;
}
.form-box {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
border-top: #eff5fa 2px solid;
.form-hours {
display: none;
}
}
a {
color: black;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-weight: 400;
font-size: 16px;
height: 100%;
@media (max-width: 500px) {
font-size: 10px;
font-weight: 400;
}
}
@media (max-width: 1200px) {
width: 110px;
}
@media (max-width: 968px) {
width: 90px;
font-size: 11px;
}
@media (max-width: 680px) {
width: 70px;
font-size: 10px;
}
@media (max-width: 550px) {
width: 60px;
}
@media (max-width: 450px) {
width: 45px;
}
}
}
}
@media (max-width: 968px) {
.calendar-component {
padding: 28px 10px;
&__header {
&-box {
margin-left: 20px;
}
}
&__rectangle {
margin: 24px 0;
}
}
}
@media (max-width: 560px) {
.calendar-component {
padding-top: 10px;
}
}
.select-days {
border-style: dashed !important;
&:hover {
background-color: #edf1ff !important;
}
}
.selected-day {
background-color: #edf1ff !important;
&:hover {
background-color: #edf1ff !important;
}
}
.disable {
pointer-events: none;
}
.before {
background-color: #ffffff !important;
.form-date {
height: 35% !important;
}
.form-box {
background-color: #fafbfe;
padding: 0 10px;
@media (max-width: 450px) {
padding: 0;
}
.form-hours {
color: #6dd077;
background-color: #6dd0772f;
border-spacing: 10px;
border-radius: 5px;
display: flex !important;
flex-direction: row;
width: 95%;
font-weight: 400;
font-size: 14px;
padding: 0 7px;
position: relative;
span {
color: #1458dd;
font-weight: 700;
font-size: 14px;
margin: auto;
@media (max-width: 680px) {
font-weight: 700;
font-size: 10px;
}
}
}
.form-hours::before {
content: "";
position: absolute;
top: 10%;
left: 0;
height: 75%;
border-left: 2px solid #6dd077;
border-radius: 5px;
}
}
}
.pass {
background-color: #f7d7c9 !important;
}
.today {
font-weight: bold !important;
border: 1px solid #398208 !important;
}
.selected {
background-color: #f9f9c3 !important;
}
.block {
pointer-events: none;
}
.select-date-range {
display: flex;
align-items: center;
column-gap: 16px;
font-size: 16px;
font-weight: 400;
position: relative;
.select {
background-color: #e5f1fb;
color: #406128;
border-radius: 5px;
padding: 15px;
cursor: pointer;
text-align: center;
}
.hint {
color: #6f6f6f;
font-size: 14px;
font-weight: 300;
margin: 0 0 0 20px;
}
.close {
cursor: pointer;
margin-left: 8px;
width: 14px;
height: 14px;
}
}
@media (max-width: 575.98px) {
.select-date-range {
font-size: 14px;
text-align: center;
column-gap: 8px;
.select {
padding: 4px;
}
}
}