main.scss 6.0 KB

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