TUIGroup.scss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. @import url('../../styles/common.scss');
  2. @import url('../../styles/icon.scss');
  3. .TUI-group {
  4. position: relative;
  5. width: 100%;
  6. height: 100%;
  7. background: #ffffff;
  8. box-sizing: border-box;
  9. /* font:12px/22px"\5B8B\4F53",Arial,Helvetica,sans-serif; */
  10. font-weight: 400;
  11. display: flex;
  12. &-left {
  13. width: 270px;
  14. overflow-y: auto;
  15. header {
  16. position: sticky;
  17. top: 0;
  18. z-index: 1;
  19. padding: 12px;
  20. display: flex;
  21. justify-content: space-between;
  22. align-items: center;
  23. input {
  24. flex: 1;
  25. margin-right: 20px;
  26. }
  27. }
  28. .TUI-group-list {
  29. list-style: none;
  30. }
  31. .TUI-group-item {
  32. position: relative;
  33. padding: 12px;
  34. display: flex;
  35. align-items: center;
  36. &:hover {
  37. background: #EDF0F5;
  38. .icon-close {
  39. display: inline-block;
  40. }
  41. }
  42. .left {
  43. position: relative;
  44. width: 36px;
  45. height: 36px;
  46. .num {
  47. position: absolute;
  48. display: inline-block;
  49. right: -8px;
  50. top: -8px;
  51. background: red;
  52. width: 20px;
  53. height: 20px;
  54. font-size: 10px;
  55. text-align: center;
  56. line-height: 20px;
  57. border-radius: 50%;
  58. color: #ffffff;
  59. }
  60. .avatar {
  61. width: 100%;
  62. border-radius: 5px;
  63. }
  64. }
  65. .content {
  66. flex: 1;
  67. padding-left: 8px;
  68. p {
  69. width: 200px;
  70. overflow: hidden;
  71. text-overflow: ellipsis;
  72. white-space: nowrap;
  73. font-weight: 400;
  74. font-size: 14px;
  75. color: #000000;
  76. line-height: 16px;
  77. }
  78. }
  79. }
  80. .selected {
  81. background: #EDF0F5;
  82. }
  83. }
  84. &-main {
  85. flex: 1;
  86. display: flex;
  87. justify-content: center;
  88. align-items: center;
  89. &-show {
  90. ul {
  91. display: flex;
  92. flex-direction: column;
  93. li {
  94. padding: 10px 0;
  95. label {
  96. display: inline-block;
  97. width: 84px;
  98. }
  99. }
  100. }
  101. }
  102. &-created {
  103. li {
  104. display: flex;
  105. align-items: center;
  106. input {
  107. margin-right: 20px;
  108. }
  109. }
  110. }
  111. }
  112. }
  113. input {
  114. box-sizing: border-box;
  115. border: 1px solid #dddddd;
  116. border-radius: 5px;
  117. padding: 10px;
  118. }
  119. .plus {
  120. position: relative;
  121. display: inline-block;
  122. width: 36px;
  123. height: 36px;
  124. border: 1px solid #dddddd;
  125. &::before, &::after{
  126. position: absolute;
  127. content: "";
  128. background: #dddddd;
  129. top: 0;
  130. bottom: 0;
  131. left: 0;
  132. right: 0;
  133. margin: auto;
  134. }
  135. &::before {
  136. width: 50%;
  137. height: 1px;
  138. }
  139. &::after {
  140. width: 1px;
  141. height: 50%;
  142. }
  143. }
  144. .reduce {
  145. position: relative;
  146. display: inline-block;
  147. width: 36px;
  148. height: 36px;
  149. border: 1px solid #dddddd;
  150. &::before{
  151. position: absolute;
  152. content: "";
  153. width: 50%;
  154. height: 1px;
  155. background: #dddddd;
  156. top: 0;
  157. bottom: 0;
  158. left: 0;
  159. right: 0;
  160. margin: auto;
  161. }
  162. }
  163. .center {
  164. display: flex;
  165. justify-content: center;
  166. }
  167. .btn {
  168. padding: 8px 20px;
  169. border-radius: 4px;
  170. border: none;
  171. font-weight: 400;
  172. font-size: 14px;
  173. color: #FFFFFF;
  174. letter-spacing: 0;
  175. text-align: center;
  176. line-height: 20px;
  177. &-cancel {
  178. border: 1px solid #dddddd;
  179. color: #666666;
  180. }
  181. &-default {
  182. background: #006EFF;
  183. border: 1px solid #006EFF;
  184. }
  185. &:disabled {
  186. opacity: 0.3;
  187. }
  188. }