source: src/main/resources/static/css/calendar.css

Last change on this file was 43c9090, checked in by macagaso <gasoskamarija@…>, 5 weeks ago

Updated version

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