guild_front/src/components/Calendar/calendarComponent.scss
2023-12-05 14:22:45 +03:00

303 lines
5.0 KiB
SCSS

.calendar-component {
position: relative;
margin-top: 30px;
margin-bottom: 60px;
background-color: #f9f9f9;
padding-left: 68px;
padding-right: 54px;
padding-top: 48px;
padding-bottom: 40px;
font-family: "LabGrotesque", sans-serif;
&__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;
line-height: 0;
font-weight: 500;
display: flex;
align-items: center;
}
}
&-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 {
display: flex;
align-items: center;
margin-left: 20px;
cursor: pointer;
img {
margin: 0px 10px;
width: 12px;
height: 12px;
&:first-child {
transform: rotate(180deg);
margin: 0;
}
}
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: 36px 0;
img {
width: 100%;
}
}
&__body {
div {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
p {
color: #398208;
font-size: 25px;
font-weight: 400;
font-style: normal;
letter-spacing: normal;
line-height: 30px;
text-align: center;
}
}
margin-bottom: 60px;
}
&__form {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
button {
margin: 0 auto;
width: 125px;
height: 42px;
padding: 0 5px;
box-shadow: 0 0 59px rgba(44, 44, 44, 0.05);
border-radius: 5px;
border: 1px solid #c4c4c4;
background-color: #ffffff;
margin-top: 20px;
font-size: 1.2em;
font-weight: 100;
font-style: normal;
letter-spacing: normal;
line-height: normal;
text-align: center;
a {
color: black;
display: flex;
align-items: center;
justify-content: center;
font-weight: 500;
font-size: 12px;
@media (max-width: 500px) {
font-size: 10px;
font-weight: 400;
}
}
img {
width: 16px;
height: 16px;
margin: 0 5px 0 0;
@media (max-width: 968px) {
margin-right: 2px;
@media (max-width: 610px) {
display: none;
}
}
}
@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;
height: 35px;
}
@media (max-width: 450px) {
width: 45px;
height: 35px;
}
}
}
}
@media (max-width: 968px) {
.calendar-component {
margin-bottom: 40px;
padding: 28px 10px 48px 10px;
&__header {
&-box {
margin-left: 20px;
}
}
&__rectangle {
margin: 24px 0;
}
}
}
@media (max-width: 560px) {
.calendar-component {
padding-top: 10px;
}
}
.calendar__icon {
margin-right: 10px;
margin-top: -4px;
}
@media (max-width: 575.98px) {
.calendar__icon {
display: none;
}
}
.selectDays {
border-style: dashed !important;
&:hover {
background-color: #edf1ff !important;
}
}
.selectedDay {
background-color: #edf1ff !important;
&:hover {
background-color: #edf1ff !important;
}
}
.disable {
pointer-events: none;
}
.before {
background-color: #e5f9b6 !important;
}
.pass {
background-color: #f7d7c9 !important;
}
.today {
font-weight: bold !important;
border: 1px solid #398208 !important;
}
.selected {
background-color: #f9f9c3 !important;
}
.block {
pointer-events: none;
}
.selectDateRange {
display: flex;
align-items: center;
column-gap: 16px;
font-size: 16px;
font-weight: 500;
position: relative;
.select {
border-radius: 5px;
border: 2px solid #c4c4c4;
box-shadow: 0 0 59px rgba(44, 44, 44, 0.05);
padding: 5px 8px;
cursor: pointer;
text-align: center;
}
.close {
cursor: pointer;
margin-left: 8px;
width: 14px;
height: 14px;
}
}