index.wxss 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. .container {
  2. display: flex;
  3. flex-direction: column;
  4. align-items: center;
  5. justify-content: center;
  6. padding: 20rpx 40rpx;
  7. height: 50vh; /* 使容器占据整个屏幕高度 */
  8. }
  9. .input {
  10. width: 100%;
  11. height: 80rpx;
  12. margin-bottom: 20rpx;
  13. padding: 0 20rpx;
  14. border: 1px solid #ddd;
  15. border-radius: var(--border-radius, 10rpx);
  16. box-sizing: border-box;
  17. }
  18. .btn {
  19. width: 100%;
  20. height: 80rpx;
  21. background-color: var(--primary-color, #1aad19);
  22. color: #fff;
  23. border: none;
  24. border-radius: var(--border-radius, 10rpx);
  25. text-align: center;
  26. line-height: 45rpx;
  27. font-size: 36rpx;
  28. box-shadow: 0 4rpx 10rpx rgba(0, 0, 0, 0.1); /* 添加阴影 */
  29. transition: background-color 0.3s ease, box-shadow 0.3s ease; /* 背景颜色和阴影过渡效果 */
  30. }
  31. .btn:active {
  32. background-color: var(--active-color, #128c13);
  33. box-shadow: 0 2rpx 5rpx rgba(0, 0, 0, 0.2); /* 按钮点击时阴影变化 */
  34. }
  35. .btn:hover {
  36. background-color: var(--hover-color, #16b818);
  37. cursor: pointer; /* 鼠标悬浮时显示手型 */
  38. }
  39. .error {
  40. color: red;
  41. margin-top: 10rpx;
  42. animation: fadeIn 0.5s ease;
  43. }
  44. @keyframes fadeIn {
  45. from {
  46. opacity: 0;
  47. }
  48. to {
  49. opacity: 1;
  50. }
  51. }
  52. .avatar {
  53. width: 150rpx;
  54. height: 150rpx;
  55. border-radius: 50%;
  56. margin-top: 20rpx;
  57. object-fit: cover;
  58. }
  59. @media screen and (max-width: 375px) {
  60. .container {
  61. padding: 100rpx 20rpx;
  62. }
  63. .btn {
  64. font-size: 28rpx;
  65. height: 60rpx;
  66. line-height: 60rpx;
  67. }
  68. .input {
  69. height: 60rpx;
  70. }
  71. }