lp1830960 adding more customizing options to opac colors, found issue in old patch...
authorRogan Hamby <rogan.hamby@gmail.com>
Tue, 30 Jul 2019 18:42:30 +0000 (14:42 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 15 Mar 2021 15:43:50 +0000 (11:43 -0400)
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>

Open-ILS/src/templates/opac/css/style.css.tt2
docs/RELEASE_NOTES_NEXT/OPAC/more_colors_in_tt2.adoc [new file with mode: 0644]

index a2fc5d6..51aa7a6 100644 (file)
@@ -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 (file)
index 0000000..6cab23b
--- /dev/null
@@ -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'
+