markdown.less 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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. pre {
  51. background-color: @grayDarker;
  52. padding: (@baseFontSize / 2) @baseFontSize;
  53. code {
  54. background: none;
  55. border: none;
  56. color: @grayLighter;
  57. font-size: @fontSizeSmall;
  58. }
  59. }
  60. img {
  61. background-color: @white;
  62. border-radius: @baseBorderRadius;
  63. margin: (@baseLineHeight / 2) 0px;
  64. }
  65. .media-border {
  66. box-shadow: 0px 0px 4px @gray;
  67. display: inline-block;
  68. overflow: hidden;
  69. margin: (@baseLineHeight / 2) 0px;
  70. iframe {
  71. margin: 0px;
  72. margin-bottom: -5px;
  73. }
  74. .media-thumbnail {
  75. background-color: @black;
  76. background-position: center center;
  77. background-repeat: no-repeat;
  78. background-size: cover;
  79. width: 853px;
  80. height: 480px;
  81. text-align: center;
  82. a {
  83. background-color: fadeOut(@black, 20%);
  84. border-radius: @fontSizeSmall;
  85. display: inline-block;
  86. margin-top: 159px;
  87. padding: @baseFontSize (@baseFontSize * 1.5);
  88. color: @grayLighter;
  89. text-align: center;
  90. text-shadow: 0px 1px 1px @black;
  91. &:hover, &:active {
  92. color: @white;
  93. text-decoration: none;
  94. text-shadow: 0px 0px 5px @grayLighter,
  95. 0px 1px 1px @black;
  96. }
  97. .icon-youtube-sign {
  98. display: block;
  99. clear: both;
  100. font-size: @baseFontSize * 8;
  101. text-decoration: none;
  102. }
  103. &.movie-title {
  104. margin-top: 164px - @baseFontSize - 4px;
  105. strong {
  106. display: block;
  107. margin-top: 6px;
  108. font-size: @fontSizeLarge;
  109. }
  110. }
  111. }
  112. }
  113. }
  114. // Blocks margins
  115. pre, blockquote, iframe {
  116. margin-top: @baseLineHeight;
  117. margin-bottom: @baseLineHeight;
  118. article{
  119. &>:first-child {
  120. margin-top: 0px;
  121. }
  122. &>:last-child {
  123. margin-bottom: 0px;
  124. }
  125. }
  126. }
  127. // Emoticons
  128. .emoji {
  129. border-radius: 0px;
  130. margin: 0px;
  131. vertical-align: top;
  132. }
  133. h1 {
  134. .emoji {
  135. width: (@baseFontSize * 1.7) + 4px;
  136. height: (@baseFontSize * 1.7) + 4px;
  137. }
  138. }
  139. h2 {
  140. .emoji {
  141. width: (@baseFontSize * 1.5) + 4px;
  142. height: (@baseFontSize * 1.5) + 4px;
  143. }
  144. }
  145. h3 {
  146. .emoji {
  147. width: (@baseFontSize * 1.2) + 4px;
  148. height: (@baseFontSize * 1.2) + 4px;
  149. }
  150. }
  151. h4 {
  152. .emoji {
  153. width: @baseFontSize + 4px;
  154. height: @baseFontSize + 4px;
  155. }
  156. }
  157. p {
  158. .emoji {
  159. width: @baseFontSize + 4px;
  160. height: @baseFontSize + 4px;
  161. }
  162. }
  163. blockquote {
  164. p {
  165. .emoji {
  166. width: @fontSizeSmall + 2px;
  167. height: @fontSizeSmall + 2px;
  168. }
  169. }
  170. }
  171. }