guild_front/src/components/Calendar/calendarComponent.scss

310 lines
5.1 KiB
SCSS
Raw Normal View History

2021-11-30 16:00:58 +02:00
.calendar-component {
position: relative;
2023-12-20 16:14:30 +03:00
margin: 30px 0;
2021-11-30 16:00:58 +02:00
background-color: #f9f9f9;
2023-12-20 16:14:30 +03:00
padding: 20px 30px;
2023-05-11 19:54:15 +03:00
font-family: "LabGrotesque", sans-serif;
2021-11-30 16:00:58 +02:00
&__header {
display: flex;
2023-03-01 00:28:58 +03:00
justify-content: space-between;
2023-12-05 14:22:45 +03:00
@media (max-width: 760px) {
2023-03-01 23:40:23 +03:00
flex-direction: column;
row-gap: 15px;
}
2023-03-01 00:28:58 +03:00
&-info {
display: flex;
2023-12-05 14:22:45 +03:00
@media (max-width: 760px) {
2023-03-01 23:40:23 +03:00
font-size: 10px;
justify-content: center;
}
2023-03-01 00:28:58 +03:00
.calendar__hours {
2023-12-05 14:22:45 +03:00
margin: 0 5px;
2023-03-01 00:28:58 +03:00
line-height: 0;
font-weight: 500;
2023-03-01 23:40:23 +03:00
display: flex;
align-items: center;
2023-03-01 00:28:58 +03:00
}
}
&-switcher {
display: flex;
2023-03-01 23:40:23 +03:00
2023-12-05 14:22:45 +03:00
@media (max-width: 760px) {
2023-03-01 23:40:23 +03:00
justify-content: center;
font-size: 12px;
}
2023-03-01 00:28:58 +03:00
}
2021-11-30 16:00:58 +02:00
h3 {
2023-12-05 14:22:45 +03:00
font-size: 2.2em;
2021-11-30 16:00:58 +02:00
font-weight: 400;
font-style: normal;
letter-spacing: normal;
line-height: 30px;
text-align: left;
2023-03-01 00:28:58 +03:00
margin-bottom: 0;
2023-02-17 15:19:49 +03:00
@media (max-width: 500px) {
font-size: 1.7em;
}
2021-11-30 16:00:58 +02:00
}
&-box {
display: flex;
align-items: center;
margin-left: 20px;
cursor: pointer;
2021-11-30 16:00:58 +02:00
img {
margin: 0px 10px;
width: 12px;
height: 12px;
&:first-child {
transform: rotate(180deg);
margin: 0;
}
2021-11-30 16:00:58 +02:00
}
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;
2023-02-17 15:19:49 +03:00
@media (max-width: 500px) {
font-size: 1.2em;
}
2021-11-30 16:00:58 +02:00
}
2023-03-01 23:40:23 +03:00
@media (max-width: 560px) {
margin-left: 0 !important;
}
2021-11-30 16:00:58 +02:00
}
}
&__rectangle {
2023-12-20 16:14:30 +03:00
margin: 20px 0;
2021-11-30 16:00:58 +02:00
img {
width: 100%;
}
}
&__body {
div {
display: grid;
2022-12-26 15:12:01 +03:00
2021-11-30 16:00:58 +02:00
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;
}
}
2023-05-12 12:44:28 +03:00
2023-12-20 16:14:30 +03:00
margin: 20px 0 20px;
2021-11-30 16:00:58 +02:00
}
&__form {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
button {
margin: 0 auto;
2023-05-11 19:54:15 +03:00
width: 125px;
height: 42px;
2023-02-17 15:19:49 +03:00
padding: 0 5px;
2021-11-30 16:00:58 +02:00
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;
2023-01-16 16:28:56 +03:00
2023-05-16 19:20:37 +03:00
a {
color: black;
2023-06-29 02:26:49 +03:00
display: flex;
align-items: center;
justify-content: center;
font-weight: 500;
font-size: 12px;
2023-12-04 20:13:10 +03:00
@media (max-width: 500px) {
font-size: 10px;
font-weight: 400;
}
2023-05-16 19:20:37 +03:00
}
2023-05-11 19:54:15 +03:00
img {
width: 16px;
height: 16px;
2023-06-29 02:26:49 +03:00
margin: 0 5px 0 0;
2023-02-17 15:19:49 +03:00
@media (max-width: 968px) {
2023-05-11 19:54:15 +03:00
margin-right: 2px;
2023-02-17 15:19:49 +03:00
2023-05-11 19:54:15 +03:00
@media (max-width: 610px) {
display: none;
2023-02-17 15:19:49 +03:00
}
}
2023-05-11 19:54:15 +03:00
}
2023-12-04 21:08:15 +03:00
@media (max-width: 1200px) {
width: 110px;
}
2023-05-11 19:54:15 +03:00
@media (max-width: 968px) {
2023-12-04 21:08:15 +03:00
width: 90px;
font-size: 11px;
}
@media (max-width: 680px) {
width: 70px;
2023-05-11 19:54:15 +03:00
font-size: 10px;
2023-01-16 16:28:56 +03:00
}
2021-11-30 16:00:58 +02:00
2023-12-04 21:08:15 +03:00
@media (max-width: 550px) {
width: 60px;
height: 35px;
2023-02-17 15:19:49 +03:00
}
2023-12-04 21:08:15 +03:00
@media (max-width: 450px) {
2023-02-17 15:19:49 +03:00
width: 45px;
height: 35px;
2021-11-30 16:00:58 +02:00
}
}
}
}
@media (max-width: 968px) {
.calendar-component {
2023-12-20 16:14:30 +03:00
padding: 28px 10px;
2021-11-30 16:00:58 +02:00
&__header {
&-box {
margin-left: 20px;
}
}
&__rectangle {
margin: 24px 0;
}
}
}
2023-03-01 23:40:23 +03:00
@media (max-width: 560px) {
.calendar-component {
padding-top: 10px;
}
}
2021-11-30 16:00:58 +02:00
.calendar__icon {
margin-right: 10px;
margin-top: -4px;
}
@media (max-width: 575.98px) {
.calendar__icon {
display: none;
}
}
2023-10-10 16:31:40 +03:00
.selectDays {
border-style: dashed !important;
&:hover {
background-color: #edf1ff !important;
}
}
.selectedDay {
background-color: #edf1ff !important;
&:hover {
background-color: #edf1ff !important;
}
}
.disable {
pointer-events: none;
}
2021-11-30 16:00:58 +02:00
.before {
2022-12-26 15:12:01 +03:00
background-color: #e5f9b6 !important;
}
.pass {
background-color: #f7d7c9 !important;
2021-11-30 16:00:58 +02:00
}
.today {
font-weight: bold !important;
border: 1px solid #398208 !important;
}
.selected {
background-color: #f9f9c3 !important;
2022-12-26 15:12:01 +03:00
}
2023-01-16 16:28:56 +03:00
.block {
pointer-events: none;
}
2023-10-06 17:40:53 +03:00
.selectDateRange {
display: flex;
align-items: center;
2023-10-24 19:41:59 +03:00
column-gap: 16px;
2023-10-06 17:40:53 +03:00
font-size: 16px;
font-weight: 500;
position: relative;
.select {
border-radius: 5px;
2023-12-04 20:13:10 +03:00
border: 2px solid #c4c4c4;
2023-10-06 17:40:53 +03:00
box-shadow: 0 0 59px rgba(44, 44, 44, 0.05);
padding: 5px 8px;
cursor: pointer;
text-align: center;
}
2023-10-10 16:31:40 +03:00
.close {
cursor: pointer;
margin-left: 8px;
width: 14px;
height: 14px;
}
2023-10-06 17:40:53 +03:00
}
2023-12-20 16:14:30 +03:00
@media (max-width: 575.98px) {
.selectDateRange {
font-size: 14px;
text-align: center;
column-gap: 8px;
.select {
padding: 4px;
}
}
}