智慧水务管理系统 - 精河县供水工程综合管理平台

transfer.scss 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. @use 'mixins/mixins' as *;
  2. @use 'mixins/utils' as *;
  3. @use 'mixins/var' as *;
  4. @use 'common/var' as *;
  5. @include b(transfer) {
  6. @include set-component-css-var('transfer', $transfer);
  7. }
  8. @include b(transfer) {
  9. font-size: getCssVar('font-size', 'base');
  10. @include e(buttons) {
  11. display: inline-block;
  12. vertical-align: middle;
  13. padding: 0 30px;
  14. }
  15. @include e(button) {
  16. vertical-align: top;
  17. &:nth-child(2) {
  18. margin: 0 0 0 10px;
  19. }
  20. i,
  21. span {
  22. font-size: 14px;
  23. }
  24. & .#{$namespace}-icon + span {
  25. margin-left: 0;
  26. }
  27. }
  28. }
  29. @include b(transfer-panel) {
  30. overflow: hidden;
  31. background: getCssVar('bg-color', 'overlay');
  32. display: inline-block;
  33. text-align: left;
  34. vertical-align: middle;
  35. width: getCssVar('transfer-panel-width');
  36. max-height: 100%;
  37. box-sizing: border-box;
  38. position: relative;
  39. @include e(body) {
  40. height: getCssVar('transfer-panel-body-height');
  41. border-left: 1px solid getCssVar('transfer-border-color');
  42. border-right: 1px solid getCssVar('transfer-border-color');
  43. border-bottom: 1px solid getCssVar('transfer-border-color');
  44. border-bottom-left-radius: getCssVar('transfer-border-radius');
  45. border-bottom-right-radius: getCssVar('transfer-border-radius');
  46. overflow: hidden;
  47. @include when('with-footer') {
  48. border-bottom: none;
  49. border-bottom-left-radius: 0;
  50. border-bottom-right-radius: 0;
  51. }
  52. }
  53. @include e(list) {
  54. margin: 0;
  55. padding: 6px 0;
  56. list-style: none;
  57. height: getCssVar('transfer-panel-body-height');
  58. overflow: auto;
  59. box-sizing: border-box;
  60. @include when(filterable) {
  61. height: calc(100% - getCssVar('transfer-filter-height') - 30px);
  62. padding-top: 0;
  63. }
  64. }
  65. @include e(item) {
  66. height: getCssVar('transfer-item-height');
  67. line-height: getCssVar('transfer-item-height');
  68. padding-left: 15px;
  69. display: block !important;
  70. & + .#{$namespace}-transfer-panel__item {
  71. margin-left: 0;
  72. }
  73. &.#{$namespace}-checkbox {
  74. color: getCssVar('text-color', 'regular');
  75. margin-right: 30px;
  76. }
  77. &:hover {
  78. color: getCssVar('color-primary');
  79. }
  80. &.#{$namespace}-checkbox .#{$namespace}-checkbox__label {
  81. width: 100%;
  82. @include utils-ellipsis;
  83. display: block;
  84. box-sizing: border-box;
  85. padding-left: 22px;
  86. line-height: getCssVar('transfer-item-height');
  87. }
  88. .#{$namespace}-checkbox__input {
  89. position: absolute;
  90. top: 8px;
  91. }
  92. }
  93. @include e(filter) {
  94. text-align: center;
  95. padding: 15px;
  96. box-sizing: border-box;
  97. .#{$namespace}-input__inner {
  98. height: getCssVar('transfer-filter-height');
  99. width: 100%;
  100. font-size: 12px;
  101. display: inline-block;
  102. box-sizing: border-box;
  103. }
  104. .#{$namespace}-icon-circle-close {
  105. cursor: pointer;
  106. }
  107. }
  108. .#{$namespace}-transfer-panel__header {
  109. display: flex;
  110. align-items: center;
  111. height: getCssVar('transfer-panel-header-height');
  112. background: getCssVar('transfer-panel-header-bg-color');
  113. margin: 0;
  114. padding-left: 15px;
  115. border: 1px solid getCssVar('transfer-border-color');
  116. border-top-left-radius: getCssVar('transfer-border-radius');
  117. border-top-right-radius: getCssVar('transfer-border-radius');
  118. box-sizing: border-box;
  119. color: getCssVar('color-black');
  120. .#{$namespace}-checkbox {
  121. position: relative;
  122. display: flex;
  123. width: 100%;
  124. align-items: center;
  125. .#{$namespace}-checkbox__label {
  126. display: flex;
  127. flex: 1;
  128. align-items: center;
  129. min-width: 0;
  130. font-size: 16px;
  131. color: getCssVar('text-color', 'primary');
  132. font-weight: normal;
  133. }
  134. }
  135. }
  136. .#{$namespace}-transfer-panel__header-title {
  137. @include utils-ellipsis;
  138. flex: 1;
  139. min-width: 0;
  140. }
  141. .#{$namespace}-transfer-panel__header-count {
  142. flex-shrink: 0;
  143. margin-left: 8px;
  144. margin-right: 15px;
  145. color: getCssVar('text-color', 'secondary');
  146. font-size: 12px;
  147. }
  148. .#{$namespace}-transfer-panel__footer {
  149. height: getCssVar('transfer-panel-footer-height');
  150. background: getCssVar('bg-color', 'overlay');
  151. margin: 0;
  152. padding: 0;
  153. border: 1px solid getCssVar('transfer-border-color');
  154. border-bottom-left-radius: getCssVar('transfer-border-radius');
  155. border-bottom-right-radius: getCssVar('transfer-border-radius');
  156. @include utils-vertical-center;
  157. .#{$namespace}-checkbox {
  158. padding-left: 20px;
  159. color: getCssVar('text-color', 'regular');
  160. }
  161. }
  162. .#{$namespace}-transfer-panel__empty {
  163. margin: 0;
  164. height: getCssVar('transfer-item-height');
  165. line-height: getCssVar('transfer-item-height');
  166. padding: 6px 15px 0;
  167. color: getCssVar('text-color', 'secondary');
  168. text-align: center;
  169. }
  170. .#{$namespace}-checkbox__label {
  171. padding-left: 8px;
  172. }
  173. }