index.css 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. @font-face {
  2. font-family: 'IBM Plex Sans';
  3. src: url(/3rdparty/IBMPlexSans-Regular.ttf);
  4. }
  5. html, body {
  6. margin: 0;
  7. padding: 0;
  8. width: 100%;
  9. height: 100%;
  10. font-family: 'IBM Plex Sans', sans-serif;
  11. }
  12. #app {
  13. position: absolute;
  14. height: 100vh;
  15. width: 100%;
  16. }
  17. .map {
  18. position: absolute;
  19. height: 100vh;
  20. width: 100%;
  21. }
  22. .map-overlay {
  23. position: absolute;
  24. z-index: 500; /* leaflet is on 400 */
  25. }
  26. .container {
  27. display: flex;
  28. border: 1px solid rgba(0,0,0,0.15);
  29. box-shadow: 0 2px 3px rgba(0,0,0,0.06);
  30. border-radius: 3px;
  31. background: white;
  32. }
  33. .query-search-input {
  34. position: absolute;
  35. top: 10px;
  36. left: 10px;
  37. width: 450px;
  38. transition: all 0.25s cubic-bezier(.65,.05,.36,1);
  39. }
  40. .query-search-input.open {
  41. left: 60px;
  42. width: 390px;
  43. }
  44. @media all and (max-width: 768px) {
  45. .query-search-input {
  46. width: 100%;
  47. left: 0;
  48. }
  49. .query-search-input.open {
  50. width: 80%;
  51. }
  52. }
  53. .query-search-input-placeholder {
  54. height: 60px;
  55. line-height: 60px;
  56. background-color: #409EFF;
  57. transition: all 0.25s cubic-bezier(.65,.05,.36,1);
  58. }
  59. .query-search-input-placeholder.second {
  60. height: 110px;
  61. }
  62. .query-search-result-container {
  63. overflow: auto;
  64. background: white;
  65. flex-basis: 0;
  66. transition: all 0.25s cubic-bezier(.65,.05,.36,1);
  67. }
  68. .query-search-result-container.open {
  69. flex-basis: 100%;
  70. }
  71. .query-search-result-container-inner {
  72. padding-top: 10px;
  73. }
  74. .query-search-result-container-inner.details {
  75. padding: 10px;
  76. }
  77. .query-search-result-item {
  78. cursor: pointer;
  79. white-space: nowrap;
  80. overflow: hidden;
  81. text-overflow: ellipsis;
  82. padding: 5px 10px;
  83. }
  84. .query-search-result-item:hover {
  85. background: #E7E7E7;
  86. }
  87. .query-search-result-item h4 {
  88. margin: 0;
  89. margin-top: 10px;
  90. margin-bottom: 5px;
  91. }
  92. .query-search-result-item p {
  93. margin: 0;
  94. margin-bottom: 10px;
  95. color: gray;
  96. font-size: 14px;
  97. }
  98. .search-input {
  99. width: 100%;
  100. }
  101. .side-panel {
  102. display: flex;
  103. flex-direction: column;
  104. color: #333;
  105. transition: all 0.25s cubic-bezier(.65,.05,.36,1);
  106. width: 0;
  107. height: 100vh;
  108. overflow: hidden;
  109. }
  110. .side-panel.open {
  111. width: 470px;
  112. }
  113. @media all and (max-width: 768px) {
  114. .side-panel.open {
  115. width: 100%;
  116. }
  117. }
  118. .side-panel-toggle-button {
  119. position: fixed;
  120. left: 5px;
  121. top: 50vh;
  122. transition: all 0.25s cubic-bezier(.65,.05,.36,1);
  123. }
  124. .side-panel-toggle-button.open {
  125. left: 475px;
  126. }
  127. .search-result-marker {
  128. background-image: url('pin.svg');
  129. background-size: cover;
  130. width: 80px;
  131. height: 80px;
  132. cursor: pointer;
  133. }
  134. .poi-icon {
  135. color: #8a7862;
  136. font-size: 20px;
  137. transition: all 0.25s cubic-bezier(.65,.05,.36,1);
  138. }
  139. .poi-icon:hover {
  140. color: #ff0029a6;
  141. transform: scale(1.5);
  142. }
  143. /* element ui patches */
  144. .el-carousel__item {
  145. text-align: center;
  146. }
  147. .whats-here {
  148. background-size: cover;
  149. background-repeat: no-repeat;
  150. width: 128px;
  151. height: 128px;
  152. }
  153. @keyframes pulse_animation {
  154. 0% { opacity: 0; transform: scale(0); }
  155. 5% { opacity: 0.9; transform: scale(1); }
  156. 80% { opacity: 0.9; transform: scale(1); }
  157. 100% { opacity: 0; transform: scale(10); }
  158. }
  159. .current-location-icon {
  160. position: absolute;
  161. width: 10px;
  162. height: 10px;
  163. background-color: #0087ff;
  164. border-radius: 5px;
  165. animation-name: pulse_animation;
  166. animation-duration: 4000ms;
  167. transform-origin: 50% 50%;
  168. animation-iteration-count: infinite;
  169. animation-timing-function: linear;
  170. }
  171. .current-location-icon-container {
  172. border: none;
  173. background-color: none;
  174. }