Commits

Anonymous committed a7d0a8d Merge

TracMacOs: merge new icons

Comments (0)

Files changed (4)

+
+Outstanding tasks are :
+
+- Add icon for `more` item in metanav.
+- Add icon (apple) for active item in navs.
+- Change icon for `About Trac` item in metanav.
+- Add definitive mage for first letter.
+
Add a comment to this file

tracmacos/htdocs/fl.png

Added
New image

tracmacos/htdocs/mac.css

 Trac custom stylesheet for Example theme 
 */
 
-#mainnav {
-  background: #FFFFCC none repeat scroll 0pt 0pt;
-}
-
 #tabs {
   background: #E0ECFF none repeat scroll 0% 0%;
 }
   font-weight: bold;
 }
 
-.nav :link, .nav :visited, .nav :hover {
+:link:hover, :visited:hover, .nav li:hover, 
+.nav li:hover>:link, .nav li:hover>:visited {
+  background-color: #3366ff;
+  color: white;
+}
+
+:visited {
+  background-color: #FFFFCC;
+}
+
+:visited, :link {
+  color: #0000CC;
+}
+
+.nav :link, .nav :visited {
   color: #000000;
   border: none;
-}
-
-:link:hover, :visited:hover, .nav li:hover {
-  background-color: #E0ECFF;
+  background-color: transparent;
 }
 
 .nav li {
 }
 
 #metanav {
-  border-left: 1px solid #999999;
+/*
+  border-left: 1px solid #999999; 
+*/
   float: right;
   position: absolute;
   right: 1em;
   top: 15px;
 }
 
+/* Drop down menus */
+
+#mainmenu {
+  display: block;
+  padding: 0px;
+  position: absolute;
+  top: 5px;
+  z-index: 1;
+}
+
+#mainmenu:hover {
+  background-color: transparent;
+}
+
+#mainmenu:hover>ul.menu {
+  display: block;
+}
+
+#mainmenu>ul.menu {
+  display: none;
+}
+
+.menu, .menu ul {
+  border: none !important;
+  display: block;
+  list-style-type: none;
+  margin: 0px !important;
+  opacity: 0.95;
+  padding: 0 1px 1px 0;
+}
+
+.menu {
+  background: #999999 none repeat scroll 0pt 0pt;
+  z-index: 1;
+}
+
+.menu ul {
+  background: #EEEEEE none repeat scroll 0pt 0pt;
+}
+
+.menu li {
+  background: #EEEEEE none repeat scroll 0pt 0pt;
+  display: block;
+  text-align: left;
+  width: auto;
+}
+
+#mainnav {
+  border: none;
+  margin: 0;
+}
+
+#mainnav :link, #mainnav :visited,
+#mainnav .active :link, #mainnav .active :visited {
+  background: none no-repeat scroll 0 0 transparent ;
+  border: medium none;
+}
+
+#mainnav .active :link, #mainnav .active :visited {
+  color: #000000;
+  font-weight: bold;
+}
+
+#mainnav li:hover :link, #mainnav li:hover :visited, 
+#mainnav .active :link:hover, #mainnav .active :visited:hover {
+  background-color: transparent;
+  border: none;
+  color: white;
+}
+
+#metanav {
+  padding: 0;
+}
+
+.more:hover {
+  background-color: transparent;
+}
+
+.more>ul.menu {
+  display: none;
+}
+
+.more:hover>ul.menu {
+  display: block;
+}
+
+li#metanav {
+  background-color: transparent !important;
+  float: none;
+  left: 0;
+  padding-top: 6px;
+  position: relative;
+  top: 0;
+  width: auto;
+}
+
 /* Round boxes */
 
 .round1 {
 
 #mainbutton {
   background-color: #E1E1E1;
+  display: block; 
+  padding: 0px; 
+/*
   position: absolute;
   top:5px;
+*/
+  width: 34px;
 }
 
 #mainbutton:hover {
 /* Meta navigation */
 
 .more {
-  padding
+  height: auto;
 }
 
 #metanav>ul>li {
 #metanav .logout {
   background-image: url(logout_trac_16_x_16.png);
 }
+
+/* Fonts & Typography */
+
+h1+p:first-letter, h1+p+div.wiki-toc+p+p:first-letter {
+  color: #000000;
+  background-image: url(fl.png);
+  background-position: left;
+  background-repeat: no-repeat;
+  float: left;
+  font-size: 2.5em;
+  font-family: 'Palatino Linotype',Palatino,'Times New Roman',serif;
+  font-weight: bold;
+  margin-right: 0.15em;
+  padding: 20px;
+}
+
+h1+p+h2, h1+p+div.wiki-toc+p+p+h2 {
+  margin-top: 0.3em;
+}
+
+#main h1+p+div.wiki-toc+p+p {
+  text-indent: 0em;
+}
+
+#main p+p {
+  text-indent: 0.5em;
+}
+
+

tracmacos/templates/mac_theme.html

       xmlns:py="http://genshi.edgewall.org/"
       py:strip="">
 
-  <div py:def="navigation(category)" id="${category}" class="nav">
-    <ul py:if="chrome.nav[category]">
-      <li py:for="idx, item in  enumerate(chrome.nav[category])"
-          class="${classes(first_last(idx, chrome.nav[category]), active=item.active)}">${item.label}</li>
-    </ul>
-  </div>
+  <ul py:def="navigation(category, skip)" class="menu">
+    <li id="${category}" class="nav">
+      <ul py:if="chrome.nav[category]">
+        <li py:for="idx, item in  enumerate(i for i in chrome.nav[category] if i.name not in skip)"
+            class="${classes(first_last(idx, chrome.nav[category]), active=item.active)}">${item.label}</li>
+      </ul>
+    </li>
+  </ul>
 
   <py:match path="body" once="true" buffer="false"><body>
     <div id="mainpanel" class="nav">
-      <span id="mainbutton">
-        <div class="round4"></div>
-        <div class="round2"></div>
-        <div class="round1"></div>
-        <div class="box-inner"></div>
-        <div class="round1"></div>
-        <div class="round2"></div>
-        <div class="round4"></div>
+      <span> 
+        <ul style="padding: 0px;">
+          <li id="mainmenu"> 
+            <div id="mainbutton">
+              <div class="round4"></div>
+              <div class="round2"></div>
+              <div class="round1"></div>
+              <div class="box-inner"></div>
+              <div class="round1"></div>
+              <div class="round2"></div>
+              <div class="round4"></div>
+            </div>
+            ${navigation("mainnav", [])}
+          </li>
+        </ul>
       </span>
       <span id="navitem" class="active">
         <py:with vars="active = [item.label for item in chrome.nav.get('mainnav', []) if item.active]">
               class="${(classes(first_last(idx, chrome.nav['metanav']), active=item.active) or '') + ' ' + item.name}">
             ${item.label}
           </li>
-          <li class="more">more</li>
+          <li class="more">
+            <em>more</em>
+            ${navigation("metanav", metaitems)}
+          </li>
         </ul>
       </span>
     </div>
     <div id="outer-wrapper">
       <div id="content-wrapper">
 
-        ${navigation('mainnav')}
-
         <div id="main-wrapper">
           <!-- >
           <div id="ctxtnav" class="nav">
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.