ol.css 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. .ol-box {
  2. box-sizing: border-box;
  3. border-radius: 2px;
  4. border: 2px solid #00f;
  5. }
  6. .ol-mouse-position {
  7. top: 8px;
  8. right: 8px;
  9. position: absolute;
  10. }
  11. .ol-scale-line {
  12. background: rgba(0,60,136,.3);
  13. border-radius: 4px;
  14. bottom: 8px;
  15. left: 8px;
  16. padding: 2px;
  17. position: absolute;
  18. }
  19. .ol-scale-line-inner {
  20. border: 1px solid #eee;
  21. border-top: none;
  22. color: #eee;
  23. font-size: 10px;
  24. text-align: center;
  25. margin: 1px;
  26. will-change: contents,width;
  27. }
  28. .ol-overlay-container {
  29. will-change: left,right,top,bottom;
  30. }
  31. .ol-unsupported {
  32. display: none;
  33. }
  34. .ol-unselectable, .ol-viewport {
  35. -webkit-touch-callout: none;
  36. -webkit-user-select: none;
  37. -moz-user-select: none;
  38. -ms-user-select: none;
  39. user-select: none;
  40. -webkit-tap-highlight-color: transparent;
  41. }
  42. .ol-selectable {
  43. -webkit-touch-callout: default;
  44. -webkit-user-select: auto;
  45. -moz-user-select: auto;
  46. -ms-user-select: auto;
  47. user-select: auto;
  48. }
  49. .ol-grabbing {
  50. cursor: -webkit-grabbing;
  51. cursor: -moz-grabbing;
  52. cursor: grabbing;
  53. }
  54. .ol-grab {
  55. cursor: move;
  56. cursor: -webkit-grab;
  57. cursor: -moz-grab;
  58. cursor: grab;
  59. }
  60. .ol-control {
  61. position: absolute;
  62. background-color: rgba(255,255,255,.4);
  63. border-radius: 4px;
  64. padding: 2px;
  65. }
  66. .ol-control:hover {
  67. background-color: rgba(255,255,255,.6);
  68. }
  69. .ol-zoom {
  70. top: .5em;
  71. right: .5em;
  72. }
  73. .ol-rotate {
  74. top: .5em;
  75. right: .5em;
  76. transition: opacity .25s linear,visibility 0s linear;
  77. }
  78. .ol-rotate.ol-hidden {
  79. opacity: 0;
  80. visibility: hidden;
  81. transition: opacity .25s linear,visibility 0s linear .25s;
  82. }
  83. .ol-zoom-extent {
  84. top: 4.643em;
  85. left: .5em;
  86. }
  87. .ol-full-screen {
  88. right: .5em;
  89. top: .5em;
  90. }
  91. @media print {
  92. .ol-control {
  93. display: none;
  94. }
  95. }
  96. .ol-control button {
  97. display: block;
  98. margin: 1px;
  99. padding: 0;
  100. color: #fff;
  101. font-size: 1.14em;
  102. font-weight: 700;
  103. text-decoration: none;
  104. text-align: center;
  105. height: 1.375em;
  106. width: 1.375em;
  107. line-height: .4em;
  108. background-color: rgba(0,60,136,.5);
  109. border: none;
  110. border-radius: 2px;
  111. }
  112. .ol-control button::-moz-focus-inner {
  113. border: none;
  114. padding: 0;
  115. }
  116. .ol-zoom-extent button {
  117. line-height: 1.4em;
  118. }
  119. .ol-compass {
  120. display: block;
  121. font-weight: 400;
  122. font-size: 1.2em;
  123. will-change: transform;
  124. }
  125. .ol-touch .ol-control button {
  126. font-size: 1.5em;
  127. }
  128. .ol-touch .ol-zoom-extent {
  129. top: 5.5em;
  130. }
  131. .ol-control button:focus, .ol-control button:hover {
  132. text-decoration: none;
  133. background-color: rgba(0,60,136,.7);
  134. }
  135. .ol-zoom .ol-zoom-in {
  136. border-radius: 2px 2px 0 0;
  137. }
  138. .ol-zoom .ol-zoom-out {
  139. border-radius: 0 0 2px 2px;
  140. }
  141. .ol-attribution {
  142. text-align: right;
  143. bottom: .5em;
  144. right: .5em;
  145. max-width: calc(100% - 1.3em);
  146. }
  147. .ol-attribution ul {
  148. margin: 0;
  149. padding: 0 .5em;
  150. font-size: .7rem;
  151. line-height: 1.375em;
  152. color: #000;
  153. text-shadow: 0 0 2px #fff;
  154. }
  155. .ol-attribution li {
  156. display: inline;
  157. list-style: none;
  158. line-height: inherit;
  159. }
  160. .ol-attribution li:not(:last-child):after {
  161. content: " ";
  162. }
  163. .ol-attribution img {
  164. max-height: 2em;
  165. max-width: inherit;
  166. vertical-align: middle;
  167. }
  168. .ol-attribution button, .ol-attribution ul {
  169. display: inline-block;
  170. }
  171. .ol-attribution.ol-collapsed ul {
  172. display: none;
  173. }
  174. .ol-attribution.ol-logo-only ul {
  175. display: block;
  176. }
  177. .ol-attribution:not(.ol-collapsed) {
  178. background: rgba(255,255,255,.8);
  179. }
  180. .ol-attribution.ol-uncollapsible {
  181. bottom: 0;
  182. right: 0;
  183. border-radius: 4px 0 0;
  184. height: 1.1em;
  185. line-height: 1em;
  186. }
  187. .ol-attribution.ol-logo-only {
  188. background: 0 0;
  189. bottom: .4em;
  190. height: 1.1em;
  191. line-height: 1em;
  192. }
  193. .ol-attribution.ol-uncollapsible img {
  194. margin-top: -.2em;
  195. max-height: 1.6em;
  196. }
  197. .ol-attribution.ol-logo-only button, .ol-attribution.ol-uncollapsible button {
  198. display: none;
  199. }
  200. .ol-zoomslider {
  201. top: 4.5em;
  202. left: .5em;
  203. height: 200px;
  204. }
  205. .ol-zoomslider button {
  206. position: relative;
  207. height: 10px;
  208. }
  209. .ol-touch .ol-zoomslider {
  210. top: 5.5em;
  211. }
  212. .ol-overviewmap {
  213. left: .5em;
  214. bottom: .5em;
  215. }
  216. .ol-overviewmap.ol-uncollapsible {
  217. bottom: 0;
  218. left: 0;
  219. border-radius: 0 4px 0 0;
  220. }
  221. .ol-overviewmap .ol-overviewmap-map, .ol-overviewmap button {
  222. display: inline-block;
  223. }
  224. .ol-overviewmap .ol-overviewmap-map {
  225. border: 1px solid #7b98bc;
  226. height: 150px;
  227. margin: 2px;
  228. width: 150px;
  229. }
  230. .ol-overviewmap:not(.ol-collapsed) button {
  231. bottom: 1px;
  232. left: 2px;
  233. position: absolute;
  234. }
  235. .ol-overviewmap.ol-collapsed .ol-overviewmap-map, .ol-overviewmap.ol-uncollapsible button {
  236. display: none;
  237. }
  238. .ol-overviewmap:not(.ol-collapsed) {
  239. background: rgba(255,255,255,.8);
  240. }
  241. .ol-overviewmap-box {
  242. border: 2px dotted rgba(0,60,136,.7);
  243. }
  244. .ol-overviewmap .ol-overviewmap-box:hover {
  245. cursor: move;
  246. }