Dashboard.less 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602
  1. @import "~assets/less/variable";
  2. .grid {
  3. margin-top: -16px;
  4. }
  5. .unit {
  6. height: 120px;
  7. background-color: @body-background;
  8. background-repeat: no-repeat;
  9. background-size: 100%;
  10. background-position: center center;
  11. margin-bottom: 20px;
  12. border-radius: 2px;
  13. box-shadow: @block-box-shadow;
  14. transform: translate3d(0, 0, 0);
  15. transition: transform 200ms linear,
  16. box-shadow 200ms linear,
  17. background-size 500ms linear;
  18. position: relative;
  19. cursor: pointer;
  20. &:hover {
  21. background-size: 110%;
  22. box-shadow: @block-active-box-shadow;
  23. transform: translate3d(0, -5px, 0);
  24. }
  25. &.editing {
  26. opacity: .3;
  27. }
  28. header {
  29. background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 100%);
  30. border-radius: 2px 2px 0 0;
  31. }
  32. .title {
  33. padding: 12px 40px 0 12px;
  34. color: @white;
  35. .ellipsis;
  36. }
  37. .content {
  38. padding: 8px 12px 24px;
  39. color: @white;
  40. .ellipsis;
  41. }
  42. .icon {
  43. position: absolute;
  44. top: 8px;
  45. opacity: .7;
  46. color: @white;
  47. transition: transform 200ms ease;
  48. &:hover {
  49. opacity: 1;
  50. transform: scale(1.1, 1.1);
  51. }
  52. }
  53. .edit {
  54. right: 28px;
  55. .icon;
  56. }
  57. .delete {
  58. right: 8px;
  59. .icon;
  60. }
  61. }
  62. .gridItem {
  63. width: 100%;
  64. height: 100%;
  65. display: flex;
  66. flex-direction: column;
  67. box-shadow: @block-box-shadow;
  68. transition: all 350ms ease;
  69. position: relative;
  70. .header {
  71. width: 100%;
  72. display: flex;
  73. flex-direction: row;
  74. .title {
  75. min-width: 0;
  76. height: 40px;
  77. padding: 0 2px;
  78. line-height: 40px;
  79. display: flex;
  80. flex-direction: row;
  81. align-items: center;
  82. cursor: move;
  83. flex: 1 1 auto;
  84. h4 {
  85. .ellipsis;
  86. cursor: default;
  87. margin-left: 8px;
  88. }
  89. i {
  90. font-size: 16px;
  91. margin-left: 8px;
  92. cursor: pointer;
  93. &:last-child {
  94. margin-right: 8px;
  95. }
  96. }
  97. .activated {
  98. color: @primary-color;
  99. }
  100. .error {
  101. color: @error-color;
  102. }
  103. }
  104. .tools {
  105. display: none;
  106. height: 40px;
  107. padding-right: 10px;
  108. flex-shrink: 0;
  109. i {
  110. font-size: 16px;
  111. line-height: 40px;
  112. margin-left: 8px;
  113. display: inline-block;
  114. cursor: pointer;
  115. transition: transform 200ms ease;
  116. &:hover {
  117. transform: scale(1.1, 1.1);
  118. }
  119. }
  120. }
  121. }
  122. &:hover {
  123. .header {
  124. .tools {
  125. display: block;
  126. }
  127. }
  128. }
  129. .trigger {
  130. position: absolute;
  131. top: 28px;
  132. left: 10px;
  133. i{
  134. font-size: 14px;
  135. color: @rich-text;
  136. }
  137. }
  138. &.interact {
  139. box-shadow: 0 0 3px @primary-color,
  140. 0 0 8px @primary-color;
  141. &:hover {
  142. .header {
  143. .tools {
  144. display: none;
  145. }
  146. }
  147. .offInteract {
  148. display: flex;
  149. }
  150. }
  151. }
  152. .offInteract {
  153. background-color: fade(@white, 50);
  154. position: absolute;
  155. top: 0;
  156. right: 0;
  157. left: 0;
  158. bottom: 0;
  159. flex-direction: row;
  160. justify-content: center;
  161. align-items: center;
  162. z-index: 1;
  163. display: none;
  164. cursor: pointer;
  165. i {
  166. margin-right: 4px;
  167. color: @primary-color;
  168. font-size: 24px;
  169. font-weight: bold;
  170. }
  171. }
  172. .block {
  173. flex: 1;
  174. min-height: 0;
  175. padding: 16px;
  176. display: flex;
  177. flex-direction: column;
  178. }
  179. }
  180. .widgetInfoContent {
  181. max-width: 480px;
  182. :global {
  183. .ant-popover-title {
  184. font-weight: bold;
  185. color: @primary-color;
  186. }
  187. .ant-popover-inner-content {
  188. max-height: 360px;
  189. overflow-y: auto;
  190. }
  191. }
  192. }
  193. .gridBottom {
  194. height: 100px;
  195. }
  196. .dimension {
  197. position: relative;
  198. border-right: 2px solid transparent !important;
  199. &:after {
  200. background-image: linear-gradient(180deg, #1A237E, #4FC3F7, #FFB74D, #E65100);
  201. position: absolute;
  202. width: 2px;
  203. top: 0;
  204. right: 0;
  205. bottom: 0;
  206. content: '';
  207. }
  208. }
  209. .shareTitle {
  210. padding: 0 50px;
  211. text-align: center;
  212. }
  213. .shareDownloadListToggle {
  214. width: 50px;
  215. height: 32px;
  216. position: absolute;
  217. top: 0;
  218. right: 0;
  219. display: flex;
  220. flex-direction: column;
  221. justify-content: center;
  222. align-items: center;
  223. i {
  224. font-size: 24px;
  225. cursor: pointer;
  226. }
  227. }
  228. .shareContentEmpty {
  229. position: absolute;
  230. top: 0;
  231. bottom: 0;
  232. left: 0;
  233. right: 0;
  234. display: flex;
  235. flex-direction: column;
  236. justify-content: center;
  237. align-items: center;
  238. }
  239. .menuItem {
  240. padding: 0;
  241. .menuText {
  242. padding: 7px 8px;
  243. display: block;
  244. }
  245. }
  246. @media (max-width: 1024px) {
  247. .gridItem {
  248. .header {
  249. .tools {
  250. opacity: 1;
  251. }
  252. }
  253. }
  254. }
  255. @media (max-width: 768px) {
  256. .gridItem {
  257. .header {
  258. .tools {
  259. .fullScreen {
  260. display: none;
  261. }
  262. }
  263. }
  264. }
  265. }
  266. .searchRow {
  267. margin: -10px 0 -10px;
  268. }
  269. // .popHide, .popShow {
  270. // background-color: @white;
  271. // position: absolute;
  272. // width: 8%;
  273. // top: 29px;
  274. // z-index: 1;
  275. // border: 1px solid transparent;
  276. // box-shadow: rgba(0,0,0,0.2) 0 2px 8px;
  277. // }
  278. // .popHide {
  279. // display: none;
  280. // }
  281. // .popShow {
  282. // display: block;
  283. // }
  284. // .selectBtn, .selectBtn:hover {
  285. // color: @rich-text !important;
  286. // }
  287. // .selectItem {
  288. // padding: 4px;
  289. // cursor: pointer;
  290. // text-align: center;
  291. // &:hover {
  292. // color: @blue;
  293. // }
  294. // }
  295. // .selectIcon {
  296. // font-size: 17px;
  297. // }
  298. // .size {
  299. // width: 78px !important;
  300. // }
  301. .more {
  302. cursor: pointer;
  303. font-weight: 900;
  304. -moz-transform:rotate(-90deg);
  305. -webkit-transform:rotate(-90deg);
  306. filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
  307. &:before {
  308. padding: 0 8px;
  309. }
  310. }
  311. .more:before, .swap:before, .itemAction:before {
  312. -moz-transform:rotate(-90deg);
  313. -webkit-transform:rotate(-90deg);
  314. filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
  315. }
  316. .portalTreeSearch {
  317. overflow-x: auto;
  318. text-align: center;
  319. ul {
  320. max-height: 410px;
  321. overflow-y: auto;
  322. li {
  323. cursor: pointer;
  324. line-height: 26px;
  325. }
  326. }
  327. }
  328. .menu > li {
  329. cursor: pointer;
  330. line-height: 26px;
  331. }
  332. .portal {
  333. width: 100%;
  334. height: 100%;
  335. display: flex;
  336. flex-direction: column;
  337. .portalHeader {
  338. flex-shrink: 0;
  339. font-size: 12px;
  340. }
  341. .portalBody {
  342. flex: 1;
  343. display: flex;
  344. flex-direction: row;
  345. .portalTree {
  346. flex-shrink: 0;
  347. // width: 190px;
  348. margin-bottom: 16px;
  349. overflow: hidden;
  350. display: flex;
  351. flex-direction: column;
  352. .loadingTreeMsg {
  353. padding-left: 16px;
  354. }
  355. .portalRow {
  356. flex-shrink: 0;
  357. // display: flex;
  358. // flex-direction: row;
  359. align-items: center;
  360. padding: 16px;
  361. .search, .plus {
  362. cursor: pointer;
  363. margin-right: 8px;
  364. }
  365. .search:before, .plus:before {
  366. padding: 0 8px;
  367. }
  368. }
  369. .portalAction {
  370. float: right;
  371. }
  372. .portalTreeNode {
  373. flex: 1;
  374. overflow-y: auto;
  375. border-top: 1px solid #d9d9d9;
  376. padding-left: 8px;
  377. margin-bottom: 34px;
  378. }
  379. }
  380. .gridClass {
  381. flex: 1;
  382. min-width: 0;
  383. min-height: 0;
  384. border-left: 1px solid #d9d9d9;
  385. }
  386. }
  387. }
  388. .noDashboard {
  389. top: 32%;
  390. left: 50%;
  391. position: fixed;
  392. img {
  393. cursor: pointer;
  394. }
  395. p {
  396. text-align: center;
  397. color: rgba(10,18,32,.46);
  398. }
  399. }
  400. .portalTreeItem {
  401. .dashboardTitle {
  402. display: inline-block;
  403. margin-bottom: -4px;
  404. font-weight: 400;
  405. font-size: 14px;
  406. font-family: 'PingFang SC','Helvetica Neue',Helvetica,STHeitiSC-Light,WOL_SB,'Segoe UI Semibold','Segoe UI',Tahoma,Helvetica,sans-serif;
  407. .ellipsis;
  408. }
  409. .itemAction {
  410. opacity: 0;
  411. }
  412. &:hover {
  413. .itemAction {
  414. opacity: 1;
  415. cursor: pointer;
  416. font-weight: 900;
  417. margin-bottom: 1px;
  418. }
  419. }
  420. .itemName {
  421. margin-left: 8px;
  422. font-weight: 400;
  423. font-size: 14px;
  424. font-family: 'PingFang SC','Helvetica Neue',Helvetica,STHeitiSC-Light,WOL_SB,'Segoe UI Semibold','Segoe UI',Tahoma,Helvetica,sans-serif;
  425. }
  426. }
  427. .dataDrillPanel {
  428. position: absolute;
  429. color: rgba(0,0,0,.54);
  430. background: #fff;
  431. box-shadow: 0 0 6px 0 rgba(0,0,0,.1), 0 10px 12px 0 rgba(170,182,206,.36);
  432. }
  433. .dataDrillHistory {
  434. position: absolute;
  435. color: rgba(0,0,0,.4);
  436. left: 22px;
  437. bottom: 8px;
  438. span {
  439. cursor: pointer;
  440. &:hover {
  441. color: @rich-text;
  442. }
  443. }
  444. }
  445. .drillPathSetting {
  446. margin: 16px 0 0 0;
  447. .drillStyle {
  448. margin-bottom:16px;
  449. .label {
  450. margin-right: 24px;
  451. }
  452. }
  453. .path {
  454. display: flex;
  455. flex-wrap: nowrap;
  456. overflow-x: auto;
  457. .pathNodeWrap{
  458. .pathNode{
  459. width: 240px;
  460. display: flex;
  461. .pathBox {
  462. width: 140px;
  463. padding: 4px 8px 0 8px;
  464. flex: 0 0 auto;
  465. border: 1px solid #d9d9d9;
  466. border-radius: 4px;
  467. .delete{
  468. height: 8px;
  469. i {
  470. display: none;
  471. }
  472. }
  473. .title{
  474. text-align: center;
  475. font-size: 14px;
  476. margin-bottom: 8px;
  477. }
  478. &:hover{
  479. i {
  480. padding: 4px 0px;
  481. text-align: right;
  482. display: block;
  483. cursor: pointer;
  484. }
  485. }
  486. .errorMessage {
  487. margin: 0 0 4px 4px;
  488. font-weight: 500;
  489. color: red;
  490. }
  491. }
  492. .relation{
  493. width: 60px;
  494. margin-left: 20px;
  495. align-self: center;
  496. }
  497. }
  498. }
  499. .add{
  500. align-self: center;
  501. i {
  502. font-size: 14px;
  503. }
  504. }
  505. }
  506. .footer{
  507. text-align: right;
  508. button {
  509. margin-left: 20px;
  510. }
  511. }
  512. }
  513. .reportMode {
  514. display: flex;
  515. overflow: auto;
  516. flex: 1;
  517. .authSizeTag {
  518. display: flex;
  519. width: 100%;
  520. height: 100%;
  521. position: relative;
  522. background-color: #fff;
  523. }
  524. }