From 61fa63580ae5aa132923a884b7ab287bd04e643c Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Tue, 22 Jan 2013 12:53:46 +0200 Subject: [PATCH] TPAC: Allow multiline buttons and other minor button work. Allows using multiline buttons; instead of using opac-button -class in the a-tag, wrap the a-tag in a div with opac-multiline-button -class. Changes the login help button so a longer button text behaves properly and looks good. Unifies the green OPAC button behaviour when hovering a mouse over them; the input and button -tag buttons did not change their color. Signed-off-by: Pasi Kallinen --- Open-ILS/src/templates/opac/css/style.css.tt2 | 10 ++++++++-- Open-ILS/src/templates/opac/parts/login/help.tt2 | 4 +++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/templates/opac/css/style.css.tt2 b/Open-ILS/src/templates/opac/css/style.css.tt2 index 3da8ea421c..ecf710c354 100644 --- a/Open-ILS/src/templates/opac/css/style.css.tt2 +++ b/Open-ILS/src/templates/opac/css/style.css.tt2 @@ -1149,6 +1149,7 @@ a.dash-link:hover { text-decoration: underline !important; } height: 26px; } +div.opac-multiline-button > a, .opac-button, .results_header_btns, #simple-detail-view-links { color: [% css_colors.button_text %]; font-weight: bold; @@ -1178,12 +1179,17 @@ a.dash-link:hover { text-decoration: underline !important; } display: table-cell; } -a.opac-button:hover, .results_header_btns a:hover, #simple-detail-view-links a:hover { +div.opac-multiline-button > a:hover, +.opac-button:hover, .results_header_btns a:hover, #simple-detail-view-links a:hover { background: [% css_colors.primary %]; text-decoration: none; } -a.opac-button, input.opac-button { +div.opac-multiline-button > a { + display:block; +} + +div.opac-multiline-button > a, a.opac-button, input.opac-button { margin: 10px; padding: 5px 10px 5px 10px; } diff --git a/Open-ILS/src/templates/opac/parts/login/help.tt2 b/Open-ILS/src/templates/opac/parts/login/help.tt2 index 4bac233642..07ad7d79ab 100644 --- a/Open-ILS/src/templates/opac/parts/login/help.tt2 +++ b/Open-ILS/src/templates/opac/parts/login/help.tt2 @@ -9,7 +9,9 @@ -- 2.11.0