From 7ecda050991d21031d59eb064890acdb2ee954ae Mon Sep 17 00:00:00 2001 From: Anika Henke <anika@selfthinker.org> Date: Sat, 13 Oct 2012 00:06:25 +0100 Subject: [PATCH] improved section highlighting styles --- lib/tpl/dokuwiki/css/_edit.css | 11 +++-------- lib/tpl/dokuwiki/css/content.css | 10 ++-------- lib/tpl/dokuwiki/css/mobile.css | 6 ++---- 3 files changed, 7 insertions(+), 20 deletions(-) diff --git a/lib/tpl/dokuwiki/css/_edit.css b/lib/tpl/dokuwiki/css/_edit.css index bae69ad96..0c66c75b7 100644 --- a/lib/tpl/dokuwiki/css/_edit.css +++ b/lib/tpl/dokuwiki/css/_edit.css @@ -135,15 +135,10 @@ div.picker button.toolbutton { font-size: 75%; } -/* generic style for section highlighting (including headings) */ -.dokuwiki .section_highlight { -} -/* style for section highlighting (only sections below headings) */ +/* style for section highlighting */ .dokuwiki div.section_highlight { - margin-left: -1em; /* negative side margin = side padding + side border */ - margin-right: -1em; /* negative side margin = side padding + side border */ - padding-left: .5em; - padding-right: .5em; + margin: 0 -1em; /* negative side margin = side padding + side border */ + padding: 0 .5em; border: solid __background_alt__; border-width: 0 .5em; } diff --git a/lib/tpl/dokuwiki/css/content.css b/lib/tpl/dokuwiki/css/content.css index aae83570d..a714869db 100644 --- a/lib/tpl/dokuwiki/css/content.css +++ b/lib/tpl/dokuwiki/css/content.css @@ -230,16 +230,10 @@ } .dokuwiki div.section_highlight { - margin-left: -2em; - margin-right: -2em; - padding-left: 1em; - padding-right: 1em; + margin: 0 -2em; + padding: 0 1em; border-width: 0 1em; } -[dir=rtl] .dokuwiki div.section_highlight { - margin-right: -2em; - border-right-width: 1em; -} .dokuwiki textarea.edit { font-family: Consolas, "Andale Mono WT", "Andale Mono", "Bitstream Vera Sans Mono", "Nimbus Mono L", Monaco, "Courier New", monospace; diff --git a/lib/tpl/dokuwiki/css/mobile.css b/lib/tpl/dokuwiki/css/mobile.css index 7f106b046..501e53a54 100644 --- a/lib/tpl/dokuwiki/css/mobile.css +++ b/lib/tpl/dokuwiki/css/mobile.css @@ -92,10 +92,8 @@ /* _edit */ .dokuwiki div.section_highlight { - margin-left: -1em; - margin-right: -1em; - padding-left: .5em; - padding-right: .5em; + margin: 0 -1em; + padding: 0 .5em; border-width: 0 .5em; } .dokuwiki div.preview { -- GitLab