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.

386 lines
5.9 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. 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 > #content {
  78. flex: 1;
  79. flex-shrink: 0;
  80. overflow: auto;
  81. padding-left: 10px;
  82. padding-right: 10px;
  83. }
  84. #sidebar > #footer {
  85. flex: 0;
  86. }
  87. #content > div {
  88. display: none;
  89. }
  90. #content.list > #contentList {
  91. display: block;
  92. }
  93. #content.details > #contentDetails {
  94. display: block;
  95. }
  96. #content.options > #contentOptions {
  97. display: block;
  98. }
  99. /***** CATEGORY *****/
  100. /* root category */
  101. #content > #contentList > .category > .content > .categoryWrapper > .category {
  102. margin-left: 0;
  103. }
  104. .leaflet-popup-content ul.popup-footer {
  105. padding: 0;
  106. }
  107. .leaflet-popup-content ul.popup-footer li {
  108. display: inline-block;
  109. list-style: none;
  110. padding-right: 1em;
  111. }
  112. /* Footer */
  113. #menu {
  114. margin: 0 0;
  115. padding: 0 0;
  116. }
  117. #menu li {
  118. display: inline-block;
  119. }
  120. #menu li::after {
  121. content: ' |';
  122. }
  123. #menu li:last-of-type::after {
  124. content: '';
  125. }
  126. @media all and (max-height: 400px) {
  127. #sidebar {
  128. overflow: auto;
  129. }
  130. #sidebar > #content {
  131. overflow: visible;
  132. }
  133. }
  134. @media all and (max-width: 500px) {
  135. #sidebar {
  136. top: 0;
  137. height: 270px;
  138. left: 0;
  139. right: 0;
  140. bottom: auto;
  141. width: auto;
  142. overflow: auto;
  143. }
  144. #map {
  145. left: 0;
  146. bottom: 0;
  147. top: 270px;
  148. right: 0;
  149. border-left: none;
  150. border-top: 1px solid #999;
  151. }
  152. #mapShadow {
  153. left: 0;
  154. right: 0;
  155. top: 271px;
  156. bottom: auto;
  157. height: 5px;
  158. width: auto;
  159. background-image: url(img/shadow_top.png);
  160. background-repeat: repeat-x;
  161. }
  162. #sidebar > #content {
  163. overflow: visible;
  164. }
  165. }
  166. @media all and (max-width: 500px) and (max-height: 500px) {
  167. #sidebar {
  168. height: 220px;
  169. }
  170. #map {
  171. top: 220px;
  172. }
  173. #mapShadow {
  174. top: 221px;
  175. }
  176. }
  177. @media all and (max-width: 500px) and (max-height: 460px) {
  178. #sidebar {
  179. height: 200px;
  180. }
  181. #map {
  182. top: 200px;
  183. }
  184. #mapShadow {
  185. top: 201px;
  186. }
  187. }
  188. @media all and (max-width: 500px) and (max-height: 420px) {
  189. #sidebar {
  190. height: 180px;
  191. }
  192. #map {
  193. top: 180px;
  194. }
  195. #mapShadow {
  196. top: 181px;
  197. }
  198. }
  199. /* FULLSCREEN */
  200. .leaflet-control-fullscreen {
  201. font-size: 20px;
  202. }
  203. .fullscreen #sidebar {
  204. display: none;
  205. }
  206. .fullscreen #map {
  207. left: 0;
  208. top: 0;
  209. right: 0;
  210. bottom: 0;
  211. width: auto;
  212. height: auto;
  213. border: none;
  214. }
  215. .fullscreen #mapShadow {
  216. display: none;
  217. }
  218. #loadingIndicator {
  219. display: none;
  220. }
  221. .fullscreen.loading > #loadingIndicator {
  222. display: block;
  223. z-index: 10000;
  224. height: 3px;
  225. position: absolute;
  226. top: 0;
  227. left: 0;
  228. right: 0;
  229. background: black;
  230. overflow: hidden;
  231. }
  232. .fullscreen.loading > #loadingIndicator:before {
  233. display: block;
  234. position: absolute;
  235. content: "";
  236. margin-left: -250px;
  237. width: 250px;
  238. height: 4px;
  239. background: red;
  240. animation: loading 2s linear infinite;
  241. }
  242. @keyframes loading {
  243. 0% {
  244. margin-left: -250px;
  245. }
  246. 100% {
  247. margin-left: 100%;
  248. }
  249. }
  250. #content {
  251. font-size: 12px;
  252. font-family: "Helvetica Neue", "Arial", "Helvetica", sans-serif;
  253. line-height: 1.4;
  254. }
  255. #content h1,
  256. .leaflet-popup-content > h1 {
  257. margin: 0;
  258. }
  259. #contentDetails a {
  260. color: #0078A8;
  261. }
  262. .yes {
  263. color: green;
  264. }
  265. .limited {
  266. color: orange;
  267. }
  268. .no {
  269. color: red;
  270. }
  271. .description,
  272. .leaflet-popup-content .description {
  273. display: block;
  274. text-align: right;
  275. font-style: italic;
  276. }
  277. .description:after,
  278. .leaflet-popup-content .description:after {
  279. content: '';
  280. clear: right;
  281. }
  282. .body ul,
  283. .leaflet-popup-content ul {
  284. margin: 0;
  285. padding-left: 20px;
  286. }
  287. .body ul > li,
  288. .leaflet-popup-content ul > li {
  289. position: relative;
  290. }
  291. .body ul > li.hasSymbol,
  292. .leaflet-popup-content ul > li.hasSymbol {
  293. list-style: none;
  294. }
  295. .body ul > li.hasSymbol > i,
  296. .leaflet-popup-content ul > li.hasSymbol > i,
  297. .body ul > li.hasSymbol > .symbol,
  298. .leaflet-popup-content ul > li.hasSymbol > .symbol,
  299. .body ul > li.hasSymbol > img,
  300. .leaflet-popup-content ul > li.hasSymbol > img {
  301. position: absolute;
  302. margin-left: -15px;
  303. padding-top: 2px;
  304. }
  305. .body ul > li > .key,
  306. .leaflet-popup-content ul > li > .key {
  307. font-weight: bold;
  308. }
  309. #contentDetails div > .loadingIndicator {
  310. display: none;
  311. }
  312. #contentDetails div.loading > .loadingIndicator {
  313. float: right;
  314. display: block;
  315. }
  316. /* Wikipedia */
  317. .wikipedia img {
  318. max-width: 100px;
  319. max-height: 100px;
  320. float: right;
  321. margin-left: 0.5em;
  322. margin-bottom: 0.5em;
  323. }
  324. .wikipedia div {
  325. text-align: justify;
  326. }
  327. #contentDetails h3 {
  328. border-bottom: 1px solid black;
  329. clear: both;
  330. text-align: left;
  331. }
  332. #contentDetails h4 {
  333. clear: both;
  334. }
  335. .wikipedia .reference {
  336. display: none;
  337. }
  338. .leaflet-popup-content .images {
  339. float: right;
  340. margin-left: 0.5em;
  341. max-width: 100px;
  342. max-height: 150px;
  343. }
  344. .leaflet-popup-content .images img {
  345. max-width: 100px;
  346. max-height: 150px;
  347. }
  348. #contentDetails .images {
  349. }
  350. #contentDetails .images .imageWrapper {
  351. text-align: center;
  352. width: 100%;
  353. height: 200px;
  354. background: grey;
  355. position: relative;
  356. }
  357. #contentDetails .images .imageWrapper img {
  358. max-width: 100%;
  359. max-height: 100%;
  360. position: absolute;
  361. top: 0; bottom: 0; left: 0; right: 0;
  362. margin: auto;
  363. }