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.

693 lines
12 KiB

6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 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: linear-gradient(to right, #5656566f, #56565600);
  42. }
  43. #sidebar {
  44. display: flex;
  45. flex-direction: column;
  46. }
  47. #sidebar > #header {
  48. padding-top: 27px;
  49. padding-left: 10px;
  50. height:110px;
  51. font-size:18px;
  52. color:#333;
  53. line-height:130%;
  54. margin-top:5px;
  55. position: relative;
  56. flex-grow: 0;
  57. flex-shrink: 0;
  58. }
  59. #sidebar > #header > img {
  60. float: left;
  61. margin-top: -17px;
  62. padding-right: 10px;
  63. }
  64. #sidebar > #header > #title {
  65. float: left;
  66. width: 110px;
  67. }
  68. #sidebar > #header > #title > .large {
  69. font-size: 28px;
  70. display: block;
  71. }
  72. #sidebar > #header > #title > .version {
  73. display: block;
  74. font-size: 16px;
  75. }
  76. #sidebar > #globalTabs {
  77. padding-left: 10px;
  78. padding-right: 10px;
  79. }
  80. #sidebar > #globalTabs ul.tabs-list {
  81. font-size: 15pt;
  82. }
  83. .tabs-section {
  84. padding: 0.1em;
  85. max-height: 250px;
  86. overflow-y: auto;
  87. }
  88. .tabs-section > h3:first-of-type {
  89. margin-top: 0;
  90. }
  91. #sidebar > #content {
  92. flex: 1;
  93. flex-shrink: 0;
  94. overflow: auto;
  95. padding-left: 10px;
  96. padding-right: 10px;
  97. }
  98. #sidebar > #footer {
  99. flex: 0;
  100. }
  101. #content > div {
  102. display: none;
  103. }
  104. #content.list > #contentList {
  105. display: block;
  106. }
  107. #content.details > #contentDetails {
  108. display: block;
  109. margin-left: -10px;
  110. margin-right: -10px;
  111. }
  112. #content.options > #contentOptions {
  113. display: block;
  114. }
  115. .objectDisplay > .header {
  116. padding: 0.5em 10px;
  117. }
  118. .objectDisplay > .header > .title {
  119. font-size: 1.5em;
  120. font-weight: normal;
  121. margin: 0;
  122. }
  123. .objectDisplay > .header > .description {
  124. display: block;
  125. font-style: italic;
  126. color: #7f7f7f;
  127. font-size: 1.5em;
  128. font-weight: normal;
  129. }
  130. .objectDisplay.hasImage .images {
  131. display: flex;
  132. justify-content: center;
  133. align-items: center;
  134. flex-direction: row;
  135. }
  136. .objectDisplay.hasImage .images .imageWrapper {
  137. display: flex;
  138. align-items: center;
  139. justify-content: center;
  140. height: 100%;
  141. }
  142. .objectDisplay-popup.hasImage .images .imageWrapper {
  143. max-height: 12em;
  144. }
  145. .objectDisplay-details.hasImage .images .imageWrapper {
  146. height: 200px;
  147. }
  148. .objectDisplay .images .imageWrapper img {
  149. max-width: 100%;
  150. border-radius: 6px;
  151. display: block;
  152. }
  153. .objectDisplay-popup .images .imageWrapper img {
  154. max-height: 12em;
  155. }
  156. .objectDisplay-details .images .imageWrapper img {
  157. max-height: 200px;
  158. }
  159. .objectDisplay .block {
  160. border-top: 1px solid #afafaf;
  161. padding: 0.5em 10px;
  162. }
  163. .objectDisplay .block > h3 {
  164. margin-top: 0;
  165. margin-bottom: 0.25em;
  166. border: none;
  167. }
  168. .objectDisplay .block.empty {
  169. border-top: none;
  170. padding: 0 0;
  171. }
  172. /* Popups */
  173. .objectDisplay ul.footer {
  174. padding-left: 0;
  175. }
  176. .objectDisplay ul.footer li {
  177. display: inline-block;
  178. list-style: none;
  179. padding-right: 1em;
  180. }
  181. /* Footer */
  182. #menu {
  183. margin: 0 0;
  184. padding: 0 0;
  185. }
  186. #menu li {
  187. display: inline-block;
  188. margin: 1px 0;
  189. }
  190. #menu li::after {
  191. content: '|';
  192. margin: 1px 0.25em;
  193. }
  194. #menu li:last-of-type::after {
  195. content: '';
  196. }
  197. #menu li:first-of-type {
  198. margin-left: 0.25em;
  199. }
  200. .leaflet-popup-content {
  201. min-width: 150px !important;
  202. width: 300px !important;
  203. }
  204. @media all and (min-width: 501px) and (max-height: 600px) {
  205. .tabs-section {
  206. max-height: 300px;
  207. }
  208. }
  209. @media all and (min-width: 501px) and (max-height: 400px) {
  210. .leaflet-popup-content {
  211. max-height: 250px !important;
  212. }
  213. }
  214. @media all and (min-width: 501px) and (max-height: 360px) {
  215. .leaflet-popup-content {
  216. max-height: 200px !important;
  217. }
  218. }
  219. @media all and (min-width: 501px) and (max-height: 320px) {
  220. .leaflet-popup-content {
  221. max-height: 150px !important;
  222. }
  223. }
  224. @media all and (max-width: 700px) {
  225. .leaflet-popup-content {
  226. width: 250px !important;
  227. }
  228. }
  229. @media all and (max-width: 600px) {
  230. .leaflet-popup-content {
  231. width: 200px !important;
  232. }
  233. }
  234. @media all and (max-width: 550px) {
  235. .leaflet-popup-content {
  236. width: 150px !important;
  237. }
  238. }
  239. @media all and (max-width: 500px) {
  240. #sidebar {
  241. top: 0;
  242. height: 270px;
  243. left: 0;
  244. right: 0;
  245. bottom: auto;
  246. width: auto;
  247. overflow: auto;
  248. }
  249. #map {
  250. left: 0;
  251. bottom: 0;
  252. top: 270px;
  253. right: 0;
  254. border-left: none;
  255. border-top: 1px solid #999;
  256. }
  257. #mapShadow {
  258. left: 0;
  259. right: 0;
  260. top: 271px;
  261. bottom: auto;
  262. height: 5px;
  263. width: auto;
  264. background: linear-gradient(to bottom, #5656566f, #56565600);
  265. }
  266. #sidebar > #content {
  267. overflow: visible;
  268. }
  269. .tabs-section {
  270. max-height: none;
  271. overflow-y: visible;
  272. }
  273. .leaflet-popup-content {
  274. width: 300px !important;
  275. }
  276. }
  277. @media all and (max-width: 400px) {
  278. .leaflet-popup-content {
  279. width: 250px !important;
  280. }
  281. }
  282. @media all and (max-width: 360px) {
  283. .leaflet-popup-content {
  284. width: 200px !important;
  285. }
  286. }
  287. @media all and (max-width: 500px) and (max-height: 675px) {
  288. #sidebar {
  289. height: 40%;
  290. }
  291. #map {
  292. top: 40%;
  293. }
  294. #mapShadow {
  295. top: calc(40% + 1px);
  296. }
  297. .leaflet-popup-content {
  298. max-height: 250px !important;
  299. }
  300. }
  301. @media all and (max-width: 500px) and (max-height: 600px) {
  302. .leaflet-popup-content {
  303. max-height: 240px !important;
  304. }
  305. }
  306. @media all and (max-width: 500px) and (max-height: 550px) {
  307. .leaflet-popup-content {
  308. max-height: 200px !important;
  309. }
  310. }
  311. @media all and (max-width: 500px) and (max-height: 500px) {
  312. .leaflet-popup-content {
  313. max-height: 180px !important;
  314. }
  315. }
  316. @media all and (max-width: 500px) and (max-height: 450px) {
  317. .leaflet-popup-content {
  318. max-height: 160px !important;
  319. }
  320. }
  321. @media all and (max-width: 500px) and (max-height: 400px) {
  322. .leaflet-popup-content {
  323. max-height: 140px !important;
  324. }
  325. }
  326. /* FULLSCREEN */
  327. .leaflet-control-fullscreen {
  328. font-size: 20px;
  329. }
  330. .fullscreen #sidebar {
  331. display: none;
  332. }
  333. .fullscreen #map {
  334. left: 0;
  335. top: 0;
  336. right: 0;
  337. bottom: 0;
  338. width: auto;
  339. height: auto;
  340. border: none;
  341. }
  342. .fullscreen #mapShadow {
  343. display: none;
  344. }
  345. #loadingIndicator {
  346. display: none;
  347. }
  348. .fullscreen.loading > #loadingIndicator {
  349. display: block;
  350. z-index: 10000;
  351. height: 3px;
  352. position: absolute;
  353. top: 0;
  354. left: 0;
  355. right: 0;
  356. background: black;
  357. overflow: hidden;
  358. }
  359. .fullscreen.loading > #loadingIndicator:before {
  360. display: block;
  361. position: absolute;
  362. content: "";
  363. margin-left: -250px;
  364. width: 250px;
  365. height: 4px;
  366. background: red;
  367. animation: loading 2s linear infinite;
  368. }
  369. @keyframes loading {
  370. 0% {
  371. margin-left: -250px;
  372. }
  373. 100% {
  374. margin-left: 100%;
  375. }
  376. }
  377. #content {
  378. font-size: 12px;
  379. font-family: "Helvetica Neue", "Arial", "Helvetica", sans-serif;
  380. line-height: 1.4;
  381. }
  382. #content h1 {
  383. margin: 0;
  384. }
  385. .objectDisplay a {
  386. color: #0078A8;
  387. }
  388. .yes {
  389. color: green;
  390. }
  391. .limited {
  392. color: orange;
  393. }
  394. .no {
  395. color: red;
  396. }
  397. .leaflet-popup-content-wrapper {
  398. padding: 0;
  399. }
  400. .leaflet-popup-content {
  401. margin: 0;
  402. overflow: auto;
  403. }
  404. .body ul,
  405. .objectDisplay ul {
  406. margin: 0;
  407. padding-left: 20px;
  408. }
  409. .body ul > li,
  410. .objectDisplay ul > li {
  411. position: relative;
  412. }
  413. .body ul > li.hasSymbol,
  414. .objectDisplay ul > li.hasSymbol {
  415. list-style: none;
  416. }
  417. .body ul > li.hasSymbol > i,
  418. .objectDisplay ul > li.hasSymbol > i,
  419. .body ul > li.hasSymbol > .symbol,
  420. .objectDisplay ul > li.hasSymbol > .symbol,
  421. .body ul > li.hasSymbol > img,
  422. .objectDisplay ul > li.hasSymbol > img,
  423. .body ul > li.hasSymbol > span > svg,
  424. .objectDisplay ul > li.hasSymbol > span > svg {
  425. position: absolute;
  426. margin-left: -20px;
  427. padding-top: 2px;
  428. width: 15px;
  429. text-align: center;
  430. }
  431. .body ul > li > .key,
  432. .objectDisplay ul > li > .key {
  433. font-weight: bold;
  434. }
  435. .objectDisplay div > .loadingIndicator {
  436. display: none;
  437. }
  438. .objectDisplay div.loading > .loadingIndicator {
  439. float: right;
  440. display: block;
  441. }
  442. /* Wikipedia */
  443. .wikipedia img {
  444. max-width: 100px;
  445. max-height: 100px;
  446. float: right;
  447. margin-left: 0.5em;
  448. margin-bottom: 0.5em;
  449. border-radius: 6px;
  450. }
  451. .wikipedia > h4 {
  452. margin-top: 0.5em;
  453. margin-bottom: 0.5em;
  454. }
  455. .wikipedia > div {
  456. text-align: justify;
  457. margin-bottom: 0.5em;
  458. }
  459. .objectDisplay h3 {
  460. border-bottom: 1px solid black;
  461. clear: both;
  462. text-align: left;
  463. }
  464. .objectDisplay h4 {
  465. clear: both;
  466. text-decoration: underline;
  467. font-weight: bold;
  468. }
  469. .wikipedia .reference {
  470. display: none;
  471. }
  472. .info .sign,
  473. .overpass-layer-icon .sign {
  474. white-space: nowrap;
  475. }
  476. .tabs-section > form > span.form_element_form_chooser {
  477. border: none;
  478. }
  479. .clearfix::after {
  480. content: '';
  481. clear: both;
  482. display: table;
  483. }
  484. .objectDisplay .body ul.overpass-layer-list,
  485. ul.overpass-layer-list {
  486. padding-left: 0;
  487. }
  488. ul.overpass-layer-list > li {
  489. border: 1px solid #dfdfdf;
  490. background: #dfdfdf;
  491. border-radius: 5px;
  492. border: 1px solid #afafaf;
  493. padding: 2px;
  494. margin-bottom: 2px;
  495. display: flex;
  496. flex-direction: row;
  497. }
  498. ul.overpass-layer-list > li:hover,
  499. ul.overpass-layer-list > li.selected {
  500. background: #cfcfcf !important;
  501. }
  502. .objectDisplay ul.overpass-layer-list > li a,
  503. ul.overpass-layer-list > li a {
  504. color: #000000;
  505. }
  506. ul.overpass-layer-list > li > a {
  507. display: block;
  508. width: 100%;
  509. }
  510. ul.overpass-layer-list > li > a > .marker {
  511. position: absolute;
  512. margin-left: -35px;
  513. width: 30px;
  514. height: 30px;
  515. text-align: center;
  516. display: block;
  517. color: black;
  518. text-decoration: none;
  519. margin-top: 3px;
  520. flex-grow: 0;
  521. }
  522. ul.overpass-layer-list > li > a > .marker > .symbol {
  523. }
  524. ul.overpass-layer-list > li > a > .marker > .sign {
  525. text-align: center;
  526. position: absolute;
  527. top: 3px;
  528. font-size: 15px;
  529. left: 0;
  530. right: 0;
  531. z-index: 1;
  532. display: inline-block;
  533. }
  534. ul.overpass-layer-list > li > a > .content {
  535. text-decoration: none;
  536. display: block;
  537. }
  538. ul.overpass-layer-list > li > a > .content > .description {
  539. display: block;
  540. text-align: left;
  541. font-style: italic;
  542. color: #3f3f3f;
  543. font-weight: normal;
  544. }
  545. ul.overpass-layer-list > li > a > .content > .title {
  546. display: block;
  547. font-style: normal;
  548. font-weight: normal;
  549. }
  550. ul.overpass-layer-list > li > a > .content > .details {
  551. float: right;
  552. display: block;
  553. font-style: italic;
  554. color: #3f3f3f;
  555. max-width: 50%;
  556. text-align: right;
  557. }
  558. .leaflet-popup-content-wrapper {
  559. overflow: hidden;
  560. }
  561. .scroll-shadow,
  562. .leaflet-popup-content {
  563. background:
  564. linear-gradient(white 30%, hsla(0,0%,100%, 0)),
  565. linear-gradient(hsla(0,0%,100%,0) 10px, white 70%) bottom,
  566. radial-gradient(at top, rgba(0,0,0,0.2), transparent 70%),
  567. radial-gradient(at bottom, rgba(0,0,0,0.2), transparent 70%) bottom;
  568. background-repeat:no-repeat;
  569. background-size: 100% 20px, 100% 20px, 100% 10px, 100% 10px;
  570. background-attachment:local, local, scroll, scroll;
  571. }
  572. .leaflet-popup > .leaflet-popup-close-button {
  573. display: none;
  574. }
  575. .leaflet-container .leaflet-popup-content > a.leaflet-popup-close-button {
  576. float: right;
  577. position: inherit;
  578. }
  579. .warning {
  580. border: 1px solid red;
  581. border-radius: 0.5em;
  582. padding: 0.25em 1em;
  583. margin-bottom: 0.25em;
  584. background-color: #ffdfdf;
  585. }
  586. .Window > .content textarea {
  587. height: 100%;
  588. width: 100%;
  589. resize: none;
  590. box-sizing: border-box;
  591. }
  592. .Window > .content .controls {
  593. flex-grow: 0;
  594. }
  595. .Window > .content .controls > .actions {
  596. margin-left: 1em;
  597. margin-right: 1em;
  598. display: inline;
  599. }
  600. /* Window */
  601. .Window {
  602. position: absolute;
  603. z-index: 99999;
  604. background-color: #f1f1f1;
  605. border: 1px solid #000000;
  606. resize: both;
  607. overflow: hidden;
  608. width: min(60em, 80%);
  609. height: min(30em, 60%);
  610. left: 10%;
  611. top: 10%;
  612. display: flex;
  613. flex-direction: column;
  614. align-content: stretch;
  615. }
  616. .Window > .header {
  617. padding: 0.25em;
  618. font-weight: bold;
  619. cursor: move;
  620. z-index: 100000;
  621. background-color: #dfdfdf;
  622. color: #000000;
  623. flex-grow: 0;
  624. position: relative;
  625. }
  626. .Window > .header > .closeBtn {
  627. }
  628. .Window > .header > .closeBtn::before {
  629. font-family: "Font Awesome 5 Free";
  630. content: "\f00d";
  631. position: absolute;
  632. right: 0.25em;
  633. top: 0.25em;
  634. }
  635. .Window > .content {
  636. height: 100%;
  637. display: flex;
  638. flex-direction: column;
  639. align-content: stretch;
  640. }
  641. .tip-tutorial {
  642. padding: 0.25em 0;
  643. display: inline-block;
  644. }
  645. .tip-tutorial a {
  646. text-decoration: underline;
  647. }
  648. /* Copy to clipboard */
  649. .share-button {
  650. position: relative;
  651. }
  652. .share-button > .notify {
  653. position: absolute;
  654. background: white;
  655. border: 1px solid black;
  656. border-radius: 0.25em;
  657. width: 8em;
  658. text-align: center;
  659. z-index: 1;
  660. }