main.scss 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  1. @import '_reset';
  2. @import '_shadow';
  3. @import '_base';
  4. @import '_leaflet';
  5. @import '_leaflet.label';
  6. $minscreenwidth: 630pt;
  7. $sidebarwidth: 420pt;
  8. $sidebarwidthsmall: 320pt;
  9. $buttondistance: 12pt;
  10. @import '_sidebar';
  11. @import '_map';
  12. @import '_forcegraph';
  13. @import '_legend';
  14. .content {
  15. position: fixed;
  16. width: 100%;
  17. height: 100vh;
  18. .buttons {
  19. direction: rtl;
  20. unicode-bidi: bidi-override;
  21. z-index: 100;
  22. position: absolute;
  23. top: $buttondistance;
  24. right: $buttondistance;
  25. button {
  26. margin-left: $buttondistance;
  27. }
  28. }
  29. }
  30. .tabs, header {
  31. background: rgba(0, 0, 0, 0.02);
  32. }
  33. .tabs {
  34. padding: 1em 0 0 !important;
  35. margin: 0;
  36. list-style: none;
  37. display: flex;
  38. font-family: Roboto;
  39. @include shadow(1);
  40. }
  41. .tabs li {
  42. flex: 1 1 auto;
  43. text-transform: uppercase;
  44. text-align: center;
  45. padding: 0.5em 0.5em 1em;
  46. cursor: pointer;
  47. color: rgba(0, 0, 0, 0.5);
  48. }
  49. .tabs li:hover {
  50. color: #dc0067;
  51. }
  52. .tabs .visible {
  53. border-bottom: 2pt solid #dc0067;
  54. color: #dc0067;
  55. }
  56. body {
  57. margin: 0;
  58. padding: 0;
  59. font-family: 'Roboto Slab', serif;
  60. font-size: 11pt;
  61. }
  62. th.sort-header::selection {
  63. background: transparent;
  64. }
  65. th.sort-header {
  66. cursor: pointer;
  67. }
  68. table th.sort-header:after {
  69. font-family: "ionicons";
  70. padding-left: 0.25em;
  71. content: '\f10d';
  72. visibility: hidden;
  73. }
  74. table th.sort-header:hover:after {
  75. visibility: visible;
  76. }
  77. table th.sort-up:after, table th.sort-down:after, table th.sort-down:hover:after {
  78. visibility: visible;
  79. opacity: 0.4;
  80. }
  81. table th.sort-up:after {
  82. content: '\f104';
  83. }
  84. table.attributes th {
  85. text-align: left;
  86. font-weight: bold;
  87. vertical-align: top;
  88. padding-right: 1em;
  89. white-space: nowrap;
  90. line-height: 1.41em;
  91. }
  92. table.attributes td {
  93. text-align: left !important;
  94. width: 100%;
  95. line-height: 1.41em;
  96. }
  97. .sidebar {
  98. .infobox, .container {
  99. @include shadow(2);
  100. background: rgba(255, 255, 255, 0.97);
  101. border-radius: 2px;
  102. }
  103. .container.hidden {
  104. display: none;
  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. @include shadow(1);
  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. @include shadow(2);
  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: 20pt;
  156. float: right;
  157. margin-right: $buttondistance;
  158. margin-top: $buttondistance;
  159. box-shadow: none;
  160. background: transparent;
  161. border-radius: 0;
  162. color: rgba(0, 0, 0, 0.5);
  163. font-family: "ionicons";
  164. &:hover {
  165. color: #dc0067;
  166. }
  167. &:after {
  168. content: '\f2d7';
  169. }
  170. }
  171. .sidebar h2, .sidebar h3 {
  172. padding-left: $buttondistance;
  173. padding-right: $buttondistance;
  174. }
  175. .sidebar {
  176. p, pre, ul, h4 {
  177. padding: 0 $buttondistance 1em;
  178. }
  179. table {
  180. padding: 0 $buttondistance;
  181. }
  182. img {
  183. max-width: 100%;
  184. }
  185. }
  186. table {
  187. border-spacing: 0 0.5em;
  188. td, th {
  189. line-height: 1.41em;
  190. }
  191. }
  192. .sidebar table {
  193. border-collapse: separate;
  194. }
  195. .sidebar table th {
  196. font-weight: bold;
  197. }
  198. .sidebarhandle {
  199. position: fixed;
  200. left: $sidebarwidth + 2 * $buttondistance;
  201. top: $buttondistance;
  202. z-index: 10;
  203. transition: left 0.5s, box-shadow 0.5s, color 0.5s, transform 0.5s;
  204. }
  205. .sidebarhandle:after {
  206. padding-right: 0.125em;
  207. content: "\f124";
  208. }
  209. .sidebar.hidden .sidebarhandle {
  210. transform: scale(-1, 1);
  211. left: $buttondistance;
  212. }
  213. .online {
  214. color: #558020 !important;
  215. }
  216. .offline {
  217. color: #D43E2A !important;
  218. }
  219. .sidebar {
  220. z-index: 5;
  221. width: $sidebarwidth;
  222. box-sizing: border-box;
  223. position: absolute;
  224. top: $buttondistance;
  225. left: $buttondistance;
  226. margin-bottom: $buttondistance;
  227. transition: left 0.5s;
  228. }
  229. .sidebar.hidden {
  230. left: -$sidebarwidth - $buttondistance;
  231. }
  232. .sidebar .icon {
  233. padding: 0 0.25em;
  234. }
  235. .sidebar table {
  236. width: 100%;
  237. }
  238. .sidebar table th {
  239. text-align: left;
  240. }
  241. .sidebar td:not(:first-child), .sidebar th:not(:first-child) {
  242. text-align: right;
  243. }
  244. .sidebar a {
  245. color: #1566A9;
  246. }
  247. .bar {
  248. display: block;
  249. height: 1.4em;
  250. background: rgba(85, 128, 32, 0.5);
  251. position: relative;
  252. span {
  253. display: inline-block;
  254. height: 1.4em;
  255. background: rgba(85, 128, 32, 0.8);
  256. }
  257. label {
  258. font-weight: bold;
  259. white-space: nowrap;
  260. color: white;
  261. position: absolute;
  262. right: 0.5em;
  263. top: 0.1em;
  264. }
  265. }
  266. .proportion th {
  267. font-weight: normal !important;
  268. text-align: right !important;
  269. font-size: 0.95em;
  270. padding-right: 0.71em;
  271. }
  272. .proportion td {
  273. text-align: left !important;
  274. width: 100%;
  275. }
  276. .proportion td, .proportion th {
  277. white-space: nowrap;
  278. }
  279. .proportion span {
  280. display: inline-block;
  281. background: black;
  282. padding: 0.25em 0.5em;
  283. font-weight: bold;
  284. min-width: 1.5em;
  285. box-sizing: border-box;
  286. }
  287. @media screen and (max-width: 80em) {
  288. .sidebar {
  289. font-size: 0.8em;
  290. top: 0pt;
  291. left: 0pt;
  292. margin: 0pt;
  293. width: $sidebarwidthsmall;
  294. min-height: 100vh;
  295. @include shadow(2);
  296. background: white;
  297. .sidebarhandle {
  298. left: $sidebarwidthsmall + $buttondistance;
  299. }
  300. .container, .infobox {
  301. margin: 0;
  302. box-shadow: none;
  303. border-radius: 0;
  304. }
  305. }
  306. }
  307. @media screen and (max-width: $minscreenwidth) {
  308. .sidebarhandle {
  309. display: none;
  310. }
  311. .content {
  312. position: relative;
  313. width: auto;
  314. height: 60vh;
  315. }
  316. .sidebar {
  317. position: static;
  318. margin: 0em !important;
  319. width: auto;
  320. height: auto;
  321. min-height: 0;
  322. }
  323. .sidebar.hidden {
  324. width: auto;
  325. }
  326. }