main.scss 4.8 KB

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