vertical-nav-styles.scss 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. @use '../../../../../shared/styles/_ios-theme.scss' as *;
  2. // 项目人员标签页样式
  3. .members-tab-content {
  4. .main-content-layout {
  5. display: grid;
  6. grid-template-columns: auto 1fr;
  7. gap: $ios-spacing-lg;
  8. align-items: start;
  9. }
  10. .members-content {
  11. background: $ios-background;
  12. border-radius: $ios-radius-lg;
  13. padding: $ios-spacing-lg;
  14. box-shadow: $ios-shadow-sm;
  15. }
  16. .members-header {
  17. margin-bottom: $ios-spacing-lg;
  18. h2 {
  19. color: $ios-text-primary;
  20. font-size: $ios-font-size-lg;
  21. font-weight: 600;
  22. margin: 0 0 $ios-spacing-xs 0;
  23. }
  24. .members-count {
  25. color: $ios-text-secondary;
  26. font-size: $ios-font-size-sm;
  27. margin: 0;
  28. }
  29. }
  30. .members-grid {
  31. display: grid;
  32. grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  33. gap: $ios-spacing-md;
  34. }
  35. .member-card {
  36. background: $ios-background;
  37. border: 1px solid $ios-border;
  38. border-radius: $ios-radius-md;
  39. padding: $ios-spacing-md;
  40. transition: all 0.2s ease;
  41. &:hover {
  42. box-shadow: $ios-shadow-md;
  43. transform: translateY(-2px);
  44. }
  45. .member-avatar {
  46. width: 60px;
  47. height: 60px;
  48. border-radius: 50%;
  49. margin-bottom: $ios-spacing-md;
  50. object-fit: cover;
  51. border: 2px solid $ios-border;
  52. }
  53. .member-info {
  54. text-align: center;
  55. .member-name {
  56. color: $ios-text-primary;
  57. font-size: $ios-font-size-md;
  58. font-weight: 600;
  59. margin: 0 0 $ios-spacing-xs 0;
  60. }
  61. .member-role {
  62. color: $ios-text-secondary;
  63. font-size: $ios-font-size-sm;
  64. margin: 0 0 $ios-spacing-sm 0;
  65. }
  66. .member-stats {
  67. display: flex;
  68. justify-content: space-between;
  69. margin-top: $ios-spacing-sm;
  70. .stat-item {
  71. text-align: center;
  72. flex: 1;
  73. .stat-value {
  74. color: $ios-text-secondary;
  75. font-size: $ios-font-size-xs;
  76. margin: 0;
  77. }
  78. .stat-label {
  79. background: $ios-border;
  80. color: white;
  81. font-size: $ios-font-size-xs;
  82. padding: 2px 6px;
  83. border-radius: 10px;
  84. margin-top: 2px;
  85. }
  86. &.active .stat-label {
  87. background: $ios-primary;
  88. }
  89. }
  90. }
  91. }
  92. .member-actions {
  93. margin-top: $ios-spacing-md;
  94. display: flex;
  95. gap: $ios-spacing-sm;
  96. .action-btn {
  97. flex: 1;
  98. padding: $ios-spacing-xs $ios-spacing-sm;
  99. border: none;
  100. border-radius: $ios-radius-sm;
  101. font-size: $ios-font-size-xs;
  102. cursor: pointer;
  103. transition: all 0.2s ease;
  104. &.primary {
  105. background: $ios-primary;
  106. color: white;
  107. &:hover {
  108. opacity: 0.9;
  109. }
  110. }
  111. &.secondary {
  112. background: $ios-background;
  113. border: 1px solid $ios-border;
  114. color: $ios-text-primary;
  115. &:hover {
  116. background: $ios-background-secondary;
  117. }
  118. }
  119. }
  120. }
  121. }
  122. }
  123. // 垂直导航栏样式
  124. .vertical-nav-container {
  125. .nav-section {
  126. margin-bottom: $ios-spacing-md; // 减小节间距
  127. .section-title {
  128. color: $ios-text-secondary;
  129. font-size: 10px; // 减小标题字体
  130. font-weight: 600;
  131. text-transform: uppercase;
  132. letter-spacing: 0.3px; // 减小字母间距
  133. margin: 0 0 $ios-spacing-xs 0; // 减小下边距
  134. padding: 0 $ios-spacing-sm; // 减小内边距
  135. }
  136. .nav-items {
  137. list-style: none;
  138. padding: 0;
  139. margin: 0;
  140. .nav-item {
  141. margin-bottom: 2px; // 减小项间距
  142. .nav-link {
  143. display: flex;
  144. align-items: center;
  145. padding: $ios-spacing-xs $ios-spacing-sm; // 减小内边距
  146. color: $ios-text-primary;
  147. text-decoration: none;
  148. border-radius: $ios-radius-sm; // 减小圆角
  149. transition: all 0.2s ease;
  150. font-size: $ios-font-size-xs; // 减小字体
  151. line-height: 1.2; // 减小行高
  152. &:hover {
  153. background: $ios-background-secondary;
  154. }
  155. &.active {
  156. background: $ios-primary;
  157. color: white;
  158. font-weight: 500;
  159. .nav-icon {
  160. color: white;
  161. }
  162. }
  163. .nav-icon {
  164. margin-right: $ios-spacing-xs; // 减小图标间距
  165. font-size: 12px; // 减小图标尺寸
  166. width: 12px;
  167. text-align: center;
  168. flex-shrink: 0;
  169. }
  170. .nav-text {
  171. flex: 1;
  172. white-space: nowrap;
  173. overflow: hidden;
  174. text-overflow: ellipsis;
  175. }
  176. .nav-badge {
  177. background: $ios-border;
  178. color: white;
  179. font-size: 9px; // 减小徽标字体
  180. padding: 1px 4px; // 减小徽标内边距
  181. border-radius: 6px; // 减小徽标圆角
  182. margin-left: auto;
  183. min-width: 14px;
  184. text-align: center;
  185. }
  186. &.active .nav-badge {
  187. background: rgba(255, 255, 255, 0.2);
  188. }
  189. }
  190. }
  191. }
  192. }
  193. }
  194. // 响应式设计
  195. @media (max-width: 768px) {
  196. .members-tab-content {
  197. .main-content-layout {
  198. grid-template-columns: 1fr;
  199. gap: $ios-spacing-md;
  200. }
  201. .members-grid {
  202. grid-template-columns: 1fr;
  203. }
  204. }
  205. .vertical-nav-container {
  206. .nav-section {
  207. .nav-items {
  208. .nav-item {
  209. .nav-link {
  210. padding: $ios-spacing-md;
  211. font-size: $ios-font-size-md;
  212. .nav-icon {
  213. font-size: 18px;
  214. width: 18px;
  215. }
  216. }
  217. }
  218. }
  219. }
  220. }
  221. }
  222. // 加载状态
  223. .loading-state {
  224. display: flex;
  225. justify-content: center;
  226. align-items: center;
  227. height: 200px;
  228. color: $ios-text-secondary;
  229. font-size: $ios-font-size-sm;
  230. }
  231. // 空状态
  232. .empty-state {
  233. text-align: center;
  234. padding: $ios-spacing-xxl;
  235. color: $ios-text-secondary;
  236. .empty-icon {
  237. font-size: 48px;
  238. margin-bottom: $ios-spacing-md;
  239. opacity: 0.5;
  240. }
  241. .empty-title {
  242. font-size: $ios-font-size-lg;
  243. font-weight: 600;
  244. margin: 0 0 $ios-spacing-sm 0;
  245. }
  246. .empty-description {
  247. font-size: $ios-font-size-sm;
  248. margin: 0;
  249. line-height: 1.5;
  250. }
  251. }