edit-formula.scss 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. .el-overlay .el-drawer.hc-project-list-edit-formula-drawer {
  2. background-color: #F1F5F8;
  3. .hc-project-list-edit-formula-card {
  4. position: relative;
  5. }
  6. .border-dashed-card {
  7. border: 1px dashed #bbbbbb;
  8. border-radius: 6px;
  9. padding: 8px 12px;
  10. }
  11. .hc-formula-card-box {
  12. .retain {
  13. padding-right: 12px;
  14. border-right: 1px dashed #bbbbbb;
  15. }
  16. .range {
  17. position: relative;
  18. padding: 0 12px;
  19. border-right: 1px dashed #bbbbbb;
  20. }
  21. .menu {
  22. position: relative;
  23. padding: 0 12px;
  24. border-right: 1px dashed #bbbbbb;
  25. .el-menu {
  26. --el-menu-text-color: #838383;
  27. --el-menu-item-height: 40px;
  28. --el-menu-horizontal-height: 40px;
  29. --el-menu-base-level-padding: 14px;
  30. border-bottom: 0;
  31. }
  32. .el-menu--horizontal>.el-sub-menu .el-sub-menu__title,
  33. .el-menu--horizontal>.el-sub-menu.is-active .el-sub-menu__title {
  34. border-bottom: 0;
  35. }
  36. }
  37. .hand {
  38. position: relative;
  39. padding-left: 12px;
  40. }
  41. }
  42. .hc-formula-card-math {
  43. position: relative;
  44. .body {
  45. padding: 24px 0;
  46. .element-class {
  47. cursor: pointer;
  48. padding: 0 3px;
  49. user-select: none;
  50. &.is-cur {
  51. color: #f0720a;
  52. }
  53. }
  54. }
  55. }
  56. .hc-formula-reset-fun {
  57. position: relative;
  58. .hc-div-new-card-box.reset-fun-left-card,
  59. .hc-div-new-card-box.reset-fun-right-card {
  60. border: 1px dashed #bbbbbb;
  61. border-radius: 6px;
  62. .el-card.hc-card-box.hc-new-card-box {
  63. --el-card-border-radius: 6px;
  64. --el-card-bg-color: transparent;
  65. box-shadow: none;
  66. }
  67. }
  68. .hc-div-new-card-box.reset-fun-left-card .el-scrollbar__bar.is-vertical {
  69. right: -8px;
  70. }
  71. .hc-div-new-card-box.reset-fun-right-card .body {
  72. position: relative;
  73. .tag-box {
  74. position: relative;
  75. padding-bottom: 4px;
  76. height: 40%;
  77. .el-button {
  78. margin-right: 10px;
  79. margin-bottom: 10px;
  80. }
  81. .el-button + .el-button {
  82. margin-left: 0;
  83. }
  84. }
  85. .action-box {
  86. position: relative;
  87. height: 36px;
  88. padding: 0 6px;
  89. background: #f5f5f5;
  90. border: 1px solid #e9e9e9;
  91. .left, .right {
  92. position: relative;
  93. }
  94. .btn {
  95. position: relative;
  96. cursor: pointer;
  97. color: #409EFF;
  98. padding: 1px 6px;
  99. border-radius: 2px;
  100. height: 22px;
  101. transition: color .2s, background-color .2s;
  102. .text {
  103. font-size: 14px;
  104. }
  105. .symbol {
  106. font-size: 12px;
  107. }
  108. i {
  109. display: inline-block;
  110. font-size: 20px;
  111. }
  112. &:hover {
  113. color: #007dfd;
  114. background: #dadadb;
  115. }
  116. }
  117. }
  118. .input-box {
  119. position: relative;
  120. height: calc((100% - 40% ) - 36px);
  121. padding-top: 8px;
  122. font-size: 14px;
  123. .element-class {
  124. cursor: pointer;
  125. padding: 0 3px;
  126. user-select: none;
  127. font-size: 14px;
  128. &.is-Operator, &.is-Brackets {
  129. font-size: 16px;
  130. }
  131. &.is-cur {
  132. color: #f0720a;
  133. }
  134. }
  135. }
  136. }
  137. }
  138. //没有滚动条,拉满
  139. .hc-project-list-edit-formula-card.is-no-scroll {
  140. position: relative;
  141. display: flex;
  142. flex-direction: column;
  143. height: 100%;
  144. .hc-formula-card-box {
  145. flex-shrink: 0;
  146. }
  147. .hc-formula-card-math {
  148. flex-shrink: 0;
  149. }
  150. .hc-formula-reset-fun {
  151. flex: 1;
  152. }
  153. }
  154. //函数公式运算执行溯源
  155. .hc-formula-card-project {
  156. position: relative;
  157. }
  158. //允许偏差值范围
  159. .hc-formula-card-range {
  160. position: relative;
  161. }
  162. }