skill-radar.component.scss 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. @use '../../ios-theme.scss' as *;
  2. .skill-radar-container {
  3. background-color: $ios-card-background;
  4. border-radius: $ios-radius-lg;
  5. padding: $ios-spacing-xl;
  6. box-shadow: $ios-shadow-card;
  7. margin-bottom: $ios-spacing-xl;
  8. border: 1px solid $ios-border;
  9. }
  10. .skill-radar-header {
  11. display: flex;
  12. justify-content: space-between;
  13. align-items: center;
  14. margin-bottom: $ios-spacing-xl;
  15. }
  16. .skill-radar-header h3 {
  17. margin: 0;
  18. font-size: $ios-font-size-lg;
  19. color: $ios-text-primary;
  20. font-weight: $ios-font-weight-medium;
  21. font-family: $ios-font-family;
  22. }
  23. .view-toggle {
  24. display: flex;
  25. background-color: $ios-background-secondary;
  26. border-radius: $ios-radius-full;
  27. padding: $ios-spacing-xs;
  28. }
  29. .btn-toggle {
  30. padding: $ios-spacing-sm $ios-spacing-xl;
  31. border: none;
  32. border-radius: $ios-radius-full;
  33. background-color: transparent;
  34. color: $ios-text-secondary;
  35. font-size: $ios-font-size-sm;
  36. font-weight: $ios-font-weight-medium;
  37. cursor: pointer;
  38. transition: all 0.2s ease-out;
  39. font-family: $ios-font-family;
  40. outline: none;
  41. }
  42. .btn-toggle.active {
  43. background-color: $ios-card-background;
  44. color: $ios-primary;
  45. box-shadow: $ios-shadow-sm;
  46. }
  47. .btn-toggle:hover:not(.active) {
  48. opacity: 0.8;
  49. }
  50. .btn-toggle:active {
  51. transform: scale(0.97);
  52. }
  53. .skill-legend {
  54. display: flex;
  55. gap: $ios-spacing-md;
  56. justify-content: center;
  57. margin-bottom: $ios-spacing-xl;
  58. }
  59. .legend-item {
  60. display: flex;
  61. align-items: center;
  62. font-size: $ios-font-size-sm;
  63. color: $ios-text-secondary;
  64. font-family: $ios-font-family;
  65. }
  66. .legend-color {
  67. display: inline-block;
  68. width: 12px;
  69. height: 12px;
  70. margin-right: $ios-spacing-xs;
  71. border-radius: $ios-radius-full;
  72. box-shadow: $ios-shadow-sm;
  73. }
  74. .radar-chart-wrapper {
  75. width: 100%;
  76. height: 300px;
  77. margin-bottom: $ios-spacing-xl;
  78. position: relative;
  79. background-color: $ios-background-secondary;
  80. border-radius: $ios-radius-md;
  81. padding: $ios-spacing-lg;
  82. border: 1px solid $ios-border;
  83. }
  84. .radar-chart-wrapper canvas {
  85. width: 100% !important;
  86. height: 100% !important;
  87. }
  88. /* 技能分析区域 */
  89. .skill-analysis {
  90. margin-bottom: $ios-spacing-xl;
  91. background-color: $ios-background-secondary;
  92. border-radius: $ios-radius-md;
  93. padding: $ios-spacing-lg;
  94. border: 1px solid $ios-border;
  95. }
  96. .skill-analysis h4 {
  97. font-size: $ios-font-size-base;
  98. color: $ios-text-primary;
  99. font-weight: $ios-font-weight-medium;
  100. margin-bottom: $ios-spacing-md;
  101. font-family: $ios-font-family;
  102. }
  103. .analysis-items {
  104. display: grid;
  105. grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  106. gap: $ios-spacing-md;
  107. }
  108. .analysis-item {
  109. display: flex;
  110. flex-direction: column;
  111. margin-bottom: 0;
  112. gap: $ios-spacing-xs;
  113. }
  114. .skill-name {
  115. width: auto;
  116. font-size: $ios-font-size-sm;
  117. color: $ios-text-secondary;
  118. font-weight: $ios-font-weight-medium;
  119. flex-shrink: 0;
  120. font-family: $ios-font-family;
  121. }
  122. .skill-score {
  123. flex: 1;
  124. display: flex;
  125. align-items: center;
  126. gap: $ios-spacing-sm;
  127. }
  128. .score-bar {
  129. flex: 1;
  130. height: 8px;
  131. background-color: $ios-background-tertiary;
  132. border-radius: $ios-radius-full;
  133. position: relative;
  134. overflow: hidden;
  135. }
  136. .current-score {
  137. position: absolute;
  138. left: 0;
  139. top: 0;
  140. height: 100%;
  141. background-color: $ios-primary;
  142. border-radius: $ios-radius-full;
  143. transition: width 0.5s ease-out;
  144. }
  145. .score-info {
  146. display: flex;
  147. justify-content: space-between;
  148. font-size: $ios-font-size-xs;
  149. color: $ios-text-tertiary;
  150. margin-top: $ios-spacing-xs;
  151. }
  152. .target-score {
  153. position: absolute;
  154. left: 0;
  155. top: 0;
  156. height: 100%;
  157. background-color: $ios-success;
  158. opacity: 0.3;
  159. border-radius: $ios-radius-full;
  160. }
  161. .score-text {
  162. font-size: $ios-font-size-sm;
  163. font-weight: $ios-font-weight-medium;
  164. color: $ios-text-primary;
  165. width: 40px;
  166. text-align: right;
  167. font-family: $ios-font-family;
  168. }
  169. .target-text {
  170. font-size: $ios-font-size-xs;
  171. color: $ios-text-tertiary;
  172. font-family: $ios-font-family;
  173. }
  174. .skill-rating {
  175. width: 60px;
  176. text-align: right;
  177. font-size: $ios-font-size-sm;
  178. font-weight: $ios-font-weight-medium;
  179. font-family: $ios-font-family;
  180. }
  181. .rating-high {
  182. color: $ios-success;
  183. }
  184. .rating-medium {
  185. color: $ios-warning;
  186. }
  187. .rating-low {
  188. color: $ios-danger;
  189. }
  190. /* 提升建议区域 */
  191. .improvement-suggestions {
  192. margin-top: $ios-spacing-xl;
  193. background-color: color-mix(in srgb, $ios-primary 5%, transparent);
  194. border-radius: $ios-radius-md;
  195. padding: $ios-spacing-lg;
  196. border: 1px solid color-mix(in srgb, $ios-primary 20%, transparent);
  197. }
  198. .improvement-suggestions h4 {
  199. margin: 0 0 $ios-spacing-sm 0;
  200. font-size: $ios-font-size-base;
  201. color: $ios-primary;
  202. font-weight: $ios-font-weight-medium;
  203. font-family: $ios-font-family;
  204. }
  205. .suggestion-list {
  206. margin: 0;
  207. padding-left: $ios-spacing-lg;
  208. }
  209. .suggestion-list li {
  210. font-size: $ios-font-size-sm;
  211. color: $ios-text-secondary;
  212. line-height: 1.6;
  213. margin-bottom: $ios-spacing-xs;
  214. font-family: $ios-font-family;
  215. }
  216. /* 响应式设计 */
  217. @media (max-width: 768px) {
  218. .skill-radar-header {
  219. flex-direction: column;
  220. align-items: flex-start;
  221. gap: $ios-spacing-md;
  222. }
  223. .view-toggle {
  224. width: 100%;
  225. justify-content: center;
  226. }
  227. .analysis-items {
  228. grid-template-columns: 1fr;
  229. }
  230. .radar-chart-wrapper {
  231. height: 250px;
  232. }
  233. .improvement-suggestions {
  234. padding: $ios-spacing-md;
  235. }
  236. .radar-legend {
  237. width: 100%;
  238. justify-content: space-between;
  239. }
  240. .analysis-item {
  241. flex-direction: column;
  242. align-items: flex-start;
  243. gap: 5px;
  244. }
  245. .skill-name {
  246. width: auto;
  247. }
  248. .skill-score {
  249. width: 100%;
  250. }
  251. }