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.

490 lines
8.2 KiB

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. #sidebar {
  12. top: 0px;
  13. bottom: 0px;
  14. left: 0px;
  15. width: 250px;
  16. padding-left:10px;
  17. padding-right:10px;
  18. position: absolute;
  19. }
  20. #map {
  21. position: absolute;
  22. left: 270px;
  23. border-left: 1px solid #999;
  24. top: 0;
  25. bottom: 0;
  26. right: 0;
  27. }
  28. #mapShadow {
  29. position: absolute;
  30. left: 271px;
  31. top: 0;
  32. bottom: 0;
  33. width: 5px;
  34. z-index: 10000;
  35. background-image: url(img/shadow_left.png);
  36. background-repeat: repeat-y;
  37. }
  38. #sidebar {
  39. display: flex;
  40. flex-direction: column;
  41. }
  42. #sidebar > #header {
  43. padding-top: 27px;
  44. height:110px;
  45. font-size:18px;
  46. color:#333;
  47. line-height:130%;
  48. margin-top:5px;
  49. position: relative;
  50. flex-grow: 0;
  51. flex-shrink: 0;
  52. }
  53. #sidebar > #header > img {
  54. float: left;
  55. margin-top: -17px;
  56. padding-right: 10px;
  57. }
  58. #sidebar > #header > #title {
  59. float: left;
  60. width: 110px;
  61. }
  62. #sidebar > #header > #title > .large {
  63. font-size: 28px;
  64. display: block;
  65. }
  66. #sidebar > #header > #title > .version {
  67. display: block;
  68. font-size: 16px;
  69. }
  70. #sidebar > #content {
  71. flex: 1;
  72. flex-shrink: 0;
  73. overflow: auto;
  74. }
  75. #sidebar > #footer {
  76. flex: 0;
  77. }
  78. #content > div {
  79. display: none;
  80. }
  81. #content.list > #contentList {
  82. display: block;
  83. }
  84. #content.details > #contentDetails {
  85. display: block;
  86. }
  87. #content.options > #contentOptions {
  88. display: block;
  89. }
  90. /***** CATEGORY *****/
  91. /* root category */
  92. #content > #contentList > .category > .content > .categoryWrapper > .category {
  93. margin-left: 0;
  94. }
  95. #content .category {
  96. position: relative;
  97. }
  98. #content .category > .loadingIndicator {
  99. position: absolute;
  100. right: 0;
  101. top: 0;
  102. font-size: 15px;
  103. display: none;
  104. }
  105. #content .category.loading > .loadingIndicator {
  106. padding-top: 2px;
  107. display: block;
  108. }
  109. #content .category > .loadingIndicator2 {
  110. display: none;
  111. }
  112. /* Source: http://tobiasahlin.com/spinkit/ */
  113. #content .category.open.loading > .loadingIndicator2 {
  114. text-align: left;
  115. display: block;
  116. background: #efefef;
  117. padding-left: 40px;
  118. }
  119. #content .category.loading > .loadingIndicator2 > div {
  120. width: 9px;
  121. height: 9px;
  122. margin-right: 9px;
  123. background-color: #333;
  124. border-radius: 100%;
  125. display: inline-block;
  126. -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
  127. animation: sk-bouncedelay 1.4s infinite ease-in-out both;
  128. }
  129. #content .category.loading > .loadingIndicator2 .bounce1 {
  130. -webkit-animation-delay: -0.32s;
  131. animation-delay: -0.32s;
  132. }
  133. #content .category.loading > .loadingIndicator2 .bounce2 {
  134. -webkit-animation-delay: -0.16s;
  135. animation-delay: -0.16s;
  136. }
  137. @-webkit-keyframes sk-bouncedelay {
  138. 0%, 80%, 100% { -webkit-transform: scale(0) }
  139. 40% { -webkit-transform: scale(1.0) }
  140. }
  141. @keyframes sk-bouncedelay {
  142. 0%, 80%, 100% {
  143. -webkit-transform: scale(0);
  144. transform: scale(0);
  145. }
  146. 40% {
  147. -webkit-transform: scale(1.0);
  148. transform: scale(1.0);
  149. }
  150. }
  151. #content .category header {
  152. padding-top: 3px;
  153. border-bottom: 1px dotted #999;
  154. user-select: none;
  155. font-size: 15px;
  156. }
  157. #content .category header > a {
  158. text-decoration: none;
  159. color: black;
  160. }
  161. #content .category header > a:active,
  162. #content .category header > a:hover {
  163. text-decoration: underline;
  164. }
  165. #content .category header > a.reload {
  166. float: right;
  167. }
  168. #content .category > .content,
  169. #content .category > .status {
  170. display: none;
  171. }
  172. #content .category.open > .content,
  173. #content .category.open > .status {
  174. display: block;
  175. }
  176. #content .category > .status,
  177. #content .category > .content > ul.overpass-layer-list {
  178. padding-top: 3px;
  179. background: #efefef;
  180. }
  181. #content .category > div > div> .category {
  182. margin-left: 1em;
  183. }
  184. ul.overpass-layer-list {
  185. margin-top: 0;
  186. margin-bottom: 0;
  187. }
  188. ul.overpass-layer-list > li {
  189. position: relative;
  190. list-style: none;
  191. min-height: 30px;
  192. }
  193. ul.overpass-layer-list > li > .markerParent {
  194. position: absolute;
  195. margin-left: -35px;
  196. width: 30px;
  197. height: 30px;
  198. text-align: center;
  199. display: block;
  200. color: black;
  201. text-decoration: none;
  202. }
  203. ul.overpass-layer-list > li > .markerParent > .marker {
  204. }
  205. ul.overpass-layer-list > li > .markerParent > .icon {
  206. text-align: center;
  207. position: absolute;
  208. top: 3px;
  209. font-size: 15px;
  210. left: 0;
  211. right: 0;
  212. z-index: 1;
  213. display: inline-block;
  214. }
  215. ul.overpass-layer-list > li > a.title {
  216. display: inline-block;
  217. color: black;
  218. text-decoration: none;
  219. }
  220. ul.overpass-layer-list > li > a.title:hover,
  221. ul.overpass-layer-list > li > a.title:active {
  222. text-decoration: underline;
  223. }
  224. ul.overpass-layer-list > li > div.description {
  225. font-style: italic;
  226. color: #707070;
  227. float: right;
  228. text-align: right;
  229. }
  230. ul.overpass-layer-list > li:after {
  231. content: '';
  232. display: table;
  233. clear: both;
  234. }
  235. .leaflet-popup-content {
  236. max-height: 250px;
  237. overflow: auto;
  238. }
  239. .leaflet-popup-content pre {
  240. font-size: 8px;
  241. }
  242. .overpass-layer-icon div {
  243. position: relative;
  244. top: -46px;
  245. font-size: 15px;
  246. width: 25px;
  247. text-align: center;
  248. }
  249. #content a.showDetails {
  250. display: none;
  251. }
  252. a.showDetails {
  253. display: block;
  254. }
  255. /* Footer */
  256. #menu {
  257. margin: 0 0;
  258. padding: 0 0;
  259. }
  260. #menu li {
  261. display: inline-block;
  262. }
  263. #menu a {
  264. text-decoration: none;
  265. color: black;
  266. }
  267. #menu a:hover {
  268. text-decoration: underline;
  269. }
  270. #menu li::after {
  271. content: ' |';
  272. }
  273. #menu li:last-of-type::after {
  274. content: '';
  275. }
  276. @media all and (max-height: 400px) {
  277. #sidebar {
  278. overflow: auto;
  279. }
  280. #sidebar > #content {
  281. overflow: visible;
  282. }
  283. }
  284. @media all and (max-width: 500px) {
  285. #sidebar {
  286. top: 0;
  287. height: 270px;
  288. left: 0;
  289. right: 0;
  290. bottom: auto;
  291. width: auto;
  292. overflow: auto;
  293. }
  294. #map {
  295. left: 0;
  296. bottom: 0;
  297. top: 270px;
  298. right: 0;
  299. border-left: none;
  300. border-top: 1px solid #999;
  301. }
  302. #mapShadow {
  303. left: 0;
  304. right: 0;
  305. top: 271px;
  306. bottom: auto;
  307. height: 5px;
  308. width: auto;
  309. background-image: url(img/shadow_top.png);
  310. background-repeat: repeat-x;
  311. }
  312. #sidebar > #content {
  313. overflow: visible;
  314. }
  315. }
  316. @media all and (max-width: 500px) and (max-height: 500px) {
  317. #sidebar {
  318. height: 220px;
  319. }
  320. #map {
  321. top: 220px;
  322. }
  323. #mapShadow {
  324. top: 221px;
  325. }
  326. }
  327. @media all and (max-width: 500px) and (max-height: 460px) {
  328. #sidebar {
  329. height: 200px;
  330. }
  331. #map {
  332. top: 200px;
  333. }
  334. #mapShadow {
  335. top: 201px;
  336. }
  337. }
  338. @media all and (max-width: 500px) and (max-height: 420px) {
  339. #sidebar {
  340. height: 180px;
  341. }
  342. #map {
  343. top: 180px;
  344. }
  345. #mapShadow {
  346. top: 181px;
  347. }
  348. }
  349. /* FULLSCREEN */
  350. .leaflet-control-fullscreen {
  351. font-size: 20px;
  352. }
  353. .fullscreen #sidebar {
  354. display: none;
  355. }
  356. .fullscreen #map {
  357. left: 0;
  358. top: 0;
  359. right: 0;
  360. bottom: 0;
  361. width: auto;
  362. height: auto;
  363. border: none;
  364. }
  365. .fullscreen #mapShadow {
  366. display: none;
  367. }
  368. #loadingIndicator {
  369. display: none;
  370. }
  371. .fullscreen.loading > #loadingIndicator {
  372. display: block;
  373. z-index: 10000;
  374. height: 3px;
  375. position: absolute;
  376. top: 0;
  377. left: 0;
  378. right: 0;
  379. background: black;
  380. overflow: hidden;
  381. }
  382. .fullscreen.loading > #loadingIndicator:before {
  383. display: block;
  384. position: absolute;
  385. content: "";
  386. margin-left: -250px;
  387. width: 250px;
  388. height: 4px;
  389. background: red;
  390. animation: loading 2s linear infinite;
  391. }
  392. @keyframes loading {
  393. 0% {
  394. margin-left: -250px;
  395. }
  396. 100% {
  397. margin-left: 100%;
  398. }
  399. }
  400. .leaflet-popup-content {
  401. min-width: 200px;
  402. }
  403. #content {
  404. font-size: 12px;
  405. font-family: "Helvetica Neue", "Arial", "Helvetica", sans-serif;
  406. line-height: 1.4;
  407. }
  408. #content h1,
  409. .leaflet-popup-content > h1 {
  410. margin: 0;
  411. }
  412. #contentDetails a {
  413. color: #0078A8;
  414. }
  415. .yes {
  416. color: green;
  417. }
  418. .limited {
  419. color: orange;
  420. }
  421. .no {
  422. color: red;
  423. }
  424. .description,
  425. .leaflet-popup-content .description {
  426. display: block;
  427. text-align: right;
  428. font-style: italic;
  429. }
  430. .description:after,
  431. .leaflet-popup-content .description:after {
  432. content: '';
  433. clear: right;
  434. }
  435. .body ul,
  436. .leaflet-popup-content ul {
  437. margin: 0;
  438. padding-left: 20px;
  439. }
  440. .body ul > li,
  441. .leaflet-popup-content ul > li {
  442. position: relative;
  443. }
  444. .body ul > li.hasSymbol,
  445. .leaflet-popup-content ul > li.hasSymbol {
  446. list-style: none;
  447. }
  448. .body ul > li.hasSymbol > i,
  449. .leaflet-popup-content ul > li.hasSymbol > i,
  450. .body ul > li.hasSymbol > .symbol,
  451. .leaflet-popup-content ul > li.hasSymbol > .symbol,
  452. .body ul > li.hasSymbol > img,
  453. .leaflet-popup-content ul > li.hasSymbol > img {
  454. position: absolute;
  455. margin-left: -15px;
  456. padding-top: 2px;
  457. }
  458. .body ul > li > .key,
  459. .leaflet-popup-content ul > li > .key {
  460. font-weight: bold;
  461. }