From 82f57d0e85aaf1862207c6de0eb1fa3be263eb46 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Fri, 26 Jul 2013 00:05:49 -0400 Subject: [PATCH] LP#1205190: TPAC: Improve style.css to reduce warnings * Improve specificity: use background-image (for gradients) or background-color (for color) instead of just background, because we are only specifying the image or color, and not the rest of the background properties. * Declare the background-color first, followed by the background-images; these will only override if recognized by the browser. * Declare the standard (unprefixed) CSS linear-gradient last to prevent prefixed browser quirk versions from overriding the standardized form. * Remove the -moz- prefix from -moz-border-radius as that has not been supported by Gecko since Firefox 13.0; just plain border-radius now. * Fix bad selector ##rdetail_extras_expand (only one #, please). Signed-off-by: Dan Scott Signed-off-by: Pasi Kallinen Signed-off-by: Galen Charlton Conflicts: Open-ILS/src/templates/opac/css/style.css.tt2 Signed-off-by: Galen Charlton Conflicts: Open-ILS/src/templates/opac/css/style.css.tt2 Signed-off-by: Mike Rylander --- Open-ILS/src/templates/opac/css/style.css.tt2 | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/Open-ILS/src/templates/opac/css/style.css.tt2 b/Open-ILS/src/templates/opac/css/style.css.tt2 index cd9fef5915..0ad18947a3 100644 --- a/Open-ILS/src/templates/opac/css/style.css.tt2 +++ b/Open-ILS/src/templates/opac/css/style.css.tt2 @@ -904,6 +904,8 @@ div.format_icon { margin:0; padding:3; background-color: [% css_colors.background %]; + padding:0; + background-color: [% css_colors.background %]; font-size: [% css_fonts.size_bigger %]; color: [% css_colors.text %]; } @@ -967,7 +969,7 @@ div.format_icon { } #results_header_bar { - background-color: [% css_colors.accent_light %]; + background-color: [% css_colors.accent_medium %]; border-top:1px solid [% css_colors.accent_mediumdark %]; border-bottom:1px solid [% css_colors.accent_mediumdark %]; } @@ -982,8 +984,8 @@ div.format_icon { color: [% css_colors.text %]; /* this border is not visible, but it keeps these labels the same size as the buttons */ - border: 1px solid [% css_colors.accent_light %]; - background-color: [% css_colors.accent_light %]; + border: 1px solid [% css_colors.accent_medium %]; + background-color: [% css_colors.accent_medium %]; margin: 0.5em 0.3em; padding: 0.3em; } @@ -1259,6 +1261,7 @@ div.result_table_utils_cont { float:right; padding: 15px 0px 0px 23px; [% END -%] + background-color: [% css_colors.accent_ultralight %]; width: 177px; } @@ -1376,8 +1379,9 @@ div.result_table_utils_cont { } .hold_note_title { font-weight: bold; } -#acct_checked_main_header td, #acct_holds_main_header td, #acct_fines_main_header td, #acct_fines_confirm_header td, #acct_fees_main_header td,#acct_checked_hist_header td, #acct_holds_hist_header td, #acct_list_header td, #acct_list_header_anon td, #temp_list_holds td, #acct_messages_main_header td, #ebook_circs_main_table td, #ebook_holds_main_table td { - background-color: [% css_colors.background %]; + +#acct_checked_main_header td, #acct_holds_main_header td, #acct_checked_hist_header td, #acct_holds_hist_header td, #acct_list_header td, #acct_list_header_anon td, #temp_list_holds td, #acct_messages_main_header, #ebook_circs_main_table td, #ebook_holds_main_table td { + background-color: [% css_colors.accent_lighter2 %]; padding: 10px; border: 1px solid #d3d3d3; } @@ -2747,11 +2751,9 @@ div.result_table_utils { } #acct_tabs a, #acct_fines_tabs a { [% IF rtl == 't' -%] - -moz-border-radius: 6px 0px 0px 6px; border-radius: 6px 0px 0px 6px; margin: 0px 0px 0px 5px; [% ELSE -%] - -moz-border-radius: 6px 6px 0px 0px; border-radius: 6px 6px 0px 0px; margin: 0px 5px 0px 0px; [% END -%] @@ -3078,7 +3080,6 @@ div.result_table_utils { font-size: [% css_fonts.size_small %]; margin: 2px 2px 0px 2px; padding: 2px 2px 5px 2px; - -moz-border-radius: 10px 0px 0px 0px; [% IF rtl == 't' -%] border-radius: 7px 0px 0px 7px; [% ELSE -%] -- 2.11.0