TaskDialog.scss 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. .task-board {
  2. margin-top: 25rpx;
  3. margin-left: 10rpx;
  4. background: url('/static/island/UI/task/rw_bg.png') no-repeat center center;
  5. background-size: cover;
  6. width: 702rpx;
  7. // margin: 0 auto;
  8. height: 984rpx;
  9. display: flex;
  10. flex-direction: column;
  11. .board-title {
  12. flex-shrink: 0;
  13. display: flex;
  14. align-items: center;
  15. justify-content: center;
  16. padding-top: 60rpx;
  17. // margin-bottom: 30rpx;
  18. text {
  19. color: #FFF;
  20. font-size: 32rpx;
  21. font-weight: bold;
  22. }
  23. }
  24. .task-cards-container {
  25. flex: 1;
  26. overflow-y: auto;
  27. // padding: 0 16rpx;
  28. margin-top: 10rpx;
  29. margin-bottom: 18rpx;
  30. &::-webkit-scrollbar {
  31. width: 6rpx;
  32. }
  33. &::-webkit-scrollbar-thumb {
  34. background: rgba(166, 124, 82, 0.3);
  35. border-radius: 3rpx;
  36. }
  37. &::-webkit-scrollbar-track {
  38. background: transparent;
  39. }
  40. }
  41. .task-card {
  42. background-color: rgba(255, 246, 235, 0.95);
  43. border-radius: 20rpx;
  44. padding: 24rpx;
  45. margin: 10rpx 43rpx 15rpx 43rpx ;
  46. position: relative;
  47. .task-header,
  48. .task-desc {
  49. margin-bottom: 16rpx;
  50. .task-label {
  51. color: #987453;
  52. font-size: 26rpx;
  53. // font-weight: 500;
  54. font-weight: bold;
  55. }
  56. .task-content {
  57. color: #987453;
  58. font-size: 26rpx;
  59. margin-left: 8rpx;
  60. }
  61. }
  62. .task-rewards {
  63. margin-bottom: 24rpx;
  64. display: flex;
  65. align-items: flex-start;
  66. .task-label {
  67. color: #987453;
  68. font-size: 26rpx;
  69. font-weight: bold;
  70. margin-right: 16rpx;
  71. }
  72. .reward-list {
  73. display: flex;
  74. gap: 10rpx;
  75. .reward-item {
  76. display: flex;
  77. flex-direction: column;
  78. align-items: center;
  79. .reward-box {
  80. width: 70rpx;
  81. height: 70rpx;
  82. background: linear-gradient(to bottom right, #B8E986, #7EC242);
  83. border-radius: 12rpx;
  84. display: flex;
  85. align-items: center;
  86. justify-content: center;
  87. margin-bottom: 6rpx;
  88. &:nth-child(3) {
  89. background: linear-gradient(to bottom right, #E5C1FF, #9D7EE0);
  90. }
  91. .reward-icon {
  92. width: 45rpx;
  93. height: 45rpx;
  94. }
  95. }
  96. .reward-text {
  97. color: #B3894A;
  98. font-size: 20rpx;
  99. text-align: center;
  100. }
  101. }
  102. }
  103. }
  104. .task-footer {
  105. display: flex;
  106. justify-content: flex-end;
  107. align-items: center;
  108. margin-top: 16rpx;
  109. padding-top: 16rpx;
  110. position: relative;
  111. &::before {
  112. content: '';
  113. position: absolute;
  114. left: 0;
  115. right: 0;
  116. top: 0;
  117. height: 2rpx;
  118. background: linear-gradient(to right,
  119. transparent,
  120. rgba(179, 137, 74, 0.3) 20%,
  121. rgba(179, 137, 74, 0.3) 80%,
  122. transparent
  123. );
  124. }
  125. .task-date {
  126. color: #CCAB8F;
  127. font-size: 24rpx;
  128. margin-right: auto;
  129. }
  130. .task-button {
  131. min-width: 170rpx;
  132. height: 62rpx;
  133. text-align: center;
  134. font-size: 24rpx;
  135. border: none;
  136. background-size: 100% 100%;
  137. background-repeat: no-repeat;
  138. &.completed {
  139. background-image: url('/static/island/UI/btn_green.png');
  140. color: #ffffff;
  141. &:active {
  142. transform: scale(0.95);
  143. opacity: 0.9;
  144. }
  145. }
  146. &.uncompleted {
  147. background-image: url('/static/island/UI/btn_yellow.png');
  148. color: #ffffff;
  149. }
  150. }
  151. }
  152. }
  153. }