profile.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. .form-list {
  2. margin-top: 10rpx;
  3. }
  4. .form-item {
  5. margin-bottom: 30rpx; // Reduced from 46rpx
  6. .label {
  7. display: block;
  8. font-size: 28rpx;
  9. font-weight: 500;
  10. color: #333333; // Darker color as requested
  11. margin-bottom: 20rpx; // Increased slightly for breathing room
  12. }
  13. .input-box {
  14. border-bottom: 1rpx solid #E5E5E5;
  15. padding-bottom: 12rpx; // Reduced from 16rpx
  16. transition: border-color 0.3s;
  17. &:focus-within {
  18. border-bottom-color: $brand-primary;
  19. }
  20. input {
  21. font-size: 32rpx; // Slightly reduced input text size
  22. color: #1A1A1A;
  23. font-weight: 500;
  24. height: 44rpx; // Reduced height
  25. line-height: 44rpx;
  26. }
  27. }
  28. .gender-switch {
  29. display: flex;
  30. position: relative;
  31. background-color: #F6F8FA;
  32. border-radius: 16rpx;
  33. padding: 6rpx;
  34. height: 76rpx;
  35. box-sizing: border-box;
  36. .g-slider {
  37. position: absolute;
  38. top: 6rpx;
  39. bottom: 6rpx;
  40. width: calc(50% - 6rpx);
  41. background-color: #EBF3FF; // Lighter blue to match the theme gracefully
  42. border-radius: 12rpx;
  43. box-shadow: 0 4rpx 10rpx rgba(31, 108, 255, 0.1); // Soft glowing shadow
  44. border: 2rpx solid rgba(31, 108, 255, 0.15); // Subtle border outline
  45. box-sizing: border-box;
  46. transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  47. z-index: 1;
  48. &.left {
  49. transform: translateX(0);
  50. }
  51. &.right {
  52. transform: translateX(100%);
  53. }
  54. &.none {
  55. opacity: 0;
  56. }
  57. }
  58. .g-item {
  59. flex: 1;
  60. position: relative;
  61. z-index: 2;
  62. line-height: 64rpx;
  63. text-align: center;
  64. color: #888888;
  65. font-size: 28rpx;
  66. transition: all 0.3s;
  67. &.active {
  68. color: $brand-primary; // Refined to brand color for better contrast with light blue bg
  69. font-weight: 600;
  70. }
  71. }
  72. }
  73. }
  74. .avatar-item {
  75. display: flex;
  76. justify-content: space-between;
  77. align-items: center;
  78. border-bottom: 1rpx solid #E5E5E5;
  79. padding-bottom: 30rpx; // Reduced
  80. margin-bottom: 30rpx; // Reduced
  81. .label {
  82. margin-bottom: 0;
  83. font-size: 30rpx; // Reduced
  84. font-weight: 600;
  85. color: #1A1A1A;
  86. }
  87. .right-content {
  88. display: flex;
  89. align-items: center;
  90. .hint-text {
  91. font-size: 24rpx; // Reduced
  92. color: #FFA500; // Orange color
  93. margin-right: 20rpx; // Reduced
  94. }
  95. .avatar-img {
  96. width: 88rpx; // Reduced from 100rpx
  97. height: 88rpx;
  98. border-radius: 50%;
  99. background-color: #F8F9FA;
  100. border: 2rpx solid #F0F2F5;
  101. }
  102. .arrow {
  103. margin-left: 16rpx;
  104. width: 14rpx;
  105. height: 14rpx;
  106. border-right: 3rpx solid #CCCCCC;
  107. border-top: 3rpx solid #CCCCCC;
  108. transform: rotate(45deg);
  109. }
  110. }
  111. }
  112. .ph-style {
  113. color: #CCCCCC;
  114. font-size: 30rpx;
  115. font-weight: normal;
  116. }