From 7f48829c50c437b5917e8318b505f0cf86a751a9 Mon Sep 17 00:00:00 2001 From: Karam Qubsi Date: Fri, 5 Apr 2013 22:47:08 +0300 Subject: [PATCH] Bug 8061: Follow Up (Opac-Prog) - enhancement to D Ruth's patch In this Patch I added some changes to the rtl.css file I made some changes in the file opac-bottom.inc and add css classes to the lang list and I define the class value in the opac.css I add If statment to the opac-detail.tt to chose the rtl.css when rtl lang. http://bugs.koha-community.org/show_bug.cgi?id=8061 Signed-off-by: Katrin Fischer Reformatted commit message and added bug number. Signed-off-by: Chris Cormack Signed-off-by: Katrin Fischer Tested with po files for Arabic from 3.8. All tests and QA script pass. Signed-off-by: Jared Camins-Esakov --- koha-tmpl/opac-tmpl/prog/en/css/opac.css | 8 +++ .../opac-tmpl/prog/en/css/right-to-left.css | 63 +++++++++++++++++-- .../prog/en/includes/opac-bottom.inc | 8 +-- .../opac-tmpl/prog/en/modules/opac-detail.tt | 3 + 4 files changed, 73 insertions(+), 9 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css index cada641874..c0810752f6 100644 --- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css +++ b/koha-tmpl/opac-tmpl/prog/en/css/opac.css @@ -1682,6 +1682,10 @@ ul#i18nMenu li.more ul li a { background-image : none; padding: 0 1.3em; } +.morelang, +li.more { +float:left +} span.lang{ float:left; @@ -2938,3 +2942,7 @@ a.reviewlink,a.reviewlink:visited { .branch-info-tooltip { display: none; } +.lang { +float:left; +padding: 0.1em 0; +} diff --git a/koha-tmpl/opac-tmpl/prog/en/css/right-to-left.css b/koha-tmpl/opac-tmpl/prog/en/css/right-to-left.css index 141fcc843f..57a2cfdc61 100644 --- a/koha-tmpl/opac-tmpl/prog/en/css/right-to-left.css +++ b/koha-tmpl/opac-tmpl/prog/en/css/right-to-left.css @@ -24,6 +24,7 @@ table#marc th /* Swap floats */ + body#advsearch #cartmenulink, body#advsearch #listsmenulink, #renewcontrols, @@ -35,7 +36,7 @@ body#advsearch #listsmenulink, { float: left; } - +.ui-tabs .ui-tabs-nav li, div.lang, fieldset.rows label, fieldset.rows span.label, @@ -95,10 +96,6 @@ h6 margin-left: 0.5em; } -ul li -{ - margin-right: 1.5em; -} ul.pg_menu li, .author, @@ -182,3 +179,59 @@ h3 img { filter: FlipH; -ms-filter: "FlipH"; } + + +#moresearches { + clear: right; +} + +#cartmenulink, #listsmenulink { + float: right; + margin-right: 1em; + margin-left: 0em; +} + +#listsmenulink { + + background-image: url("../../images/sprite.png"), -moz-linear-gradient(center top , rgb(215, 229, 255) 0%, rgb(177, 203, 255) 50%, rgb(159, 191, 255) 100%); + + background-position: -5px -287px, left top; + + padding-left: 20px; +} +#listsmenulink:hover { + background-position: -5px -287px, left top; +} + +#cartmenulink { + padding-right: 30px; + background-position: 20px -256px, left top; + padding-left: 13px; +} +#cartmenulink:hover { + background-position: 20px -256px, left top; +} +.lang { +float:right; + +} +.morelang, +li.more { +float:right; +} + +ul#i18nMenu li { + border-right: 1px solid rgb(204, 204, 204); +} +div.rating-cancel, div.star-rating { + float: right; +} + + +#shelfbrowser #browser_previous { + background-position: -9px -1051px; +} + +#shelfbrowser #browser_next { + background-position: -9px -1001px; +} diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/opac-bottom.inc b/koha-tmpl/opac-tmpl/prog/en/includes/opac-bottom.inc index b7495f944c..70206732aa 100644 --- a/koha-tmpl/opac-tmpl/prog/en/includes/opac-bottom.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/opac-bottom.inc @@ -9,13 +9,13 @@ [% IF ( languages_loop && opaclanguagesdisplay ) %] [% UNLESS ( one_language_enabled ) %]
-
Languages: 
+
Languages: