index.css 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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. .map {
  13. height: 100vh;
  14. width: 100%;
  15. }
  16. .container {
  17. display: flex;
  18. border: 1px solid rgba(0,0,0,0.15);
  19. box-shadow: 0 2px 3px rgba(0,0,0,0.06);
  20. border-radius: 3px;
  21. background: white;
  22. }
  23. .query-search-input {
  24. position: absolute;
  25. top: 10px;
  26. left: 10px;
  27. width: 450px;
  28. transition: all 0.25s cubic-bezier(.65,.05,.36,1);
  29. }
  30. .query-search-input.open {
  31. left: 60px;
  32. width: 390px;
  33. }
  34. .query-search-input.second {
  35. top: 60px;
  36. }
  37. .query-search-input-placeholder {
  38. height: 60px;
  39. line-height: 60px;
  40. background-color: #409EFF;
  41. transition: all 0.25s cubic-bezier(.65,.05,.36,1);
  42. }
  43. .query-search-input-placeholder.second {
  44. height: 110px;
  45. }
  46. .query-search-result-container {
  47. overflow: auto;
  48. background: white;
  49. padding-top: 10px;
  50. flex-basis: 0;
  51. transition: all 0.25s cubic-bezier(.65,.05,.36,1);
  52. }
  53. .query-search-result-container.open {
  54. flex-basis: 100%;
  55. }
  56. .query-search-result-item {
  57. cursor: pointer;
  58. white-space: nowrap;
  59. overflow: hidden;
  60. text-overflow: ellipsis;
  61. padding: 5px 10px;
  62. }
  63. .query-search-result-item:hover {
  64. background: #E7E7E7;
  65. }
  66. .query-search-result-item h4 {
  67. margin: 0;
  68. margin-top: 10px;
  69. margin-bottom: 5px;
  70. }
  71. .query-search-result-item p {
  72. margin: 0;
  73. margin-bottom: 10px;
  74. color: gray;
  75. font-size: 14px;
  76. }
  77. .search-input {
  78. width: 100%;
  79. }
  80. .side-panel {
  81. display: flex;
  82. flex-direction: column;
  83. color: #333;
  84. transition: all 0.25s cubic-bezier(.65,.05,.36,1);
  85. width: 0;
  86. height: 100vh;
  87. overflow: hidden;
  88. }
  89. .side-panel.open {
  90. width: 700px;
  91. }
  92. .side-panel-toggle-button {
  93. position: fixed;
  94. left: 5px;
  95. top: 50vh;
  96. transition: all 0.25s cubic-bezier(.65,.05,.36,1);
  97. }
  98. .side-panel-toggle-button.open {
  99. left: 475px;
  100. }
  101. .search-result-marker {
  102. background-image: url('pin.svg');
  103. background-size: cover;
  104. width: 80px;
  105. height: 80px;
  106. cursor: pointer;
  107. }