nodeInfo.import.less 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. @colorMainnet: #7ed321;
  2. @colorTestnet: #00aafa;
  3. #react__node-info {
  4. position: relative;
  5. cursor: default;
  6. display: flex;
  7. flex-flow: row wrap;
  8. flex-shrink: 0;
  9. font-size: 0.9em;
  10. color: #827a7a;
  11. justify-content: center;
  12. }
  13. #node-info {
  14. padding: 22px;
  15. -webkit-app-region: no-drag;
  16. }
  17. #node-info__light {
  18. position: relative;
  19. z-index: 1;
  20. height: 16px;
  21. width: 16px;
  22. border-radius: 50%;
  23. transition: background-color ease-in-out 5s;
  24. }
  25. .sticky #node-info__light {
  26. box-shadow: inset rgba(0, 0, 0, 0.3) 0 1px 3px;
  27. }
  28. .node-info__subtitle {
  29. margin-left: 1px;
  30. font-size: 10px;
  31. color: #aaa;
  32. text-transform: uppercase;
  33. }
  34. .node-info__section {
  35. border-top: 1px solid rgba(255, 255, 255, 0.15);
  36. padding: 11px;
  37. }
  38. .node-info__section:first-of-type {
  39. border-top: none;
  40. }
  41. .node-info__network-title {
  42. font-weight: 300;
  43. font-size: 24px;
  44. // color: #24C33A;
  45. text-transform: capitalize;
  46. }
  47. .node-info__node-title {
  48. font-size: 18px;
  49. font-weight: 200;
  50. margin-bottom: 6px;
  51. strong {
  52. font-weight: 400;
  53. }
  54. }
  55. .node-info__pill {
  56. display: inline-block;
  57. margin-left: 5px;
  58. font-weight: 300;
  59. font-size: 11px;
  60. background-color: rgba(0, 0, 0, 0.4);
  61. border-radius: 8px;
  62. padding: 1px 6px 2px;
  63. vertical-align: middle;
  64. text-transform: none;
  65. }
  66. .node-info__submenu-container {
  67. width: 220px;
  68. position: fixed;
  69. left: 90px;
  70. bottom: 0px;
  71. border-radius: 5px;
  72. z-index: 1000;
  73. cursor: default;
  74. transition: 150ms linear all, 1ms linear top;
  75. transition-delay: 200ms;
  76. transform: translateY(-11px);
  77. &::before {
  78. @tipSize: 8px;
  79. content: '';
  80. margin-left: -@tipSize;
  81. bottom: 0;
  82. margin-bottom: 12px;
  83. display: block;
  84. position: absolute;
  85. width: 0px;
  86. height: @tipSize * 2.25;
  87. border: 0px solid transparent;
  88. border-width: @tipSize;
  89. border-left: 0;
  90. border-right-color: rgba(0, 0, 0, 0.78);
  91. }
  92. #local-stats,
  93. #remote-stats {
  94. }
  95. section {
  96. background-color: rgba(0, 0, 0, 0.75);
  97. backdrop-filter: blur(2px);
  98. width: 100%;
  99. border-radius: 5px;
  100. color: #fff;
  101. position: relative;
  102. }
  103. progress {
  104. width: 100%;
  105. }
  106. }
  107. .row-icon {
  108. margin-bottom: 6px;
  109. margin-left: 3px;
  110. display: flex;
  111. align-items: center;
  112. font-size: 13px;
  113. .icon {
  114. display: inline-block;
  115. margin-right: 6px;
  116. }
  117. &:last-of-type {
  118. margin-bottom: 0;
  119. }
  120. }
  121. strong {
  122. font-weight: 500;
  123. }
  124. .orange {
  125. color: orange;
  126. }
  127. .red {
  128. color: #e81e1e;
  129. }
  130. .node-mainnet .node-info__node-title.local {
  131. color: @colorMainnet;
  132. }
  133. .node-testnet .node-info__node-title.local {
  134. color: @colorTestnet;
  135. }
  136. progress[value]::-webkit-progress-bar {
  137. background-color: #eee;
  138. border-radius: 2px;
  139. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5) inset;
  140. background: rgba(255, 255, 255, 0.1);
  141. }
  142. .node-mainnet progress[value]::-webkit-progress-value {
  143. background-image: linear-gradient(left, transparent, @colorMainnet);
  144. background: @colorMainnet;
  145. background-size: cover;
  146. }
  147. .node-testnet progress[value]::-webkit-progress-value {
  148. background-image: linear-gradient(left, transparent, @colorTestnet);
  149. background-size: cover;
  150. }
  151. .pulse-light__orange {
  152. animation: beaconOrange ease-in-out;
  153. animation-duration: 2s;
  154. }
  155. @keyframes beaconOrange {
  156. 0% {
  157. -moz-box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.4);
  158. box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.4);
  159. }
  160. 70% {
  161. -moz-box-shadow: 0 0 0 10px rgba(255, 165, 0, 0);
  162. box-shadow: 0 0 0 10px rgba(255, 165, 0, 0);
  163. }
  164. 100% {
  165. -moz-box-shadow: 0 0 0 0 rgba(255, 165, 0, 0);
  166. box-shadow: 0 0 0 0 rgba(255, 165, 0, 0);
  167. }
  168. }
  169. .pulse-light__green {
  170. animation: beaconGreen ease-in-out;
  171. animation-duration: 2s;
  172. }
  173. @keyframes beaconGreen {
  174. 0% {
  175. -moz-box-shadow: 0 0 0 0 rgba(36, 195, 58, 0.4);
  176. box-shadow: 0 0 0 0 rgba(36, 195, 58, 0.4);
  177. }
  178. 70% {
  179. -moz-box-shadow: 0 0 0 10px rgba(36, 195, 58, 0);
  180. box-shadow: 0 0 0 10px rgba(36, 195, 58, 0);
  181. }
  182. 100% {
  183. -moz-box-shadow: 0 0 0 0 rgba(36, 195, 58, 0);
  184. box-shadow: 0 0 0 0 rgba(36, 195, 58, 0);
  185. }
  186. }