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.

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