cus.scss 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. :root {
  2. // 默认
  3. --cus-text-color-1: #303133;
  4. --cus-text-color-2: #606266;
  5. --cus-text-color-3: #909399;
  6. --cus-text-color-4: #C0C4CC;
  7. --el-color-primary: var(--cus-main-color) !important;
  8. // 主题自定义
  9. --cus-main-color: #2E81FF;
  10. --cus-main-color-rgb: 46, 129, 255;
  11. --cus-main-color-hex-2: #273A58;
  12. }
  13. .__hover {
  14. &:hover {
  15. opacity: 0.75;
  16. cursor: pointer;
  17. }
  18. }
  19. .__disabled {
  20. &:hover {
  21. opacity: 0.75;
  22. cursor: not-allowed;
  23. }
  24. }
  25. .__text-ellipsis {
  26. white-space: nowrap;
  27. overflow: hidden;
  28. text-overflow: ellipsis;
  29. word-break: break-all;
  30. &.el-link {
  31. max-width: 100%;
  32. .el-link__inner {
  33. display: unset;
  34. white-space: nowrap;
  35. overflow: hidden;
  36. text-overflow: ellipsis;
  37. word-break: break-all;
  38. }
  39. }
  40. }
  41. .__tooltip {
  42. position: relative;
  43. background-color: #f9f9f9;
  44. padding: 10px;
  45. border-radius: 5px;
  46. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  47. white-space: nowrap;
  48. font-size: 12px;
  49. color: #333333;
  50. $afterWidth: 16px;
  51. $afterHeight: 8px;
  52. &:before {
  53. content: '';
  54. position: absolute;
  55. background-color: #f9f9f9;
  56. bottom: -$afterHeight;
  57. width: $afterWidth;
  58. height: $afterHeight;
  59. left: calc((100% - #{$afterWidth}) / 2);
  60. clip-path: polygon(0 0, 100% 0, 50% 100%);
  61. }
  62. &:after {
  63. content: '';
  64. position: absolute;
  65. background-color: rgba(0, 0, 0, 0.1);
  66. bottom: -$afterHeight - 1px;
  67. width: $afterWidth + 2px;
  68. height: $afterHeight + 1px;
  69. left: calc((100% - #{$afterWidth} - 2px) / 2);
  70. clip-path: polygon(0 0, 100% 0, 50% 100%);
  71. filter: blur(2px);
  72. z-index: -1;
  73. }
  74. }
  75. .__cus-dialog {
  76. &.__cus-dialog-auto-height {
  77. .el-overlay-dialog {
  78. .el-dialog {
  79. max-height: var(--cus-dialog_max-height);
  80. min-height: var(--cus-dialog_min-height);
  81. height: unset;
  82. }
  83. }
  84. }
  85. &.__cus-dialog-hidden-style {
  86. .el-dialog__header {
  87. display: none;
  88. }
  89. .__cus-dialog-foot {
  90. display: none !important;
  91. }
  92. }
  93. .el-overlay-dialog {
  94. .el-dialog {
  95. padding: 0;
  96. height: var(--cus-dialog_height);
  97. $borderRadius: 8px;
  98. border-radius: $borderRadius;
  99. display: flex;
  100. flex-direction: column;
  101. .el-dialog__header {
  102. padding: 0;
  103. margin: 0;
  104. ._cus-dialog-head {
  105. height: 50px;
  106. width: 100%;
  107. background-color: var(--cus-main-color);
  108. display: flex;
  109. align-items: center;
  110. border-radius: $borderRadius $borderRadius 0 0 ;
  111. font-size: 18px;
  112. font-family: PingFang SC-Medium, PingFang SC;
  113. font-weight: 500;
  114. color: #ffffff;
  115. padding: 0 20px 0 16px;
  116. box-sizing: border-box;
  117. .__cdh-title {}
  118. .__cdh-slot {}
  119. .__cdh-close {
  120. margin-left: auto;
  121. }
  122. }
  123. }
  124. .el-dialog__body {
  125. padding: 0;
  126. height: calc(100% - 50px);
  127. width: 100%;
  128. display: flex;
  129. overflow-y: hidden;
  130. flex: 1;
  131. .__cus-dialog-main {
  132. width: 100%;
  133. display: flex;
  134. flex-direction: column;
  135. .__cus-dialog-content {
  136. flex: 1;
  137. overflow-y: auto;
  138. }
  139. .__cus-dialog-foot {
  140. width: 100%;
  141. display: flex;
  142. align-items: center;
  143. box-sizing: border-box;
  144. >div {
  145. margin-right: 10px;
  146. height: 28px;
  147. border-radius: 4px;
  148. padding: 0 14px;
  149. line-height: 1;
  150. font-size: 14px;
  151. font-family: Microsoft YaHei;
  152. font-weight: 400;
  153. display: flex;
  154. align-items: center;
  155. justify-content: center;
  156. box-sizing: border-box;
  157. &:last-child {
  158. margin-right: 0;
  159. }
  160. }
  161. .__cus-dialog-foot_submit {
  162. background: var(--cus-main-color);
  163. color: #FFFFFF;
  164. }
  165. .__cus-dialog-foot_cancel {
  166. background: #F8F8F8;
  167. border: 1px solid #E4E4E4;
  168. color: var(--cus-text-color-3);
  169. }
  170. }
  171. &.isFull {
  172. overflow-y: auto;
  173. .__cus-dialog-content {
  174. overflow-y: unset;
  175. }
  176. }
  177. }
  178. }
  179. }
  180. }
  181. }
  182. .__check {
  183. display: flex;
  184. align-items: center;
  185. position: relative;
  186. &:hover {
  187. opacity: 0.75;
  188. cursor: pointer;
  189. }
  190. &:before {
  191. content: '';
  192. width: 16px;
  193. height: 16px;
  194. box-sizing: border-box;
  195. border: 1px solid #d3d3d3;
  196. border-radius: 2px;
  197. cursor: pointer;
  198. margin-right: 4px;
  199. }
  200. &.active {
  201. &:before {
  202. background-color: var(--cus-main-color);
  203. border-color: var(--cus-main-color);
  204. content: '✔';
  205. color: #FFFFFF;
  206. display: flex;
  207. align-items: center;
  208. justify-content: center;
  209. }
  210. }
  211. }
  212. .__cus-manage_content {
  213. width: calc(100% - 48px);
  214. height: calc(100% - 48px);
  215. margin: 24px;
  216. background-color: #ffffff;
  217. border-radius: 0 8px 8px 8px;
  218. padding: 16px;
  219. display: flex;
  220. flex-direction: column;
  221. overflow: hidden;
  222. .__cus-manage_content-title {
  223. height: 42px;
  224. display: flex;
  225. align-items: center;
  226. line-height: 1;
  227. font-weight: bold;
  228. font-size: 16px;
  229. color: var(--cus-text-color-1);
  230. .svg-icon {
  231. margin-right: 6px;
  232. }
  233. }
  234. .__cus-manage_content-filters {
  235. height: 40px;
  236. width: 100%;
  237. .el-button {
  238. margin-left: 10px;
  239. }
  240. }
  241. .__cus-manage_content-main {
  242. flex: 1;
  243. overflow: hidden;
  244. }
  245. }
  246. .__cus-popover {
  247. max-width: 60% !important;
  248. width: auto !important;
  249. }
  250. .__cus-dialog-form {
  251. padding: 20px;
  252. }
  253. .el-button {
  254. &:hover {
  255. opacity: 0.75;
  256. background-color: #ffffff !important;
  257. border-color: var(--cus-main-color) !important;
  258. }
  259. &.el-button--primary {
  260. &:hover {
  261. background-color: var(--cus-main-color) !important;
  262. border-color: var(--cus-main-color) !important;
  263. }
  264. }
  265. }
  266. em {
  267. color: red;
  268. }