main.scss 6.1 KB

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