freepost.styl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. @require 'reset.styl'
  2. body
  3. > .container
  4. margin auto
  5. max-width 80%
  6. /* Page header */
  7. > .header
  8. padding 1em 0
  9. text-align center
  10. > .flex-container
  11. display flex
  12. flex-direction row
  13. flex-wrap wrap
  14. justify-content space-between
  15. align-content stretch
  16. align-items flex-start
  17. width 80%
  18. margin auto
  19. > .flex-item
  20. order 0
  21. flex 0 1 auto
  22. align-self auto
  23. /* Logo text */
  24. a.logo,
  25. a.logo:hover,
  26. a.logo:visited
  27. color #000
  28. font-weight bold
  29. text-decoration none
  30. /* Logo picture */
  31. img
  32. height 1.5em
  33. margin 0 1em
  34. vertical-align middle
  35. /* Menu under the logo */
  36. > .menu
  37. display flex
  38. flex-direction row
  39. flex-wrap wrap
  40. justify-content flex-end
  41. align-content flex-start
  42. align-items flex-start
  43. margin 1em auto
  44. width 80%
  45. > .flex-item
  46. order 0
  47. flex 0 1 auto
  48. align-self auto
  49. margin .5em 1em
  50. /* Highlight username if there are unread messages */
  51. .new_messages
  52. background-color rgb(255, 175, 50)
  53. border-radius 4px
  54. color #fff
  55. font-weight bold
  56. margin 0
  57. padding .5em .5em
  58. text-decoration none
  59. > .content
  60. padding 1em 0
  61. line-height 1.5em
  62. .vote
  63. margin 0 1.5em 0 0
  64. > a
  65. display: inline-block
  66. margin: 0
  67. overflow: hidden
  68. padding: 0
  69. text-decoration none
  70. vertical-align middle
  71. /* up-down arrows are images */
  72. img
  73. cursor pointer
  74. height 1em
  75. margin 0
  76. padding .2em
  77. float left
  78. /* Arrow style if already upvoted (green) */
  79. .upvoted
  80. background-color #fff
  81. border 1px solid #00E313
  82. border-radius 999em
  83. /* Arrow style if already upvoted (red) */
  84. .downvoted
  85. background-color #fff
  86. border 1px solid #FF0000
  87. border-radius 999em
  88. /* Votes counter */
  89. .count
  90. margin 0 .5em
  91. /* Home page */
  92. .posts
  93. /* A singe post */
  94. .post
  95. margin 0 0 2em 0
  96. vertical-align top
  97. > .title
  98. font-size 1.5em
  99. > a
  100. color #000
  101. /* Some post info showed below the title */
  102. > .info
  103. color #666
  104. margin .5em 0
  105. opacity .8
  106. /* New submission page */
  107. > form.submit
  108. margin auto
  109. max-width 30em
  110. /* Page for a post */
  111. > .post
  112. /* Style used to format Markdown tables */
  113. table
  114. background #fff
  115. border-collapse collapse
  116. text-align left
  117. th
  118. border-bottom 2px solid #6678b1
  119. color #039
  120. font-weight normal
  121. padding 0 1em
  122. td
  123. border-bottom 1px solid #ccc
  124. color #669
  125. padding .5em 1em
  126. tbody tr:hover td
  127. color #009
  128. /* The post title */
  129. > .title
  130. font-size 1.5em
  131. /* Info below post title */
  132. .info
  133. margin 1em 0
  134. /* Post text */
  135. > .text
  136. margin 1em 2.5em
  137. word-wrap break-word
  138. /* The "new comment" form for this post page */
  139. .new_comment
  140. margin 0 2.5em
  141. overflow hidden
  142. > textarea
  143. height 2.5em
  144. -webkit-transition 1s
  145. transition 1s
  146. > textarea:focus
  147. height 10em
  148. > input[type=submit]
  149. float right
  150. margin 1em 0
  151. /* Comments tree for the Post page */
  152. > .comments
  153. margin 5em 0 0 0
  154. /* A single comment in the tree */
  155. > .comment
  156. margin 0 0 2em 0
  157. overflow hidden
  158. /* This is just a mark to indicate the beginning
  159. * of a new comment. The only reason for this is
  160. * to make the thread more readable
  161. */
  162. > .pin
  163. color #f00 /* #CD006B */
  164. float left
  165. font-size .5em
  166. padding 0 1em 0 0
  167. vertical-align top
  168. /* Some info about this comment */
  169. > .info
  170. font-size .9em
  171. margin 0 0 0 1em
  172. .username > a,
  173. .username > a:hover
  174. font-weight bold
  175. .op > a,
  176. .op > a:hover
  177. background-color rgb(255, 175, 50)
  178. border-radius 4px
  179. color #fff
  180. font-weight bold
  181. margin 0 .5em 0 0
  182. padding 0em 0.5em
  183. text-decoration none
  184. > .vote
  185. margin 0 1em
  186. /* The comment text */
  187. > .text
  188. margin .5em 0 0 1.5em
  189. word-wrap break-word
  190. /* Give the comment that's linked to in the URL location hash a lightyellow background color */
  191. .comment:target
  192. background-color lightyellow
  193. /* User home page */
  194. table.user
  195. /* If one length specified: both horizontal and vertical spacing
  196. * If two length specified: first sets the horizontal spacing, and
  197. * the second sets the vertical spacing
  198. */
  199. border-spacing 2em 1em
  200. border-collapse separate
  201. margin auto
  202. width 80%
  203. tr
  204. > td:first-child
  205. font-weight bold
  206. text-align right
  207. vertical-align top
  208. width 30%
  209. > td:last-child
  210. text-align left
  211. /* User activity */
  212. > .user_activity
  213. > *
  214. margin 0 0 2em 0
  215. > .info
  216. color #888
  217. /* Login page */
  218. > .login
  219. margin auto
  220. max-width 20em
  221. input[type=submit]
  222. margin 1em 0
  223. .title
  224. line-height 2em
  225. /* Page to edit a post or a comment */
  226. > .edit
  227. {
  228. }
  229. /* Page to reply to a comment */
  230. > .reply
  231. {
  232. }
  233. /* About page */
  234. > .about
  235. > h3
  236. margin 1em 0 .5em 0
  237. > p
  238. line-height 1.5em
  239. > footer
  240. border-top 1px solid #6ECFFF
  241. margin 3em 0 0 0
  242. padding 2em 0
  243. img
  244. height 1.2em
  245. margin 0 .5em 0 0
  246. vertical-align middle
  247. > ul
  248. list-style none
  249. margin 0
  250. overflow hidden
  251. padding 0
  252. > li
  253. float left
  254. margin 0 2em 0 0