index.css 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  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: 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. .current-location-icon {
  154. height: 12px;
  155. width: 12px;
  156. background-color: #1e88e4;
  157. border-radius: 100%;
  158. }
  159. @keyframes pulsate{
  160. 0% {
  161. transform: scale(0);
  162. opacity: .05;
  163. }
  164. 20% {
  165. transform: scale(1.5);
  166. opacity: .1;
  167. }
  168. 40% {
  169. transform: scale(2.5);
  170. opacity: .2;
  171. }
  172. 60% {
  173. transform: scale(3);
  174. opacity: .3;
  175. }
  176. 100% {
  177. transform: scale(4);
  178. opacity: 0;
  179. }
  180. }
  181. .current-location-icon::after {
  182. position: absolute;
  183. top: 50%;
  184. left: 50%;
  185. display: block;
  186. content: "";
  187. height: 22px;
  188. width: 22px;
  189. margin: -10px 0 0 -10px;
  190. animation: pulsate 2s linear;
  191. animation-iteration-count: infinite;
  192. border-radius: 100%;
  193. background-color: #1e88e4;
  194. }
  195. .current-location-icon-container {
  196. border: none;
  197. background-color: none;
  198. }
  199. .sign {
  200. font-size: 14px !important;
  201. color: #6d6d6d;
  202. transform: translate(-50%, 0) !important;
  203. white-space: nowrap;
  204. }
  205. .overpass-layer-icon {
  206. font-size: 14px !important;
  207. color: #6d6d6d;
  208. }
  209. .context-menu {
  210. position: absolute;
  211. z-index: 1000;
  212. visibility: hidden;
  213. background: white;
  214. box-shadow: 0 2px 3px rgba(0,0,0,0.06);
  215. border-radius: 2px;
  216. border: solid white 0px;
  217. padding: 4px 0;
  218. }
  219. .context-menu.visible {
  220. visibility: visible;
  221. }
  222. .context-menu > .menu-item {
  223. padding: 5px 10px;
  224. cursor: pointer;
  225. }
  226. .context-menu > .menu-item:hover {
  227. background-color: #1e88e4;
  228. color: white;
  229. }