Bugzilla – Attachment 17237 Details for
Bug 8061
Koha's templates do not cope well with right-to-left languages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8061: RTL CSS overrides (staff client)
Bug-8061-RTL-CSS-overrides-staff-client.patch (text/plain), 8.11 KB, created by
Chris Cormack
on 2013-04-07 08:50:12 UTC
(
hide
)
Description:
Bug 8061: RTL CSS overrides (staff client)
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2013-04-07 08:50:12 UTC
Size:
8.11 KB
patch
obsolete
>From 4e491f9fbebea50e47db11ac1a9ce10b23ecc4ef Mon Sep 17 00:00:00 2001 >From: D Ruth Bavousett <druthb@gmail.com> >Date: Fri, 5 Apr 2013 12:41:25 +0300 >Subject: [PATCH] Bug 8061: RTL CSS overrides (staff client) > >This patch tweaks a few templates, and enables right-to-left >flipping via CSS in the staff client. > >Signed-off-by: Karam Qubsi <karamqubsi@gmail.com> >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >Amended patch, putting back author and adding sign off. > >Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> >--- > .../intranet-tmpl/prog/en/css/right-to-left.css | 270 ++++++++++++++++++++ > .../prog/en/includes/doc-head-close.inc | 3 + > .../prog/en/modules/cataloguing/addbiblio.tt | 3 +- > .../prog/en/modules/cataloguing/additem.tt | 3 +- > .../prog/en/modules/members/member-flags.tt | 2 +- > 5 files changed, 278 insertions(+), 3 deletions(-) > create mode 100644 koha-tmpl/intranet-tmpl/prog/en/css/right-to-left.css > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/right-to-left.css b/koha-tmpl/intranet-tmpl/prog/en/css/right-to-left.css >new file mode 100644 >index 0000000..b766658 >--- /dev/null >+++ b/koha-tmpl/intranet-tmpl/prog/en/css/right-to-left.css >@@ -0,0 +1,270 @@ >+fieldset.rows ol.radio label, fieldset.rows li.radio label { float: right; margin: 0 1em 0 0.3em; } >+ >+ >+/* Adjust text directions */ >+ >+a.yuimenuitemlabel, >+body, >+caption, >+div#toolbar, >+div.rows span.label, >+div.subfield_line label, >+fieldset.rows.left label, >+fieldset.rows.left span.label, >+h1, >+h2, >+h3, >+h4, >+h5, >+h6, >+legend, >+th, >+odoc, >+p, >+ul li, >+ul.toolbar, >+#doc2, >+#doc3, >+#doc4, >+.autocomplete .sample-result, >+.ui-tabs-panel, >+.yui-t1, >+.yui-t2, >+.yui-t3, >+.yui-t4 >+.yui-t5, >+.yui-t6, >+.yui-t7 >+{ >+ text-align: right; >+} >+ >+#issuest th, >+.column-tool >+{ >+ text-align: center; >+} >+ >+/* Swap floats */ >+ >+div.lang, >+div.rows span.label, >+div.subfield_line label, >+div#header_search, >+fieldset.action, >+fieldset.rows, >+fieldset.rows input, >+fieldset.rows div.hint, >+fieldset.rows img, >+fieldset.rows label, >+fieldset.rows li, >+fieldset.rows ol.radio label.radio, >+fieldset.rows select, >+fieldset.rows span.label, >+fieldset.rows textarea, >+ol.bibliodetails, >+ol.bibliodetails span.label, >+p label, >+span.required, >+#marcDocsSelect, >+#toplevelnav, >+.treeview .hitarea, >+.ui-tabs-nav li, >+.yui-g div.first, >+.yui-g p, >+.yui-gb div.first, >+.yui-gc div.first, >+.yui-gc div.first div.first, >+.yui-gd div.first, >+.yui-ge div.first, >+.yui-gf div.first, >+.yui-t1 .yui-b, >+.yui-t2 .yui-b, >+.yui-t3 .yui-b >+{ >+ float: right; >+} >+ >+a.buttondot >+{ >+ float: left; >+} >+ >+ul li, >+input, >+.input_marceditor >+{ >+ float: none; >+} >+ >+div.sysprefs div.hint, >+.yui-g .yui-u, >+.yui-t1 #yui-main, >+.yui-t2 #yui-main, >+.yui-t3 #yui-main, >+.yui-t1 #yui-main .yui-b >+{ >+ float: left; >+} >+ >+/* Adjust margins, padding, alignment and table-element widths */ >+ >+.yui-t1 #yui-main, >+.yui-t2 #yui-main, >+.yui-t3 #yui-main >+{ >+ margin-left: 0; >+} >+ >+.yui-t1 #yui-main .yui-b, >+.yui-t2 #yui-main .yui-b >+{ >+ margin-left: 0; >+ margin-right: 13em; >+} >+ >+.treeview .hitarea >+{ >+ margin-left: 0; >+ margin-right: -16px; >+} >+ >+div#menu li a >+{ >+ margin-left: -1px; >+} >+ >+div#menu, >+div.patroninfo ul, >+div.patroninfo h5, >+#guarantorsearch, >+.yui-g input >+{ >+ margin-left: 0.5em; >+} >+fieldset.rows img, >+span.required >+{ >+ margin-right: 0.5em; >+} >+ >+fieldset.rows div.hint >+{ >+ margin-right:1em; >+ margin-left:0; >+} >+ >+div#header_search >+{ >+ margin-right:200px; >+} >+ >+.yui-g .yui-u >+{ >+ padding-right: 0; >+} >+ >+body >+{ >+ padding-right: 1.5em; >+} >+ >+.yui-u >+{ >+ padding-right: 0.5em; >+} >+ >+ul >+{ >+ padding-left: 0; >+ padding-right: 1.1em; >+} >+ >+.yui-b >+{ >+ padding-bottom: 5em; >+} >+ >+.treeview li { >+ padding: 3px 16px 3px 16px; >+} >+ >+#login >+{ >+ left: 0.5em; >+} >+ >+#koha_url >+{ >+ left: 2em; >+} >+ >+#login, >+#koha_url >+{ >+ right:auto; >+} >+ >+div.listgroup, >+.yui-g p >+{ >+ clear:right; >+} >+ >+.yui-t2 #yui-main >+{ >+ width: 75%; >+} >+ >+.yui-t3 #yui-main >+{ >+ width: 70%; >+} >+ >+#borrowerautocomplete >+{ >+ width: auto; >+} >+ >+.holdcount >+{ >+ line-height: 150%; >+} >+ >+.yui-t1 .yui-b, >+.yui-t2 .yui-b >+{ >+ display:inline; >+} >+/* Borders */ >+ >+div#menu, >+div.patroninfo ul, >+div.patroninfo h5 >+{ >+ border-left: 1px solid #000; >+ border-right: none; >+} >+ >+#menu ul li.active a >+{ >+ border-right: 1px solid #000; >+ border-left: 0; >+} >+ >+/* flip over images */ >+ >+.treeview li, >+.treeview li.last >+{ >+ background-position-x: right !important; >+} >+/* TODO - Can we find ways to avoid this? */ >+ >+h1#logo, >+#koha_url, >+#login, >+.yui-t1 .yui-b >+{ >+ position: absolute; >+} >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc >index 8afc4e3..7c9722c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc >@@ -8,6 +8,9 @@ > [% ELSE %] > <link rel="stylesheet" type="text/css" href="[% themelang %]/css/staff-global.css" /> > [% END %] >+[% IF ( bidi ) %] >+ <link rel="stylesheet" type="text/css" href="[% themelang %]/css/right-to-left.css" /> >+[% END %] > [% IF ( IntranetUserCSS ) %]<style type="text/css">[% IntranetUserCSS %]</style>[% END %] > <script type="text/javascript" src="[% interface %]/lib/jquery/jquery.js"></script> > <script type="text/javascript" src="[% interface %]/lib/jquery/jquery-ui.js"></script> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt >index 3b13f3a..eddc21c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt >@@ -1,5 +1,6 @@ > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Cataloging › [% IF ( biblionumber ) %]Editing [% title |html %] (Record number [% biblionumber %])[% ELSE %]Add MARC record[% END %]</title> >+<link type="text/css" rel="stylesheet" href="[% themelang %]/css/addbiblio.css" /> > [% INCLUDE 'doc-head-close.inc' %] > <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.fixFloat.js"></script> > <script type="text/javascript" src="[% themelang %]/js/cataloging.js"></script> >@@ -286,7 +287,7 @@ function Changefwk(FwkList) { > > //]]> > </script> >-<link type="text/css" rel="stylesheet" href="[% themelang %]/css/addbiblio.css" /> >+ > </head> > <body id="cat_addbiblio" class="cat"> > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt >index f01c682..1731856 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt >@@ -1,5 +1,6 @@ > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Cataloging › [% title |html %] [% IF ( author ) %] by [% author %][% END %] (Record #[% biblionumber %]) › Items</title> >+<link type="text/css" rel="stylesheet" href="[% themelang %]/css/addbiblio.css" /> > [% INCLUDE 'doc-head-close.inc' %] > <script type="text/javascript" src="[% themelang %]/js/cataloging.js"></script> > <script type="text/javascript"> >@@ -93,7 +94,7 @@ $(document).ready(function() { > }); > //]]> > </script> >-<link type="text/css" rel="stylesheet" href="[% themelang %]/css/addbiblio.css" /> >+ > </head> > <body id="cat_additem" class="cat"> > [% INCLUDE 'header.inc' %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt >index 46ae7df..b9cddb4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt >@@ -1,7 +1,7 @@ > [% INCLUDE 'doc-head-open.inc' %] > <title>Koha › Patrons › Set permissions for [% surname %], [% firstname %]</title> >-[% INCLUDE 'doc-head-close.inc' %] > <link rel="stylesheet" type="text/css" href="[% themelang %]/css/treeview/jquery.treeview.css"/> >+[% INCLUDE 'doc-head-close.inc' %] > <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.treeview.pack.js"></script> > <!-- set up tree --> > <script type="text/javascript"> >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8061
:
9470
|
9579
|
13087
|
17178
|
17206
|
17207
|
17215
|
17216
|
17231
|
17232
|
17233
|
17234
|
17235
|
17236
|
17237
|
17238
|
17239
|
17240
|
17241
|
17242
|
17243
|
17244
|
17245
|
17246
|
17247
|
17248
|
17249
|
17286