From 2d00f40a2499c8701dcbc8fbd11e7fdcbf5c4ada Mon Sep 17 00:00:00 2001 From: Mathieu David Date: Wed, 30 Dec 2015 00:50:22 +0100 Subject: [PATCH] Tweak css for inline code blocks in sidebar --- src/theme/book.css | 3 +++ src/theme/stylus/sidebar.styl | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/src/theme/book.css b/src/theme/book.css index 108e39e0..27179864 100644 --- a/src/theme/book.css +++ b/src/theme/book.css @@ -40,6 +40,9 @@ h3 { left: -300px; } } +.sidebar code { + line-height: 2em; +} .sidebar-hidden .sidebar { left: -300px; } diff --git a/src/theme/stylus/sidebar.styl b/src/theme/stylus/sidebar.styl index 9ce7caff..292038da 100644 --- a/src/theme/stylus/sidebar.styl +++ b/src/theme/stylus/sidebar.styl @@ -18,6 +18,10 @@ @media only screen and (max-width: 1060px) { left: - $sidebar-width } + + code { + line-height: 2em; + } } .sidebar-hidden .sidebar {