Implemented most of the styles in scarlet now

This commit is contained in:
2016-12-02 15:24:45 +09:00
parent 31dfc47d5c
commit 59ef1f53f2
38 changed files with 126 additions and 1191 deletions

View File

@ -3,7 +3,7 @@ component Dashboard(posts []*arn.Post)
.dashboard-widget
each post in posts
a.dashboard-event.ui.ajax(href=post.Link())
a.dashboard-event.ajax(href=post.Link())
.dashboard-event-author
AvatarNoLink(post.Author())
.dashboard-event-text

View File

@ -1,23 +1,22 @@
.dashboard-widget
display flex
flex-flow column
vertical
align-items center
.dashboard-event
display flex
flex-flow column wrap
vertical-wrap
ui-element
margin-bottom 1rem
padding 0.75rem
width 100%
max-width 700px
.dashboard-event-author
display flex
horizontal
justify-content center
width 100%
.dashboard-event-text
display flex
horizontal
justify-content center
align-items center
width 100%

View File

@ -10,10 +10,11 @@ component ThreadLink(thread *arn.Thread)
.post-author.thread-author
Avatar(thread.Author())
.thread-content-container
.post-content.thread-content
.thread-content
if thread.Sticky
i.fa.fa-thumb-tack.fa-fw.thread-icon
a.thread-title.ajax(href="/threads/" + thread.ID)= thread.Title
Icon("thumb-tack")
a.thread-link-title.ajax(href="/threads/" + thread.ID)= thread.Title
.spacer
.thread-reply-count= thread.Replies
.thread-icons
Icon(arn.GetForumIcon(thread.Tags[0]))

View File

@ -1,7 +1,7 @@
component Thread(thread *arn.Thread, posts []*arn.Post)
h2.thread-title= thread.Title
.thread
h2.thread-title= thread.Title
.posts
Postable(thread.ToPostable(), nil, thread.Author().ID)

View File

@ -0,0 +1,16 @@
.thread
horizontal
justify-content center
.posts
vertical
width 100%
max-width 830px
.post
vertical
margin-bottom 1rem
> 600px
.post
horizontal