login.wxss 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. .container {
  2. display: flex;
  3. flex-direction: column;
  4. align-items: center;
  5. justify-content: center;
  6. height: 100vh; /* 占据整个视窗高度 */
  7. background-color: #f4f4f4; /* 浅灰色背景 */
  8. padding: 40rpx;
  9. box-sizing: border-box; /* 边框盒模型,使内边距不影响总宽度 */
  10. }
  11. /* 输入框组件样式 */
  12. .input-group {
  13. display: flex;
  14. justify-content: center;
  15. align-items: center;
  16. width: 90%; /* 设置固定宽度 */
  17. margin-left:5%;
  18. margin-bottom: 40rpx; /* 底部外边距 */
  19. background-color: #fff; /* 白色背景 */
  20. border-radius: 16rpx; /* 圆角边框 */
  21. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.1); /* 阴影效果 */
  22. overflow: hidden; /* 隐藏溢出的内容 */
  23. position: relative; /* 相对定位,用于后续子元素的绝对定位 */
  24. }
  25. /* 输入框内部标签样式 */
  26. .input-group .label {
  27. color: #666; /* 深灰色字体 */
  28. font-size: 28rpx; /* 字体大小 */
  29. font-weight: bold; /* 加粗 */
  30. padding: 20rpx 0 10rpx 32rpx; /* 内边距 */
  31. background-color: #f9f9f9; /* 浅灰色背景 */
  32. width:30%;
  33. }
  34. /* 输入框样式 */
  35. .input-group .input {
  36. width: calc(100% - 32rpx); /* 减去左右内边距 */
  37. padding: 20rpx 32rpx; /* 内边距 */
  38. border: none; /* 无边框 */
  39. outline: none; /* 去除聚焦时的轮廓 */
  40. font-size: 32rpx; /* 字体大小 */
  41. color: #333; /* 字体颜色 */
  42. background-color: transparent; /* 透明背景,显示父容器的背景 */
  43. }
  44. /* 验证码发送按钮样式 */
  45. .input-group .send-code {
  46. position: absolute; /* 绝对定位 */
  47. right: 0; /* 右侧对齐 */
  48. top: 0; /* 顶部对齐 */
  49. padding: 10rpx 40rpx; /* 内边距 */
  50. background-color: #007aff; /* 蓝色背景 */
  51. color: white; /* 白色字体 */
  52. border: none; /* 无边框 */
  53. border-radius: 0 16rpx 16rpx 0; /* 圆角仅在右侧 */
  54. font-size: 32rpx; /* 字体大小 */
  55. cursor: pointer; /* 鼠标悬停时显示指针 */
  56. }
  57. .input-group .send-code-1 {
  58. font-size: 25rpx; /* 字体大小 */
  59. }
  60. /* 验证码发送按钮禁用状态样式 */
  61. .input-group .send-code[disabled] {
  62. background-color: #ccc; /* 灰色背景 */
  63. color: #999; /* 灰色字体 */
  64. cursor: not-allowed; /* 鼠标悬停时显示禁止符号 */
  65. }
  66. /* 登录按钮样式 */
  67. .login-btn {
  68. width: 500rpx; /* 宽度与输入框组件一致 */
  69. padding: 6rpx 0; /* 上下内边距,左右由子元素控制 */
  70. background-color: #007aff; /* 蓝色背景 */
  71. color: white; /* 白色字体 */
  72. border: none; /* 无边框 */
  73. border-radius: 16rpx; /* 圆角边框 */
  74. font-size: 36rpx; /* 字体大小 */
  75. cursor: pointer; /* 鼠标悬停时显示指针 */
  76. text-align: center; /* 文本居中 */
  77. display: flex; /* 弹性布局 */
  78. justify-content: center; /* 水平居中 */
  79. align-items: center; /* 垂直居中 */
  80. }
  81. .login-out {
  82. width: 500rpx; /* 宽度与输入框组件一致 */
  83. padding: 6rpx 0; /* 上下内边距,左右由子元素控制 */
  84. background-color: #007aff; /* 蓝色背景 */
  85. color: white; /* 白色字体 */
  86. border: none; /* 无边框 */
  87. border-radius: 16rpx; /* 圆角边框 */
  88. font-size: 36rpx; /* 字体大小 */
  89. cursor: pointer; /* 鼠标悬停时显示指针 */
  90. text-align: center; /* 文本居中 */
  91. display: flex; /* 弹性布局 */
  92. justify-content: center; /* 水平居中 */
  93. align-items: center; /* 垂直居中 */
  94. margin-top:20rpx;
  95. }
  96. /* 登录按钮禁用状态样式 */
  97. .login-btn[disabled] {
  98. background-color: #ccc; /* 灰色背景 */
  99. color: #999; /* 灰色字体 */
  100. cursor: not-allowed;
  101. }
  102. .title{
  103. text-align: center;
  104. font-size: 38rpx;
  105. color: #000000;
  106. font-weight: bold;
  107. margin: auto;
  108. margin-top: 100rpx;
  109. }