dashboard.scss 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  1. // 导入iOS主题变量
  2. @import '../ios-theme.scss';
  3. .dashboard-container {
  4. max-width: 1200px;
  5. margin: 0 auto;
  6. padding: 20px;
  7. background-color: $ios-background;
  8. min-height: 100vh;
  9. }
  10. .dashboard-header {
  11. margin-bottom: 30px;
  12. h1 {
  13. font-size: 32px;
  14. color: $ios-text-primary;
  15. font-weight: $ios-font-weight-semibold;
  16. font-family: $ios-font-family;
  17. }
  18. }
  19. .dashboard-main {
  20. display: grid;
  21. grid-template-columns: 1fr 1fr;
  22. gap: 24px;
  23. .task-section {
  24. grid-column: 1 / -1;
  25. }
  26. }
  27. .section-header {
  28. margin-bottom: 16px;
  29. h2 {
  30. font-size: 22px;
  31. color: $ios-text-primary;
  32. font-weight: $ios-font-weight-medium;
  33. display: flex;
  34. align-items: center;
  35. font-family: $ios-font-family;
  36. &::before {
  37. content: '';
  38. display: inline-block;
  39. width: 3px;
  40. height: 20px;
  41. background-color: $ios-primary;
  42. margin-right: 10px;
  43. border-radius: $ios-radius-full;
  44. }
  45. }
  46. }
  47. .task-list {
  48. display: grid;
  49. gap: 16px;
  50. }
  51. .task-item {
  52. background: $ios-card-background;
  53. border-radius: $ios-radius-lg;
  54. padding: 20px;
  55. box-shadow: $ios-shadow-card;
  56. transition: all 0.3s ease;
  57. border: 1px solid $ios-border;
  58. &:hover {
  59. box-shadow: $ios-shadow-lg;
  60. transform: translateY(-2px);
  61. }
  62. .task-header {
  63. display: flex;
  64. justify-content: space-between;
  65. align-items: center;
  66. margin-bottom: 12px;
  67. h3 {
  68. font-size: 17px;
  69. color: $ios-text-primary;
  70. margin: 0;
  71. font-family: $ios-font-family;
  72. }
  73. .task-stage {
  74. font-size: 13px;
  75. padding: 6px 14px;
  76. border-radius: $ios-radius-full;
  77. background-color: $ios-primary-light;
  78. color: $ios-primary;
  79. border: 1px solid $ios-primary;
  80. }
  81. }
  82. .task-info {
  83. margin-bottom: 16px;
  84. .project-name {
  85. font-size: 15px;
  86. color: $ios-text-secondary;
  87. margin: 6px 0;
  88. }
  89. .deadline {
  90. font-size: 15px;
  91. color: $ios-text-secondary;
  92. margin: 6px 0;
  93. &.overdue {
  94. color: $ios-danger;
  95. }
  96. .overdue-badge {
  97. background-color: rgba(255, 59, 48, 0.1);
  98. color: $ios-danger;
  99. padding: 4px 10px;
  100. border-radius: $ios-radius-full;
  101. font-size: 12px;
  102. margin-left: 8px;
  103. border: 1px solid $ios-danger;
  104. }
  105. }
  106. }
  107. .task-actions {
  108. display: flex;
  109. gap: 12px;
  110. button {
  111. padding: 10px 18px;
  112. border: none;
  113. border-radius: $ios-radius-md;
  114. font-size: 15px;
  115. cursor: pointer;
  116. transition: $ios-animation-normal $ios-animation-easing;
  117. font-weight: $ios-font-weight-medium;
  118. font-family: $ios-font-family;
  119. }
  120. .btn-complete {
  121. background-color: $ios-success;
  122. color: white;
  123. &:hover {
  124. background-color: darken($ios-success, 5%);
  125. transform: translateY(-1px);
  126. box-shadow: $ios-shadow-md;
  127. }
  128. &:active {
  129. transform: translateY(0);
  130. }
  131. }
  132. .btn-detail {
  133. background-color: $ios-primary;
  134. color: white;
  135. &:hover {
  136. background-color: #003A8C;
  137. transform: translateY(-1px);
  138. box-shadow: $ios-shadow-md;
  139. }
  140. &:active {
  141. transform: translateY(0);
  142. }
  143. }
  144. }
  145. }
  146. .warning-section {
  147. grid-column: 1 / -1;
  148. }
  149. .warning-list {
  150. display: grid;
  151. gap: 16px;
  152. }
  153. .warning-item {
  154. background: rgba(255, 149, 0, 0.1);
  155. border: 1px solid $ios-warning;
  156. border-radius: $ios-radius-lg;
  157. padding: 16px 20px;
  158. display: flex;
  159. justify-content: space-between;
  160. align-items: center;
  161. .warning-content {
  162. .warning-title {
  163. font-size: 17px;
  164. color: $ios-warning;
  165. font-weight: $ios-font-weight-medium;
  166. margin: 0 0 6px 0;
  167. font-family: $ios-font-family;
  168. }
  169. .warning-detail {
  170. font-size: 15px;
  171. color: $ios-warning;
  172. margin: 0;
  173. }
  174. }
  175. .warning-actions {
  176. .btn-generate-reminder {
  177. padding: 10px 18px;
  178. border: 1px solid $ios-warning;
  179. border-radius: $ios-radius-md;
  180. background-color: $ios-card-background;
  181. color: $ios-warning;
  182. font-size: 15px;
  183. cursor: pointer;
  184. transition: all 0.3s ease;
  185. font-weight: 500;
  186. font-family: $ios-font-family;
  187. &:hover {
  188. background-color: $ios-warning;
  189. color: white;
  190. transform: translateY(-1px);
  191. box-shadow: $ios-shadow-md;
  192. }
  193. &:active {
  194. transform: translateY(0);
  195. }
  196. }
  197. }
  198. }
  199. .quick-access-section {
  200. grid-column: 1 / -1;
  201. }
  202. .quick-access-grid {
  203. display: grid;
  204. grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  205. gap: 16px;
  206. }
  207. .quick-access-item {
  208. background: $ios-card-background;
  209. border-radius: $ios-radius-lg;
  210. padding: 20px 24px;
  211. box-shadow: $ios-shadow-card;
  212. text-decoration: none;
  213. transition: all 0.3s ease;
  214. border: 1px solid $ios-border;
  215. &:hover {
  216. box-shadow: $ios-shadow-md;
  217. transform: translateY(-2px);
  218. }
  219. h3 {
  220. font-size: 20px;
  221. color: $ios-text-primary;
  222. margin: 0 0 12px 0;
  223. font-family: $ios-font-family;
  224. }
  225. p {
  226. font-size: 15px;
  227. color: $ios-text-secondary;
  228. margin: 0;
  229. }
  230. }
  231. .empty-state {
  232. text-align: center;
  233. padding: 48px 24px;
  234. color: $ios-text-tertiary;
  235. background-color: $ios-card-background;
  236. border-radius: $ios-radius-lg;
  237. border: 1px dashed $ios-border;
  238. }
  239. .reminder-modal {
  240. position: fixed;
  241. top: 0;
  242. left: 0;
  243. right: 0;
  244. bottom: 0;
  245. background-color: rgba(0, 0, 0, 0.5);
  246. display: flex;
  247. justify-content: center;
  248. align-items: center;
  249. z-index: 1000;
  250. backdrop-filter: blur(8px);
  251. }
  252. .modal-content {
  253. background: $ios-card-background;
  254. border-radius: $ios-radius-xl;
  255. padding: 24px;
  256. max-width: 400px;
  257. width: 90%;
  258. text-align: center;
  259. box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  260. border: 1px solid $ios-border;
  261. h3 {
  262. font-size: 20px;
  263. color: $ios-text-primary;
  264. margin: 0 0 16px 0;
  265. font-family: $ios-font-family;
  266. }
  267. p {
  268. font-size: 15px;
  269. color: $ios-text-secondary;
  270. margin: 0 0 24px 0;
  271. line-height: 1.6;
  272. }
  273. .btn-close {
  274. padding: 12px 24px;
  275. border: none;
  276. border-radius: $ios-radius-md;
  277. background-color: $ios-primary;
  278. color: white;
  279. font-size: 15px;
  280. cursor: pointer;
  281. transition: all 0.3s ease;
  282. font-weight: $ios-font-weight-medium;
  283. font-family: $ios-font-family;
  284. &:hover {
  285. background-color: darken($ios-primary, 5%);
  286. transform: translateY(-1px);
  287. box-shadow: $ios-shadow-md;
  288. }
  289. &:active {
  290. transform: translateY(0);
  291. }
  292. }
  293. }
  294. @media (max-width: 768px) {
  295. .dashboard-main {
  296. grid-template-columns: 1fr;
  297. }
  298. .task-actions {
  299. flex-direction: column;
  300. button {
  301. width: 100%;
  302. }
  303. }
  304. .warning-item {
  305. flex-direction: column;
  306. gap: 15px;
  307. .warning-actions {
  308. width: 100%;
  309. .btn-generate-reminder {
  310. width: 100%;
  311. }
  312. }
  313. }
  314. }