网站
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

346 rivejä
6.1 KiB

  1. :root,
  2. :host {
  3. --ol-background-color: white;
  4. --ol-accent-background-color: #F5F5F5;
  5. --ol-subtle-background-color: rgba(128, 128, 128, 0.25);
  6. --ol-partial-background-color: rgba(255, 255, 255, 0.75);
  7. --ol-foreground-color: #333333;
  8. --ol-subtle-foreground-color: #666666;
  9. --ol-brand-color: #00AAFF;
  10. }
  11. .ol-box {
  12. box-sizing: border-box;
  13. border-radius: 2px;
  14. border: 1.5px solid var(--ol-background-color);
  15. background-color: var(--ol-partial-background-color);
  16. }
  17. .ol-mouse-position {
  18. top: 8px;
  19. right: 8px;
  20. position: absolute;
  21. }
  22. .ol-scale-line {
  23. background: var(--ol-partial-background-color);
  24. border-radius: 4px;
  25. bottom: 8px;
  26. left: 8px;
  27. padding: 2px;
  28. position: absolute;
  29. }
  30. .ol-scale-line-inner {
  31. border: 1px solid var(--ol-subtle-foreground-color);
  32. border-top: none;
  33. color: var(--ol-foreground-color);
  34. font-size: 10px;
  35. text-align: center;
  36. margin: 1px;
  37. will-change: contents, width;
  38. transition: all 0.25s;
  39. }
  40. .ol-scale-bar {
  41. position: absolute;
  42. bottom: 8px;
  43. left: 8px;
  44. }
  45. .ol-scale-bar-inner {
  46. display: flex;
  47. }
  48. .ol-scale-step-marker {
  49. width: 1px;
  50. height: 15px;
  51. background-color: var(--ol-foreground-color);
  52. float: right;
  53. z-index: 10;
  54. }
  55. .ol-scale-step-text {
  56. position: absolute;
  57. bottom: -5px;
  58. font-size: 10px;
  59. z-index: 11;
  60. color: var(--ol-foreground-color);
  61. text-shadow: -1.5px 0 var(--ol-partial-background-color), 0 1.5px var(--ol-partial-background-color), 1.5px 0 var(--ol-partial-background-color), 0 -1.5px var(--ol-partial-background-color);
  62. }
  63. .ol-scale-text {
  64. position: absolute;
  65. font-size: 12px;
  66. text-align: center;
  67. bottom: 25px;
  68. color: var(--ol-foreground-color);
  69. text-shadow: -1.5px 0 var(--ol-partial-background-color), 0 1.5px var(--ol-partial-background-color), 1.5px 0 var(--ol-partial-background-color), 0 -1.5px var(--ol-partial-background-color);
  70. }
  71. .ol-scale-singlebar {
  72. position: relative;
  73. height: 10px;
  74. z-index: 9;
  75. box-sizing: border-box;
  76. border: 1px solid var(--ol-foreground-color);
  77. }
  78. .ol-scale-singlebar-even {
  79. background-color: var(--ol-subtle-foreground-color);
  80. }
  81. .ol-scale-singlebar-odd {
  82. background-color: var(--ol-background-color);
  83. }
  84. .ol-unsupported {
  85. display: none;
  86. }
  87. .ol-viewport,
  88. .ol-unselectable {
  89. -webkit-touch-callout: none;
  90. -webkit-user-select: none;
  91. -moz-user-select: none;
  92. user-select: none;
  93. -webkit-tap-highlight-color: transparent;
  94. }
  95. .ol-viewport canvas {
  96. all: unset;
  97. }
  98. .ol-selectable {
  99. -webkit-touch-callout: default;
  100. -webkit-user-select: text;
  101. -moz-user-select: text;
  102. user-select: text;
  103. }
  104. .ol-grabbing {
  105. cursor: -webkit-grabbing;
  106. cursor: -moz-grabbing;
  107. cursor: grabbing;
  108. }
  109. .ol-grab {
  110. cursor: move;
  111. cursor: -webkit-grab;
  112. cursor: -moz-grab;
  113. cursor: grab;
  114. }
  115. .ol-control {
  116. position: absolute;
  117. background-color: var(--ol-subtle-background-color);
  118. border-radius: 4px;
  119. }
  120. .ol-zoom {
  121. top: .5em;
  122. left: .5em;
  123. }
  124. .ol-rotate {
  125. top: .5em;
  126. right: .5em;
  127. transition: opacity .25s linear, visibility 0s linear;
  128. }
  129. .ol-rotate.ol-hidden {
  130. opacity: 0;
  131. visibility: hidden;
  132. transition: opacity .25s linear, visibility 0s linear .25s;
  133. }
  134. .ol-zoom-extent {
  135. top: 4.643em;
  136. left: .5em;
  137. }
  138. .ol-full-screen {
  139. right: .5em;
  140. top: .5em;
  141. }
  142. .ol-control button {
  143. display: block;
  144. margin: 1px;
  145. padding: 0;
  146. color: var(--ol-subtle-foreground-color);
  147. font-weight: bold;
  148. text-decoration: none;
  149. font-size: inherit;
  150. text-align: center;
  151. height: 1.375em;
  152. width: 1.375em;
  153. line-height: .4em;
  154. background-color: var(--ol-background-color);
  155. border: none;
  156. border-radius: 2px;
  157. }
  158. .ol-control button::-moz-focus-inner {
  159. border: none;
  160. padding: 0;
  161. }
  162. .ol-zoom-extent button {
  163. line-height: 1.4em;
  164. }
  165. .ol-compass {
  166. display: block;
  167. font-weight: normal;
  168. will-change: transform;
  169. }
  170. .ol-touch .ol-control button {
  171. font-size: 1.5em;
  172. }
  173. .ol-touch .ol-zoom-extent {
  174. top: 5.5em;
  175. }
  176. .ol-control button:hover,
  177. .ol-control button:focus {
  178. text-decoration: none;
  179. outline: 1px solid var(--ol-subtle-foreground-color);
  180. color: var(--ol-foreground-color);
  181. }
  182. .ol-zoom .ol-zoom-in {
  183. border-radius: 2px 2px 0 0;
  184. }
  185. .ol-zoom .ol-zoom-out {
  186. border-radius: 0 0 2px 2px;
  187. }
  188. .ol-attribution {
  189. text-align: right;
  190. bottom: .5em;
  191. right: .5em;
  192. max-width: calc(100% - 1.3em);
  193. display: flex;
  194. flex-flow: row-reverse;
  195. align-items: center;
  196. }
  197. .ol-attribution a {
  198. color: var(--ol-subtle-foreground-color);
  199. text-decoration: none;
  200. }
  201. .ol-attribution ul {
  202. margin: 0;
  203. padding: 1px .5em;
  204. color: var(--ol-foreground-color);
  205. text-shadow: 0 0 2px var(--ol-background-color);
  206. font-size: 12px;
  207. }
  208. .ol-attribution li {
  209. display: inline;
  210. list-style: none;
  211. }
  212. .ol-attribution li:not(:last-child):after {
  213. content: " ";
  214. }
  215. .ol-attribution img {
  216. max-height: 2em;
  217. max-width: inherit;
  218. vertical-align: middle;
  219. }
  220. .ol-attribution button {
  221. flex-shrink: 0;
  222. }
  223. .ol-attribution.ol-collapsed ul {
  224. display: none;
  225. }
  226. .ol-attribution:not(.ol-collapsed) {
  227. background: var(--ol-partial-background-color);
  228. }
  229. .ol-attribution.ol-uncollapsible {
  230. bottom: 0;
  231. right: 0;
  232. border-radius: 4px 0 0;
  233. }
  234. .ol-attribution.ol-uncollapsible img {
  235. margin-top: -.2em;
  236. max-height: 1.6em;
  237. }
  238. .ol-attribution.ol-uncollapsible button {
  239. display: none;
  240. }
  241. .ol-zoomslider {
  242. top: 4.5em;
  243. left: .5em;
  244. height: 200px;
  245. }
  246. .ol-zoomslider button {
  247. position: relative;
  248. height: 10px;
  249. }
  250. .ol-touch .ol-zoomslider {
  251. top: 5.5em;
  252. }
  253. .ol-overviewmap {
  254. left: 0.5em;
  255. bottom: 0.5em;
  256. }
  257. .ol-overviewmap.ol-uncollapsible {
  258. bottom: 0;
  259. left: 0;
  260. border-radius: 0 4px 0 0;
  261. }
  262. .ol-overviewmap .ol-overviewmap-map,
  263. .ol-overviewmap button {
  264. display: block;
  265. }
  266. .ol-overviewmap .ol-overviewmap-map {
  267. border: 1px solid var(--ol-subtle-foreground-color);
  268. height: 150px;
  269. width: 150px;
  270. }
  271. .ol-overviewmap:not(.ol-collapsed) button {
  272. bottom: 0;
  273. left: 0;
  274. position: absolute;
  275. }
  276. .ol-overviewmap.ol-collapsed .ol-overviewmap-map,
  277. .ol-overviewmap.ol-uncollapsible button {
  278. display: none;
  279. }
  280. .ol-overviewmap:not(.ol-collapsed) {
  281. background: var(--ol-subtle-background-color);
  282. }
  283. .ol-overviewmap-box {
  284. border: 1.5px dotted var(--ol-subtle-foreground-color);
  285. }
  286. .ol-overviewmap .ol-overviewmap-box:hover {
  287. cursor: move;
  288. }