|
| 1 | +.calendar-container { |
| 2 | + width: 100%; |
| 3 | + max-width: 360px; |
| 4 | + border: 1px solid var(--calendar-bdr); |
| 5 | + background-color: var(--calendar-bg); |
| 6 | + padding: 1.4rem 1rem; |
| 7 | + border-radius: 1.2rem; |
| 8 | + font-family: "Quicksand", serif; |
| 9 | + |
| 10 | + .header { |
| 11 | + display: flex; |
| 12 | + align-items: center; |
| 13 | + justify-content: space-between; |
| 14 | + margin: 0.4rem 0 2.4rem 0; |
| 15 | + padding: 0 1rem; |
| 16 | + |
| 17 | + h3 { |
| 18 | + font-size: 1.8rem; |
| 19 | + font-weight: 600; |
| 20 | + } |
| 21 | + |
| 22 | + .header-btns { |
| 23 | + display: flex; |
| 24 | + align-items: center; |
| 25 | + justify-content: flex-end; |
| 26 | + gap: 1.2rem; |
| 27 | + |
| 28 | + p { |
| 29 | + cursor: pointer; |
| 30 | + font-weight: 500; |
| 31 | + } |
| 32 | + |
| 33 | + button { |
| 34 | + border: 0.1rem solid var(--calendar-day-bdr) !important; |
| 35 | + background-color: var(--calendar-day-bg) !important; |
| 36 | + border-radius: 1rem; |
| 37 | + width: 3rem; |
| 38 | + height: 3rem; |
| 39 | + border: none; |
| 40 | + display: flex; |
| 41 | + align-items: center; |
| 42 | + justify-content: center; |
| 43 | + |
| 44 | + } |
| 45 | + |
| 46 | + .material-symbols-outlined { |
| 47 | + color: var(--app-theme-font) !important; |
| 48 | + } |
| 49 | + } |
| 50 | + } |
| 51 | + |
| 52 | + .weekdays { |
| 53 | + margin-bottom: 1.8rem; |
| 54 | + font-weight: 600; |
| 55 | + } |
| 56 | + |
| 57 | + .weekdays, |
| 58 | + .days { |
| 59 | + font-family: "Quicksand", serif; |
| 60 | + display: grid; |
| 61 | + grid-template-columns: repeat(7, 1fr); |
| 62 | + row-gap: 1rem; |
| 63 | + text-align: center; |
| 64 | + cursor: pointer; |
| 65 | + } |
| 66 | + |
| 67 | + .day { |
| 68 | + font-family: "Quicksand", serif; |
| 69 | + border: 0.1rem solid var(--calendar-day-bdr); |
| 70 | + background-color: var(--calendar-day-bg); |
| 71 | + flex-shrink: 0; |
| 72 | + width: 3.8rem; |
| 73 | + height: 3.8rem; |
| 74 | + font-weight: 500; |
| 75 | + text-align: center; |
| 76 | + border-radius: 0.8rem; |
| 77 | + display: flex; |
| 78 | + align-items: center; |
| 79 | + justify-content: center; |
| 80 | + margin: auto; |
| 81 | + cursor: pointer; |
| 82 | + |
| 83 | + &:hover { |
| 84 | + background-color: var(--calendar-day-bg-hover); |
| 85 | + } |
| 86 | + |
| 87 | + &.empty { |
| 88 | + background: transparent; |
| 89 | + } |
| 90 | + } |
| 91 | + |
| 92 | + .day.today { |
| 93 | + background-color: var(--app-theme-background) !important; |
| 94 | + color: #000 !important; |
| 95 | + } |
| 96 | +} |
| 97 | + |
| 98 | +.calendar-container.horizontal { |
| 99 | + border: none; |
| 100 | + background-color: transparent; |
| 101 | + max-width: 100%; |
| 102 | + |
| 103 | + .header { |
| 104 | + padding: 0 !important; |
| 105 | + margin: 0.4rem 0 1.4rem 0 !important; |
| 106 | + |
| 107 | + .header-btns { |
| 108 | + button { |
| 109 | + background-color: var(--calendar-day-hz-bg) !important; |
| 110 | + } |
| 111 | + } |
| 112 | + } |
| 113 | + |
| 114 | + .horizontal-scroll-wrapper { |
| 115 | + position: relative; |
| 116 | + display: flex; |
| 117 | + align-items: center; |
| 118 | + gap: 2rem; |
| 119 | + |
| 120 | + .scroll-btn { |
| 121 | + background-color: var(--calendar-day-hz-bg); |
| 122 | + border: none; |
| 123 | + border-radius: 50%; |
| 124 | + width: 3rem; |
| 125 | + height: 3rem; |
| 126 | + display: flex; |
| 127 | + align-items: center; |
| 128 | + justify-content: center; |
| 129 | + z-index: 2; |
| 130 | + cursor: pointer; |
| 131 | + |
| 132 | + &.left { |
| 133 | + margin-right: 0.6rem; |
| 134 | + } |
| 135 | + |
| 136 | + &.right { |
| 137 | + margin-left: 0.6rem; |
| 138 | + } |
| 139 | + |
| 140 | + span { |
| 141 | + font-size: 2rem; |
| 142 | + } |
| 143 | + } |
| 144 | + |
| 145 | + .days { |
| 146 | + flex: 1; |
| 147 | + display: flex; |
| 148 | + overflow-x: auto; |
| 149 | + scroll-behavior: smooth; |
| 150 | + gap: 1rem; |
| 151 | + padding: 0.8rem 0; |
| 152 | + scrollbar-width: none; |
| 153 | + |
| 154 | + &::-webkit-scrollbar { |
| 155 | + display: none; |
| 156 | + } |
| 157 | + } |
| 158 | + |
| 159 | + .day { |
| 160 | + border: 0.1rem solid var(--calendar-day-bdr); |
| 161 | + background-color: var(--calendar-day-hz-bg); |
| 162 | + width: 4.4rem; |
| 163 | + height: 4.4rem; |
| 164 | + font-weight: 500; |
| 165 | + } |
| 166 | + |
| 167 | + .day { |
| 168 | + &.empty { |
| 169 | + display: none; |
| 170 | + } |
| 171 | + } |
| 172 | + } |
| 173 | +} |
| 174 | + |
| 175 | +.day.selected { |
| 176 | + border: 0.2rem solid var(--app-theme-background); |
| 177 | + background-color: var(--app-theme-font) !important; |
| 178 | + color: var(--app-theme-background) !important; |
| 179 | + font-weight: bold; |
| 180 | +} |
0 commit comments