From 80f5f73e4fac17356d1f54f36455ee77bde305b6 Mon Sep 17 00:00:00 2001 From: Jacob Bednarz Date: Tue, 11 Feb 2014 19:13:42 +1000 Subject: [PATCH 1/2] Add the default monospace font stack for elements Unfortunately elements weren't getting the monospace font stack they deserved so they looked a little out of place. :lipstick: --- static/shared/css/documentation.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/shared/css/documentation.css b/static/shared/css/documentation.css index ad61a96c1c..817ae38617 100644 --- a/static/shared/css/documentation.css +++ b/static/shared/css/documentation.css @@ -1155,7 +1155,10 @@ body.api .content table td { Pre/Code Styles ------------------------------------------------------------------------------*/ -code {white-space: nowrap;} +code { + white-space: nowrap; + font: 12px Monaco,"Courier New","DejaVu Sans Mono","Bitstream Vera Sans Mono",monospace; +} pre { border: 1px solid #cacaca; From 10d0f78e3339269adf0fb995751eb213db60bb10 Mon Sep 17 00:00:00 2001 From: Jacob Bednarz Date: Tue, 8 Apr 2014 05:57:36 +1000 Subject: [PATCH 2/2] Updating to use GitHub default font stack - Make the font stack more consistent from GitHub.com. - Refactor code/pre selector rules to be generic enough to catch all the lingering code blocks. --- static/shared/css/documentation.css | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/static/shared/css/documentation.css b/static/shared/css/documentation.css index 817ae38617..a00734ec2f 100644 --- a/static/shared/css/documentation.css +++ b/static/shared/css/documentation.css @@ -1017,7 +1017,6 @@ div.sidebar-module ul ul li span { .content dl code, .content ul code, p code { - font: 12px Monaco,"Courier New","DejaVu Sans Mono","Bitstream Vera Sans Mono",monospace; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; @@ -1157,13 +1156,13 @@ body.api .content table td { code { white-space: nowrap; - font: 12px Monaco,"Courier New","DejaVu Sans Mono","Bitstream Vera Sans Mono",monospace; + font: 12px Consolas, 'Liberation Mono', Courier, monospace; } pre { border: 1px solid #cacaca; line-height: 1.2em; - font: 12px Monaco,"Courier New","DejaVu Sans Mono","Bitstream Vera Sans Mono",monospace; + font: 12px Consolas, 'Liberation Mono', Courier, monospace; padding: 10px; overflow:auto; -webkit-border-radius: 3px;