[Rt-commit] rt branch, 4.4/heading-font-color-theme-editor, created. rt-4.4.2-59-g05a32c6a1

Craig Kaiser craig at bestpractical.com
Thu Jan 11 10:29:22 EST 2018


The branch, 4.4/heading-font-color-theme-editor has been created
        at  05a32c6a1de24eadb435c00fac994f728e67b7ef (commit)

- Log -----------------------------------------------------------------
commit 05a32c6a1de24eadb435c00fac994f728e67b7ef
Author: Craig Kaiser <craig at bestpractical.com>
Date:   Tue Dec 26 12:16:24 2017 -0500

    Add css in Theme for Portlets and Search result
    
    Add a css section that makes it simple to change the css for the RT at a
    glance portlets as well as css for search results.

diff --git a/share/html/Admin/Tools/Theme.html b/share/html/Admin/Tools/Theme.html
index e8b237d38..1edf779e2 100644
--- a/share/html/Admin/Tools/Theme.html
+++ b/share/html/Admin/Tools/Theme.html
@@ -118,13 +118,15 @@
 
 <%ONCE>
 my @sections = (
-    ['Page'         => ['body', 'div#body']],
-    ['Menu bar'     => ['div#quickbar', '#main-navigation #app-nav.sf-shadow > li, #main-navigation #app-nav.sf-shadow > li > a, #prefs-menu > li, #prefs-menu > li > a, #logo .rtname']],
-    ['Title bar'    => ['div#header']],
-    ['Page title'   => ['div#header h1']],
-    ['Page content' => ['div#body']],
-    ['Buttons'      => ['input[type="reset"], input[type="submit"], input[class="button"]']],
-    ['Button hover' => ['input[type="reset"]:hover, input[type="submit"]:hover, input[class="button"]:hover']],
+    ['Page'           => ['body', 'div#body']],
+    ['Menu bar'       => ['div#quickbar', '#main-navigation #app-nav.sf-shadow > li, #main-navigation #app-nav.sf-shadow > li > a, #prefs-menu > li, #prefs-menu > li > a, #logo .rtname']],
+    ['Title bar'      => ['div#header']],
+    ['Page title'     => ['div#header h1']],
+    ['Page content'   => ['div#body']],
+    ['Buttons'        => ['input[type="reset"], input[type="submit"], input[class="button"]']],
+    ['Button hover'   => ['input[type="reset"]:hover, input[type="submit"]:hover, input[class="button"]:hover']],
+    ['Search results' => ['table.collection-as-table th.collection-as-table a']],
+    ['Portlet Text'   => ['.titlebox .titlebox-title .left a, .titlebox .titlebox-title .left']],
 );
 </%ONCE>
 <script type="text/javascript">
@@ -183,6 +185,12 @@ jQuery(function($) {
               if (applying[name].match(/h1/))
                   newcss = "color: " + bg;
 
+              if (applying[name].match(/collection-as-table/))
+                  newcss = "color: " + bg;
+
+              if (applying[name].match(/titlebox/))
+                  newcss = "color: " + bg;
+
               /* Nav doesn't need a background, but it wants text color */
               if (applying[name].match(/#main-navigation/))
                   newcss = "color: " + fg;

-----------------------------------------------------------------------


More information about the rt-commit mailing list