Add LESS variables for sidebar and topbar colors, remove from inline CSS to allow...
authorJonathan Schatz <jonathan.schatz@bc.libraries.coop>
Fri, 24 Aug 2018 20:48:33 +0000 (13:48 -0700)
committerJonathan Schatz <jonathan.schatz@bc.libraries.coop>
Fri, 24 Aug 2018 20:49:00 +0000 (13:49 -0700)
Signed-off-by: Jonathan Schatz <root@wiki-dev.sitka.bclibraries.ca>
css/design.less
header.html
style.ini

index 7429a9e..306ca0a 100755 (executable)
 
 .codowiki_west{
 
-background:#2980B9 !important;
+background: @ini_sidebar_color !important;
 
 }
 
@@ -303,7 +303,7 @@ background:#2980B9 !important;
 
 .codowiki_west_header{
 
-background-color: #2980B9;
+background-color: @ini_header_west_color;
 text-align: center;
 color: #FCFCFC;
 
@@ -563,3 +563,20 @@ refer:http://stackoverflow.com/questions/3293771/how-to-get-rid-of-margins-in-jq
 [dir=rtl] #dokuwiki__footer .license img {
     margin: 0 0 0 .5em;
 }
+
+/* topbar + indexmenu
+******************************************************************/
+
+.indexmenu_nojs li:hover a {
+        background: @ini_indexmenu_link_color;
+}
+.indexmenu_nojs ul.idx li a {
+       background: @ini_indexmenu_link_color;
+}
+
+.indexmenu_nojs ul.idx li a:hover {
+        background: @ini_indexmenu_hover_color;
+}
+li:hover li a:hover {
+        background: @ini_indexmenu_hover_color;
+}
index 4cfcc6d..e8d087c 100644 (file)
        color: #ffffff;   
        border-top: 1px solid #ffffff;   
        padding: 5px 15px 5px 15px;   
-       background: #2980B9;   
        margin-left: 1px;   
        white-space: nowrap; 
 }
 
-.indexmenu_nojs ul.idx li a:hover { 
-       background: #617F8A; 
-}
-
 .indexmenu_nojs li:hover > ul {   
        display: block;
        position: absolute; 
        left: 10px;
 }
 
-.indexmenu_nojs li:hover a {
-       background: #2980B9; 
-} 
-
-li:hover li a:hover {
-       background: #95A9B1; 
-}
-
 .indexmenu_nojs ul ul ul {
         top: 0;
         left:125px;
         display:none;
 }
 
-.dTreeNode a:link, .dTreeNode a:visited {
-       color:#FFFFFF;
-}
-
-
 
 </style>
 <div class="topbar">
index cc23c16..9bb67e7 100755 (executable)
--- a/style.ini
+++ b/style.ini
@@ -70,8 +70,12 @@ __border__          = "#ccc"            ; @ini_border
 __highlight__       = "#ff9"            ; @ini_highlight
 
 ;--------------------------------------------------------------------------
-
+__sidebar_color__ = "#2980b9"          ; @ini_sidebar_color
+__header_west_color__ = "#2980b9"      ; @ini_header_west_color
 __background_site__ = "#fbfaf9"         ; @ini_background_site
+__indexmenu_hover_color__ = "#95a9b1"  ; @ini_indexmenu_hover_color
+__indexmenu_link_color__ = "#2980b9"   ; @ini_indexmenu_link_color
+__indexmenu_visited_color__ = "#fffff" ; @ini_indexmenu_visited_color
 
 ; these are used for links
 __link__            = "#2b73b7"         ; @ini_link