Bug 10797: Move styling of simple search from element to CSS file
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Wed, 4 Dec 2013 14:41:39 +0000 (15:41 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 23 Dec 2013 15:30:03 +0000 (15:30 +0000)
This patch moves the styling of the #transl1 element from an
inline style attribute to the CSS file to make it easier to
tweak.

To test:
- Switch to prog theme, problem doesn't exist in Bootstrap theme
- Take a look at the simple search input field
- Apply patch
- Refresh page
- Make sure field has the same length and size

You can also use Firebug to make sure the same styles
are applied to the element before and after the change.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/opac-tmpl/prog/en/css/opac.css
koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc

index c2902c1..b7cf025 100644 (file)
@@ -3080,3 +3080,8 @@ padding: 0.1em 0;
 .copiesrow {
     clear : both;
 }
+
+#transl1 {
+    width: 35%;
+    font-size: 111%;
+}
index 79eb1a1..76bf5ea 100644 (file)
@@ -80,9 +80,9 @@
                 [% END %]
                 [% END %]</select>
 [% IF ( ms_value ) %]
-        <input type="text" title="Type search term" id = "transl1" name="q" value="[% ms_value |html %]" class="left" style="width: 35%; font-size: 111%;"/><div id="translControl"></div>
+        <input type="text" title="Type search term" id = "transl1" name="q" value="[% ms_value |html %]" class="left" /><div id="translControl"></div>
 [% ELSE %]
-        <input type="text" title="Type search term" id = "transl1" name="q" class="left" style="width: 35%; font-size: 111%;"/><div id="translControl"></div>
+        <input type="text" title="Type search term" id = "transl1" name="q" class="left" /><div id="translControl"></div>
 [% END %]
    [% IF Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 %]
       <select name="branch_group_limit" id="select_library" class="left">