source: src/main/resources/static/css/calendar.css@ 743de55

Last change on this file since 743de55 was 743de55, checked in by macagaso <gasoskamarija@…>, 6 weeks ago

Initial commit

  • Property mode set to 100644
File size: 7.2 KB
Line 
1/* Modal background */
2#confirmation-modal {
3 display: none; /* Hidden by default */
4 position: absolute; /* Fixed positioning to center it on the page */
5 z-index: 1000; /* Sit on top */
6 left: 38%;
7 top: 40%;
8 width: 400px; /* Full width */
9 overflow: auto; /* Enable scroll if needed */
10 background-color: #fff; /* White background for the content */
11 border-radius: 8px; /* Rounded corners */
12 box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
13 text-align: center; /* Center align text */
14}
15.model-content{
16 display: flex;
17 align-items: center;
18}
19
20.modal-content p {
21 font-size: 18px;
22 margin-bottom: 20px;
23 color: #333;
24}
25
26/* Buttons */
27button {
28 background-color: #3498db; /* Primary button color */
29 border: none;
30 color: #fff;
31 padding: 10px 20px;
32 margin: 10px;
33 border-radius: 5px;
34 cursor: pointer;
35 font-size: 16px;
36 transition: background-color 0.3s ease, transform 0.2s ease;
37}
38
39button:hover {
40 background-color: #2980b9; /* Darker shade for hover effect */
41 transform: scale(1.05); /* Slight scale effect on hover */
42}
43
44button:active {
45 background-color: #1f77e4; /* Even darker shade when active */
46}
47
48/* Cancel button with different color */
49#cancel-booking {
50 background-color: #e74c3c; /* Different color for cancel button */
51}
52
53#cancel-booking:hover {
54 background-color: #c0392b; /* Darker shade for hover effect */
55}
56
57:root {
58 --dark-body: #4d4c5a;
59 --dark-main: #141529;
60 --dark-second: #79788c;
61 --dark-hover: #323048;
62 --dark-text: #f8fbff;
63
64 --light-body: #f3f8fe;
65 --light-main: #fdfdfd;
66 --light-second: #c3c2c8;
67 --light-hover: #edf0f5;
68 --light-text: #151426;
69
70 --blue: #0000ff;
71 --white: #fff;
72
73 --shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
74
75 --font-family: cursive;
76}
77
78
79#content{
80 display: grid;
81 grid-template-columns: 1fr 2fr;
82 width: 100%;
83 height:100%;
84 align-items: center;
85}
86.white-space{
87 background-color: white;
88}
89#personal-info {
90 display: flex;
91 flex-direction: column;
92 align-items: center;
93 gap: 10px;
94}
95#appointment-info{
96 padding: 30px;
97 background-color: white;
98 display:flex;
99 align-items: center;
100 justify-content: space-evenly;
101 height: 100%;
102}
103#admin-photo{
104 width:280px;
105 z-index: -1;
106}
107#first-box a {
108 font-size: 20px;
109 padding:15px;
110 display: inline-block;
111}
112
113a img{
114 transform: rotate(-90deg);
115 height: 20px;
116 margin-right: 10px;
117}
118#right-side > *{
119 margin:10px;
120}
121
122.dark {
123 --bg-body: var(--dark-body);
124 --bg-main: var(--dark-main);
125 --bg-second: var(--dark-second);
126 --color-hover: var(--dark-hover);
127 --color-txt: var(--dark-text);
128}
129#first-box{
130 width: 350px;
131}
132.light {
133 --bg-body: var(--light-body);
134 --bg-main: var(--light-main);
135 --bg-second: var(--light-second);
136 --color-hover: var(--light-hover);
137 --color-txt: var(--light-text);
138}
139
140* {
141 padding: 0;
142 margin: 0;
143 box-sizing: border-box;
144}
145label{
146 display: inline-block;
147 width: 180px;
148}
149
150
151html,
152body {
153 height: 100%;
154 width: 100%;
155 font-family: var(--font-family);
156 background-color: var(--bg-body);
157}
158h1{
159 font-size: 25px;
160}
161#left-side > *{
162 margin-bottom: 15px;
163}
164#sub{
165 border: 2px solid #10B981;
166 background-color: rgba(16, 185, 129, 0.05);
167 display: inline-block;
168 padding: 10px;
169}
170.calendar {
171 height: max-content;
172 width: max-content;
173 background-color: var(--bg-main);
174 border-radius: 30px;
175 padding: 20px;
176 position: relative;
177 overflow: hidden;
178 /* transform: scale(1.25); */
179}
180
181.light .calendar {
182 box-shadow: var(--shadow);
183}
184#sub img{
185 height: 20px;
186 padding-right:15px;
187}
188
189.calendar-header {
190 display: flex;
191 justify-content: space-between;
192 align-items: center;
193 font-size: 25px;
194 font-weight: 600;
195 color: var(--color-txt);
196 padding: 10px;
197
198}
199
200.calendar-body {
201 padding: 10px;
202}
203
204.calendar-week-day {
205 height: 50px;
206 display: grid;
207 grid-template-columns: repeat(7, 1fr);
208 font-weight: 600;
209}
210
211.calendar-week-day div {
212 display: grid;
213 place-items: center;
214 color: var(--bg-second);
215}
216
217.calendar-days {
218 display: grid;
219 grid-template-columns: repeat(7, 1fr);
220 gap: 2px;
221 color: var(--color-txt);
222}
223
224.calendar-days div {
225 width: 50px;
226 height: 50px;
227 display: flex;
228 align-items: center;
229 justify-content: center;
230 padding: 5px;
231 position: relative;
232 cursor: pointer;
233 animation: to-top 1s forwards;
234 /* border-radius: 50%; */
235}
236
237.calendar-days div span {
238 position: absolute;
239}
240
241.calendar-days div:hover span {
242 transition: width 0.2s ease-in-out, height 0.2s ease-in-out;
243}
244
245.calendar-days div span:nth-child(1),
246.calendar-days div span:nth-child(3) {
247 width: 2px;
248 height: 0;
249 background-color: var(--color-txt);
250}
251
252.calendar-days div:hover span:nth-child(1),
253.calendar-days div:hover span:nth-child(3) {
254 height: 100%;
255}
256
257.calendar-days div span:nth-child(1) {
258 bottom: 0;
259 left: 0;
260}
261
262.calendar-days div span:nth-child(3) {
263 top: 0;
264 right: 0;
265}
266
267.calendar-days div span:nth-child(2),
268.calendar-days div span:nth-child(4) {
269 width: 0;
270 height: 2px;
271 background-color: var(--color-txt);
272}
273
274.calendar-days div:hover span:nth-child(2),
275.calendar-days div:hover span:nth-child(4) {
276 width: 100%;
277}
278
279.calendar-days div span:nth-child(2) {
280 top: 0;
281 left: 0;
282}
283
284.calendar-days div span:nth-child(4) {
285 bottom: 0;
286 right: 0;
287}
288
289.calendar-days div:hover span:nth-child(2) {
290 transition-delay: 0.2s;
291}
292
293.calendar-days div:hover span:nth-child(3) {
294 transition-delay: 0.4s;
295}
296
297.calendar-days div:hover span:nth-child(4) {
298 transition-delay: 0.6s;
299}
300
301.calendar-days div.curr-date,
302.calendar-days div.curr-date:hover {
303 background-color: var(--blue);
304 color: var(--white);
305 border-radius: 50%;
306}
307
308.calendar-days div.curr-date span {
309 display: none;
310}
311
312.month-picker {
313 padding: 5px 10px;
314 border-radius: 10px;
315 cursor: pointer;
316}
317
318.month-picker:hover {
319 background-color: var(--color-hover);
320}
321
322.year-picker {
323 display: flex;
324 align-items: center;
325}
326
327.year-change {
328 height: 40px;
329 width: 40px;
330 border-radius: 50%;
331 display: grid;
332 place-items: center;
333 margin: 0 10px;
334 cursor: pointer;
335}
336
337.year-change:hover {
338 background-color: var(--color-hover);
339}
340
341
342.month-list {
343 position: absolute;
344 width: 100%;
345 height: 100%;
346 top: 0;
347 left: 0;
348 background-color: var(--bg-main);
349 padding: 20px;
350 grid-template-columns: repeat(3, auto);
351 gap: 5px;
352 display: grid;
353 transform: scale(1.5);
354 visibility: hidden;
355 pointer-events: none;
356}
357
358.month-list.show {
359 transform: scale(1);
360 visibility: visible;
361 pointer-events: visible;
362 transition: all 0.2s ease-in-out;
363}
364
365.month-list > div {
366 display: grid;
367 place-items: center;
368}
369
370.month-list > div > div {
371 width: 100%;
372 padding: 5px 20px;
373 border-radius: 10px;
374 text-align: center;
375 cursor: pointer;
376 color: var(--color-txt);
377}
378
379.month-list > div > div:hover {
380 background-color: var(--color-hover);
381}
382
383@keyframes to-top {
384 0% {
385 transform: translateY(100%);
386 opacity: 0;
387 }
388 100% {
389 transform: translateY(0);
390 opacity: 1;
391 }
392}
393
394
395
396
Note: See TracBrowser for help on using the repository browser.