diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-08-11 08:42:47 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-08-11 08:42:47 -0700 |
commit | 9e8ed9ac688caad7669eca441b5ac5cf9bc51beb (patch) | |
tree | 15a4712b274cbcb7a2e05b5cd3b23f4ebe540737 | |
parent | 3a54554713949d466d81fe196e204d78347186d9 (diff) | |
download | gitbook-9e8ed9ac688caad7669eca441b5ac5cf9bc51beb.zip gitbook-9e8ed9ac688caad7669eca441b5ac5cf9bc51beb.tar.gz gitbook-9e8ed9ac688caad7669eca441b5ac5cf9bc51beb.tar.bz2 |
Use new markdown content css
-rwxr-xr-x | theme/stylesheets/website/markdown.less | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/theme/stylesheets/website/markdown.less b/theme/stylesheets/website/markdown.less new file mode 100755 index 0000000..3e4e866 --- /dev/null +++ b/theme/stylesheets/website/markdown.less @@ -0,0 +1,63 @@ +.book .book-body .page-wrapper .page-inner section { + display: none; +} + +.book .book-body .page-wrapper .page-inner section.normal { + .markdown-content(@content-color, @content-line-height); +} + +.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; + } + } +} |