main.scss 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  1. @import '_reset';
  2. @import '_base';
  3. @import '_leaflet';
  4. @import '_leaflet.label';
  5. $minscreenwidth: 630pt;
  6. $sidebarwidth: 420pt;
  7. $sidebarwidthsmall: 320pt;
  8. $buttondistance: 12pt;
  9. @import '_sidebar';
  10. @import '_map';
  11. @import '_forcegraph';
  12. .contenttoggle {
  13. z-index: 100;
  14. position: absolute;
  15. top: $buttondistance;
  16. right: $buttondistance;
  17. }
  18. .contenttoggle.next-graph:after {
  19. content: '\f341';
  20. }
  21. .contenttoggle.next-map:after {
  22. content: '\f203';
  23. }
  24. .content {
  25. position: fixed;
  26. width: 100%;
  27. height: 100vh;
  28. }
  29. .tabs {
  30. padding: 1em 0 0 !important;
  31. margin: 0;
  32. list-style: none;
  33. display: flex;
  34. font-family: Roboto;
  35. background: rgba(0, 0, 0, 0.02);
  36. box-shadow: 0px 0.5px 3px rgba(0, 0, 0, 0.16), 0px 0.5px 2px rgba(0, 0, 0, 0.24);
  37. }
  38. .tabs li {
  39. flex: 1 1 auto;
  40. text-transform: uppercase;
  41. text-align: center;
  42. padding: 0.5em 0.5em 1em;
  43. cursor: pointer;
  44. color: rgba(0, 0, 0, 0.5);
  45. }
  46. .tabs li:hover {
  47. color: #dc0067;
  48. }
  49. .tabs .visible {
  50. border-bottom: 2pt solid #dc0067;
  51. color: #dc0067;
  52. }
  53. .tab {
  54. display: none;
  55. }
  56. .tab.visible {
  57. display: block;
  58. }
  59. body {
  60. margin: 0;
  61. padding: 0;
  62. font-family: 'Roboto Slab', serif;
  63. font-size: 11pt;
  64. }
  65. th.sort-header::selection {
  66. background: transparent;
  67. }
  68. th.sort-header {
  69. cursor: pointer;
  70. }
  71. table th.sort-header:after {
  72. font-family: "ionicons";
  73. padding-left: 0.25em;
  74. content: '\f10d';
  75. visibility: hidden;
  76. }
  77. table th.sort-header:hover:after {
  78. visibility: visible;
  79. }
  80. table th.sort-up:after, table th.sort-down:after, table th.sort-down:hover:after {
  81. visibility: visible;
  82. opacity: 0.4;
  83. }
  84. table th.sort-up:after {
  85. content: '\f104';
  86. }
  87. table.attributes th {
  88. text-align: left;
  89. font-weight: bold;
  90. vertical-align: top;
  91. padding-right: 1em;
  92. white-space: nowrap;
  93. line-height: 1.41em;
  94. }
  95. table.attributes td {
  96. text-align: left !important;
  97. width: 100%;
  98. line-height: 1.41em;
  99. }
  100. .sidebar {
  101. .infobox, .container {
  102. box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.19), 0px 3px 6px rgba(0, 0, 0, 0.23);
  103. background: rgba(255, 255, 255, 0.9);
  104. border-radius: 2px;
  105. }
  106. p {
  107. line-height: 1.67em;
  108. }
  109. }
  110. .infobox .clients {
  111. font-family: "ionicons";
  112. color: #1566A9;
  113. word-spacing: -0.2em;
  114. white-space: normal;
  115. }
  116. .infobox {
  117. position: relative;
  118. padding: 0.25em 0;
  119. margin-bottom: $buttondistance;
  120. img {
  121. max-width: 100%;
  122. }
  123. }
  124. button {
  125. -webkit-tap-highlight-color: transparent;
  126. font-family: "ionicons";
  127. box-shadow: 0px 0.5px 3px rgba(0, 0, 0, 0.16), 0px 0.5px 2px rgba(0, 0, 0, 0.24);
  128. border-radius: 0.9em;
  129. background: rgba(255, 255, 255, 0.7);
  130. border: none;
  131. cursor: pointer;
  132. height: 1.8em;
  133. width: 1.8em;
  134. font-size: 20pt;
  135. transition: box-shadow 0.5s, color 0.5s;
  136. outline: none;
  137. }
  138. button.active {
  139. color: #dc0067 !important;
  140. }
  141. button:hover {
  142. background: white;
  143. color: #dc0067;
  144. box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.19), 0px 3px 6px rgba(0, 0, 0, 0.23);
  145. }
  146. button:active {
  147. box-shadow: inset 0px 5px 20px rgba(0, 0, 0, 0.19), inset 0px 3px 6px rgba(0, 0, 0, 0.23);
  148. }
  149. button::-moz-focus-inner {
  150. border: 0;
  151. }
  152. button.close {
  153. width: auto;
  154. height: auto;
  155. font-size: 14pt;
  156. float: right;
  157. padding: $buttondistance/2 $buttondistance;
  158. margin-right: $buttondistance;
  159. margin-top: $buttondistance;
  160. box-shadow: none;
  161. background: transparent;
  162. border-radius: 0;
  163. color: rgba(0, 0, 0, 0.5);
  164. font-family: Roboto;
  165. &:hover {
  166. color: #dc0067;
  167. }
  168. &:active {
  169. background: rgba(0, 0, 0, 0.04);
  170. }
  171. &:after {
  172. content: "CLOSE";
  173. }
  174. }
  175. .sidebar h2, .sidebar h3 {
  176. padding-left: $buttondistance;
  177. padding-right: $buttondistance;
  178. }
  179. .sidebar {
  180. p, pre, ul, h4 {
  181. padding: 0 $buttondistance 1em;
  182. }
  183. table {
  184. padding: 0 $buttondistance;
  185. }
  186. img {
  187. max-width: 100%;
  188. }
  189. }
  190. table {
  191. border-spacing: 0 0.5em;
  192. td, th {
  193. line-height: 1.41em;
  194. }
  195. }
  196. .sidebar table {
  197. border-collapse: separate;
  198. }
  199. .sidebar table th {
  200. font-weight: bold;
  201. }
  202. .sidebarhandle {
  203. position: fixed;
  204. left: $sidebarwidth + 2 * $buttondistance;
  205. top: $buttondistance;
  206. z-index: 10;
  207. transition: left 0.5s, box-shadow 0.5s, color 0.5s, transform 0.5s;
  208. }
  209. .sidebarhandle:after {
  210. padding-right: 0.125em;
  211. content: "\f124";
  212. }
  213. .sidebar.hidden .sidebarhandle {
  214. transform: scale(-1, 1);
  215. left: $buttondistance;
  216. }
  217. .online {
  218. color: #558020 !important;
  219. }
  220. .offline {
  221. color: #D43E2A !important;
  222. }
  223. .sidebar {
  224. z-index: 5;
  225. width: $sidebarwidth;
  226. box-sizing: border-box;
  227. position: absolute;
  228. top: $buttondistance;
  229. left: $buttondistance;
  230. margin-bottom: $buttondistance;
  231. transition: left 0.5s;
  232. }
  233. .sidebar.hidden {
  234. left: -$sidebarwidth - $buttondistance;
  235. }
  236. .sidebar .icon {
  237. padding: 0 0.25em;
  238. }
  239. .sidebar table {
  240. width: 100%;
  241. }
  242. .sidebar table th {
  243. text-align: left;
  244. }
  245. .sidebar td:not(:first-child), .sidebar th:not(:first-child) {
  246. text-align: right;
  247. white-space: nowrap;
  248. }
  249. .sidebar a {
  250. color: #1566A9;
  251. }
  252. .bar {
  253. display: block;
  254. height: 1.4em;
  255. background: rgba(85, 128, 32, 0.5);
  256. position: relative;
  257. span {
  258. display: inline-block;
  259. height: 1.4em;
  260. background: rgba(85, 128, 32, 0.8);
  261. }
  262. label {
  263. font-weight: bold;
  264. white-space: nowrap;
  265. color: white;
  266. position: absolute;
  267. right: 0.5em;
  268. top: 0.1em;
  269. }
  270. }
  271. .proportion th {
  272. font-weight: normal !important;
  273. text-align: right !important;
  274. font-size: 0.95em;
  275. padding-right: 0.71em;
  276. }
  277. .proportion td {
  278. text-align: left !important;
  279. width: 100%;
  280. }
  281. .proportion td, .proportion th {
  282. white-space: nowrap;
  283. }
  284. .proportion span {
  285. display: inline-block;
  286. background: black;
  287. padding: 0.25em 0.5em;
  288. font-weight: bold;
  289. min-width: 1.5em;
  290. box-sizing: border-box;
  291. }
  292. @media screen and (max-width: 80em) {
  293. .sidebar {
  294. font-size: 0.8em;
  295. top: 0pt;
  296. left: 0pt;
  297. margin: 0pt;
  298. width: $sidebarwidthsmall;
  299. min-height: 100vh;
  300. box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.19), 0px 3px 6px rgba(0, 0, 0, 0.23);
  301. background: white;
  302. .sidebarhandle {
  303. left: $sidebarwidthsmall + $buttondistance;
  304. }
  305. .container, .infobox {
  306. margin: 0;
  307. box-shadow: none;
  308. border-radius: 0;
  309. }
  310. .infobox {
  311. background: rgba(0, 0, 0, 0.02);
  312. }
  313. }
  314. }
  315. @media screen and (max-width: $minscreenwidth) {
  316. .sidebarhandle {
  317. display: none;
  318. }
  319. .content {
  320. position: relative;
  321. width: auto;
  322. height: 60vh;
  323. }
  324. .sidebar {
  325. position: static;
  326. margin: 0em !important;
  327. width: auto;
  328. height: auto;
  329. min-height: 0;
  330. }
  331. .sidebar.hidden {
  332. width: auto;
  333. }
  334. }