git ssb

2+

mixmix / ticktack



Commit c13763588dbe47d36ce983061746b4c0bd3d51ea

add "Like" button to top level blog

mix irving committed on 12/6/2017, 7:15:32 AM
Parent: 27f9a05441c7fa00944475fef6f7972d00bc44cb

Files changed

app/html/comments.mcsschanged
app/page/blogShow.jschanged
app/page/blogShow.mcsschanged
message/html/likes.mcsschanged
app/html/comments.mcssView
@@ -56,17 +56,9 @@
5656 margin-right: 1.5rem
5757 i.fa {}
5858 }
5959
60- div.Likes {
61- min-width: 2.5rem
62-
63- display: flex
64- align-items: center
65-
66- i.fa { margin-right: .3rem }
67- div.count {}
68- }
60+ div.Likes { }
6961 }
7062
7163 div.Compose {
7264 margin: 1rem 0
app/page/blogShow.jsView
@@ -13,8 +13,9 @@
1313 'app.html.comments': 'first',
1414 'app.html.context': 'first',
1515 'contact.html.follow': 'first',
1616 'message.html.channel': 'first',
17+ 'message.html.likes': 'first',
1718 'message.html.markdown': 'first',
1819 'message.html.timeago': 'first',
1920 'feed.obs.thread': 'first'
2021 })
@@ -46,9 +47,10 @@
4647 h('header', [
4748 h('div.blog', [
4849 h('h1', title),
4950 timeago(blogMsg),
50- channel(blogMsg)
51+ channel(blogMsg),
52+ api.message.html.likes(blogMsg)
5153 ]),
5254 h('div.author', [
5355 h('div.leftCol', api.about.html.avatar(author, 'medium')),
5456 h('div.rightCol', [
app/page/blogShow.mcssView
@@ -28,8 +28,9 @@
2828 div.blog {
2929 display: flex
3030 flex-wrap: wrap
3131 flex-grow: 1
32+ align-items: center
3233
3334 h1 {
3435 flex-basis: 100%
3536
@@ -43,9 +44,13 @@
4344 flex-basis: 100%
4445 margin-bottom: .6rem
4546 }
4647
47- div.Button.-channel {}
48+ div.Button.-channel {
49+ margin-right: 1rem
50+ }
51+ div.Likes {
52+ }
4853 }
4954
5055 div.author {
5156 display: flex
message/html/likes.mcssView
@@ -1,7 +1,14 @@
11 Likes {
22 cursor: pointer
3+ min-width: 2.5rem
34
5+ display: flex
6+ align-items: center
7+
8+ i {
9+ margin-right: .4rem
10+ }
411 i.fa-heart {
512 $colorFontPrimary
613 }
714 }

Built with git-ssb-web