index.module.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. .Login {
  2. width: 100%;
  3. height: 100%;
  4. background-image: url('../../assets/img/loginBac.png');
  5. background-size: 100% 100%;
  6. :global {
  7. .mainRight {
  8. position: absolute;
  9. left: 50%;
  10. top: 50%;
  11. transform: translate(-50%, -50%);
  12. width: 580px;
  13. height: 740px;
  14. display: flex;
  15. flex-direction: column;
  16. align-items: center;
  17. gap: 20px;
  18. .LogoImg {
  19. & > img {
  20. width: 340px;
  21. }
  22. }
  23. .inputBox {
  24. width: 100%;
  25. input::-webkit-input-placeholder {
  26. /* WebKit browsers */
  27. color: rgba(217, 217, 217, 0.8);
  28. }
  29. input:-moz-placeholder {
  30. /* Mozilla Firefox 4 to 18 */
  31. color: rgba(217, 217, 217, 0.8);
  32. }
  33. input::-moz-placeholder {
  34. /* Mozilla Firefox 19+ */
  35. color: rgba(217, 217, 217, 0.8);
  36. }
  37. input:-ms-input-placeholder {
  38. /* Internet Explorer 10+ */
  39. color: rgba(217, 217, 217, 0.8);
  40. }
  41. .inputBoxRow {
  42. width: 370px;
  43. margin: 12px auto;
  44. .ant-input-suffix .ant-input-password-icon {
  45. color: rgba(217, 217, 217, 0.8);
  46. font-size: 20px;
  47. margin-right: 20px;
  48. }
  49. }
  50. .inputBoxRow2 {
  51. position: relative;
  52. .loginCode {
  53. z-index: 110;
  54. cursor: pointer;
  55. position: absolute;
  56. top: 50%;
  57. right: 8px;
  58. transform: translateY(-50%);
  59. }
  60. }
  61. .ant-input-prefix {
  62. margin-right: 20px;
  63. .anticon {
  64. padding-right: 10px;
  65. width: 36px;
  66. height: 36px;
  67. svg {
  68. width: 100%;
  69. height: 100%;
  70. }
  71. }
  72. }
  73. .ant-input {
  74. font-size: 18px;
  75. width: 45%;
  76. height: 60px;
  77. line-height: 60px;
  78. background-clip: content-box;
  79. }
  80. input:-webkit-autofill {
  81. font-size: 18px !important;
  82. -webkit-text-fill-color: rgb(255, 255, 255) !important;
  83. background-image: none;
  84. -webkit-box-shadow: 0 0 0px 1000px transparent inset !important; //填充阴影,可以用来遮住背景色
  85. background-color: transparent;
  86. transition: background-color 50000s ease-in-out 0s; //背景色透明 生效时长 过渡效果 启用时延迟的时间
  87. }
  88. .ant-input-affix-wrapper {
  89. background: url('../../assets/img/inputBg.png');
  90. background-size: 100% 100%;
  91. padding: 0;
  92. width: 100%;
  93. height: 60px;
  94. border: none;
  95. border-radius: 5px;
  96. color: var(--themeColor);
  97. .ant-input {
  98. background-color: transparent;
  99. width: 100%;
  100. height: 60px;
  101. color: rgb(255, 255, 255);
  102. }
  103. }
  104. .ant-input-affix-wrapper-focused {
  105. box-shadow: none;
  106. }
  107. }
  108. .loginBtn {
  109. .ant-btn {
  110. color: #fff;
  111. background: url('../../assets/img/loginBtnBg.png') no-repeat;
  112. background-size: cover;
  113. border-radius: 5px;
  114. font-size: 18px;
  115. width: 375px;
  116. height: 50px;
  117. &:hover {
  118. color: #fff;
  119. opacity: 0.8;
  120. background: url('../../assets/img/loginBtnBg.png') no-repeat;
  121. background-size: cover;
  122. }
  123. }
  124. }
  125. }
  126. }
  127. }