git ssb

10+

Matt McKegg / patchwork



Tree: 08d3127203ab8e7500aba6fcdd7343ef094146d3

Files: 08d3127203ab8e7500aba6fcdd7343ef094146d3 / styles / dark / message.mcss

4735 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 margin-bottom: 15px
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 margin-top: -3px;
134
135 -new {
136 background-image: svg(new)
137 }
138
139 @svg new {
140 width: 12px
141 height: 12px
142 content: "<circle cx='6' stroke='none' fill='#efef00' cy='6' r='5' />"
143 }
144 }
145
146 em {
147 display: inline-block
148 padding: 4px
149 }
150
151 a.channel {
152 font-size: 75%;
153
154 :hover {
155 color: #c1cdf0
156 }
157 }
158
159 a.likes {
160 font-size: 75%;
161
162 :hover {
163 color: #ff2f92
164 }
165 }
166
167 (a.Timestamp) {
168 font-size: 75%
169 font-weight: normal
170 }
171
172 span.private {
173 display: inline-block;
174 margin: -3px -3px 3px 4px;
175 position: relative;
176
177 a {
178 display: inline-block
179
180 :first-child {
181 img {
182 border-top-left-radius: 3px
183 border-bottom-left-radius: 3px
184 }
185 }
186
187 :last-child {
188 img {
189 border-top-right-radius: 3px
190 border-bottom-right-radius: 3px
191 }
192 }
193
194 img {
195 margin: 0
196 vertical-align: bottom
197 border: none
198 }
199 }
200
201 :after {
202 content: 'private';
203 position: absolute;
204 background: rgba(0,0,0,0.75);
205 bottom: 0;
206 left: -1px;
207 font-size: 10px;
208 padding: 1px 4px;
209 border-top-right-radius: 3px;
210 color: #ccc;
211 pointer-events: none;
212 white-space: nowrap
213 }
214 }
215 }
216 }
217
218 section {
219 margin: 0
220 padding: 0 20px
221 (img) {
222 max-width: 100%
223 }
224 }
225
226 a.backlink {
227 display: block;
228 border-top: 1px solid #EEE;
229 padding: 10px 15px;
230 background: #ffffff;
231 color: #8f8f8f;
232 margin-top: -1px;
233 font-size: 9pt;
234
235 :hover {
236 text-decoration: none
237 color: #777
238 }
239 }
240
241 footer {
242 margin: 5px 0 20px;
243 padding: 0 20px
244
245 div.actions {
246 a.like {
247 :before {
248 content: "❤ "
249 }
250 :hover {
251 background: #ff2f92
252 }
253 }
254 a.unlike {
255 :before {
256 content: ""
257 }
258 :hover {
259 background: #434141
260 }
261 }
262 a {
263 font-size: 13px
264 background: #2d2c2c
265 padding: 6px 10px
266 border-radius: 3px
267 color: #ccc
268 display: inline-block
269 text-align: center
270 transition: background-color 0.25s ease, color 0.25s ease
271
272 :before {
273 content: "↩ "
274 }
275 :hover {
276 background: #45b754
277 color: white
278 }
279 }
280 a + a {
281 margin-left: 10px;
282 }
283 }
284 }
285}
286

Built with git-ssb-web