main.scss 4.8 KB

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