-
Notifications
You must be signed in to change notification settings - Fork 2
/
post.css
129 lines (111 loc) · 2.06 KB
/
post.css
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
/* Vars */
:root {
--rdp-font: "Arial", sans-serif;
--rdp-bg-color: #ebf3f5;
--rdp-text-color: #000000;
--rdp-cw-color: #f87171;
--rdp-link-color: #0ea5e9;
--rdp-details-color: #4d626a;
--rdp-border-color: #cccccc;
--rdp-border-radius: 6px;
}
/* Component styles */
.distributed-post {
background: var(--rdp-bg-color);
border: 1px solid var(--rdp-border-color);
border-radius: var(--rdp-border-radius);
padding: 16px;
max-width: 500px;
margin: 16px auto;
}
.distributed-post-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16px;
}
.distributed-post-author {
display: flex;
align-items: center;
}
.actor-details {
display: flex;
flex-direction: column;
}
.actor-name {
color: var(--rdp-text-color);
font-weight: bold;
cursor: pointer;
}
.actor-username {
color: var(--rdp-details-color);
margin-top: 1px;
}
.time-ago {
font-size: 0.875rem;
color: var(--rdp-details-color);
}
.time-ago:hover{
text-decoration: none;
}
.full-date{
color: var(--rdp-details-color);
}
.full-date:hover{
text-decoration: none;
}
.cw-summary {
color: var(--rdp-cw-color);
}
.see-more-toggle {
color: var(--rdp-details-color);
font-size: 0.725em;
margin-left: 4px;
cursor: pointer;
}
.post-content {
font-size: 16px;
color: var(--rdp-text-color);
padding: 6px;
margin-bottom: 20px;
overflow-wrap: break-word;
}
.post-content a{
color: var(--rdp-link-color);
text-decoration: underline;
}
.post-content a:hover{
text-decoration: none;
}
.post-footer, .reply-footer {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.875rem;
color: var(--rdp-details-color);
}
.individual-post{
flex: 1;
max-width: 600px;
width: 100%;
margin: 0 20px;
}
@media (max-width: 768px) {
.distributed-post {
max-width: 80%;
padding: 12px;
margin: 8px auto;
}
.post-content,
.post-footer,
.time-ago {
font-size: 0.875rem;
}
.actor-icon {
width: 40px;
height: 40px;
}
.individual-post{
margin-top: 170px;
}
}