admin.wxss 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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: 50%; /* 按钮占满宽度 */
  20. padding: 5px 0; /* 按钮内边距,控制高度 */
  21. margin: 5px 0; /* 按钮间距 */
  22. background-color: #3EC01E; /* 按钮背景颜色 */
  23. color: white; /* 按钮文字颜色 */
  24. font-size: 18px; /* 按钮文字大小 */
  25. border: none; /* 去除按钮边框 */
  26. outline: none; /* 去除焦点边框 */
  27. text-align: center; /* 文字居中 */
  28. border-radius: 5px; /* 圆角效果 */
  29. }
  30. .btn:active {
  31. background-color: var(--active-color, #128c13);
  32. box-shadow: 0 2rpx 5rpx rgba(0, 0, 0, 0.2); /* 按钮点击时阴影变化 */
  33. }
  34. .btn:hover {
  35. background-color: var(--hover-color, #16b818);
  36. cursor: pointer; /* 鼠标悬浮时显示手型 */
  37. }
  38. .error {
  39. color: red;
  40. margin-top: 10rpx;
  41. animation: fadeIn 0.5s ease;
  42. }
  43. @keyframes fadeIn {
  44. from {
  45. opacity: 0;
  46. }
  47. to {
  48. opacity: 1;
  49. }
  50. }
  51. .avatar {
  52. width: 150rpx;
  53. height: 150rpx;
  54. border-radius: 50%;
  55. margin-top: 20rpx;
  56. object-fit: cover;
  57. }
  58. @media screen and (max-width: 375px) {
  59. .container {
  60. padding: 100rpx 20rpx;
  61. }
  62. .btn {
  63. font-size: 28rpx;
  64. height: 60rpx;
  65. line-height: 60rpx;
  66. }
  67. .input {
  68. height: 60rpx;
  69. }
  70. }