From feea67a51ba5010c5d005c71405e824b0dff6021 Mon Sep 17 00:00:00 2001 From: Lukas Mai Date: Tue, 23 Aug 2011 02:04:24 +0200 Subject: [PATCH] Add a border around code paragraphs Also try to prune some of the redundant CSS. --- root/static/css/shCore.css | 5 ++--- root/static/css/shThemeDefault.css | 9 --------- root/static/css/style.css | 18 +++++------------- 3 files changed, 7 insertions(+), 25 deletions(-) diff --git a/root/static/css/shCore.css b/root/static/css/shCore.css index 2a72deaa01..044db24acf 100644 --- a/root/static/css/shCore.css +++ b/root/static/css/shCore.css @@ -24,8 +24,8 @@ .syntaxhighlighter table thead, .syntaxhighlighter table caption, .syntaxhighlighter textarea, -.pod code, -.pod pre { +.pod code *, +.pod pre * { -moz-border-radius: 0 0 0 0 !important; -webkit-border-radius: 0 0 0 0 !important; background: none !important; @@ -94,7 +94,6 @@ width: 100% !important; height: 100% !important; border: none !important; - background: white !important; padding-left: 1em !important; overflow: hidden !important; white-space: pre !important; diff --git a/root/static/css/shThemeDefault.css b/root/static/css/shThemeDefault.css index 136541172d..7f64203754 100644 --- a/root/static/css/shThemeDefault.css +++ b/root/static/css/shThemeDefault.css @@ -14,15 +14,6 @@ * @license * Dual licensed under the MIT and GPL licenses. */ -.syntaxhighlighter { - background-color: white !important; -} -.syntaxhighlighter .line.alt1 { - background-color: white !important; -} -.syntaxhighlighter .line.alt2 { - background-color: white !important; -} .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 { background-color: #e0e0e0 !important; } diff --git a/root/static/css/style.css b/root/static/css/style.css index ac4e3df5aa..44493e5707 100644 --- a/root/static/css/style.css +++ b/root/static/css/style.css @@ -516,24 +516,16 @@ button.favorite:hover, button.favorite.active, a.favorite.active, a.favorite:hov ul#index, #index ul { list-style-type: none; } .syntaxhighlighter, .pod pre { - border-top: 10px solid #f9f9f9 !important; - border-bottom: 10px solid #f9f9f9 !important; + padding-top: 10px; + padding-bottom: 10px; + border: 1px solid black; width: auto !important; overflow-y: hidden !important; + background-color: #f9f9f9; } .nogutter, .pod pre { - border-left: 10px solid #f9f9f9 !important; -} - -.syntaxhighlighter, .pod pre { - background-color: #f9f9f9 !important; -} -.syntaxhighlighter .line.alt1 { - background-color: #f9f9f9 !important; -} -.syntaxhighlighter .line.alt2 { - background-color: #f9f9f9 !important; + padding-left: 10px; } .search-results img,