main.scss 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. @import '_leaflet';
  2. @import '_leaflet.label';
  3. $minscreenwidth: 60em;
  4. $sidebarwidth: 420pt;
  5. $sidebarwidthsmall: 360pt;
  6. $buttondistance: 12pt;
  7. @import '_map';
  8. @import '_forcegraph';
  9. .contenttoggle {
  10. z-index: 100;
  11. position: absolute;
  12. top: $buttondistance;
  13. right: $buttondistance;
  14. }
  15. .contenttoggle.next-graph:after {
  16. content: '\f341';
  17. }
  18. .contenttoggle.next-map:after {
  19. content: '\f203';
  20. }
  21. .content {
  22. position: fixed;
  23. width: 100%;
  24. height: 100vh;
  25. }
  26. .tabs {
  27. padding-top: 1em !important;
  28. margin: 0;
  29. list-style: none;
  30. display: flex;
  31. }
  32. .tabs li {
  33. flex: 1;
  34. text-align: center;
  35. padding: 0.5em;
  36. cursor: pointer;
  37. }
  38. .tabs li:hover {
  39. background: rgba(0, 0, 0, 0.03);
  40. color: #dc0067;
  41. }
  42. .tabs .visible {
  43. font-weight: bold;
  44. border-bottom: 2pt solid black;
  45. }
  46. .tab {
  47. display: none;
  48. }
  49. .tab.visible {
  50. display: block;
  51. }
  52. body {
  53. margin: 0;
  54. padding: 0;
  55. font-family: 'Roboto Slab', serif;
  56. font-size: 11pt;
  57. }
  58. th.sort-header::selection {
  59. background: transparent;
  60. }
  61. th.sort-header {
  62. cursor: pointer;
  63. }
  64. table th.sort-header:after {
  65. font-family: "ionicons";
  66. padding-left: 0.25em;
  67. content: '\f10d';
  68. visibility: hidden;
  69. }
  70. table th.sort-header:hover:after {
  71. visibility: visible;
  72. }
  73. table th.sort-up:after, table th.sort-down:after, table th.sort-down:hover:after {
  74. visibility: visible;
  75. opacity: 0.4;
  76. }
  77. table th.sort-up:after {
  78. content: '\f104';
  79. }
  80. table.attributes th {
  81. text-align: left;
  82. font-weight: bold;
  83. vertical-align: top;
  84. padding-right: 1em;
  85. white-space: nowrap;
  86. }
  87. table.attributes td {
  88. text-align: left !important;
  89. width: 100%;
  90. }
  91. .infobox .clients {
  92. font-family: "ionicons";
  93. color: #1566A9;
  94. word-spacing: -0.2em;
  95. }
  96. .infobox {
  97. position: relative;
  98. box-shadow: 0px 0.5px 3px rgba(0, 0, 0, 0.16), 0px 0.5px 2px rgba(0, 0, 0, 0.24);
  99. background: rgba(0, 0, 0, 0.02);
  100. padding: 0.25em 0;
  101. }
  102. button {
  103. -webkit-tap-highlight-color: transparent;
  104. font-family: "ionicons";
  105. box-shadow: 0px 0.5px 3px rgba(0, 0, 0, 0.16), 0px 0.5px 2px rgba(0, 0, 0, 0.24);
  106. border-radius: 0.9em;
  107. background: rgba(255, 255, 255, 0.7);
  108. border: none;
  109. cursor: pointer;
  110. height: 1.8em;
  111. width: 1.8em;
  112. font-size: 20pt;
  113. transition: box-shadow 0.5s, color 0.5s;
  114. outline: none;
  115. }
  116. button:hover {
  117. background: white;
  118. color: #dc0067;
  119. box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.19), 0px 3px 6px rgba(0, 0, 0, 0.23);
  120. }
  121. button:active {
  122. box-shadow: inset 0px 5px 20px rgba(0, 0, 0, 0.19), inset 0px 3px 6px rgba(0, 0, 0, 0.23);
  123. }
  124. button::-moz-focus-inner {
  125. border: 0;
  126. }
  127. button.close {
  128. position: absolute;
  129. right: $buttondistance;
  130. top: $buttondistance;
  131. }
  132. button.close:after {
  133. content: "\f12a";
  134. }
  135. .sidebar h2, .sidebar h3 {
  136. padding: 0 10pt;
  137. }
  138. .sidebar p, .sidebar table, .sidebar pre, .sidebar ul {
  139. padding: 0 10pt 1em;
  140. }
  141. .sidebarhandle {
  142. position: fixed;
  143. left: $sidebarwidth + 2 * $buttondistance;
  144. top: $buttondistance;
  145. z-index: 10;
  146. transition: left 0.5s, box-shadow 0.5s, color 0.5s, transform 0.5s;
  147. }
  148. .sidebarhandle:after {
  149. padding-right: 0.125em;
  150. content: "\f124";
  151. }
  152. .sidebar.hidden .sidebarhandle {
  153. transform: scale(-1, 1);
  154. left: $buttondistance;
  155. }
  156. .online {
  157. color: #558020 !important;
  158. }
  159. .offline {
  160. color: #D43E2A !important;
  161. }
  162. .sidebar {
  163. z-index: 5;
  164. width: $sidebarwidth;
  165. box-sizing: border-box;
  166. position: absolute;
  167. top: $buttondistance;
  168. left: $buttondistance;
  169. margin-bottom: $buttondistance;
  170. background: white;
  171. box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.19), 0px 3px 6px rgba(0, 0, 0, 0.23);
  172. transition: left 0.5s;
  173. }
  174. .sidebar.hidden {
  175. left: -$sidebarwidth - $buttondistance;
  176. }
  177. .sidebar .icon {
  178. padding: 0 0.25em;
  179. }
  180. .sidebar table {
  181. width: 100%;
  182. }
  183. .sidebar table th {
  184. text-align: left;
  185. }
  186. .sidebar td:not(:first-child), .sidebar th:not(:first-child) {
  187. text-align: right;
  188. }
  189. .sidebar a {
  190. color: #1566A9;
  191. }
  192. .bar {
  193. display: block;
  194. height: 1.4em;
  195. background: rgba(85, 128, 32, 0.5);
  196. position: relative;
  197. }
  198. .bar span {
  199. display: inline-block;
  200. height: 1.4em;
  201. background: rgba(85, 128, 32, 0.8);
  202. }
  203. .bar label {
  204. font-weight: bold;
  205. white-space: nowrap;
  206. color: white;
  207. position: absolute;
  208. right: 0.5em;
  209. }
  210. .proportion th {
  211. font-weight: normal;
  212. text-align: right !important;
  213. font-size: 0.95em;
  214. }
  215. .proportion td {
  216. text-align: left !important;
  217. width: 100%;
  218. }
  219. .proportion td, .proportion th {
  220. white-space: nowrap;
  221. }
  222. .proportion span {
  223. display: inline-block;
  224. height: 1.4em;
  225. background: black;
  226. padding: 0 0.5em;
  227. font-weight: bold;
  228. min-width: 1.5em;
  229. box-sizing: border-box;
  230. }
  231. @media screen and (max-width: 80em) {
  232. .sidebar {
  233. font-size: 0.8em;
  234. top: 0pt;
  235. left: 0pt;
  236. margin: 0pt;
  237. width: $sidebarwidthsmall;
  238. min-height: 100vh;
  239. .sidebarhandle {
  240. left: $sidebarwidthsmall + $buttondistance;
  241. }
  242. }
  243. }
  244. @media screen and (max-width: $minscreenwidth) {
  245. .sidebarhandle {
  246. display: none;
  247. }
  248. .content {
  249. position: relative;
  250. width: auto;
  251. height: 60vh;
  252. }
  253. .sidebar {
  254. position: static;
  255. margin: 0em !important;
  256. width: auto;
  257. height: auto;
  258. min-height: 0;
  259. }
  260. .sidebar.hidden {
  261. width: auto;
  262. }
  263. }