diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-08-11 08:38:11 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-08-11 08:38:11 -0700 |
commit | 3a54554713949d466d81fe196e204d78347186d9 (patch) | |
tree | e8d861c82b6dd56948419302b8122e3fd842b1d3 /theme/stylesheets/website/markdown.less | |
parent | fc113ce0c3607cc8e9cd6de4b08baba0bbf433cd (diff) | |
download | gitbook-3a54554713949d466d81fe196e204d78347186d9.zip gitbook-3a54554713949d466d81fe196e204d78347186d9.tar.gz gitbook-3a54554713949d466d81fe196e204d78347186d9.tar.bz2 |
Normalize markdown rendering with ebook (pdf, epub, mobi)
Diffstat (limited to 'theme/stylesheets/website/markdown.less')
-rwxr-xr-x | theme/stylesheets/website/markdown.less | 448 |
1 files changed, 0 insertions, 448 deletions
diff --git a/theme/stylesheets/website/markdown.less b/theme/stylesheets/website/markdown.less deleted file mode 100755 index 8c4f634..0000000 --- a/theme/stylesheets/website/markdown.less +++ /dev/null @@ -1,448 +0,0 @@ -.book .book-body .page-wrapper .page-inner section { - display: none; -} - -.book .book-body .page-wrapper .page-inner section.normal { - -ms-text-size-adjust: 100%; - -webkit-text-size-adjust: 100%; - line-height: 1.4; - color: @content-color; - overflow: hidden; - line-height: @content-line-height; - word-wrap: break-word; - display: block; - - & > *:first-child { - margin-top: 0 !important; - } - & > *:last-child { - margin-bottom: 0 !important; - } - - a { - background: transparent; - } - - a:active, - a:hover { - outline: 0; - } - - strong { - font-weight: bold; - } - - h1 { - font-size: 2em; - margin: 0.67em 0; - } - - img { - border: 0; - } - - hr { - -moz-box-sizing: content-box; - box-sizing: content-box; - height: 0; - } - - pre { - overflow: auto; - } - - code, - pre { - font-family: monospace, monospace; - font-size: 1em; - } - - table { - border-collapse: collapse; - border-spacing: 0; - } - - td, - th { - padding: 0; - } - - * { - -moz-box-sizing: border-box; - box-sizing: border-box; - } - - a { - color: #4183c4; - text-decoration: none; - } - - a:hover, - a:focus, - a:active { - text-decoration: underline; - } - - hr { - height: 0; - margin: 15px 0; - overflow: hidden; - background: transparent; - border: 0; - border-bottom: 1px solid #ddd; - } - - hr:before, - hr:after { - display: table; - content: " "; - } - - hr:after { - clear: both; - } - - h1, - h2, - h3, - h4, - h5, - h6 { - margin-top: 15px; - margin-bottom: 15px; - line-height: 1.1; - } - - h1 { - font-size: 30px; - } - - h2 { - font-size: 21px; - } - - h3 { - font-size: 16px; - } - - h4 { - font-size: 14px; - } - - h5 { - font-size: 12px; - } - - h6 { - font-size: 11px; - } - - blockquote { - margin: 0; - } - - ul, - ol { - padding: 0; - margin-top: 0; - margin-bottom: 0; - } - - ol ol { - list-style-type: lower-roman; - } - - dd { - margin-left: 0; - } - - code, - pre { - font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; - font-size: 12px; - } - - pre { - margin-top: 0; - margin-bottom: 0; - } - - .markdown-body>*:first-child { - margin-top: 0 !important; - } - - .markdown-body>*:last-child { - margin-bottom: 0 !important; - } - - .anchor { - position: absolute; - top: 0; - bottom: 0; - left: 0; - display: block; - padding-right: 6px; - padding-left: 30px; - margin-left: -30px; - } - - .anchor:focus { - outline: none; - } - - h1, - h2, - h3, - h4, - h5, - h6 { - position: relative; - margin-top: 1em; - margin-bottom: 16px; - font-weight: bold; - line-height: 1.4; - } - - h1 { - padding-bottom: 0.3em; - font-size: 2.25em; - line-height: 1.2; - border-bottom: 1px solid #eee; - } - - h2 { - padding-bottom: 0.3em; - font-size: 1.75em; - line-height: 1.225; - border-bottom: 1px solid #eee; - } - - h3 { - font-size: 1.5em; - line-height: 1.43; - } - - h4 { - font-size: 1.25em; - } - - h5 { - font-size: 1em; - } - - h6 { - font-size: 1em; - color: #777; - } - - p, - blockquote, - ul, - ol, - dl, - table, - pre { - margin-top: 0; - margin-bottom: 16px; - } - - hr { - height: 4px; - padding: 0; - margin: 16px 0; - background-color: #e7e7e7; - border: 0 none; - } - - ul, - ol { - padding-left: 2em; - } - - ol ol, - ol ul { - margin-top: 0; - margin-bottom: 0; - } - - dl { - padding: 0; - } - - dl dt { - padding: 0; - margin-top: 16px; - font-size: 1em; - font-style: italic; - font-weight: bold; - } - - dl dd { - padding: 0 16px; - margin-bottom: 16px; - } - - blockquote { - padding: 0 15px; - color: #777; - border-left: 4px solid #ddd; - } - - blockquote>:first-child { - margin-top: 0; - } - - blockquote>:last-child { - margin-bottom: 0; - } - - table { - display: block; - width: 100%; - overflow: auto; - } - - table th { - font-weight: bold; - } - - table th, - table td { - padding: 6px 13px; - border: 1px solid #ddd; - } - - table tr { - background-color: #fff; - border-top: 1px solid #ccc; - } - - table tr:nth-child(2n) { - background-color: #f8f8f8; - } - - img { - max-width: 100%; - -moz-box-sizing: border-box; - box-sizing: border-box; - } - - code { - padding: 0; - padding-top: 0.2em; - padding-bottom: 0.2em; - margin: 0; - font-size: 85%; - background-color: #f7f7f7; - border-radius: 3px; - } - - code:before, - code:after { - letter-spacing: -0.2em; - content: "\00a0"; - } - - pre>code { - padding: 0; - margin: 0; - font-size: 100%; - white-space: pre; - background: transparent; - border: 0; - } - - .highlight pre, - pre { - padding: 16px; - overflow: auto; - font-size: 85%; - line-height: 1.45; - background-color: #f7f7f7; - border: none; - border-radius: 3px; - - @import "./highlight/white.less"; - } - - pre { - word-wrap: normal; - } - - pre code { - display: inline; - max-width: initial; - padding: 0; - margin: 0; - overflow: initial; - line-height: inherit; - word-wrap: normal; - background-color: transparent; - border: 0; - } - - pre code:before, - pre code:after { - content: normal; - } - - .highlight { - background: #ffffff; - } -} - -.book.color-theme-1 .book-body .page-wrapper .page-inner section.normal { - color:@page-color-1; - - pre, code { - background: #fdf6e3; - color: #657b83; - border-color: darken(#fdf6e3, 15%); - - @import "./highlight/sepia.less"; - } - - table { - th, td { - border-color: darken(#fdf6e3, 25%); - } - - tr { - background: #fdf6e3; - color: inherit; - border-color: #444; - } - - tr:nth-child(2n) { - background-color: darken(#fdf6e3, 5%); - } - } -} - -.book.color-theme-2 .book-body .page-wrapper .page-inner section.normal { - color:@page-color-2; - - pre, code { - background: black; - color: #eaeaea; - border-color: #000; - - @import "./highlight/night.less"; - } - - table { - th, td { - border-color: #444; - } - - tr { - background-color: black; - color: #eaeaea; - border-color: #444; - } - - tr:nth-child(2n) { - background-color: #222; - } - } -} |