Commits

Olemis Lang committed 8bcdbdf

TracMac: Enhancing TOC links, pre(s), and images. First letter only inside wikipage

Comments (0)

Files changed (2)

tracmacos/htdocs/mac.css

 /* Meta navigation */
 
 .more {
-  height: auto;
+  background-image: url(more_trac_16_x_16.png);
 }
 
 #metanav>ul>li {
 
 /* Background images */
 
-#metanav .login {
+#metanav .login,
+#metanav .openidlogin {
   background-image: url(login_trac_16_x_16.png);
 }
 
 
 /* Fonts & Typography */
 
-h1:first-child+p:first-letter, h1:first-child+p+div.wiki-toc+p+p:first-letter {
+.wikipage>h1:first-child+p:first-letter, h1:first-child+p+div.wiki-toc+p+p:first-letter {
   color: #000000;
   background-image: url(fl.png);
   background-position: left;
   padding: 23px;
 }
 
-h1+p+h2, h1+p+div.wiki-toc+p+p+h2 {
+.wikipage>h1+p+h2, h1+p+div.wiki-toc+p+p+h2 {
   margin-top: 0.3em;
 }
 
   clear: left;
 }
 
+.wikipage h1 :visited,
+.wikipage h2 :visited,
+.wikipage h3 :visited,
+.wikipage h4 :visited,
+.wikipage h5 :visited,
+.wikipage h1 :link,
+.wikipage h2 :link,
+.wikipage h3 :link,
+.wikipage h4 :link,
+.wikipage h5 :link {
+  background-color: transparent;
+  color: #000000;
+}
+
+.wikipage h1 :visited:hover,
+.wikipage h2 :visited:hover,
+.wikipage h3 :visited:hover,
+.wikipage h4 :visited:hover,
+.wikipage h5 :visited:hover,
+.wikipage h1 :link:hover,
+.wikipage h2 :link:hover,
+.wikipage h3 :link:hover,
+.wikipage h4 :link:hover,
+.wikipage h5 :link:hover {
+  background-color: transparent;
+  color: #999999;
+}
+
 .wikipage h1 {
   background-image: url(bg1.png);
   background-repeat: repeat;
   background: url("bg1.png") repeat-x;
 }
 
+.wiki-toc :link, .wiki-toc :visited {
+  border-bottom: none;
+}
+
+pre.wiki, pre.literal-block {
+  background: none repeat scroll 0 0 #E0ECFF;
+  border: 1px solid #3366CC;
+}
+
 #footer {
   color: #0000CC;
   font-size: 10px;

tracmacos/templates/mac_theme.html

           </ul>
         <hr />
       </span>
-      <span py:with="metaitems = ('login', 'logout', 'prefs', 'help', 'about')" 
+      <span py:with="metaitems = ('login', 'openidlogin', 'logout', 'prefs', 'help', 'about')" 
             id="metanav" class="nav">
         <ul py:if="chrome.nav['metanav']">
           <li py:for="idx, item in  enumerate(chrome.nav['metanav'])" py:if="item.name in metaitems"