index.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. $prefix-cls: "#{$namespace}-print-editor";
  2. .#{$prefix-cls} {
  3. // 设计容器
  4. &-design {
  5. overflow: hidden;
  6. overflow: auto;
  7. :deep(.hiprint_rul_wrapper) {
  8. .h_img,
  9. .v_img {
  10. background-color: $color-white;
  11. }
  12. }
  13. }
  14. &__aliase-input {
  15. :deep(.el-input__inner) {
  16. color: $color-text-primary-text;
  17. }
  18. }
  19. &-layout-sider {
  20. background-color: var(--lj-color-gray-2);
  21. // 输入框样式调整
  22. :deep(.hiprint-option-item-field) {
  23. > input[type="number"],
  24. > input[type="text"],
  25. > select,
  26. > textarea,
  27. .minicolors > input[type="text"] {
  28. border-radius: $br-sm;
  29. background-color: $color-gray-1;
  30. display: inline-flex;
  31. flex-grow: 1;
  32. align-items: center;
  33. justify-content: center;
  34. padding: 1px 10px;
  35. background-color: var(--el-input-bg-color, var(--el-fill-color-blank));
  36. background-image: none;
  37. border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
  38. cursor: text;
  39. transition: var(--el-transition-box-shadow);
  40. transform: translateZ(0);
  41. box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
  42. --el-input-inner-height: calc(var(--el-input-height, 32px));
  43. appearance: none;
  44. -webkit-appearance: none;
  45. color: var(--el-input-text-color, var(--el-text-color-regular));
  46. font-size: inherit;
  47. height: var(--el-input-inner-height);
  48. outline: none;
  49. border: none;
  50. line-height: var(--el-input-inner-height);
  51. box-sizing: border-box;
  52. &::placeholder {
  53. color: $color-text-border;
  54. }
  55. &:focus,
  56. &:focus-visible {
  57. box-shadow: 0 0 0 1px $color-primary-500 inset !important;
  58. }
  59. }
  60. > textarea {
  61. --el-input-inner-height: calc(var(--el-input-height, 32px) - 14px);
  62. line-height: var(--el-input-inner-height);
  63. }
  64. .minicolors {
  65. > input[type="text"] {
  66. padding-left: 23px !important;
  67. }
  68. .minicolors-swatch {
  69. top: 0;
  70. bottom: 0;
  71. margin: auto;
  72. }
  73. }
  74. }
  75. :deep(.prop-tabs) {
  76. background-color: unset;
  77. .hiprint-option-items,
  78. .prop-tab-items .prop-tab-item {
  79. background-color: unset;
  80. }
  81. .prop-tab-items li.active {
  82. border-color: $color-primary-500;
  83. color: $color-primary-500;
  84. }
  85. }
  86. :deep(.hiprint-option-item-settingBtn) {
  87. background-color: $color-primary-500;
  88. cursor: pointer;
  89. width: 45%;
  90. border-radius: $br-sm;
  91. height: 24pt;
  92. &.hiprint-option-item-deleteBtn {
  93. background-color: $color-dust-red-5;
  94. }
  95. }
  96. }
  97. &__control {
  98. background-color: $color-gray-2;
  99. border-radius: $br-md;
  100. }
  101. }
  102. :deep(.hiprint-printPanel) {
  103. // 修改 页眉/页脚线 样式
  104. .hiprint-headerLine,
  105. .hiprint-footerLine {
  106. border-top: 1px dashed red !important;
  107. }
  108. .hiprint-headerLine:hover,
  109. .hiprint-footerLine:hover {
  110. border-top: 3px dashed red !important;
  111. }
  112. .hiprint-headerLine:hover:before {
  113. content: "页眉线";
  114. left: calc(50% - 18px);
  115. position: relative;
  116. background: #ffff;
  117. top: -12px;
  118. color: red;
  119. font-size: 12px;
  120. }
  121. .hiprint-footerLine:hover:before {
  122. content: "页脚线";
  123. left: calc(50% - 18px);
  124. position: relative;
  125. color: red;
  126. background: #ffff;
  127. top: -12px;
  128. font-size: 12px;
  129. }
  130. }
  131. :deep(.hi-pretty.p-default) {
  132. input:checked ~ .state label:after {
  133. background-color: $color-geek-blue-6 !important;
  134. }
  135. }