From bfc22eafc9e50236b6824fb22f98b2e23682f3bf Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Thu, 28 Jul 2016 18:18:01 -0700 Subject: [PATCH] add css for code blocks --- css/main.css | 13 +++++++++++++ css/pygment_highlights.css | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/css/main.css b/css/main.css index c9641af..b1b25fa 100644 --- a/css/main.css +++ b/css/main.css @@ -584,3 +584,16 @@ table tr th :last-child, table tr td :last-child { margin-bottom: 0; } + +/* --- Code blocks --- */ + +pre { + font-size: 16px; + line-height: 1.5em; + background: #FAFAFA; + background-image: linear-gradient(#FAFAFA 50%, #FDFDFD 50%); + background-position: 0px 10px; + background-repeat: repeat; + background-size: 3em 3em; + border-left: 7px solid #444; +} \ No newline at end of file diff --git a/css/pygment_highlights.css b/css/pygment_highlights.css index 1c8b8ef..3904a9c 100644 --- a/css/pygment_highlights.css +++ b/css/pygment_highlights.css @@ -1,4 +1,4 @@ -.highlight { background: #ffffff; } +/* .highlight { background: #ffffff; } Dean commented out */ .highlight pre { background-color: #fff; font-size: 16px } .highlight .c { color: #999988; font-style: italic } /* Comment */ .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */