-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiary.wxss
96 lines (83 loc) · 1.45 KB
/
diary.wxss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
html, body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
overflow: hidden; /* 禁止页面滚动 */
}
.container {
width: 100%;
text-align: center;
display: flex;
flex-direction: column;
align-items: center; /* 确保内容在容器中间 */
}
.dog-scroll {
display: flex;
overflow-x: auto; /* 只允许横向滚动 */
padding: 10px 0;
white-space: nowrap;
margin-top: 20px;
}
.dog-avatar-container {
display: inline-block;
width: 100px;
height: 100px;
margin-right: 10px;
}
.dog-avatar {
width: 100%;
height: 100%;
border-radius: 50%;
overflow: hidden;
}
.diary-scroll {
width: 100%;
margin-top: 20px;
flex: 1;
}
.post-container {
background-color: white;
margin-bottom: 10px;
padding: 10px;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.post-header {
display: flex;
align-items: center;
}
.post-dog-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
margin-right: 10px;
}
.post-date {
font-size: 14px;
color: #888;
}
.post-content {
margin-top: 10px;
font-size: 16px;
color: #333;
white-space: normal;
word-wrap: break-word; /* 确保文本自动换行 */
}
.post-footer {
margin-top: 10px;
display: flex;
align-items: center;
}
.like-icon {
width: 20px;
height: 20px;
margin-right: 5px;
}
.like-count {
font-size: 14px;
color: #888;
}