[Koha-patches] [PATCH] Bug 9680 - cart aligned right in CCSR
Owen Leonard
oleonard at myacpl.org
Fri May 10 18:19:48 CEST 2013
The CCSR theme sets a min-width of 1000px for windows which are more
than 700px wide. This caused the cart popup window to be given a
min-width of 1000px, resulting in a broken layout with unnecessary
horizontal scrolling.
This patch adds a class to the cart template and to other pop-up window
templates to ensure that a large min-width is not enforced and to give
consistent padding to those pages.
To test, set your theme to 'CCSR' and view the following pop-up pages:
- The Cart. From the cart, trigger:
- The "send" window
- The "download" window
- From a view of a List's contents trigger:
- The "send" window"
- The "download" window
Each of these pages should look correct with no horizontal scrolling.
---
koha-tmpl/opac-tmpl/ccsr/en/css/colors.css | 5 +++++
koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt | 2 +-
.../opac-tmpl/prog/en/modules/opac-downloadcart.tt | 2 +-
.../prog/en/modules/opac-downloadshelf.tt | 2 +-
.../prog/en/modules/opac-sendbasketform.tt | 2 +-
.../prog/en/modules/opac-sendshelfform.tt | 2 +-
6 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/koha-tmpl/opac-tmpl/ccsr/en/css/colors.css b/koha-tmpl/opac-tmpl/ccsr/en/css/colors.css
index 7e8a946..c751c3d 100644
--- a/koha-tmpl/opac-tmpl/ccsr/en/css/colors.css
+++ b/koha-tmpl/opac-tmpl/ccsr/en/css/colors.css
@@ -13,6 +13,11 @@ body {
background-color : #eaeae6;
}
+body.popup {
+ min-width: 100px;
+ padding : 1em;
+}
+
#container {
background: #fff;
border:1px solid #d2d2cf;
diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt
index 90a259e..09993af 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt
@@ -135,7 +135,7 @@ function enableCheckboxActions(){
</script>
[% END %]
</head>
-<body id="basket">
+<body id="basket" class="popup">
<div id="doc" class="yui-t7">
<div id="userbasket" class="container">
diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-downloadcart.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-downloadcart.tt
index f594ffc..9af57c8 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-downloadcart.tt
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-downloadcart.tt
@@ -1,6 +1,6 @@
[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Download cart[% INCLUDE 'doc-head-close.inc' %]
</head>
-<body id="opac-downloadcart" style="padding:1em;">
+<body id="opac-downloadcart" class="popup">
<div id="userdownloadcart" class="container">[% IF ( format ) %]
<p>Your download should begin automatically.</p>
[% ELSE %]
diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-downloadshelf.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-downloadshelf.tt
index 5712c6a..0af60cd 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-downloadshelf.tt
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-downloadshelf.tt
@@ -6,7 +6,7 @@
//]]>
</script>
</head>
-<body id="opac-downloadlist" style="padding:1em;">
+<body id="opac-downloadlist" class="popup">
<div id="userdownloadshelf" class="container">
[% UNLESS ( invalidlist ) %]
[% IF ( format ) %]
diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-sendbasketform.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-sendbasketform.tt
index 927fc7a..d5da34d 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-sendbasketform.tt
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-sendbasketform.tt
@@ -1,7 +1,7 @@
[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Sending your cart
[% INCLUDE 'doc-head-close.inc' %]
</head>
-<body style="padding: 1em;" id="sendbasket">
+<body id="sendbasket" class="popup">
<div id="usersendbasket" class="container">[% IF ( email_add ) %]
[% IF ( SENT ) %]
diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-sendshelfform.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-sendshelfform.tt
index f64eb08..fbe7add 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-sendshelfform.tt
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-sendshelfform.tt
@@ -7,7 +7,7 @@
//]]>
</script>
</head>
-<body style="padding: 1em;" id="sendshelf">
+<body id="sendshelf" class="popup">
<div id="usersendshelfform" class="container">[% IF ( email ) %]
[% IF ( SENT ) %]
--
1.7.9.5
More information about the Koha-patches
mailing list