markup.less 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. //
  2. // Markup styles
  3. // --------------------------------------------------
  4. // Force word wrap for user text
  5. .misago-markup p {
  6. word-wrap: break-word;
  7. }
  8. // Even out blocks
  9. .misago-markup>*, .misago-markup blockquote>* {
  10. margin: @line-height-computed 0px;
  11. &:first-child {
  12. margin-top: 0px;
  13. }
  14. &:last-child {
  15. margin-bottom: 0px;
  16. }
  17. }
  18. // Downscale images so they don't expand area
  19. .misago-markup img {
  20. max-width: 100%;
  21. max-height: 500px;
  22. }
  23. // Make quotes stand out a little
  24. .misago-markup .quote-block,
  25. .misago-markup blockquote {
  26. background: @gray-lighter;
  27. border: none;
  28. font-size: @font-size-base;
  29. .quote-heading {
  30. border-bottom: 1px solid darken(@gray-lighter, 8%);
  31. padding: (@line-height-computed / 2) @line-height-computed;
  32. font-size: @font-size-small;
  33. font-weight: bold;
  34. }
  35. }
  36. .misago-markup>.quote-block,
  37. .misago-markup>blockquote {
  38. border: 1px solid darken(@gray-lighter, 8%);
  39. }
  40. .misago-markup .quote-body {
  41. background: @body-bg;
  42. margin: 0px;
  43. padding: @line-height-computed;
  44. &>.quote-block, &>blockquote {
  45. border: 1px solid darken(@gray-lighter, 8%);
  46. }
  47. }
  48. // Add bullets to lists
  49. .misago-markup ul {
  50. list-style-type: square;
  51. li {
  52. list-style-type: square;
  53. }
  54. }
  55. .misago-markup ol {
  56. list-style-type: decimal;
  57. li {
  58. list-style-type: decimal;
  59. }
  60. }
  61. // Expand code blocks a little
  62. .misago-markup pre {
  63. background: rgb(25, 23, 28);
  64. border: none;
  65. padding: @padding-large-vertical;
  66. overflow: hidden;
  67. color: #8b8792;
  68. code.hljs {
  69. margin: @padding-large-vertical * -1;
  70. }
  71. }