markdown.less 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. // Markdown output
  2. // -------------------------
  3. .markdown, .markdown article {
  4. margin: 0px;
  5. overflow: visible;
  6. &>:first-child {
  7. margin-top: 0px;
  8. }
  9. &>:last-child {
  10. margin-bottom: 0px;
  11. img:last-child {
  12. margin-bottom: 0px;
  13. }
  14. }
  15. h1 {
  16. font-size: @baseFontSize * 1.7;
  17. }
  18. h2 {
  19. font-size: @baseFontSize * 1.5;
  20. }
  21. h3 {
  22. font-size: @baseFontSize * 1.2;
  23. }
  24. h4 {
  25. font-size: @baseFontSize;
  26. }
  27. hr {
  28. border: none;
  29. border-top: 1px solid @hrBorder;
  30. margin: @baseLineHeight 0px;
  31. }
  32. blockquote {
  33. border-left-color: darken(@grayLighter, 5%);
  34. padding: (@baseFontSize / 3) @baseFontSize;
  35. margin: @baseLineHeight / 2;
  36. header {
  37. padding-bottom: (@baseLineHeight / 2);
  38. font-size: @baseFontSize * 1.1;
  39. font-weight: bold;
  40. line-height: @baseLineHeight;
  41. }
  42. p {
  43. margin: 0 0 (@baseLineHeight / 2);
  44. font-size: @baseFontSize;
  45. }
  46. blockquote {
  47. .opacity(85);
  48. }
  49. }
  50. code {
  51. background-color: @grayDark;
  52. border-color: @black;
  53. color: @grayLighter;
  54. text-shadow: 0px 1px 0px @black;
  55. }
  56. pre {
  57. background-color: @grayDarker;
  58. padding: (@baseFontSize / 2) @baseFontSize;
  59. code {
  60. background: none;
  61. border: none;
  62. color: @grayLighter;
  63. font-size: @fontSizeSmall;
  64. }
  65. }
  66. img {
  67. background-color: @white;
  68. border-radius: @baseBorderRadius;
  69. margin: (@baseLineHeight / 2) 0px;
  70. }
  71. .media-border {
  72. box-shadow: 0px 0px 4px @gray;
  73. display: inline-block;
  74. overflow: hidden;
  75. margin: (@baseLineHeight / 2) 0px;
  76. iframe {
  77. margin: 0px;
  78. margin-bottom: -5px;
  79. }
  80. .media-thumbnail {
  81. background-color: @black;
  82. background-position: center center;
  83. background-repeat: no-repeat;
  84. background-size: cover;
  85. width: 853px;
  86. height: 480px;
  87. text-align: center;
  88. a {
  89. background-color: fadeOut(@black, 20%);
  90. border-radius: @fontSizeSmall;
  91. display: inline-block;
  92. margin-top: 159px;
  93. padding: @baseFontSize (@baseFontSize * 1.5);
  94. color: @grayLighter;
  95. text-align: center;
  96. text-shadow: 0px 1px 1px @black;
  97. &:hover, &:active {
  98. color: @white;
  99. text-decoration: none;
  100. text-shadow: 0px 0px 5px @grayLighter,
  101. 0px 1px 1px @black;
  102. }
  103. .icon-youtube-sign {
  104. display: block;
  105. clear: both;
  106. font-size: @baseFontSize * 8;
  107. text-decoration: none;
  108. }
  109. &.movie-title {
  110. margin-top: 164px - @baseFontSize - 4px;
  111. strong {
  112. display: block;
  113. margin-top: 6px;
  114. font-size: @fontSizeLarge;
  115. }
  116. }
  117. }
  118. }
  119. }
  120. // Blocks margins
  121. pre, blockquote, iframe {
  122. margin-top: @baseLineHeight;
  123. margin-bottom: @baseLineHeight;
  124. article{
  125. &>:first-child {
  126. margin-top: 0px;
  127. }
  128. &>:last-child {
  129. margin-bottom: 0px;
  130. }
  131. }
  132. }
  133. // Emoticons
  134. .emoji {
  135. background: none;
  136. border-radius: 0px;
  137. margin: 0px;
  138. vertical-align: middle;
  139. }
  140. h1 {
  141. .emoji {
  142. width: (@baseFontSize * 1.7) + 4px;
  143. height: (@baseFontSize * 1.7) + 4px;
  144. }
  145. }
  146. h2 {
  147. .emoji {
  148. width: (@baseFontSize * 1.5) + 4px;
  149. height: (@baseFontSize * 1.5) + 4px;
  150. }
  151. }
  152. h3 {
  153. .emoji {
  154. width: (@baseFontSize * 1.2) + 4px;
  155. height: (@baseFontSize * 1.2) + 4px;
  156. }
  157. }
  158. h4 {
  159. .emoji {
  160. width: @baseFontSize + 4px;
  161. height: @baseFontSize + 4px;
  162. }
  163. }
  164. p {
  165. .emoji {
  166. width: @baseFontSize + 4px;
  167. height: @baseFontSize + 4px;
  168. }
  169. }
  170. blockquote {
  171. p {
  172. .emoji {
  173. width: @fontSizeSmall + 2px;
  174. height: @fontSizeSmall + 2px;
  175. }
  176. }
  177. }
  178. }