git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Commit c99630ba531d862b38a3a4e85b19b203f19d47d8

Simplify likes and more pixel pushing

Oli Evans committed on 4/23/2017, 6:17:49 PM
Parent: 5b9d7ca9bb4a61d94b54a1fc968703c840a856d9

Files changed

plugs/message/html/meta/likes.jschanged
styles/feed-event.mcsschanged
styles/message.mcsschanged
plugs/message/html/meta/likes.jsView
@@ -16,9 +16,9 @@
1616 function likeCount (likes) {
1717 if (likes.length) {
1818 return [' ', h('span.likes', {
1919 title: names(likes)
20- }, ['+', h('strong', `${likes.length}`)])]
20+ }, [`${likes.length} ${likes.length === 1 ? 'like' : 'likes'}`])]
2121 }
2222 }
2323
2424 function names (ids) {
styles/feed-event.mcssView
@@ -1,12 +1,12 @@
11 FeedEvent {
22 display: flex
33 flex-direction: column
44 background: white
5- box-shadow: 0 0 4px 1px rgba(0,0,0,0.1)
5+ box-shadow: 0 2px 4px rgba(0,0,0,0.1)
66 max-width: 700px
77 width: 100%
8- margin: 0 auto 25px
8+ margin: 25px auto
99
1010 -new {
1111 box-shadow: 0px 0px 2px #ffc800;
1212 background: #fffdf7;
@@ -18,13 +18,12 @@
1818
1919 a.full {
2020 display: block;
2121 padding: 10px;
22- background: #daecd6;
22+ background: f3fafd;
2323 border-top: 1px solid #bbc9d2;
2424 border-bottom: 1px solid #bbc9d2;
2525 text-align: center;
26- color: #759053;
2726 }
2827
2928 div.replies {
3029 font-size: 100%
styles/message.mcssView
@@ -49,8 +49,13 @@
4949
5050 -reply {
5151 font-size: 120%
5252 header {
53+ div.meta {
54+ a.channel {
55+ display: none;
56+ }
57+ }
5358 div.main {
5459 a.avatar {
5560 img {
5661 width: 40px
@@ -65,9 +70,9 @@
6570 border-color: #ffe794
6671 }
6772
6873 header {
69- margin: 10px 20px 0
74+ margin: 15px 20px 0
7075 display: flex
7176
7277 div.mini {
7378 flex: 1
@@ -85,9 +90,8 @@
8590 }
8691
8792 div.main {
8893 div.name {
89- font-size: 120%
9094 a {
9195 color: #444
9296 font-weight: bold
9397 }
@@ -99,8 +103,12 @@
99103 }
100104 }
101105
102106 div.meta {
107+ display: flex;
108+ flex-direction: column-reverse;
109+ align-items: flex-end;
110+ justify-content: flex-end;
103111
104112 span.flag {
105113 width: 12px
106114 height: 12px
@@ -127,20 +135,14 @@
127135 padding: 4px
128136 }
129137
130138 a.channel {
131- display: inline-block
132- padding: 4px
139+ font-weight: bold;
133140 }
134141
135142 span.likes {
136- margin-right: 10px;
137143 color: #286bc3;
138- font-weight: 200;
139- strong {
140- color: #286bc3;
141- font-weight: 200;
142- }
144+ font-size:90%;
143145 }
144146
145147 span.private {
146148 display: inline-block;
@@ -176,9 +178,10 @@
176178 }
177179 }
178180
179181 section {
180- margin: 0 15px
182+ margin: 0
183+ padding: 0 20px
181184 (img) {
182185 max-width: 100%
183186 }
184187 }
@@ -200,26 +203,21 @@
200203 }
201204 }
202205
203206 footer {
204- margin: 5px 10px 20px;
207+ margin: 5px 0 20px;
208+ padding: 0 20px
205209
206210 div.actions {
207211 a {
208- color: #9a9a9a;
209- font-weight: 200;
210- padding: 5px 10px;
211- border-radius:2px;
212-
212+ opacity: 0.4
213213 :hover {
214- background: #cbeeff;
215- color: #3b7ba2;
214+ opacity: 1
216215 text-decoration: none;
217- border-color: #8eafc1;
218216 }
219217 }
220218 a + a {
221- margin-left: 15px;
219+ margin-left: 25px;
222220 }
223221 }
224222 }
225223 }

Built with git-ssb-web