ol-debug.css 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. .ol-box {
  2. box-sizing: border-box;
  3. border-radius: 2px;
  4. border: 2px solid blue;
  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,0.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-viewport, .ol-unselectable {
  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: rgba(0,0,0,0);
  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,0.4);
  63. border-radius: 4px;
  64. padding: 2px;
  65. }
  66. .ol-control:hover {
  67. background-color: rgba(255,255,255,0.6);
  68. }
  69. .ol-zoom {
  70. top: .5em;
  71. left: .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: white;
  101. font-size: 1.14em;
  102. font-weight: bold;
  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,0.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: normal;
  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:hover,
  132. .ol-control button:focus {
  133. text-decoration: none;
  134. background-color: rgba(0,60,136,0.7);
  135. }
  136. .ol-zoom .ol-zoom-in {
  137. border-radius: 2px 2px 0 0;
  138. }
  139. .ol-zoom .ol-zoom-out {
  140. border-radius: 0 0 2px 2px;
  141. }
  142. .ol-attribution {
  143. text-align: right;
  144. bottom: .5em;
  145. right: .5em;
  146. max-width: calc(100% - 1.3em);
  147. }
  148. .ol-attribution ul {
  149. margin: 0;
  150. padding: 0 .5em;
  151. font-size: .7rem;
  152. line-height: 1.375em;
  153. color: #000;
  154. text-shadow: 0 0 2px #fff;
  155. }
  156. .ol-attribution li {
  157. display: inline;
  158. list-style: none;
  159. line-height: inherit;
  160. }
  161. .ol-attribution li:not(:last-child):after {
  162. content: " ";
  163. }
  164. .ol-attribution img {
  165. max-height: 2em;
  166. max-width: inherit;
  167. vertical-align: middle;
  168. }
  169. .ol-attribution ul, .ol-attribution button {
  170. display: inline-block;
  171. }
  172. .ol-attribution.ol-collapsed ul {
  173. display: none;
  174. }
  175. .ol-attribution.ol-logo-only ul {
  176. display: block;
  177. }
  178. .ol-attribution:not(.ol-collapsed) {
  179. background: rgba(255,255,255,0.8);
  180. }
  181. .ol-attribution.ol-uncollapsible {
  182. bottom: 0;
  183. right: 0;
  184. border-radius: 4px 0 0;
  185. height: 1.1em;
  186. line-height: 1em;
  187. }
  188. .ol-attribution.ol-logo-only {
  189. background: transparent;
  190. bottom: .4em;
  191. height: 1.1em;
  192. line-height: 1em;
  193. }
  194. .ol-attribution.ol-uncollapsible img {
  195. margin-top: -.2em;
  196. max-height: 1.6em;
  197. }
  198. .ol-attribution.ol-logo-only button,
  199. .ol-attribution.ol-uncollapsible button {
  200. display: none;
  201. }
  202. .ol-zoomslider {
  203. top: 4.5em;
  204. left: .5em;
  205. height: 200px;
  206. }
  207. .ol-zoomslider button {
  208. position: relative;
  209. height: 10px;
  210. }
  211. .ol-touch .ol-zoomslider {
  212. top: 5.5em;
  213. }
  214. .ol-overviewmap {
  215. left: 0.5em;
  216. bottom: 0.5em;
  217. }
  218. .ol-overviewmap.ol-uncollapsible {
  219. bottom: 0;
  220. left: 0;
  221. border-radius: 0 4px 0 0;
  222. }
  223. .ol-overviewmap .ol-overviewmap-map,
  224. .ol-overviewmap button {
  225. display: inline-block;
  226. }
  227. .ol-overviewmap .ol-overviewmap-map {
  228. border: 1px solid #7b98bc;
  229. height: 150px;
  230. margin: 2px;
  231. width: 150px;
  232. }
  233. .ol-overviewmap:not(.ol-collapsed) button{
  234. bottom: 1px;
  235. left: 2px;
  236. position: absolute;
  237. }
  238. .ol-overviewmap.ol-collapsed .ol-overviewmap-map,
  239. .ol-overviewmap.ol-uncollapsible button {
  240. display: none;
  241. }
  242. .ol-overviewmap:not(.ol-collapsed) {
  243. background: rgba(255,255,255,0.8);
  244. }
  245. .ol-overviewmap-box {
  246. border: 2px dotted rgba(0,60,136,0.7);
  247. }
  248. .ol-overviewmap .ol-overviewmap-box:hover {
  249. cursor: move;
  250. }