Guest User

Untitled

a guest
May 22nd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.42 KB | None | 0 0
  1. /*
  2. Buttons were spread out weirdly.
  3. */
  4.  
  5. .topic-info {
  6. grid-auto-columns: max-content;
  7. grid-column-gap: 1rem;
  8. }
  9.  
  10. /*
  11. Navigation should have a bit more focus so people are more likely to spot it
  12. */
  13. .tab-listing-order {
  14. font-size: 0.7rem;
  15. }
  16.  
  17. .form-listing-options label,
  18. .form-listing-options select {
  19. font-size: 0.7rem;
  20. }
  21.  
  22.  
  23. /*
  24. Give topics a bit more breathing room so it is easier to differentiate them and browse through them.
  25. */
  26. .topic-listing > li {
  27. margin: 0 0 0.2rem 0;
  28. }
  29.  
  30. .topic {
  31. padding: 0.4rem;
  32. }
  33.  
  34.  
  35. /*
  36. Having the vote count buttons jump around on expanding text is a bit annoying.
  37. */
  38. .topic-voting {
  39. margin: 0.3rem 0.3rem auto 0.3rem;
  40. }
  41.  
  42.  
  43.  
  44. /*
  45. Text is the main content here so it probably shouldn't be as tiny as it is now.
  46. */
  47.  
  48. .topic .topic-text-excerpt {
  49. font-size: 0.8rem;
  50. }
  51.  
  52. /*
  53. Expanded text is given a background so it stands out from the rest of the page a bit drawing focus and making it easier to read.
  54. */
  55. body .topic-text-excerpt[open] {
  56. background-color: #eeeeee;
  57. }
  58.  
  59. body.theme-light .topic-text-excerpt[open] {
  60. background-color: #eee8d5;
  61.  
  62. }
  63.  
  64.  
  65. body.theme-dark .topic-text-excerpt[open] {
  66. background-color: #073642;
  67.  
  68. }
  69.  
  70. body.theme-black .topic-text-excerpt[open] {
  71. background-color: #151515;
  72.  
  73. }
  74.  
  75.  
  76.  
  77. /*
  78. To make it fit properly with a background I also made some adjustments to the margins in that area.
  79. */
  80.  
  81. body .topic-text-excerpt[open] summary {
  82. margin: 0.4rem;
  83. }
  84. body .topic-text-excerpt[open] p {
  85. margin: 0 0.8rem 0.4rem 0.8rem;
  86. }
  87.  
  88. body .topic-text-excerpt[open] p:first-of-type {
  89. margin-top: 0.4rem;
  90. }
  91.  
  92.  
  93.  
  94.  
  95. /*
  96. This affects comment background and might have more to do with personal taste. I do however think that formatting nested comments like this makes conversations easier to follow.
  97.  
  98. As a note, I did it now with borders around comments which makes things more clear. It still works very well without borders but then the darker background should be adjusted slightly to be a tad darker.
  99. */
  100.  
  101. .topic-comments>.comment {
  102. margin-right: 0rem;
  103. }
  104.  
  105. .comment-replies {
  106. border-left: 0;
  107. }
  108.  
  109. /* Default white theme */
  110. body .comment[data-comment-depth="0"],
  111. body .comment .comment .comment,
  112. body .comment .comment .comment .comment .comment,
  113. body .comment .comment .comment .comment .comment .comment .comment,
  114. body .comment .comment .comment .comment .comment .comment .comment .comment .comment {
  115. background-color: #fff;
  116. border: solid 1px #c8c8c8;
  117.  
  118.  
  119. }
  120.  
  121. .comment .comment,
  122. .comment .comment .comment .comment,
  123. .comment .comment .comment .comment .comment .comment,
  124. .comment .comment .comment .comment .comment .comment .comment .comment,
  125. .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment {
  126. background-color: #f5f5f5;
  127. border: solid 1px #c8c8c8;;
  128. margin-right: 0.3rem;
  129.  
  130. }
  131.  
  132. /* Light theme */
  133. body.theme-light .comment[data-comment-depth="0"],
  134. body.theme-light .comment .comment .comment,
  135. body.theme-light .comment .comment .comment .comment .comment,
  136. body.theme-light .comment .comment .comment .comment .comment .comment .comment,
  137. body.theme-light .comment .comment .comment .comment .comment .comment .comment .comment .comment {
  138. background-color: #fdf6e3;
  139. border: solid 1px #eee8d5;
  140.  
  141.  
  142. }
  143.  
  144. body.theme-light .comment .comment,
  145. body.theme-light .comment .comment .comment .comment,
  146. body.theme-light .comment .comment .comment .comment .comment .comment,
  147. body.theme-light .comment .comment .comment .comment .comment .comment .comment .comment,
  148. body.theme-light .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment {
  149. background-color: #eee8d5;
  150. border: solid 1px #eee8d5;;
  151. margin-right: 0.3rem;
  152.  
  153. }
  154.  
  155.  
  156. /* Dark theme */
  157. body.theme-dark .comment[data-comment-depth="0"],
  158. body.theme-dark .comment .comment .comment,
  159. body.theme-dark .comment .comment .comment .comment .comment,
  160. body.theme-dark .comment .comment .comment .comment .comment .comment .comment,
  161. body.theme-dark .comment .comment .comment .comment .comment .comment .comment .comment .comment {
  162. background-color: #002b36;
  163. border: solid 1px #073642;
  164.  
  165.  
  166. }
  167.  
  168. body.theme-dark .comment .comment,
  169. body.theme-dark .comment .comment .comment .comment,
  170. body.theme-dark .comment .comment .comment .comment .comment .comment,
  171. body.theme-dark .comment .comment .comment .comment .comment .comment .comment .comment,
  172. body.theme-dark .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment {
  173. background-color: #073642;
  174. border: solid 1px #073642;
  175. margin-right: 0.3rem;
  176.  
  177. }
  178.  
  179.  
  180. /* Black theme */
  181.  
  182. body.theme-black .comment[data-comment-depth="0"],
  183. body.theme-black .comment .comment .comment,
  184. body.theme-black .comment .comment .comment .comment .comment,
  185. body.theme-black .comment .comment .comment .comment .comment .comment .comment,
  186. body.theme-black .comment .comment .comment .comment .comment .comment .comment .comment .comment {
  187. background-color: #000;
  188. border: solid 1px #222;
  189.  
  190.  
  191. }
  192.  
  193. body.theme-black .comment .comment,
  194. body.theme-black .comment .comment .comment .comment,
  195. body.theme-black .comment .comment .comment .comment .comment .comment,
  196. body.theme-black .comment .comment .comment .comment .comment .comment .comment .comment,
  197. body.theme-black .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment {
  198. background-color: #151515;
  199. border: solid 1px #222;;
  200. margin-right: 0.3rem;
  201. }
  202.  
  203.  
  204.  
  205.  
  206. /*
  207. I also removed the header background.
  208. Comment starts are already easy to differentiate and removing the background serves to make it a bit cleaner and helps the collapse button as it didn't really match the header.
  209. */
  210.  
  211.  
  212. body.theme-light .comment header,
  213. body.theme-dark .comment header,
  214. body.theme-black .comment header,
  215. body .comment header {
  216. background-color: transparent;
  217. }
  218.  
  219.  
  220. /*
  221. There was simply too much margin between paragraphs in comments breaking text up a bit.
  222. */
  223. .comment p {
  224. margin: 0 0 0.2rem;
  225. }
  226.  
  227.  
  228. /*
  229. Collapse buttons really didn't look like they belonged on mobile.
  230. Note: I was going to them differently on desktop as they have more margin there but actually liked the result there as well.
  231. If you don't this is also needed.
  232. @media (min-width: 840px) {
  233. button.btn.btn-comment-collapse {
  234. border-width: 0.05rem
  235. }
  236. }
  237. */
  238.  
  239. button.btn.btn-comment-collapse {
  240. border-width: 0 0.05rem 0.05rem 0;
  241. }
  242.  
  243. .is-comment-collapsed button.btn.btn-comment-collapse {
  244. border-width: 0 0.05rem 0 0;
  245. }
Add Comment
Please, Sign In to add comment