main.scss 6.3 KB

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