4
0

main.scss 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  1. @import '_reset';
  2. @import '_base';
  3. @import '_leaflet';
  4. @import '_leaflet.label';
  5. $minscreenwidth: 60em;
  6. $sidebarwidth: 420pt;
  7. $sidebarwidthsmall: 360pt;
  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. }
  115. .infobox {
  116. position: relative;
  117. padding: 0.25em 0;
  118. margin-bottom: $buttondistance;
  119. }
  120. button {
  121. -webkit-tap-highlight-color: transparent;
  122. font-family: "ionicons";
  123. box-shadow: 0px 0.5px 3px rgba(0, 0, 0, 0.16), 0px 0.5px 2px rgba(0, 0, 0, 0.24);
  124. border-radius: 0.9em;
  125. background: rgba(255, 255, 255, 0.7);
  126. border: none;
  127. cursor: pointer;
  128. height: 1.8em;
  129. width: 1.8em;
  130. font-size: 20pt;
  131. transition: box-shadow 0.5s, color 0.5s;
  132. outline: none;
  133. }
  134. button:hover {
  135. background: white;
  136. color: #dc0067;
  137. box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.19), 0px 3px 6px rgba(0, 0, 0, 0.23);
  138. }
  139. button:active {
  140. box-shadow: inset 0px 5px 20px rgba(0, 0, 0, 0.19), inset 0px 3px 6px rgba(0, 0, 0, 0.23);
  141. }
  142. button::-moz-focus-inner {
  143. border: 0;
  144. }
  145. button.close {
  146. width: auto;
  147. height: auto;
  148. font-size: 14pt;
  149. float: right;
  150. padding: $buttondistance/2 $buttondistance;
  151. margin-right: $buttondistance;
  152. margin-top: $buttondistance;
  153. box-shadow: none;
  154. background: transparent;
  155. border-radius: 0;
  156. color: rgba(0, 0, 0, 0.5);
  157. font-family: Roboto;
  158. &:hover {
  159. color: #dc0067;
  160. }
  161. &:active {
  162. background: rgba(0, 0, 0, 0.04);
  163. }
  164. &:after {
  165. content: "CLOSE";
  166. }
  167. }
  168. .sidebar h2, .sidebar h3 {
  169. padding-left: $buttondistance;
  170. padding-right: $buttondistance;
  171. }
  172. .sidebar p, .sidebar table, .sidebar pre, .sidebar ul {
  173. padding: 0 $buttondistance 1em;
  174. }
  175. table {
  176. border-spacing: 0 0.5em;
  177. td, th {
  178. line-height: 1.41em;
  179. }
  180. }
  181. .sidebar table {
  182. border-collapse: separate;
  183. }
  184. .sidebar table th {
  185. font-weight: bold;
  186. }
  187. .sidebarhandle {
  188. position: fixed;
  189. left: $sidebarwidth + 2 * $buttondistance;
  190. top: $buttondistance;
  191. z-index: 10;
  192. transition: left 0.5s, box-shadow 0.5s, color 0.5s, transform 0.5s;
  193. }
  194. .sidebarhandle:after {
  195. padding-right: 0.125em;
  196. content: "\f124";
  197. }
  198. .sidebar.hidden .sidebarhandle {
  199. transform: scale(-1, 1);
  200. left: $buttondistance;
  201. }
  202. .online {
  203. color: #558020 !important;
  204. }
  205. .offline {
  206. color: #D43E2A !important;
  207. }
  208. .sidebar {
  209. z-index: 5;
  210. width: $sidebarwidth;
  211. box-sizing: border-box;
  212. position: absolute;
  213. top: $buttondistance;
  214. left: $buttondistance;
  215. margin-bottom: $buttondistance;
  216. transition: left 0.5s;
  217. }
  218. .sidebar.hidden {
  219. left: -$sidebarwidth - $buttondistance;
  220. }
  221. .sidebar .icon {
  222. padding: 0 0.25em;
  223. }
  224. .sidebar table {
  225. width: 100%;
  226. }
  227. .sidebar table th {
  228. text-align: left;
  229. }
  230. .sidebar td:not(:first-child), .sidebar th:not(:first-child) {
  231. text-align: right;
  232. }
  233. .sidebar a {
  234. color: #1566A9;
  235. }
  236. .bar {
  237. display: block;
  238. height: 1.4em;
  239. background: rgba(85, 128, 32, 0.5);
  240. position: relative;
  241. span {
  242. display: inline-block;
  243. height: 1.4em;
  244. background: rgba(85, 128, 32, 0.8);
  245. }
  246. label {
  247. font-weight: bold;
  248. white-space: nowrap;
  249. color: white;
  250. position: absolute;
  251. right: 0.5em;
  252. top: 0.1em;
  253. }
  254. }
  255. .proportion th {
  256. font-weight: normal !important;
  257. text-align: right !important;
  258. font-size: 0.95em;
  259. padding-right: 0.71em;
  260. }
  261. .proportion td {
  262. text-align: left !important;
  263. width: 100%;
  264. }
  265. .proportion td, .proportion th {
  266. white-space: nowrap;
  267. }
  268. .proportion span {
  269. display: inline-block;
  270. background: black;
  271. padding: 0.25em 0.5em;
  272. font-weight: bold;
  273. min-width: 1.5em;
  274. box-sizing: border-box;
  275. }
  276. @media screen and (max-width: 80em) {
  277. .sidebar {
  278. font-size: 0.8em;
  279. top: 0pt;
  280. left: 0pt;
  281. margin: 0pt;
  282. width: $sidebarwidthsmall;
  283. min-height: 100vh;
  284. box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.19), 0px 3px 6px rgba(0, 0, 0, 0.23);
  285. background: white;
  286. .sidebarhandle {
  287. left: $sidebarwidthsmall + $buttondistance;
  288. }
  289. .container, .infobox {
  290. margin: 0;
  291. box-shadow: none;
  292. border-radius: 0;
  293. }
  294. .infobox {
  295. background: rgba(0, 0, 0, 0.02);
  296. }
  297. }
  298. }
  299. @media screen and (max-width: $minscreenwidth) {
  300. .sidebarhandle {
  301. display: none;
  302. }
  303. .content {
  304. position: relative;
  305. width: auto;
  306. height: 60vh;
  307. }
  308. .sidebar {
  309. position: static;
  310. margin: 0em !important;
  311. width: auto;
  312. height: auto;
  313. min-height: 0;
  314. }
  315. .sidebar.hidden {
  316. width: auto;
  317. }
  318. }