tab1.page.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. box-sizing: border-box;
  5. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  6. }
  7. body {
  8. background-color: #f8f4ee;
  9. color: #5a4a42;
  10. min-height: 100vh;
  11. display: flex;
  12. flex-direction: column;
  13. }
  14. /* 顶部标题栏 */
  15. .header {
  16. background-color: #fff9f0;
  17. padding: 15px 20px;
  18. display: flex;
  19. justify-content: space-between;
  20. align-items: center;
  21. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  22. position: sticky;
  23. top: 0;
  24. z-index: 100;
  25. border-bottom: 1px solid #f0e6d6;
  26. .header-title {
  27. font-size: 1.1rem;
  28. font-weight: 600;
  29. color: #b38a58;
  30. letter-spacing: 0.5px;
  31. }
  32. // ion-buttons {
  33. // display: flex;
  34. // align-items: center;
  35. // gap: 8px;
  36. // }
  37. ion-button {
  38. --box-shadow: none;
  39. margin-left: 8px;
  40. }
  41. }
  42. /* 内容区域 */
  43. .content {
  44. flex: 1;
  45. padding: 20px 15px;
  46. overflow-y: auto;
  47. }
  48. /* 日记卡片 */
  49. .diary-card {
  50. background-color: #fff;
  51. border-radius: 14px;
  52. padding: 18px;
  53. margin-bottom: 18px;
  54. box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
  55. display: flex;
  56. transition: all 0.25s ease;
  57. border: 1px solid #f0e6d6;
  58. }
  59. .diary-card:active {
  60. transform: scale(0.98);
  61. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  62. }
  63. .diary-time {
  64. width: 70px;
  65. padding-right: 16px;
  66. display: flex;
  67. flex-direction: column;
  68. align-items: center;
  69. }
  70. .diary-date {
  71. font-size: 1.5rem;
  72. font-weight: bold;
  73. color: #e67e22;
  74. line-height: 1;
  75. }
  76. .diary-week {
  77. font-size: 0.75rem;
  78. color: #e67e22;
  79. margin: 5px 0;
  80. font-weight: 500;
  81. opacity: 0.9;
  82. }
  83. .diary-hour {
  84. font-size: 0.75rem;
  85. color: #e67e22;
  86. opacity: 0.8;
  87. font-weight: 500;
  88. }
  89. .diary-content {
  90. flex: 1;
  91. padding-left: 16px;
  92. font-size: 0.95rem;
  93. line-height: 1.7;
  94. color: #5a4a42;
  95. border-left: 1px dashed #f0e6d6;
  96. padding-top: 3px;
  97. }
  98. .diary-meta {
  99. margin-top: 8px;
  100. display: flex;
  101. gap: 8px;
  102. .weather, .mood {
  103. font-size: 14px;
  104. padding: 2px 8px;
  105. border-radius: 4px;
  106. background-color: var(--ion-color-light);
  107. }
  108. }
  109. .empty-state {
  110. text-align: center;
  111. margin-top: 50px;
  112. color: var(--ion-color-medium);
  113. ion-icon {
  114. font-size: 64px;
  115. margin-bottom: 16px;
  116. }
  117. p {
  118. font-size: 16px;
  119. }
  120. }