katja's git: oeffisearch

fast and simple tripplanner

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 
26 
27 
28 
29 
30 
31 
32 
33 
34 
35 
36 
37 
38 
39 
40 
41 
42 
43 
44 
45 
46 
47 
48 
49 
50 
51 
52 
53 
54 
55 
56 
57 
58 
59 
60 
61 
62 
63 
64 
65 
66 
67 
68 
69 
70 
71 
72 
73 
74 
75 
76 
77 
78 
79 
80 
81 
82 
.overlay {
	position: fixed;
	display: flex;
	top: 0;
	left: 0;
	height: 100vh;
	width: 100vw;
	background-color: rgba(0, 0, 0, .7);
	z-index: 100;
	backdrop-filter: blur(10px);
}

.modal {
	z-index: 200;
	background-color: white;
	width: max-content;
	padding: 15px;
}

.modal.select {
	a {
		width: 100%;
		margin-bottom: 10px;
		text-align: center;
	}

	a:last-child {
		margin-bottom: unset;
	}
}

.modal.dialog {
	padding: unset;

	.body {
		max-height: 70vh;
		overflow: scroll;
	}

	.header {
		justify-content: space-between;
		background-color: #33691E;
		color: white;
		padding: 15px;

		h4 {
			margin: 0;
 		}

		.icon-close {
			margin: -15px;
			padding: 10px;
			border-left: 1px solid rgba(0, 0, 0, .4);
			cursor: pointer;
		}

		.icon-close:hover {
			background: rgba(0, 0, 0, .4);
		}
	}
}

@media (max-width: 650px) {
	.modal.dialog {
		width: 100vw;
		height: 100vh;

		.body {
			max-height: 100vh;
		}
	}
}

@media (min-width: 651px) {
	.modal.dialog {
		width: 600px;
	}
}

.icon-close {
	content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="30" height="30"><path d="M5.293 5.293a1 1 0 0 1 1.414 0L12 10.586l5.293-5.293a1 1 0 1 1 1.414 1.414L13.414 12l5.293 5.293a1 1 0 0 1-1.414 1.414L12 13.414l-5.293 5.293a1 1 0 0 1-1.414-1.414L10.586 12 5.293 6.707a1 1 0 0 1 0-1.414" fill="white"/></svg>');
}