-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
183 lines (151 loc) · 3.8 KB
/
style.css
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
height: 100vh;
background-color: #eaeaea;
}
#map {
height: 400px;
width: 80%;
max-width: 800px;
margin: 20px 0;
border-radius: 15px;
box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
/* Styles for transport mode buttons */
.mode-button {
background-color: #4CAF50;
color: white;
padding: 10px 15px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 14px; /* Kleiner für mobile Geräte */
transition: background-color 0.3s, transform 0.2s;
}
.transport-mode-buttons {
display: none; /* Versteckt die Buttons standardmäßig */
justify-content: center;
flex-wrap: wrap;
gap: 10px;
margin-top: 10px;
}
.mode-button:hover {
background-color: #45a049;
transform: scale(1.05);
}
@media screen and (max-width: 768px) {
.transport-mode-buttons {
width: 100%;
margin: 0 auto;
padding: 10px;
}
.mode-button {
width: 100%; /* Volle Breite für bessere Klickbarkeit */
margin: 5px 0; /* Abstand zwischen den Buttons */
padding: 12px 20px; /* Größerer Padding für bessere Klickbarkeit */
}
}
.mode-button:first-child {
margin-left: 0;
}
/* Rest of your existing CSS... */
.button-container {
position: absolute; /* Adjust this as needed, could be relative or fixed based on your design */
top: 10px; /* Distance from the top of the screen */
right: 10px; /* Distance from the right side of the screen */
display: flex;
flex-direction: column; /* Stack buttons vertically */
align-items: flex-start; /* Align buttons to the start of the flex container */
gap: 10px; /* Space between buttons */
}
.control-panel {
text-align: center;
width: 80%;
max-width: 400px;
background: white;
padding: 20px;
border-radius: 15px;
box-shadow: 0 4px 15px rgba(0,0,0,0.15);
margin-bottom: 20px;
}
.control-panel div,
.control-panel input,
.control-panel button {
margin-bottom: 10px;
}
input[type="number"],
input[type="range"] {
width: 100%;
padding: 8px;
border-radius: 5px;
border: 1px solid #ddd;
box-sizing: border-box;
}
button {
background-color: #007bff;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #0056b3;
}
#routeInfo {
font-size: 16px;
color: #333;
padding: 10px 20px;
border-radius: 5px;
background: white;
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
/* Basis-Stile hier (außerhalb der Media Query) */
/* Media Queries für Mobilgeräte */
.transport-mode-buttons {
display: none; /* Versteckt die Buttons standardmäßig */
justify-content: center;
flex-wrap: wrap;
gap: 10px;
margin-top: 10px;
}
#map {
width: 90%; /* Breiter für kleinere Bildschirme */
height: 250px; /* Kleinere Kartenhöhe für Mobilgeräte */
}
.control-panel,
#routeInfo {
width: 95%; /* Breiter für kleinere Bildschirme */
margin: 10px auto; /* Zentriert die Elemente */
}
/* Weitere spezifische Anpassungen für Mobilgeräte */
/* Sanftes Einblenden von Elementen */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.element {
animation: fadeIn 1s ease-in-out;
}
/* Verbesserte Typografie und Design für Buttons */
button {
background-color: #4CAF50;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s ease-in-out;
}
button:hover {
background-color: #45a049;
}