theme.wxss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. .theme-container {
  2. padding: 30rpx;
  3. min-height: 100vh;
  4. transition: all 0.3s ease;
  5. }
  6. .theme-header {
  7. padding: 20rpx 0 40rpx;
  8. }
  9. .theme-title {
  10. font-size: 36rpx;
  11. font-weight: bold;
  12. }
  13. .theme-desc {
  14. font-size: 28rpx;
  15. margin-top: 10rpx;
  16. }
  17. .theme-section {
  18. margin-bottom: 40rpx;
  19. }
  20. .section-title {
  21. font-size: 32rpx;
  22. font-weight: 500;
  23. margin-bottom: 20rpx;
  24. }
  25. .theme-options {
  26. display: flex;
  27. flex-wrap: wrap;
  28. gap: 20rpx;
  29. }
  30. .theme-option {
  31. width: 210rpx;
  32. height: 280rpx;
  33. border-radius: 12rpx;
  34. overflow: hidden;
  35. position: relative;
  36. border: 2rpx solid #eee;
  37. transition: all 0.3s ease;
  38. }
  39. .theme-option.active {
  40. border-color: var(--primaryColor, #E7624F);
  41. }
  42. .theme-preview {
  43. width: 100%;
  44. height: 100%;
  45. display: flex;
  46. align-items: center;
  47. justify-content: center;
  48. transition: all 0.3s ease;
  49. }
  50. .preview-title {
  51. font-size: 30rpx;
  52. font-weight: 500;
  53. }
  54. .theme-check {
  55. position: absolute;
  56. bottom: 10rpx;
  57. right: 10rpx;
  58. width: 36rpx;
  59. height: 36rpx;
  60. border-radius: 50%;
  61. background-color: rgba(255,255,255,0.8);
  62. display: flex;
  63. align-items: center;
  64. justify-content: center;
  65. transition: all 0.3s ease;
  66. }
  67. .theme-check.checked {
  68. background-color: var(--primaryColor, #E7624F);
  69. }
  70. .theme-check image {
  71. width: 24rpx;
  72. height: 24rpx;
  73. }
  74. .color-options {
  75. display: flex;
  76. flex-wrap: wrap;
  77. gap: 20rpx;
  78. }
  79. .color-option {
  80. width: 80rpx;
  81. height: 80rpx;
  82. border-radius: 50%;
  83. position: relative;
  84. border: 2rpx solid #eee;
  85. transition: all 0.3s ease;
  86. }
  87. .color-option:active {
  88. transform: scale(0.95);
  89. }
  90. .color-check {
  91. position: absolute;
  92. bottom: -5rpx;
  93. right: -5rpx;
  94. width: 30rpx;
  95. height: 30rpx;
  96. border-radius: 50%;
  97. background-color: white;
  98. display: flex;
  99. align-items: center;
  100. justify-content: center;
  101. border: 2rpx solid white;
  102. transition: all 0.3s ease;
  103. }
  104. .color-check.checked {
  105. background-color: var(--primaryColor, #E7624F);
  106. }
  107. .color-check image {
  108. width: 20rpx;
  109. height: 20rpx;
  110. }
  111. .apply-btn {
  112. height: 90rpx;
  113. line-height: 90rpx;
  114. text-align: center;
  115. color: white;
  116. font-size: 32rpx;
  117. border-radius: 45rpx;
  118. margin-top: 60rpx;
  119. transition: all 0.3s ease;
  120. }
  121. .apply-btn:active {
  122. opacity: 0.8;
  123. }