index.less 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. .yzm_login_content {
  2. height: 230px;
  3. text-align: center;
  4. .yzm_login_content_form {
  5. width:320px;
  6. margin: 0 auto;
  7. }
  8. }
  9. .login_content {
  10. height: 320px;
  11. position: relative; /* 添加相对定位,用于三角形按钮定位 */
  12. .login_content_item {
  13. height: 230px;
  14. display: flex;
  15. .login_content_left {
  16. width: 300px;
  17. .login_content_left_top {
  18. text-align: center;
  19. }
  20. .login_content_left_bottom {
  21. text-align: center;
  22. height: 30px;
  23. line-height: 30px;
  24. background-color: aqua;
  25. border-radius: 5px;
  26. color: aliceblue;
  27. width: 224px;
  28. margin: 50px auto 0 auto;
  29. background: linear-gradient(
  30. to right,
  31. rgb(32, 120, 203),
  32. rgb(76, 149, 218)
  33. );
  34. border: 1px solid rgb(66, 141, 214);
  35. }
  36. .login_content_left_bottom:hover {
  37. background: linear-gradient(
  38. to right,
  39. rgb(90, 152, 209),
  40. rgb(76, 149, 218)
  41. );
  42. }
  43. }
  44. .login_content_right {
  45. flex: 1;
  46. padding-left: 40px;
  47. border-left: 1px solid rgb(126, 126, 126);
  48. font-size: 10px;
  49. .login_content_right_item {
  50. display: flex;
  51. height: 38px;
  52. margin-bottom: 15px;
  53. .login_content_right_item_icon {
  54. border-radius: 50%;
  55. text-align: center;
  56. width: 40px;
  57. border: 1px solid rgb(126, 126, 126);
  58. font-size: 25px;
  59. height: 38px;
  60. }
  61. .login_content_right_item_text {
  62. line-height: 38px;
  63. margin-left: 20px;
  64. }
  65. }
  66. }
  67. }
  68. .login_protocol {
  69. margin-top: 40px;
  70. .protocol_span {
  71. color: rgb(29, 128, 227);
  72. }
  73. }
  74. }
  75. /* 添加三角形按钮样式 */
  76. .qr-trigger {
  77. position: absolute;
  78. bottom: 0px;
  79. right: 0px;
  80. cursor: pointer;
  81. }
  82. /* 二维码登录相关样式 */
  83. .qr-code-section {
  84. display: flex;
  85. justify-content: space-around;
  86. .qr-code {
  87. height: 220px;
  88. display: flex;
  89. flex-direction: column;
  90. align-items: center;
  91. justify-content: space-between;
  92. }
  93. }
  94. .custom-alert {
  95. position: fixed;
  96. top: 0;
  97. left: 0;
  98. right: 0;
  99. bottom: 300px;
  100. display: flex;
  101. align-items: center;
  102. justify-content: center;
  103. z-index: 9999; /* 关键属性:确保它在其他组件之上 */
  104. }
  105. .custom-alert-content {
  106. width: 300px;
  107. height: 120px;
  108. background-color: rgba(0, 0, 0, 0.7); /* 灰色 + 30% 透明度 */
  109. border-radius: 8px;
  110. display: flex;
  111. align-items: center;
  112. justify-content: center;
  113. color: white;
  114. font-size: 16px;
  115. text-align: center;
  116. box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  117. }