Widget.less 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  1. @import "~assets/less/variable";
  2. .widget {
  3. height: 120px;
  4. background-color: @body-background;
  5. margin-bottom: 20px;
  6. border-radius: 2px;
  7. box-shadow: @block-box-shadow;
  8. transform: translate3d(0, 0, 0);
  9. transition: all 200ms linear;
  10. position: relative;
  11. cursor: pointer;
  12. &:hover {
  13. box-shadow: @block-active-box-shadow;
  14. transform: translate3d(0, -5px, 0);
  15. .pic {
  16. transform: translate(0, -5px);
  17. }
  18. }
  19. &.selector {
  20. border: 1px solid @border-color-base;
  21. border-radius: 4px;
  22. box-shadow: none;
  23. &:hover {
  24. transform: none;
  25. }
  26. &.selected {
  27. border-color: @primary-color;
  28. }
  29. .checkmark {
  30. border-top: 12px solid @primary-color;
  31. border-bottom: 12px solid transparent;
  32. border-right: 20px solid @primary-color;
  33. border-left: 20px solid transparent;
  34. position: absolute;
  35. top: 0;
  36. right: 0;
  37. i {
  38. color: @white;
  39. position: absolute;
  40. top: -11px;
  41. right: -18px;
  42. }
  43. }
  44. }
  45. .title {
  46. padding: 12px 40px 0 12px;
  47. white-space: nowrap;
  48. text-overflow: ellipsis;
  49. overflow: hidden;
  50. }
  51. .content {
  52. padding: 8px 12px;
  53. color: @light-text-color;
  54. white-space: nowrap;
  55. text-overflow: ellipsis;
  56. overflow: hidden;
  57. }
  58. .pic {
  59. font-size: 36px;
  60. font-weight: normal;
  61. line-height: 1;
  62. color: @primary-color;
  63. position: absolute;
  64. bottom: 8px;
  65. right: 12px;
  66. opacity: .8;
  67. transition: transform 300ms linear;
  68. }
  69. .delete, .copy {
  70. position: absolute;
  71. top: 8px;
  72. font-size: 15px;
  73. opacity: .5;
  74. transition: transform 200ms ease;
  75. &:hover {
  76. opacity: 1;
  77. transform: scale(1.1, 1.1);
  78. }
  79. }
  80. .delete {
  81. right: 8px;
  82. }
  83. .copy {
  84. right: 32px;
  85. }
  86. }
  87. // .workbench {
  88. // margin: -16px;
  89. // flex: 1;
  90. // display: flex;
  91. // flex-direction: row;
  92. // min-height: 0; /* firefox flex overflow issue */
  93. // .formView {
  94. // padding: 16px;
  95. // border-right: 1px solid @border-color-base;
  96. // overflow-y: auto;
  97. // flex: 0 0 320px;
  98. // .scCol {
  99. // padding: 30px 0 20px;
  100. // display: flex;
  101. // flex-direction: row;
  102. // justify-content: center;
  103. // }
  104. // }
  105. // .splitView {
  106. // padding: 16px;
  107. // flex: 1;
  108. // overflow-x: auto;
  109. // display: flex;
  110. // flex-direction: column;
  111. // .splitViewBody {
  112. // flex: 1;
  113. // display: flex;
  114. // flex-direction: column;
  115. // position: relative;
  116. // }
  117. // .splitViewFooter {
  118. // flex-shrink: 0;
  119. // display: flex;
  120. // flex-direction: row;
  121. // justify-content: space-between;
  122. // .sqlInput {
  123. // flex-basis: 50%;
  124. // .runSql {
  125. // cursor: pointer;
  126. // }
  127. // }
  128. // }
  129. // }
  130. // }
  131. .formUnit {
  132. .unitTitle {
  133. padding: 10px 0;
  134. }
  135. .unitContent {
  136. padding: 10px;
  137. border: 1px solid @border-color-base;
  138. border-radius: 4px;
  139. }
  140. .buttonCol {
  141. padding: 10px 0;
  142. }
  143. }
  144. // .containerEmpty {
  145. // flex: 1;
  146. // display: flex;
  147. // flex-direction: column;
  148. // justify-content: center;
  149. // align-items: center;
  150. // }
  151. // .tableContainer {
  152. // flex: 1;
  153. // display: flex;
  154. // flex-direction: column;
  155. // }
  156. // .widgetChart {
  157. // flex: 1;
  158. // display: flex;
  159. // flex-direction: column;
  160. // position: relative;
  161. // overflow: hidden;
  162. // }
  163. // .tableChart {
  164. // width: 100%;
  165. // height: 100%;
  166. // }
  167. // .commonChart {
  168. // flex: 1;
  169. // display: flex;
  170. // flex-direction: column;
  171. // }
  172. .chartSelectOption {
  173. position: absolute;
  174. top: 6px;
  175. right: 8px;
  176. color: @primary-color;
  177. }
  178. .chartSelectXAxisOption {
  179. position: absolute;
  180. top: 0px;
  181. right: 20px;
  182. color: @primary-color;
  183. }
  184. .addCol {
  185. padding-bottom: 10px;
  186. text-align: right;
  187. }
  188. .computedConfigForm {
  189. display: flex;
  190. flex-direction: column;
  191. .body {
  192. flex:4;
  193. display: flex;
  194. .fields {
  195. width: 604px;
  196. flex: 0 0 604px;
  197. padding-right: 8px;
  198. margin-right: 8px;
  199. display: flex;
  200. flex-direction: column;
  201. .fieldName {
  202. :global(.ant-input){
  203. border-radius: 0;
  204. }
  205. :global(.ant-select-selection){
  206. border-radius: 0;
  207. }
  208. :global(.ant-form-item) {
  209. margin-bottom: 0;
  210. }
  211. flex-shrink: 0;
  212. }
  213. .tmplWrapper {
  214. height:100%;
  215. overflow-y: auto;
  216. flex: 4 1 auto;
  217. max-height: 196px;
  218. :global(.cm-s-3024-day ) {
  219. :global(span.cm-variable-2) {
  220. color: #2DACFC;
  221. }
  222. }
  223. }
  224. }
  225. .options{
  226. flex-shrink: 0;
  227. margin-top: 3px;
  228. .cardContainer { // ant-tabs .ant-tabs-left-content
  229. :global(.ant-tabs) {
  230. :global(.ant-tabs-right-content) {
  231. padding-right: 0;
  232. }
  233. }
  234. }
  235. }
  236. }
  237. .wrapperForm {
  238. margin: 16px 0;
  239. }
  240. .footer{
  241. .foot{
  242. text-align: right;
  243. margin-top: 24px;
  244. margin-right: -12px;
  245. button{
  246. margin-right: 16px;
  247. }
  248. }
  249. }
  250. :global(.ant-form-item) {
  251. margin-bottom: 4px;
  252. }
  253. :global(.ant-form-item-label) {
  254. line-height: 1em;
  255. }
  256. :global(.ant-form-item-label label) {
  257. color: @disabled-text-color;
  258. font-size: 12px;
  259. font-weight: bold;
  260. }
  261. :global(.ant-form-item-required:before) {
  262. margin-right: 2px;
  263. vertical-align: middle;
  264. }
  265. :global(.ant-form-item-control) {
  266. line-height: 32px;
  267. }
  268. }
  269. .mt20{
  270. margin-top: 20px;
  271. }
  272. .paginationPosition {
  273. float: right;
  274. }
  275. .searchSelect {
  276. width: 100%;
  277. }
  278. .searchCol, .addCol {
  279. padding: 0 4px;
  280. text-align: right;
  281. margin-bottom: 8px;
  282. }
  283. @media (max-width: 768px) {
  284. .searchCol {
  285. margin-bottom: 8px;
  286. }
  287. }
  288. .searchRow {
  289. margin-bottom: 16px;
  290. }
  291. .tmplWrapper{
  292. margin-top: -3px;
  293. // border: 1px solid #d9d9d9;
  294. // padding: 4px;
  295. }
  296. .menuWrapper {
  297. :global(.ant-input){
  298. border-radius: 0;
  299. }
  300. input{
  301. width: 260px;
  302. margin-right:1px;
  303. }
  304. ul {
  305. width: 260px;
  306. border: 1px solid #d9d9d9;
  307. border-top: none;
  308. border-right: none;
  309. height: 196px;
  310. max-height: 196px;
  311. overflow-y: auto;
  312. li {
  313. max-height:24px;
  314. line-height: 24px;
  315. a{
  316. max-height:24px;
  317. line-height: 24px;
  318. }
  319. }
  320. }
  321. }