From: Rogan Hamby Date: Tue, 30 Jul 2019 18:42:30 +0000 (-0400) Subject: lp1830960 adding more customizing options to opac colors, found issue in old patch... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fdefd2fd61c94955baf89d9d6b6e172a8ef29f25;p=evergreen%2Fpines.git lp1830960 adding more customizing options to opac colors, found issue in old patch plus added docs Signed-off-by: Terran McCanna Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/templates/opac/css/style.css.tt2 b/Open-ILS/src/templates/opac/css/style.css.tt2 index a2fc5d60e0..51aa7a6e4a 100644 --- a/Open-ILS/src/templates/opac/css/style.css.tt2 +++ b/Open-ILS/src/templates/opac/css/style.css.tt2 @@ -231,7 +231,7 @@ for now until a better color is picked - if needed. } #header-links a:hover { - color: [% css_colors.header_links_text %]; + color: [% css_colors.header_links_text_hover %]; text-shadow: 0 0 0.2em [% css_colors.primary %], 0 0 0.2em [% css_colors.primary %]; text-decoration: none; } @@ -276,7 +276,7 @@ for now until a better color is picked - if needed. #gold-links-holder { height: 24px; - background-color: [% css_colors.background_invert %]; + background-color: [% css_colors.header_links_bar %]; } #util-bar { diff --git a/docs/RELEASE_NOTES_NEXT/OPAC/more_colors_in_tt2.adoc b/docs/RELEASE_NOTES_NEXT/OPAC/more_colors_in_tt2.adoc new file mode 100644 index 0000000000..6cab23be00 --- /dev/null +++ b/docs/RELEASE_NOTES_NEXT/OPAC/more_colors_in_tt2.adoc @@ -0,0 +1,30 @@ +Easier Customization via colors.tt2 +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +Twelve new colors have been added to the colors.tt2 file as well as +having coresponding changes to the style.css.tt2 file. These use +descriptive rather than abstract names. These changes help avoid +situations were unreadable values are placed on top of each other +and where different values are wanted for elements that only refernece +a single color previously. Guidelines are below for setting values that +correspond to the previous values used in the colors.tt2 file. +For more diverse customizations the OPAC should be reviewed before +a production load. + +* 'footer' is used for the background color of the footer. It replaces the +'primary'. +* 'footer_text' sets the text color in the footer and replaces 'text_invert' +* 'header' sets the background of the header and replaces 'primary_fade' +* 'header_text' sets the color of text in the header and replaces 'text_invert' +* 'header_links_bar' sets the background of the links bar that separates the +header on the front page of the opac and replaces 'background_invert' +* 'header_links_text' sets the text on the links bar and replaces 'text_invert' +* 'header_links_text_hover' set the hover text color on the links bar and +replaces 'primary' +* 'opac_button' sets the background color of the My Opac button and replaces +'control' +* 'opac_button_text' explicitly sets the text color on the My Opac button +* 'opac_button_hover' sets the background color of the My Opac button when the +mouse is hovering over it and replaces 'primary' +* 'opac_button_hover_text' sets the text color of the My Opac button when the +mouse is hovering over it and replaces 'text invert' +