main.scss 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  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, header {
  30. background: rgba(0, 0, 0, 0.02);
  31. }
  32. .tabs {
  33. padding: 1em 0 0 !important;
  34. margin: 0;
  35. list-style: none;
  36. display: flex;
  37. font-family: Roboto;
  38. @include shadow(1);
  39. }
  40. .tabs li {
  41. flex: 1 1 auto;
  42. text-transform: uppercase;
  43. text-align: center;
  44. padding: 0.5em 0.5em 1em;
  45. cursor: pointer;
  46. color: rgba(0, 0, 0, 0.5);
  47. }
  48. .tabs li:hover {
  49. color: #dc0067;
  50. }
  51. .tabs .visible {
  52. border-bottom: 2pt solid #dc0067;
  53. color: #dc0067;
  54. }
  55. body {
  56. margin: 0;
  57. padding: 0;
  58. font-family: 'Roboto Slab', serif;
  59. font-size: 11pt;
  60. }
  61. th.sort-header::selection {
  62. background: transparent;
  63. }
  64. th.sort-header {
  65. cursor: pointer;
  66. }
  67. table th.sort-header:after {
  68. font-family: "ionicons";
  69. padding-left: 0.25em;
  70. content: '\f10d';
  71. visibility: hidden;
  72. }
  73. table th.sort-header:hover:after {
  74. visibility: visible;
  75. }
  76. table th.sort-up:after, table th.sort-down:after, table th.sort-down:hover:after {
  77. visibility: visible;
  78. opacity: 0.4;
  79. }
  80. table th.sort-up:after {
  81. content: '\f104';
  82. }
  83. table.attributes th {
  84. text-align: left;
  85. font-weight: bold;
  86. vertical-align: top;
  87. padding-right: 1em;
  88. white-space: nowrap;
  89. line-height: 1.41em;
  90. }
  91. table.attributes td {
  92. text-align: left !important;
  93. width: 100%;
  94. line-height: 1.41em;
  95. }
  96. .sidebar {
  97. .infobox, .container {
  98. @include shadow(2);
  99. background: rgba(255, 255, 255, 0.97);
  100. border-radius: 2px;
  101. }
  102. .container.hidden {
  103. display: none;
  104. }
  105. p {
  106. line-height: 1.67em;
  107. }
  108. }
  109. .infobox .clients {
  110. font-family: "ionicons";
  111. color: #1566A9;
  112. word-spacing: -0.2em;
  113. white-space: normal;
  114. }
  115. .infobox {
  116. position: relative;
  117. padding: 0.25em 0;
  118. margin-bottom: $buttondistance;
  119. img {
  120. max-width: 100%;
  121. }
  122. }
  123. button {
  124. -webkit-tap-highlight-color: transparent;
  125. font-family: "ionicons";
  126. @include shadow(1);
  127. border-radius: 0.9em;
  128. background: rgba(255, 255, 255, 0.7);
  129. border: none;
  130. cursor: pointer;
  131. height: 1.8em;
  132. width: 1.8em;
  133. font-size: 20pt;
  134. transition: box-shadow 0.5s, color 0.5s;
  135. outline: none;
  136. }
  137. button.active {
  138. color: #dc0067 !important;
  139. }
  140. button:hover {
  141. background: white;
  142. color: #dc0067;
  143. @include shadow(2);
  144. }
  145. button:active {
  146. box-shadow: inset 0px 5px 20px rgba(0, 0, 0, 0.19), inset 0px 3px 6px rgba(0, 0, 0, 0.23);
  147. }
  148. button::-moz-focus-inner {
  149. border: 0;
  150. }
  151. button.close {
  152. width: auto;
  153. height: auto;
  154. font-size: 20pt;
  155. float: right;
  156. margin-right: $buttondistance;
  157. margin-top: $buttondistance;
  158. box-shadow: none;
  159. background: transparent;
  160. border-radius: 0;
  161. color: rgba(0, 0, 0, 0.5);
  162. font-family: "ionicons";
  163. &:hover {
  164. color: #dc0067;
  165. }
  166. &:after {
  167. content: '\f2d7';
  168. }
  169. }
  170. .sidebar h2, .sidebar h3 {
  171. padding-left: $buttondistance;
  172. padding-right: $buttondistance;
  173. }
  174. .sidebar {
  175. p, pre, ul, h4 {
  176. padding: 0 $buttondistance 1em;
  177. }
  178. table {
  179. padding: 0 $buttondistance;
  180. }
  181. img {
  182. max-width: 100%;
  183. }
  184. }
  185. table {
  186. border-spacing: 0 0.5em;
  187. td, th {
  188. line-height: 1.41em;
  189. }
  190. }
  191. .sidebar table {
  192. border-collapse: separate;
  193. }
  194. .sidebar table th {
  195. font-weight: bold;
  196. }
  197. .sidebarhandle {
  198. position: fixed;
  199. left: $sidebarwidth + 2 * $buttondistance;
  200. top: $buttondistance;
  201. z-index: 10;
  202. transition: left 0.5s, box-shadow 0.5s, color 0.5s, transform 0.5s;
  203. }
  204. .sidebarhandle:after {
  205. padding-right: 0.125em;
  206. content: "\f124";
  207. }
  208. .sidebar.hidden .sidebarhandle {
  209. transform: scale(-1, 1);
  210. left: $buttondistance;
  211. }
  212. .online {
  213. color: #558020 !important;
  214. }
  215. .offline {
  216. color: #D43E2A !important;
  217. }
  218. .sidebar {
  219. z-index: 5;
  220. width: $sidebarwidth;
  221. box-sizing: border-box;
  222. position: absolute;
  223. top: $buttondistance;
  224. left: $buttondistance;
  225. margin-bottom: $buttondistance;
  226. transition: left 0.5s;
  227. }
  228. .sidebar.hidden {
  229. left: -$sidebarwidth - $buttondistance;
  230. }
  231. .sidebar .icon {
  232. padding: 0 0.25em;
  233. }
  234. .sidebar table {
  235. width: 100%;
  236. }
  237. .sidebar table th {
  238. text-align: left;
  239. }
  240. .sidebar td:not(:first-child), .sidebar th:not(:first-child) {
  241. text-align: right;
  242. }
  243. .sidebar a {
  244. color: #1566A9;
  245. }
  246. .bar {
  247. display: block;
  248. height: 1.4em;
  249. background: rgba(85, 128, 32, 0.5);
  250. position: relative;
  251. span {
  252. display: inline-block;
  253. height: 1.4em;
  254. background: rgba(85, 128, 32, 0.8);
  255. }
  256. label {
  257. font-weight: bold;
  258. white-space: nowrap;
  259. color: white;
  260. position: absolute;
  261. right: 0.5em;
  262. top: 0.1em;
  263. }
  264. }
  265. .proportion th {
  266. font-weight: normal !important;
  267. text-align: right !important;
  268. font-size: 0.95em;
  269. padding-right: 0.71em;
  270. }
  271. .proportion td {
  272. text-align: left !important;
  273. width: 100%;
  274. }
  275. .proportion td, .proportion th {
  276. white-space: nowrap;
  277. }
  278. .proportion span {
  279. display: inline-block;
  280. background: black;
  281. padding: 0.25em 0.5em;
  282. font-weight: bold;
  283. min-width: 1.5em;
  284. box-sizing: border-box;
  285. }
  286. @media screen and (max-width: 80em) {
  287. .sidebar {
  288. font-size: 0.8em;
  289. top: 0pt;
  290. left: 0pt;
  291. margin: 0pt;
  292. width: $sidebarwidthsmall;
  293. min-height: 100vh;
  294. @include shadow(2);
  295. background: white;
  296. .sidebarhandle {
  297. left: $sidebarwidthsmall + $buttondistance;
  298. }
  299. .container, .infobox {
  300. margin: 0;
  301. box-shadow: none;
  302. border-radius: 0;
  303. }
  304. }
  305. }
  306. @media screen and (max-width: $minscreenwidth) {
  307. .sidebarhandle {
  308. display: none;
  309. }
  310. .content {
  311. position: relative;
  312. width: auto;
  313. height: 60vh;
  314. }
  315. .sidebar {
  316. position: static;
  317. margin: 0em !important;
  318. width: auto;
  319. height: auto;
  320. min-height: 0;
  321. }
  322. .sidebar.hidden {
  323. width: auto;
  324. }
  325. }