-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfx-post-shared.css
More file actions
260 lines (221 loc) · 4.71 KB
/
fx-post-shared.css
File metadata and controls
260 lines (221 loc) · 4.71 KB
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
/* Shared FxEmbed Post Styles - Used by both popup and history page */
/* Base post container */
.fx-post {
background: var(--bg-primary);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 12px;
cursor: pointer;
transition: all 0.2s;
}
.fx-post:hover {
background-color: var(--bg-hover);
border-color: var(--border-hover, var(--accent));
}
/* Post wrapper for list layout */
.fx-post-wrapper {
display: flex;
gap: 10px;
align-items: flex-start;
}
.fx-post-main {
flex: 1;
min-width: 0; /* Allow text to shrink */
display: flex;
flex-direction: column;
}
/* Header with avatar and author */
.fx-post-header {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 8px;
position: relative;
}
.fx-post-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
flex-shrink: 0;
}
.fx-post-author {
flex: 1;
min-width: 0; /* Allow text to truncate */
display: flex;
flex-direction: column;
justify-content: center;
}
.fx-post-name {
font-weight: 700;
font-size: 16px;
color: var(--text-primary);
line-height: 1.2;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.fx-post-handle {
color: var(--text-secondary);
font-size: 15px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* Content */
.fx-post-content {
margin-bottom: 8px;
}
.fx-post-content p {
color: var(--text-primary);
font-size: 16px; /* Consistent with history page */
line-height: 1.5;
margin: 0;
word-wrap: break-word;
}
/* Removed footer and stats styles as they are no longer needed */
.fx-post-datetime {
display: flex;
flex-direction: column;
align-items: flex-end;
margin-left: auto; /* Push to the right */
flex-shrink: 0; /* Prevent shrinking */
gap: 2px;
}
.fx-post-date-day,
.fx-post-date-time {
font-size: 13px;
color: var(--text-secondary);
white-space: nowrap;
}
/* Links in post content */
.fx-post-content a,
.fx-post a.post-link,
.fx-post a.post-mention,
.fx-post a.post-hashtag {
color: #1d9bf0; /* Twitter blue */
text-decoration: none;
}
.fx-post-content a:hover,
.fx-post a.post-link:hover,
.fx-post a.post-mention:hover,
.fx-post a.post-hashtag:hover {
text-decoration: underline;
}
/* Dark theme links */
body.dark-theme .fx-post-content a,
body.dark-theme .fx-post a.post-link,
body.dark-theme .fx-post a.post-mention,
body.dark-theme .fx-post a.post-hashtag {
color: #1d9bf0; /* Same blue in dark theme */
}
/* Search highlight */
.search-highlight {
background-color: rgba(255, 212, 0, 0.4);
padding: 0 2px;
border-radius: 2px;
}
body.dark-theme .search-highlight {
background-color: rgba(255, 212, 0, 0.2);
}
/* Post skeleton loader */
.post-skeleton {
padding: 12px;
background: var(--bg-card);
border-radius: 12px;
border: 1px solid var(--border-color);
}
.skeleton-header {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 12px;
}
.skeleton-avatar {
width: 40px;
height: 40px;
background: var(--skeleton-primary);
border-radius: 50%;
animation: pulse 1.5s infinite;
}
.skeleton-author {
flex: 1;
}
.skeleton-name,
.skeleton-handle {
height: 12px;
background: var(--skeleton-primary);
border-radius: 4px;
margin-bottom: 6px;
animation: pulse 1.5s infinite;
}
.skeleton-name {
width: 120px;
}
.skeleton-handle {
width: 80px;
opacity: 0.7;
}
.skeleton-content {
margin-bottom: 12px;
}
.skeleton-line {
height: 12px;
background: var(--skeleton-primary);
border-radius: 4px;
margin-bottom: 6px;
animation: pulse 1.5s infinite;
}
.skeleton-line:nth-child(1) { width: 100%; }
.skeleton-line:nth-child(2) { width: 90%; }
.skeleton-line:nth-child(3) { width: 75%; }
@keyframes pulse {
0%, 100% {
opacity: 0.6;
}
50% {
opacity: 0.3;
}
}
/* Post item container */
.post-item {
margin: 8px 0;
opacity: 0;
animation: fadeIn 0.3s ease-in forwards;
}
.post-loaded {
opacity: 1;
}
/* Fallback styles */
.post-fallback {
padding: 14px;
border: 1px solid var(--border-color);
border-radius: 8px;
background-color: var(--bg-fallback, var(--bg-secondary));
margin: 10px 0;
}
.post-author {
font-weight: 600;
color: var(--text-primary);
margin-bottom: 4px;
}
.post-error {
color: var(--text-secondary);
font-size: 14px;
margin-bottom: 8px;
}
.post-link {
color: var(--accent);
text-decoration: none;
font-size: 14px;
}
.post-link:hover {
text-decoration: underline;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}