A clean, Markdown-based publishing platform made for writers. Write together, and build a community. https://writefreely.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

79 lines
1.4 KiB

  1. body {
  2. &#post, &#subpage {
  3. header {
  4. margin: 0 auto;
  5. padding: 1em 2rem;
  6. .opacity(0.4);
  7. -moz-transition-property: opacity;
  8. -webkit-transition-property: opacity;
  9. -o-transition-property: opacity;
  10. transition-property: opacity;
  11. .transition-duration(.4s);
  12. &:hover {
  13. .opacity(1);
  14. }
  15. h1 {
  16. font-size: 1.6em;
  17. }
  18. }
  19. article {
  20. h2#title.dated {
  21. margin-bottom: 0.5em;
  22. }
  23. time.dt-published {
  24. display: block;
  25. color: #666;
  26. margin-bottom: 1em;
  27. }
  28. }
  29. }
  30. }
  31. article, pre, .hljs {
  32. padding: 0.5em 2rem 1.5em;
  33. }
  34. body#post article, pre, .hljs {
  35. font-size: 1.2em;
  36. }
  37. /* Post mixins */
  38. .article-code() {
  39. background-color: #f8f8f8;
  40. border: 1px solid #ccc;
  41. padding: 0.2em 0.4em;
  42. font-size: 0.86em;
  43. .rounded(.25em);
  44. }
  45. .article-blockquote() {
  46. border-left: 4px solid #ddd;
  47. padding: 0 1em;
  48. margin: 0.5em;
  49. color: #777;
  50. display: inline-block;
  51. p {
  52. display: block;
  53. margin: 0.5em 0;
  54. }
  55. }
  56. .article-p() {
  57. line-height: 1.4em;
  58. white-space: pre-wrap; /* CSS 3 */
  59. white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
  60. white-space: -pre-wrap; /* Opera 4-6 */
  61. white-space: -o-pre-wrap; /* Opera 7 */
  62. word-wrap: break-word; /* Internet Explorer 5.5+ */
  63. }
  64. .article-title() {
  65. font-size: 1.5em;
  66. display: block;
  67. margin-top: 0;
  68. margin-bottom: 1em;
  69. }
  70. .hljs {
  71. overflow-x: inherit;
  72. background: transparent;
  73. }