main.scss 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  1. @import '_reset';
  2. @import '_shadow';
  3. @import '_base';
  4. @import '_leaflet';
  5. @import '_leaflet.label';
  6. @import '_filters';
  7. $minscreenwidth: 630pt;
  8. $sidebarwidth: 420pt;
  9. $sidebarwidthsmall: 320pt;
  10. $buttondistance: 12pt;
  11. @import '_sidebar';
  12. @import '_map';
  13. @import '_forcegraph';
  14. @import '_legend';
  15. .content {
  16. position: fixed;
  17. width: 100%;
  18. height: 100vh;
  19. .buttons {
  20. direction: rtl;
  21. unicode-bidi: bidi-override;
  22. z-index: 100;
  23. position: absolute;
  24. top: $buttondistance;
  25. right: $buttondistance;
  26. button {
  27. margin-left: $buttondistance;
  28. }
  29. }
  30. }
  31. .tabs, header {
  32. background: rgba(0, 0, 0, 0.02);
  33. }
  34. .tabs {
  35. padding: 1em 0 0 !important;
  36. margin: 0;
  37. list-style: none;
  38. display: flex;
  39. font-family: Roboto;
  40. @include shadow(1);
  41. }
  42. .tabs li {
  43. flex: 1 1 auto;
  44. text-transform: uppercase;
  45. text-align: center;
  46. padding: 0.5em 0.5em 1em;
  47. cursor: pointer;
  48. color: rgba(0, 0, 0, 0.5);
  49. }
  50. .tabs li:hover {
  51. color: #dc0067;
  52. }
  53. .tabs .visible {
  54. border-bottom: 2pt solid #dc0067;
  55. color: #dc0067;
  56. }
  57. body {
  58. margin: 0;
  59. padding: 0;
  60. font-family: 'Roboto Slab', serif;
  61. font-size: 11pt;
  62. }
  63. th.sort-header::selection {
  64. background: transparent;
  65. }
  66. th.sort-header {
  67. cursor: pointer;
  68. }
  69. table th.sort-header:after {
  70. font-family: "ionicons";
  71. padding-left: 0.25em;
  72. content: '\f10d';
  73. visibility: hidden;
  74. }
  75. table th.sort-header:hover:after {
  76. visibility: visible;
  77. }
  78. table th.sort-up:after, table th.sort-down:after, table th.sort-down:hover:after {
  79. visibility: visible;
  80. opacity: 0.4;
  81. }
  82. table th.sort-up:after {
  83. content: '\f104';
  84. }
  85. table.attributes th {
  86. text-align: left;
  87. font-weight: bold;
  88. vertical-align: top;
  89. padding-right: 1em;
  90. white-space: nowrap;
  91. line-height: 1.41em;
  92. }
  93. table.attributes td {
  94. text-align: left !important;
  95. width: 100%;
  96. line-height: 1.41em;
  97. }
  98. .sidebar {
  99. .infobox, .container {
  100. @include shadow(2);
  101. background: rgba(255, 255, 255, 0.97);
  102. border-radius: 2px;
  103. }
  104. .container.hidden {
  105. display: none;
  106. }
  107. p {
  108. line-height: 1.67em;
  109. }
  110. }
  111. .infobox .clients {
  112. font-family: "ionicons";
  113. color: #1566A9;
  114. word-spacing: -0.2em;
  115. white-space: normal;
  116. }
  117. .infobox {
  118. position: relative;
  119. padding: 0.25em 0;
  120. margin-bottom: $buttondistance;
  121. img {
  122. max-width: 100%;
  123. }
  124. }
  125. button {
  126. -webkit-tap-highlight-color: transparent;
  127. font-family: "ionicons";
  128. @include shadow(1);
  129. border-radius: 0.9em;
  130. background: rgba(255, 255, 255, 0.7);
  131. border: none;
  132. cursor: pointer;
  133. height: 1.8em;
  134. width: 1.8em;
  135. font-size: 20pt;
  136. transition: box-shadow 0.5s, color 0.5s;
  137. outline: none;
  138. }
  139. button.active {
  140. color: #dc0067 !important;
  141. }
  142. button:hover {
  143. background: white;
  144. color: #dc0067;
  145. @include shadow(2);
  146. }
  147. button:active {
  148. box-shadow: inset 0px 5px 20px rgba(0, 0, 0, 0.19), inset 0px 3px 6px rgba(0, 0, 0, 0.23);
  149. }
  150. button::-moz-focus-inner {
  151. border: 0;
  152. }
  153. button.close {
  154. width: auto;
  155. height: auto;
  156. font-size: 20pt;
  157. float: right;
  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: "ionicons";
  165. &:hover {
  166. color: #dc0067;
  167. }
  168. &:after {
  169. content: '\f2d7';
  170. }
  171. }
  172. .sidebar h2, .sidebar h3 {
  173. padding-left: $buttondistance;
  174. padding-right: $buttondistance;
  175. }
  176. .sidebar {
  177. p, pre, ul, h4 {
  178. padding: 0 $buttondistance 1em;
  179. }
  180. table {
  181. padding: 0 $buttondistance;
  182. }
  183. img {
  184. max-width: 100%;
  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. }
  245. .sidebar a {
  246. color: #1566A9;
  247. }
  248. .bar {
  249. display: block;
  250. height: 1.4em;
  251. background: rgba(85, 128, 32, 0.5);
  252. position: relative;
  253. span {
  254. display: inline-block;
  255. height: 1.4em;
  256. background: rgba(85, 128, 32, 0.8);
  257. }
  258. label {
  259. font-weight: bold;
  260. white-space: nowrap;
  261. color: white;
  262. position: absolute;
  263. right: 0.5em;
  264. top: 0.1em;
  265. }
  266. }
  267. .proportion th {
  268. font-weight: normal !important;
  269. text-align: right !important;
  270. font-size: 0.95em;
  271. padding-right: 0.71em;
  272. }
  273. .proportion td {
  274. text-align: left !important;
  275. width: 100%;
  276. }
  277. .proportion td, .proportion th {
  278. white-space: nowrap;
  279. }
  280. .proportion span {
  281. display: inline-block;
  282. background: black;
  283. padding: 0.25em 0.5em;
  284. font-weight: bold;
  285. min-width: 1.5em;
  286. box-sizing: border-box;
  287. }
  288. @media screen and (max-width: 80em) {
  289. .sidebar {
  290. font-size: 0.8em;
  291. top: 0pt;
  292. left: 0pt;
  293. margin: 0pt;
  294. width: $sidebarwidthsmall;
  295. min-height: 100vh;
  296. @include shadow(2);
  297. background: white;
  298. .sidebarhandle {
  299. left: $sidebarwidthsmall + $buttondistance;
  300. }
  301. .container, .infobox {
  302. margin: 0;
  303. box-shadow: none;
  304. border-radius: 0;
  305. }
  306. }
  307. }
  308. @media screen and (max-width: $minscreenwidth) {
  309. .sidebarhandle {
  310. display: none;
  311. }
  312. .content {
  313. position: relative;
  314. width: auto;
  315. height: 60vh;
  316. }
  317. .sidebar {
  318. position: static;
  319. margin: 0em !important;
  320. width: auto;
  321. height: auto;
  322. min-height: 0;
  323. }
  324. .sidebar.hidden {
  325. width: auto;
  326. }
  327. }