From b558d062ba0b942134e4aaefd817ccd29f9872fb Mon Sep 17 00:00:00 2001 From: Reid Barton Date: Thu, 14 Feb 2013 22:01:54 -0500 Subject: [PATCH] Scale code and pre contents with font size Fixes Trac #893. (imported from commit ef376a4921d682d48e86a3a442877c0e5b15feef) --- zephyr/static/styles/zephyr.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/zephyr/static/styles/zephyr.css b/zephyr/static/styles/zephyr.css index 9948d41b35..cff1568691 100644 --- a/zephyr/static/styles/zephyr.css +++ b/zephyr/static/styles/zephyr.css @@ -57,9 +57,19 @@ li, .table th, .table td { /* Inline and block code */ code { + /* 12/14 em, so bootstrap's default 12 px, + when body is the default 14 px */ + font-size: 0.857em; + white-space: nowrap; } +pre { + /* 13/14 em, so bootstrap's default 13 px, + when body is the default 14 px */ + font-size: 0.929em; +} + pre code { white-space: pre; }