renderedhtml.less
86 lines
| 2.7 KiB
| text/x-less
|
LessCssLexer
Brian E. Granger
|
r12793 | .rendered_html { | ||
Matthias BUSSONNIER
|
r9293 | |||
Jonathan Frederic
|
r16912 | color: @text-color; | ||
Matthias BUSSONNIER
|
r9292 | em {font-style: italic;} | ||
strong {font-weight: bold;} | ||||
u {text-decoration: underline;} | ||||
Brian E. Granger
|
r14877 | :link {text-decoration: underline;} | ||
:visited {text-decoration: underline;} | ||||
Brian E. Granger
|
r14874 | |||
// For a 14px base font size this goes as: | ||||
// font-size = 26, 22, 18, 14, 12, 12 | ||||
// margin-top = 14, 14, 14, 14, 8, 8 | ||||
h1 {font-size: 185.7%; margin: 1.08em 0 0 0; font-weight: bold; line-height: 1.0;} | ||||
h2 {font-size: 157.1%; margin: 1.27em 0 0 0; font-weight: bold; line-height: 1.0;} | ||||
h3 {font-size: 128.6%; margin: 1.55em 0 0 0; font-weight: bold; line-height: 1.0;} | ||||
h4 {font-size: 100%; margin: 2em 0 0 0; font-weight: bold; line-height: 1.0;} | ||||
Brian E. Granger
|
r14877 | h5 {font-size: 100%; margin: 2em 0 0 0; font-weight: bold; line-height: 1.0; font-style: italic;} | ||
h6 {font-size: 100%; margin: 2em 0 0 0; font-weight: bold; line-height: 1.0; font-style: italic;} | ||||
Brian E. Granger
|
r14874 | |||
// Reduce the top margins by 14px compared to above | ||||
Brian E. Granger
|
r14877 | h1:first-child {margin-top: 0.538em;} | ||
h2:first-child {margin-top: 0.636em;} | ||||
h3:first-child {margin-top: 0.777em;} | ||||
h4:first-child {margin-top: 1em;} | ||||
h5:first-child {margin-top: 1em;} | ||||
h6:first-child {margin-top: 1em;} | ||||
Brian E. Granger
|
r14874 | |||
Jonathan Frederic
|
r16957 | ul {list-style:disc; margin: 0em 2em; padding-left: 0px;} | ||
Matthias BUSSONNIER
|
r9292 | ul ul {list-style:square; margin: 0em 2em;} | ||
Matthias BUSSONNIER
|
r9423 | ul ul ul {list-style:circle; margin: 0em 2em;} | ||
Jonathan Frederic
|
r16957 | ol {list-style:decimal; margin: 0em 2em; padding-left: 0px;} | ||
Matthias BUSSONNIER
|
r9292 | ol ol {list-style:upper-alpha; margin: 0em 2em;} | ||
ol ol ol {list-style:lower-alpha; margin: 0em 2em;} | ||||
ol ol ol ol {list-style:lower-roman; margin: 0em 2em;} | ||||
/* any extras will just be numbers: */ | ||||
ol ol ol ol ol {list-style:decimal; margin: 0em 2em;} | ||||
Brian E. Granger
|
r14877 | * + ul {margin-top: 1em;} | ||
* + ol {margin-top: 1em;} | ||||
Brian E. Granger
|
r14874 | |||
Matthias BUSSONNIER
|
r9292 | hr { | ||
Jason Grout
|
r17292 | color: @rendered_html_border_color; | ||
background-color: @rendered_html_border_color; | ||||
Matthias BUSSONNIER
|
r9292 | } | ||
Brian E. Granger
|
r4514 | |||
Brian E. Granger
|
r14877 | pre {margin: 1em 2em;} | ||
Brian E. Granger
|
r4514 | |||
Brian E. Granger
|
r14874 | pre, code { | ||
border: 0; | ||||
Jonathan Frederic
|
r16912 | background-color: @body-bg; | ||
color: @text-color; | ||||
Brian E. Granger
|
r14874 | font-size: 100%; | ||
padding: 0px; | ||||
} | ||||
Brian E. Granger
|
r10740 | |||
Brian E. Granger
|
r14877 | blockquote {margin: 1em 2em;} | ||
Brian E. Granger
|
r4514 | |||
Brian E. Granger
|
r12644 | table { | ||
margin-left: auto; | ||||
margin-right: auto; | ||||
Jason Grout
|
r17292 | border: 1px solid @rendered_html_border_color; | ||
Brian E. Granger
|
r12644 | border-collapse: collapse; | ||
} | ||||
tr, th, td { | ||||
Jason Grout
|
r17292 | border: 1px solid @rendered_html_border_color; | ||
Matthias BUSSONNIER
|
r9292 | border-collapse: collapse; | ||
margin: 1em 2em; | ||||
} | ||||
Brian E. Granger
|
r14877 | td, th { | ||
Matthias BUSSONNIER
|
r9292 | text-align: left; | ||
vertical-align: middle; | ||||
padding: 4px; | ||||
} | ||||
Brian E. Granger
|
r14877 | th {font-weight: bold;} | ||
* + table {margin-top: 1em;} | ||||
Brian E. Granger
|
r4514 | |||
Nicholas Bollweg
|
r19903 | p {text-align: left;} | ||
Brian E. Granger
|
r14877 | * + p {margin-top: 1em;} | ||
Brian E. Granger
|
r14874 | |||
Brian E. Granger
|
r12793 | img { | ||
display: block; | ||||
margin-left: auto; | ||||
margin-right: auto; | ||||
Matthias BUSSONNIER
|
r9292 | } | ||
Brian E. Granger
|
r14877 | * + img {margin-top: 1em;} | ||
Brian E. Granger
|
r12642 | |||
Matthias BUSSONNIER
|
r9292 | } | ||