leaflet-search.css 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. .leaflet-container .leaflet-control-search {
  2. position:relative;
  3. float:left;
  4. background:#fff;
  5. color:#1978cf;
  6. -moz-border-radius: 4px;
  7. -webkit-border-radius: 4px;
  8. border-radius: 4px;
  9. background-color: rgba(255, 255, 255, 0.8);
  10. z-index:1000;
  11. box-shadow: 0 1px 7px rgba(0,0,0,0.65);
  12. margin-left: 10px;
  13. margin-top: 10px;
  14. }
  15. .leaflet-control-search.search-exp {/*expanded*/
  16. box-shadow: 0 1px 7px #999;
  17. background: #fff;
  18. }
  19. .leaflet-control-search .search-input {
  20. display:block;
  21. float:left;
  22. background: #fff;
  23. border:1px solid #666;
  24. border-radius:2px;
  25. height:18px;
  26. padding:0 18px 0 2px;
  27. margin:3px 0 3px 3px;
  28. }
  29. .leaflet-control-search.search-load .search-input {
  30. background: url('../images/loader.gif') no-repeat center right #fff;
  31. }
  32. .leaflet-control-search.search-load .search-cancel {
  33. visibility:hidden;
  34. }
  35. .leaflet-control-search .search-cancel {
  36. display:block;
  37. width:22px;
  38. height:18px;
  39. position:absolute;
  40. right:22px;
  41. margin:3px 0;
  42. background: url('../images/search-icon.png') no-repeat 0 -46px;
  43. text-decoration:none;
  44. filter: alpha(opacity=80);
  45. opacity: 0.8;
  46. }
  47. .leaflet-control-search .search-cancel:hover {
  48. filter: alpha(opacity=100);
  49. opacity: 1;
  50. }
  51. .leaflet-control-search .search-cancel span {
  52. display:none;/* comment for cancel button imageless */
  53. font-size:18px;
  54. line-height:20px;
  55. color:#ccc;
  56. font-weight:bold;
  57. }
  58. .leaflet-control-search .search-cancel:hover span {
  59. color:#aaa;
  60. }
  61. .leaflet-control-search .search-button {
  62. display:block;
  63. float:left;
  64. width:26px;
  65. height:26px;
  66. background: url('../images/search-icon.png') no-repeat 2px 2px #fff;
  67. border-radius:4px;
  68. }
  69. .leaflet-control-search .search-button:hover {
  70. background: url('../images/search-icon.png') no-repeat 2px -22px #fafafa;
  71. }
  72. .leaflet-control-search .search-tooltip {
  73. position:absolute;
  74. top:100%;
  75. left:0;
  76. float:left;
  77. list-style: none;
  78. padding-left: 0;
  79. min-width:120px;
  80. max-height:122px;
  81. box-shadow: 1px 1px 6px rgba(0,0,0,0.4);
  82. background-color: rgba(0, 0, 0, 0.25);
  83. z-index:1010;
  84. overflow-y:auto;
  85. overflow-x:hidden;
  86. cursor: pointer;
  87. }
  88. .leaflet-control-search .search-tip {
  89. margin:2px;
  90. padding:2px 4px;
  91. display:block;
  92. color:black;
  93. background: #eee;
  94. border-radius:.25em;
  95. text-decoration:none;
  96. white-space:nowrap;
  97. vertical-align:center;
  98. }
  99. .leaflet-control-search .search-button:hover {
  100. background-color: #f4f4f4;
  101. }
  102. .leaflet-control-search .search-tip-select,
  103. .leaflet-control-search .search-tip:hover {
  104. background-color: #fff;
  105. }
  106. .leaflet-control-search .search-alert {
  107. cursor:pointer;
  108. clear:both;
  109. font-size:.75em;
  110. margin-bottom:5px;
  111. padding:0 .25em;
  112. color:#e00;
  113. font-weight:bold;
  114. border-radius:.25em;
  115. }