main.scss 6.3 KB

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