main.scss 6.2 KB

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