menu.import.less 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. .gradient-tip {
  2. content: '';
  3. display: block;
  4. width: 100%;
  5. height: @gridHeight * 0.75;
  6. left: 0px;
  7. position: absolute;
  8. pointer-events: none;
  9. }
  10. .sidePadding {
  11. padding-left: 11px;
  12. padding-right: 11px;
  13. }
  14. // OS-specific styles
  15. html.darwin aside.sidebar {
  16. top: @gridHeight;
  17. &::after {
  18. top: @gridHeight;
  19. }
  20. nav {
  21. margin-top: @gridHeight;
  22. }
  23. }
  24. aside.sidebar {
  25. display: flex;
  26. flex-flow: column nowrap;
  27. justify-content: space-between;
  28. -webkit-app-region: drag;
  29. z-index: 4;
  30. position: absolute;
  31. top: @gridHeight / 2;
  32. left: 0;
  33. bottom: 0;
  34. width: @widthSideBar;
  35. &::after {
  36. .gradient-tip();
  37. top: @gridHeight / 2;
  38. height: 8px;
  39. background-image: linear-gradient(
  40. to top,
  41. rgba(241, 241, 241, 0) 0%,
  42. rgba(241, 241, 241, 1) 100%
  43. );
  44. }
  45. nav {
  46. position: relative;
  47. margin-top: @gridHeight / 2;
  48. padding: 0 12px 0;
  49. overflow: hidden;
  50. min-height: 0;
  51. &:hover {
  52. overflow-y: auto;
  53. }
  54. > ul {
  55. margin: 6px 0;
  56. padding: 0;
  57. width: 54px;
  58. > li {
  59. overflow: hidden;
  60. margin-bottom: 14px;
  61. transition-delay: 200ms;
  62. -webkit-app-region: no-drag;
  63. // draggable LI
  64. &.ui-sortable-helper {
  65. transform: scale(1.1);
  66. .submenu-container {
  67. display: none;
  68. }
  69. }
  70. &:hover {
  71. .submenu-container {
  72. opacity: 1;
  73. visibility: visible;
  74. }
  75. }
  76. &.selected,
  77. &:active,
  78. &:hover,
  79. &:focus {
  80. button.main {
  81. opacity: 1;
  82. }
  83. }
  84. button.main {
  85. height: 55px;
  86. width: 54px;
  87. display: block;
  88. opacity: 0.6;
  89. transition: 100ms opacity linear;
  90. &:focus {
  91. outline: 0;
  92. border: none;
  93. }
  94. .icon-globe {
  95. font-size: 32px;
  96. text-align: center;
  97. display: block;
  98. background-color: #fff;
  99. padding-top: 10px;
  100. }
  101. img,
  102. .icon-globe {
  103. width: 54px;
  104. height: 54px;
  105. -webkit-mask-image: url('icons/mask-icon.svg');
  106. -webkit-mask-size: cover;
  107. }
  108. }
  109. }
  110. }
  111. .submenu-container {
  112. width: 185px;
  113. position: fixed;
  114. left: 90px;
  115. top: 120px;
  116. border-radius: 5px;
  117. z-index: 1000;
  118. visibility: hidden;
  119. opacity: 0;
  120. cursor: default;
  121. transition: 150ms linear all, 1ms linear top;
  122. transition-delay: 200ms;
  123. transform: translateY(-11px);
  124. // backdrop-filter: blur(0);
  125. &::before {
  126. @tipSize: 8px;
  127. content: '';
  128. margin-left: -@tipSize;
  129. margin-top: 19px + 11px;
  130. display: block;
  131. position: absolute;
  132. width: 0px;
  133. height: @tipSize * 2.25;
  134. border: 0px solid transparent;
  135. border-width: @tipSize;
  136. border-left: 0;
  137. border-right-color: rgba(0, 0, 0, 0.78);
  138. }
  139. button {
  140. &:active,
  141. &:focus {
  142. transform: none;
  143. border: none;
  144. }
  145. }
  146. section {
  147. padding: 8px 0 0;
  148. background-color: rgba(0, 0, 0, 0.78);
  149. // backdrop-filter: blur(5px);
  150. width: 100%;
  151. border-radius: 5px;
  152. color: #fff;
  153. position: relative;
  154. header {
  155. .sidePadding();
  156. padding-bottom: 11px;
  157. }
  158. span {
  159. font-weight: 400;
  160. }
  161. a,
  162. button {
  163. color: #fff;
  164. }
  165. .badge {
  166. font-size: 11px;
  167. }
  168. .remove-tab {
  169. color: #a6a6a6;
  170. position: absolute;
  171. right: 5px;
  172. top: 4px;
  173. width: 14px;
  174. &:hover {
  175. color: #fff;
  176. }
  177. }
  178. .accounts {
  179. margin-top: 11px;
  180. button {
  181. font-size: 12px;
  182. font-weight: 300;
  183. text-transform: uppercase;
  184. width: 100%;
  185. }
  186. .connect {
  187. background-color: #4c92e6;
  188. border-radius: 4px;
  189. padding: 3px 0;
  190. }
  191. .display {
  192. @identiconHeight: 17px;
  193. text-align: left;
  194. line-height: @identiconHeight;
  195. .dapp-identicon-container {
  196. float: right;
  197. height: @identiconHeight;
  198. }
  199. .dapp-identicon {
  200. margin-right: 0px;
  201. width: @identiconHeight;
  202. height: @identiconHeight;
  203. &:not(:last-child) {
  204. margin-right: 4px;
  205. }
  206. }
  207. }
  208. }
  209. }
  210. .sub-menu {
  211. margin: 6px 0;
  212. padding: 0;
  213. border-top: 1px solid rgba(255, 255, 255, 0.15);
  214. overflow-y: auto;
  215. overflow-x: hidden;
  216. padding-bottom: 0.1em;
  217. margin-top: 2px;
  218. margin-bottom: 0;
  219. li {
  220. opacity: 1;
  221. font-weight: normal;
  222. font-size: 14px;
  223. margin-bottom: 0;
  224. button {
  225. padding: 8px 0 6px;
  226. .sidePadding();
  227. box-sizing: border-box;
  228. width: 100%;
  229. text-align: left;
  230. background-color: rgba(255, 255, 255, 0);
  231. transition: 150ms linear background-color;
  232. margin: 5px 0;
  233. display: -webkit-box;
  234. -webkit-line-clamp: 2; // 2 lines max
  235. -webkit-box-orient: vertical;
  236. overflow: hidden;
  237. text-overflow: ellipsis;
  238. &:hover {
  239. background-color: rgba(255, 255, 255, 0.2);
  240. }
  241. .badge {
  242. display: block;
  243. opacity: 0.8;
  244. }
  245. }
  246. }
  247. }
  248. }
  249. }
  250. .node-info {
  251. position: relative;
  252. cursor: default;
  253. &::after {
  254. .gradient-tip();
  255. height: 20px;
  256. top: -(20px - 1);
  257. background-image: linear-gradient(
  258. to bottom,
  259. rgba(241, 241, 241, 0) 0%,
  260. rgba(241, 241, 241, 1) 100%
  261. );
  262. }
  263. display: flex;
  264. flex-flow: row wrap;
  265. flex-shrink: 0;
  266. padding: 8px;
  267. font-size: 0.9em;
  268. color: @colorTextSecondary;
  269. div,
  270. span {
  271. padding: @gridHeight / 2 1px;
  272. flex: 1;
  273. text-align: center;
  274. }
  275. i {
  276. display: block;
  277. margin-bottom: 2px;
  278. }
  279. progress {
  280. flex: 1 100%;
  281. }
  282. .mining-indicator {
  283. flex: 3;
  284. }
  285. .block-number {
  286. flex: 2;
  287. white-space: nowrap;
  288. }
  289. .test-chain {
  290. flex: 1 100%;
  291. padding: 1px 5px 2px;
  292. font-size: 90%;
  293. }
  294. .remote-indicator {
  295. flex: 3;
  296. font-size: 90%;
  297. background: #e2e2e2;
  298. border-radius: 3px;
  299. padding: 5px;
  300. }
  301. }
  302. }
  303. .app-blur aside.newsidebar nav::after {
  304. background-image: linear-gradient(
  305. to bottom,
  306. rgba(246, 246, 246, 0) 0%,
  307. rgba(246, 246, 246, 1) 100%
  308. );
  309. }