index.less 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. @import '~antd/es/style/themes/default.less';
  2. @pro-header-hover-bg: rgba(0, 0, 0, 0.025);
  3. .menu {
  4. :global(.anticon) {
  5. margin-right: 8px;
  6. }
  7. :global(.ant-dropdown-menu-item) {
  8. min-width: 160px;
  9. }
  10. }
  11. .editPasswordP {
  12. display: flex;
  13. flex-flow: row nowrap;
  14. label {
  15. width: 70px;
  16. text-align: right;
  17. }
  18. input {
  19. width: 200px;
  20. margin-left: 15px;
  21. }
  22. align-items: center;
  23. }
  24. .right {
  25. display: flex;
  26. float: right;
  27. height: 48px;
  28. margin-left: auto;
  29. overflow: hidden;
  30. .action {
  31. display: flex;
  32. align-items: center;
  33. height: 48px;
  34. padding: 0 12px;
  35. cursor: pointer;
  36. transition: all 0.3s;
  37. &:hover {
  38. background: @pro-header-hover-bg;
  39. }
  40. &:global(.opened) {
  41. background: @pro-header-hover-bg;
  42. }
  43. }
  44. .search {
  45. padding: 0 12px;
  46. &:hover {
  47. background: transparent;
  48. }
  49. }
  50. .account {
  51. .avatar {
  52. margin-right: 8px;
  53. color: @primary-color;
  54. vertical-align: top;
  55. background: rgba(255, 255, 255, 0.85);
  56. }
  57. }
  58. }
  59. .dark {
  60. .action {
  61. &:hover {
  62. background: #252a3d;
  63. }
  64. &:global(.opened) {
  65. background: #252a3d;
  66. }
  67. }
  68. }
  69. .dialog {
  70. line-height: normal;
  71. position: fixed;
  72. width: 100%;
  73. height: 100vh;
  74. background: rgba(0, 0, 0, .5);
  75. top: 0;
  76. left: 0;
  77. right: 0;
  78. bottom: 0;
  79. z-index: 2000;
  80. // display: none;
  81. }
  82. .companyAccount {
  83. border-radius: 8px;
  84. background: rgba(255, 255, 255, .9);
  85. margin-bottom: 80px;
  86. box-shadow: 0 4px 20px 0 rgba(0, 60, 179, 0.12);
  87. margin-bottom: 10px;
  88. width: 500px;
  89. padding: 48px 36px;
  90. position: absolute;
  91. top: 50%;
  92. left: 50%;
  93. transform: translate(-50%, -50%);
  94. &>.close {
  95. position: absolute;
  96. right: 20px;
  97. top: 20px;
  98. padding: 10px;
  99. cursor: pointer;
  100. }
  101. &>h3 {
  102. margin: 0;
  103. font-size: 20px;
  104. }
  105. &>.chooseTableBlock {
  106. margin-top: 20px;
  107. border-top: 1px solid rgba(181, 181, 181, .4);
  108. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Source Han Sans CN", sans-serif;
  109. max-height: 250px;
  110. overflow-y: auto;
  111. padding: 0 10px;
  112. .acTableLineContent {
  113. padding: 16px 14px;
  114. display: flex;
  115. align-items: center;
  116. font-size: 14px;
  117. cursor: pointer;
  118. color: #68779c;
  119. justify-content: space-between;
  120. border: 2px solid transparent;
  121. position: relative;
  122. border-radius: 4px;
  123. .actname {
  124. width: 250px;
  125. color: #0b1531;
  126. font-size: 16px;
  127. }
  128. .right {
  129. display: flex;
  130. justify-content: flex-end;
  131. align-items: center;
  132. height: 22px;
  133. .actcha {
  134. color: #68779c;
  135. margin-right: 10px;
  136. }
  137. }
  138. .iconRight {
  139. color: #1890ff;
  140. font-size: 20px;
  141. }
  142. &::after {
  143. content: '';
  144. position: absolute;
  145. bottom: 0;
  146. left: 0;
  147. background-color: rgba(181, 181, 181, .4);
  148. height: 1px;
  149. width: 100%;
  150. }
  151. }
  152. .acTableLine {
  153. &:hover {
  154. border: 2px solid #296aef;
  155. z-index: 5;
  156. transition: all .2s;
  157. box-shadow: 0 0 12px rgba(0, 60, 179, 0.12);
  158. .right .actcha {
  159. color: #0b1531;
  160. }
  161. .iconRight {
  162. color: #296aef;
  163. }
  164. }
  165. }
  166. .acNone {
  167. .actname {
  168. color: #99a0ad;
  169. }
  170. .iconRight {
  171. color: #aeb6c5;
  172. }
  173. }
  174. }
  175. }
  176. @media only screen and (max-width: @screen-md) {
  177. :global(.ant-divider-vertical) {
  178. vertical-align: unset;
  179. }
  180. .name {
  181. display: none;
  182. }
  183. .right {
  184. position: absolute;
  185. top: 0;
  186. right: 12px;
  187. .account {
  188. .avatar {
  189. margin-right: 0;
  190. }
  191. }
  192. .search {
  193. display: none;
  194. }
  195. }
  196. }