123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- // Markdown output
- // -------------------------
- .markdown, .markdown article {
- margin: 0px;
- overflow: auto;
- &>:first-child {
- margin-top: 0px;
- }
- &>:last-child {
- margin-bottom: 0px;
- img:last-child {
- margin-bottom: 0px;
- }
- }
- h1 {
- font-size: @baseFontSize * 1.7;
- }
- h2 {
- font-size: @baseFontSize * 1.5;
- }
- h3 {
- font-size: @baseFontSize * 1.2;
- }
- h4 {
- font-size: @baseFontSize;
- }
- hr {
- border: none;
- border-top: 1px solid @hrBorder;
- margin: @baseLineHeight 0px;
- }
- blockquote {
- border-left-color: darken(@grayLighter, 5%);
- padding: (@baseFontSize / 3) @baseFontSize;
- header {
- padding-bottom: (@baseLineHeight / 2);
- font-size: @baseFontSize * 1.1;
- font-weight: bold;
- line-height: @baseLineHeight;
- }
- p {
- margin: 0 0 (@baseLineHeight / 2);
- font-size: @baseFontSize;
- }
- blockquote {
- .opacity(85);
- }
- }
- code {
- background-color: @grayDark;
- border: none;
- color: @grayLighter;
- font-size: @baseFontSize;
- }
- pre {
- background-color: @grayDarker;
- padding: (@baseFontSize / 2) @baseFontSize;
- code {
- background: none;
- border: none;
- color: @grayLighter;
- font-size: @fontSizeSmall;
- }
- }
- img {
- background-color: @white;
- border-radius: @baseBorderRadius;
- margin: (@baseLineHeight / 2) 0px;
- }
- // Blocks margins
- pre, blockquote, iframe {
- margin-top: @baseLineHeight;
- margin-bottom: @baseLineHeight;
- &>:first-child {
- margin-top: 0px;
- }
- &>:last-child {
- margin-bottom: 0px;
- }
- }
- // Emoticons
- .emoji {
- background: none;
- border-radius: 0px;
- margin: 0px;
- vertical-align: middle;
- }
- h1 {
- .emoji {
- width: (@baseFontSize * 1.7) + 4px;
- height: (@baseFontSize * 1.7) + 4px;
- }
- }
- h2 {
- .emoji {
- width: (@baseFontSize * 1.5) + 4px;
- height: (@baseFontSize * 1.5) + 4px;
- }
- }
- h3 {
- .emoji {
- width: (@baseFontSize * 1.2) + 4px;
- height: (@baseFontSize * 1.2) + 4px;
- }
- }
- h4 {
- .emoji {
- width: @baseFontSize + 4px;
- height: @baseFontSize + 4px;
- }
- }
- p {
- .emoji {
- width: @baseFontSize + 4px;
- height: @baseFontSize + 4px;
- }
- }
- blockquote {
- p {
- .emoji {
- width: @fontSizeSmall + 2px;
- height: @fontSizeSmall + 2px;
- }
- }
- }
- }
|