main.scss 5.1 KB

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