Commits

Olemis Lang committed 38999cc

TracMac: *Some* mainnav items added in toolbar. See TODO for details.

  • Participants
  • Parent commits 1aa93b9

Comments (0)

Files changed (3)

 - Render .menu li(s) using display: block rule.
 - Do not render roadmap progress bar in yellow background.
 - Add timeline icons.
+- Add further toolbar icons.
+- Add `more` drop-down menu in toolbar for missing mainnav items.
+- Implement toolbar search icon.
+- Hide & show main toolbar.
 

File tracmacos/htdocs/mac.css

   left: 1px;
   overflow:  hidden;
   position: absolute;
-  top: 1px;
+  top: 0;
   width: 30px;
 }
 
   width: 95px;
 }
 
+#tb_br {
+  background-image: url("toolbar.png");
+  background-position: 0 0;
+  background-repeat: no-repeat;
+  width: 35px !important;
+}
+
+.tb_nav_sep  {
+  background-image: url("toolbar.png");
+  background-position: -10px -154px;
+  background-repeat: no-repeat;
+  display: inline;
+  float: left;
+  height: 26px;
+  width: 2px;
+}
+
+.tb_nav_item  {
+  background-color: transparent !important;
+  display: list-item;
+  float: left;
+  height: 26px;
+  list-style-type: none;
+  padding-left: 3px;
+  position: relative;
+  width: auto;
+  z-index: 1;
+}
+
+.tb_nav_item :link, .tb_nav_item :visited,
+.tb_nav_item :link:hover, .tb_nav_item :visited:hover {
+  background-color: transparent;
+  background-repeat: no-repeat;
+  border: none;
+  color: #F1F2F2;
+  display: inline;
+  float: left;
+  font-family: Arial,Verdana;
+  font-size: 11px;
+  height: auto;
+  margin: 4px 10px 6px 4px;
+  min-height: 18px;
+  padding: 2px 0 0 21px;
+  position: static;
+  width: auto;
+}
+
+.tb_id_roadmap a {
+  background-image: url(tb_roadmap.png);
+}
+
+.tb_id_timeline a {
+  background-image: url(tb_timeline.png);
+}
+
+

File tracmacos/templates/mac_theme.html

                 <div id="tb_search">
                   <div id="tb_search_icon" />
                   <form id="tb_search_form" action="${href.search()}" method="get">
-                    <input id="tb_searchbox" name="q" type="text" defaultvalue="Search..." value="Search..." />
+                    <input id="tb_searchbox" name="q" type="text" />
                     <div id="tb_searchbtn" />
                   </form>
                 </div>
               </div>
-              <div py:for="itm in []" class="tb_item">
-                
+              <div py:for="itm in chrome.nav['mainnav'][:9]" class="tb_item">
+                <div class="tb_nav_item tb_nav_sep" />
+                <div class="tb_nav_item tb_id_${itm.name}">${itm.label}</div>
+              </div>
+              <div class="tb_item">
+                <!-- TODO: Add further mainnav items -->
               </div>
             </td>
+            <td id="tb_br" class="tb_td" />
           </tr>
         </tbody>
       </table>