map.css 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. #map-wrapper {
  2. width: 100%;
  3. max-width: 100%;
  4. border: 1px solid #ccc;
  5. border-radius: 8px;
  6. overflow: hidden;
  7. position:relative;
  8. }
  9. #map {
  10. height: 550px;
  11. width: 100%;
  12. }
  13. #map-info {
  14. position: absolute;
  15. padding: 8px;
  16. border: 0 solid #ccc;
  17. border-radius: 16px;
  18. background-color: rgba(255,255,255,0.8);
  19. backdrop-filter: blur(5px);
  20. overflow: hidden;
  21. z-index: 999;
  22. right: -8px;
  23. /* Todo anders machen nicht mit scale */
  24. transform: scale(0.8);
  25. max-height: 200px;
  26. visibility:hidden;
  27. }
  28. .compact {
  29. height: 400px !important;
  30. }
  31. #map-wrapper.compact .map,
  32. #map-wrapper.compact {
  33. height: 400px !important;
  34. }
  35. #map-wrapper.compact #map-info {
  36. top: auto !important;
  37. bottom: 0 !important;
  38. left: 0 !important;
  39. right: 0 !important;
  40. width: 100%;
  41. transform: none !important;
  42. border-radius: 0px 0px 0 0 !important;
  43. padding:12px;
  44. max-height: 450px;
  45. }
  46. #map-wrapper.compact #map-info {
  47. font-size: 14px;
  48. line-height: 1.3;
  49. }
  50. #map-wrapper.compact #map-info h4 {
  51. font-size: 16px;
  52. }
  53. #map-wrapper.compact #map-info span,
  54. #map-wrapper.compact #map-info a {
  55. font-size: 13px;
  56. }
  57. #map-wrapper.compact #map-info a {
  58. text-decoration: none;
  59. }
  60. #map-wrapper.compact #map-info-opening-hours-weekdays {
  61. font-size: 13px;
  62. }
  63. #map-wrapper.compact .leaflet-marker-icon {
  64. width: 28px !important;
  65. height: 28px !important;
  66. background-size: cover;
  67. }
  68. #map-info.active {
  69. animation: fadeIn 0.125s ease-in forwards;
  70. }
  71. #map-info.closing {
  72. animation: fadeOut 0.125s ease-in forwards;
  73. }
  74. .input-width-clear {
  75. position: relative;
  76. display: inline-block;
  77. }
  78. #map-info-close,
  79. #zipcode-search-close{
  80. float: right;
  81. font-size: 18px;
  82. font-weight: bold;
  83. cursor: pointer;
  84. user-select: none;
  85. -webkit-user-select: none;
  86. -ms-user-select: none;
  87. padding: 4px 8px;
  88. line-height: 1;
  89. color: #333;
  90. border: 0px solid transparent;
  91. background-color: rgba(0, 0, 0, 0);
  92. transition: transform 0.2s ease;
  93. }
  94. #map-info-close:hover {
  95. transform: scale(1.05)
  96. }
  97. #zipcode-search-close {
  98. position: absolute;
  99. top: 25%;
  100. right: 25%;
  101. }
  102. #zipcode-search-wrapper {
  103. display: flex;
  104. align-items: center;
  105. margin: 10px 0;
  106. justify-content: center;
  107. position: absolute;
  108. z-index: 9999;
  109. margin-left: 56px;
  110. }
  111. #zipcode-input {
  112. padding: 8px 12px;
  113. border-radius: 8px;
  114. border: 1px solid #ccc;
  115. width: 120px;
  116. font-size: 15px;
  117. transition: border-color 0.2s ease, box-shadow 0.2s ease;
  118. background-color: #fff;
  119. box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  120. pointer-events: auto;
  121. cursor: auto;
  122. }
  123. #zipcode-input:focus {
  124. outline: none;
  125. box-shadow: 0 0 4px rgba(0,120,70,0.25);
  126. pointer-events: auto;
  127. }
  128. svg {
  129. color: gray;
  130. }
  131. .input-close {
  132. margin-right: 4px;
  133. transform: scale(0.8);
  134. }
  135. #zipcode-search-button {
  136. padding: 6px 10px;
  137. border: 1px solid #ccc;
  138. border-radius: 6px;
  139. background-color: #f3f3f3;
  140. cursor: pointer;
  141. transition: background-color 0.2s ease, transform 0.2s ease;
  142. margin-left: 4px;
  143. }
  144. #zipcode-search-button:hover {
  145. background-color: #e6e6e6;
  146. transform: scale(1.05);
  147. cursor: auto;
  148. }
  149. /* leaflet customization*/
  150. /*Top Left plus and minus*/
  151. .leaflet-control {
  152. border: 0px solid black !important;
  153. box-shadow: 0px 0px 5px rgba(0,0,0,0.15);
  154. background-color: rgba(255,255,255,0.8);
  155. backdrop-filter: blur(5px);
  156. }
  157. .leaflet-bar a {
  158. background-color: rgba(0,0,0,0);
  159. }
  160. .awigo-marker-icon {
  161. /*transition: transform 0.2s ease, box-shadow 0.2s ease;*/
  162. width:41px !important;
  163. background-size: cover;
  164. }
  165. .hidden{
  166. visibility: hidden !important;
  167. }
  168. .awigo-marker-icon + .leaflet-marker-shadow {
  169. /*display: none !important;*/
  170. }
  171. .leaflet-marker-icon:hover {
  172. /*box-shadow: 0px 0px 5px rgba(0,0,0,0.3);*/
  173. /*border-radius: 5px;*/
  174. }
  175. .input-shake-error {
  176. animation: shake 0.3s ease-in;
  177. border-color: red;
  178. }
  179. /*animations*/
  180. @keyframes fadeIn {
  181. from {
  182. opacity: 0;
  183. visibility: visible;
  184. }
  185. to {
  186. opacity: 1;
  187. visibility: visible;
  188. }
  189. }
  190. @keyframes fadeOut {
  191. from {
  192. opacity: 1;
  193. visibility: visible;
  194. }
  195. to {
  196. opacity: 0;
  197. visibility: hidden;
  198. }
  199. }
  200. @keyframes shake {
  201. 0%, 100% { transform: translateX(0); }
  202. 20%, 60% { transform: translateX(-4px); }
  203. 40%, 80% { transform: translateX(4px); }
  204. }