123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- * {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
- }
- body {
- background-color: #f8f4ee;
- color: #5a4a42;
- min-height: 100vh;
- display: flex;
- flex-direction: column;
- }
- /* 顶部标题栏 */
- .header {
- background-color: #fff9f0;
- padding: 15px 20px;
- display: flex;
- justify-content: space-between;
- align-items: center;
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
- position: sticky;
- top: 0;
- z-index: 100;
- border-bottom: 1px solid #f0e6d6;
- .header-title {
- font-size: 1.1rem;
- font-weight: 600;
- color: #b38a58;
- letter-spacing: 0.5px;
- }
- // ion-buttons {
- // display: flex;
- // align-items: center;
- // gap: 8px;
- // }
-
- ion-button {
- --box-shadow: none;
- margin-left: 8px;
- }
- }
-
- /* 内容区域 */
- .content {
- flex: 1;
- padding: 20px 15px;
- overflow-y: auto;
- }
- /* 日记卡片 */
- .diary-card {
- background-color: #fff;
- border-radius: 14px;
- padding: 18px;
- margin-bottom: 18px;
- box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
- display: flex;
- transition: all 0.25s ease;
- border: 1px solid #f0e6d6;
- }
- .diary-card:active {
- transform: scale(0.98);
- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
- }
- .diary-time {
- width: 70px;
- padding-right: 16px;
- display: flex;
- flex-direction: column;
- align-items: center;
- }
- .diary-date {
- font-size: 1.5rem;
- font-weight: bold;
- color: #e67e22;
- line-height: 1;
- }
- .diary-week {
- font-size: 0.75rem;
- color: #e67e22;
- margin: 5px 0;
- font-weight: 500;
- opacity: 0.9;
- }
- .diary-hour {
- font-size: 0.75rem;
- color: #e67e22;
- opacity: 0.8;
- font-weight: 500;
- }
- .diary-content {
- flex: 1;
- padding-left: 16px;
- font-size: 0.95rem;
- line-height: 1.7;
- color: #5a4a42;
- border-left: 1px dashed #f0e6d6;
- padding-top: 3px;
- }
- .diary-meta {
- margin-top: 8px;
- display: flex;
- gap: 8px;
-
- .weather, .mood {
- font-size: 14px;
- padding: 2px 8px;
- border-radius: 4px;
- background-color: var(--ion-color-light);
- }
- }
- .empty-state {
- text-align: center;
- margin-top: 50px;
- color: var(--ion-color-medium);
-
- ion-icon {
- font-size: 64px;
- margin-bottom: 16px;
- }
-
- p {
- font-size: 16px;
- }
- }
|