index.css 1.8 KB

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