From 9e8ed9ac688caad7669eca441b5ac5cf9bc51beb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Mon, 11 Aug 2014 08:42:47 -0700 Subject: [PATCH] Use new markdown content css --- theme/stylesheets/website/markdown.less | 63 +++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100755 theme/stylesheets/website/markdown.less diff --git a/theme/stylesheets/website/markdown.less b/theme/stylesheets/website/markdown.less new file mode 100755 index 000000000..3e4e86635 --- /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; + } + } +}