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.

405 lines
6.2 KiB

6 years ago
6 years ago
7 years ago
7 years ago
  1. /***** GENERAL LAYOUT *****/
  2. body {
  3. left: 0px;
  4. right: 0px;
  5. top: 0px;
  6. bottom: 0px;
  7. font-family:Tahoma,Arial,Verdana;
  8. font-size: 11px;
  9. color:#333;
  10. }
  11. a {
  12. text-decoration: none;
  13. color: black;
  14. }
  15. a:hover,
  16. a:active {
  17. text-decoration: underline;
  18. }
  19. #sidebar {
  20. top: 0px;
  21. bottom: 0px;
  22. left: 0px;
  23. width: 270px;
  24. position: absolute;
  25. }
  26. #map {
  27. position: absolute;
  28. left: 270px;
  29. border-left: 1px solid #999;
  30. top: 0;
  31. bottom: 0;
  32. right: 0;
  33. }
  34. #mapShadow {
  35. position: absolute;
  36. left: 271px;
  37. top: 0;
  38. bottom: 0;
  39. width: 5px;
  40. z-index: 10000;
  41. background-image: url(img/shadow_left.png);
  42. background-repeat: repeat-y;
  43. }
  44. #sidebar {
  45. display: flex;
  46. flex-direction: column;
  47. }
  48. #sidebar > #header {
  49. padding-top: 27px;
  50. padding-left: 10px;
  51. height:110px;
  52. font-size:18px;
  53. color:#333;
  54. line-height:130%;
  55. margin-top:5px;
  56. position: relative;
  57. flex-grow: 0;
  58. flex-shrink: 0;
  59. }
  60. #sidebar > #header > img {
  61. float: left;
  62. margin-top: -17px;
  63. padding-right: 10px;
  64. }
  65. #sidebar > #header > #title {
  66. float: left;
  67. width: 110px;
  68. }
  69. #sidebar > #header > #title > .large {
  70. font-size: 28px;
  71. display: block;
  72. }
  73. #sidebar > #header > #title > .version {
  74. display: block;
  75. font-size: 16px;
  76. }
  77. #sidebar > #globalTabs {
  78. padding-left: 10px;
  79. padding-right: 10px;
  80. }
  81. #sidebar > #globalTabs ul.tabs-list {
  82. font-size: 15pt;
  83. }
  84. .tabs-section {
  85. padding: 0.1em;
  86. }
  87. .tabs-section > h3:first-of-type {
  88. margin-top: 0;
  89. }
  90. #sidebar > #content {
  91. flex: 1;
  92. flex-shrink: 0;
  93. overflow: auto;
  94. padding-left: 10px;
  95. padding-right: 10px;
  96. }
  97. #sidebar > #footer {
  98. flex: 0;
  99. }
  100. #content > div {
  101. display: none;
  102. }
  103. #content.list > #contentList {
  104. display: block;
  105. }
  106. #content.details > #contentDetails {
  107. display: block;
  108. }
  109. #content.options > #contentOptions {
  110. display: block;
  111. }
  112. /***** CATEGORY *****/
  113. /* root category */
  114. #content > #contentList > .category > .content > .categoryWrapper > .category {
  115. margin-left: 0;
  116. }
  117. .leaflet-popup-content ul.popup-footer {
  118. padding: 0;
  119. }
  120. .leaflet-popup-content ul.popup-footer li {
  121. display: inline-block;
  122. list-style: none;
  123. padding-right: 1em;
  124. }
  125. /* Footer */
  126. #menu {
  127. margin: 0 0;
  128. padding: 0 0;
  129. }
  130. #menu li {
  131. display: inline-block;
  132. }
  133. #menu li::after {
  134. content: ' |';
  135. }
  136. #menu li:last-of-type::after {
  137. content: '';
  138. }
  139. @media all and (max-height: 400px) {
  140. #sidebar {
  141. overflow: auto;
  142. }
  143. #sidebar > #content {
  144. overflow: visible;
  145. }
  146. }
  147. @media all and (max-width: 500px) {
  148. #sidebar {
  149. top: 0;
  150. height: 270px;
  151. left: 0;
  152. right: 0;
  153. bottom: auto;
  154. width: auto;
  155. overflow: auto;
  156. }
  157. #map {
  158. left: 0;
  159. bottom: 0;
  160. top: 270px;
  161. right: 0;
  162. border-left: none;
  163. border-top: 1px solid #999;
  164. }
  165. #mapShadow {
  166. left: 0;
  167. right: 0;
  168. top: 271px;
  169. bottom: auto;
  170. height: 5px;
  171. width: auto;
  172. background-image: url(img/shadow_top.png);
  173. background-repeat: repeat-x;
  174. }
  175. #sidebar > #content {
  176. overflow: visible;
  177. }
  178. }
  179. @media all and (max-width: 500px) and (max-height: 500px) {
  180. #sidebar {
  181. height: 220px;
  182. }
  183. #map {
  184. top: 220px;
  185. }
  186. #mapShadow {
  187. top: 221px;
  188. }
  189. }
  190. @media all and (max-width: 500px) and (max-height: 460px) {
  191. #sidebar {
  192. height: 200px;
  193. }
  194. #map {
  195. top: 200px;
  196. }
  197. #mapShadow {
  198. top: 201px;
  199. }
  200. }
  201. @media all and (max-width: 500px) and (max-height: 420px) {
  202. #sidebar {
  203. height: 180px;
  204. }
  205. #map {
  206. top: 180px;
  207. }
  208. #mapShadow {
  209. top: 181px;
  210. }
  211. }
  212. /* FULLSCREEN */
  213. .leaflet-control-fullscreen {
  214. font-size: 20px;
  215. }
  216. .fullscreen #sidebar {
  217. display: none;
  218. }
  219. .fullscreen #map {
  220. left: 0;
  221. top: 0;
  222. right: 0;
  223. bottom: 0;
  224. width: auto;
  225. height: auto;
  226. border: none;
  227. }
  228. .fullscreen #mapShadow {
  229. display: none;
  230. }
  231. #loadingIndicator {
  232. display: none;
  233. }
  234. .fullscreen.loading > #loadingIndicator {
  235. display: block;
  236. z-index: 10000;
  237. height: 3px;
  238. position: absolute;
  239. top: 0;
  240. left: 0;
  241. right: 0;
  242. background: black;
  243. overflow: hidden;
  244. }
  245. .fullscreen.loading > #loadingIndicator:before {
  246. display: block;
  247. position: absolute;
  248. content: "";
  249. margin-left: -250px;
  250. width: 250px;
  251. height: 4px;
  252. background: red;
  253. animation: loading 2s linear infinite;
  254. }
  255. @keyframes loading {
  256. 0% {
  257. margin-left: -250px;
  258. }
  259. 100% {
  260. margin-left: 100%;
  261. }
  262. }
  263. #content {
  264. font-size: 12px;
  265. font-family: "Helvetica Neue", "Arial", "Helvetica", sans-serif;
  266. line-height: 1.4;
  267. }
  268. #content h1,
  269. .leaflet-popup-content > h1 {
  270. margin: 0;
  271. }
  272. #contentDetails a {
  273. color: #0078A8;
  274. }
  275. .yes {
  276. color: green;
  277. }
  278. .limited {
  279. color: orange;
  280. }
  281. .no {
  282. color: red;
  283. }
  284. .description,
  285. .leaflet-popup-content .description {
  286. display: block;
  287. text-align: right;
  288. font-style: italic;
  289. }
  290. .description:after,
  291. .leaflet-popup-content .description:after {
  292. content: '';
  293. clear: right;
  294. }
  295. .body ul,
  296. .leaflet-popup-content ul {
  297. margin: 0;
  298. padding-left: 20px;
  299. }
  300. .body ul > li,
  301. .leaflet-popup-content ul > li {
  302. position: relative;
  303. }
  304. .body ul > li.hasSymbol,
  305. .leaflet-popup-content ul > li.hasSymbol {
  306. list-style: none;
  307. }
  308. .body ul > li.hasSymbol > i,
  309. .leaflet-popup-content ul > li.hasSymbol > i,
  310. .body ul > li.hasSymbol > .symbol,
  311. .leaflet-popup-content ul > li.hasSymbol > .symbol,
  312. .body ul > li.hasSymbol > img,
  313. .leaflet-popup-content ul > li.hasSymbol > img {
  314. position: absolute;
  315. margin-left: -15px;
  316. padding-top: 2px;
  317. }
  318. .body ul > li > .key,
  319. .leaflet-popup-content ul > li > .key {
  320. font-weight: bold;
  321. }
  322. #contentDetails div > .loadingIndicator {
  323. display: none;
  324. }
  325. #contentDetails div.loading > .loadingIndicator {
  326. float: right;
  327. display: block;
  328. }
  329. /* Wikipedia */
  330. .wikipedia img {
  331. max-width: 100px;
  332. max-height: 100px;
  333. float: right;
  334. margin-left: 0.5em;
  335. margin-bottom: 0.5em;
  336. }
  337. .wikipedia div {
  338. text-align: justify;
  339. }
  340. #contentDetails h3 {
  341. border-bottom: 1px solid black;
  342. clear: both;
  343. text-align: left;
  344. }
  345. #contentDetails h4 {
  346. clear: both;
  347. }
  348. .wikipedia .reference {
  349. display: none;
  350. }
  351. .leaflet-popup-content .images {
  352. float: right;
  353. margin-left: 0.5em;
  354. max-width: 100px;
  355. max-height: 150px;
  356. }
  357. .leaflet-popup-content .images img {
  358. max-width: 100px;
  359. max-height: 150px;
  360. }
  361. #contentDetails .images {
  362. }
  363. #contentDetails .images .imageWrapper {
  364. text-align: center;
  365. width: 100%;
  366. height: 200px;
  367. background: grey;
  368. position: relative;
  369. }
  370. #contentDetails .images .imageWrapper img {
  371. max-width: 100%;
  372. max-height: 100%;
  373. position: absolute;
  374. top: 0; bottom: 0; left: 0; right: 0;
  375. margin: auto;
  376. }
  377. .info .sign,
  378. .overpass-layer-icon .sign {
  379. white-space: nowrap;
  380. }