From 6b06e4545fdcec3ef6c27aa8b95e05e0f3dad74b Mon Sep 17 00:00:00 2001 From: David Cook Date: Thu, 1 Nov 2012 09:26:41 +1100 Subject: [PATCH] Bug 9003 - Add css fix for opac news items with strong and em Content-Type: text/plain; charset="utf-8" Currently, if you have nested strong and em tags in Opac News, you will only get the properties of the inner tag, since reset-fonts-grids.css resets the font weight and style (for both strong and em) to normal. So if you have em as your inner tag, you'll have italics but reset-fonts-grids.css also makes em have a font-weight of normal, so your strong tag is bypassed. I suggest adding some css that takes into account this descendant/nested situation, so that users can actually both bold and italicize news items. --- koha-tmpl/opac-tmpl/prog/en/css/opac.css | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css index 7ab95e0..d2ad4a4 100644 --- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css +++ b/koha-tmpl/opac-tmpl/prog/en/css/opac.css @@ -1550,6 +1550,11 @@ div.message { padding : 3px 5px; } +#news strong > em, #news em > strong { + font-weight: bold; + font-style: italic; +} + #opac-main-search #listsmenu a, #opac-main-search #listsmenu h4 { color : #000; font-weight : normal; -- 1.7.7.4