index.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. .search-input {
  67. width: 100%;
  68. }
  69. .side-panel {
  70. display: flex;
  71. flex-direction: column;
  72. color: #333;
  73. transition: all 0.25s cubic-bezier(.65,.05,.36,1);
  74. width: 0;
  75. height: 100vh;
  76. overflow: hidden;
  77. }
  78. .side-panel.open {
  79. width: 700px;
  80. }
  81. .side-panel-toggle-button {
  82. position: fixed;
  83. left: 5px;
  84. top: 50vh;
  85. transition: all 0.25s cubic-bezier(.65,.05,.36,1);
  86. }
  87. .side-panel-toggle-button.open {
  88. left: 475px;
  89. }
  90. .search-result-marker {
  91. background-image: url('pin.svg');
  92. background-size: cover;
  93. width: 80px;
  94. height: 80px;
  95. cursor: pointer;
  96. }