main.scss 6.2 KB

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