git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Tree: 5d522e772823f245757c075ccf808703132fa77d

Files: 5d522e772823f245757c075ccf808703132fa77d / styles / dark / message.mcss

4592 bytesRaw
1Message {
2 display: flex
3 flex-direction: column
4 background: #383736
5 position: relative
6 font-size: 120%
7 line-height: 1.4
8 flex-shrink: 0
9
10 (highlight) {
11 background-color: yellow
12 }
13
14 :focus {
15 z-index: 1
16 }
17
18 -data {
19 header {
20 div.main {
21 font-size: 80%
22 a.avatar {
23 img {
24 width: 25px
25 }
26 }
27 }
28 }
29 (pre) {
30 overflow: auto
31 max-height: 200px
32 }
33 }
34
35 -mini {
36 header {
37 font-size: 100%
38
39 div.main {
40 a.avatar {
41 img {
42 width: 40px
43 height: 40px
44 }
45 }
46 }
47 }
48 }
49
50 -reply {
51 header {
52 font-size: 100%
53 div.meta {
54 a.channel {
55 display: none;
56 }
57 span.private {
58 (img) {
59 width: 40px
60 height: 40px
61 }
62 }
63 }
64 div.main {
65 a.avatar {
66 img {
67 width: 40px
68 height: 40px
69 }
70 }
71 }
72 }
73 }
74
75 -new {
76 box-shadow: 0 0 1px #efef00;
77 z-index: 1;
78 }
79
80 header {
81 font-size: 120%
82 margin: 20px 20px 0
83 display: flex
84
85 div.mini {
86 flex: 1
87 }
88
89 div.main {
90 display: flex
91 flex: 1
92
93 a.avatar {
94 img {
95 border-radius: 3px
96 width: 50px
97 height: 50px
98 }
99 }
100
101 div.main {
102 div.name {
103 a {
104 color: #757474
105 font-weight: bold
106
107 :hover {
108 color: #aaa
109 }
110 }
111 }
112 div.meta {
113 font-size: 75%
114 }
115 margin-left: 10px
116 }
117 }
118
119 div.meta {
120 display: flex;
121 flex-direction: column-reverse;
122 align-items: flex-end;
123 justify-content: flex-end;
124
125 span.flag {
126 width: 12px
127 height: 12px
128
129 background-repeat: no-repeat
130 background-position: center
131 display: inline-block
132 vertical-align: middle;
133
134 -new {
135 width: auto
136 height: auto
137 :before {
138 content: '✸ new'
139 font-size: 75%
140 }
141 }
142 }
143
144 em {
145 display: inline-block
146 padding: 4px
147 }
148
149 a.channel {
150 font-size: 75%;
151
152 :hover {
153 color: #c1cdf0
154 }
155 }
156
157 a.likes {
158 font-size: 75%;
159
160 :hover {
161 color: #ff2f92
162 }
163 }
164
165 (a.Timestamp) {
166 font-size: 75%
167 font-weight: normal
168 }
169
170 span.private {
171 display: inline-block;
172 margin: -3px -3px 3px 4px;
173 position: relative;
174
175 a {
176 display: inline-block
177
178 :first-child {
179 img {
180 border-top-left-radius: 3px
181 border-bottom-left-radius: 3px
182 }
183 }
184
185 :last-child {
186 img {
187 border-top-right-radius: 3px
188 border-bottom-right-radius: 3px
189 }
190 }
191
192 img {
193 margin: 0
194 vertical-align: bottom
195 border: none
196 }
197 }
198
199 :after {
200 content: 'private';
201 position: absolute;
202 background: rgba(0,0,0,0.75);
203 bottom: 0;
204 left: -1px;
205 font-size: 10px;
206 padding: 1px 4px;
207 border-top-right-radius: 3px;
208 color: #ccc;
209 pointer-events: none;
210 white-space: nowrap
211 }
212 }
213 }
214 }
215
216 section {
217 margin: 0
218 padding: 0 20px
219 (img) {
220 max-width: 100%
221 }
222 }
223
224 a.backlink {
225 display: block;
226 padding: 10px 20px
227 background: #2d2c2c
228 color: #757474;
229 margin-top: -1px;
230 font-size: 9pt;
231
232 :hover {
233 text-decoration: none
234 color: #aaa
235 }
236 }
237
238 footer {
239 margin: 5px 0 20px;
240 padding: 0 20px
241
242 div.actions {
243 a.like {
244 :before {
245 content: "❤ "
246 }
247 :hover {
248 background: #ff2f92
249 }
250 }
251 a.unlike {
252 :before {
253 content: ""
254 }
255 :hover {
256 background: #434141
257 }
258 }
259 a {
260 font-size: 13px
261 background: #2d2c2c
262 padding: 6px 10px
263 border-radius: 3px
264 color: #ccc
265 display: inline-block
266 text-align: center
267 transition: background-color 0.25s ease, color 0.25s ease
268
269 :before {
270 content: "↩ "
271 }
272 :hover {
273 background: #45b754
274 color: white
275 }
276 }
277 a + a {
278 margin-left: 10px;
279 }
280 }
281 }
282}
283

Built with git-ssb-web