Implemented most of the styles in scarlet now
This commit is contained in:
@ -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
|
||||
|
@ -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%
|
@ -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]))
|
@ -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)
|
||||
|
||||
|
16
pages/threads/threads.scarlet
Normal file
16
pages/threads/threads.scarlet
Normal 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
|
Reference in New Issue
Block a user