Changeset 121 for trunk


Ignore:
Timestamp:
Mar 12, 2011, 12:18:49 AM (14 years ago)
Author:
anonymous
Message:

add horizontal menu bar

Location:
trunk/docs
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/_static/default.css

    r120 r121  
    258258    border-bottom: 1px solid #ac9;
    259259}
     260
     261/*  Menu Bar ---------------------------------------- */
     262
     263ul.topnav {
     264        position:relative;
     265        top:0;
     266        left:0;
     267        list-style: none;
     268        padding: 0 ;   
     269        margin: 0;
     270        float: left;
     271        width: 100%;
     272        height:40px;
     273        background: #563404;
     274filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#563404', endColorstr='#663e05'); /* for IE */
     275background:-webkit-gradient(linear, left top, left bottom, from(#563404), to(#663e05)); /* for webkit browsers */
     276background:-moz-linear-gradient(top,  #563404,  #663e05); /* for firefox 3.6+ */
     277        font-size: 1.2em;
     278}
     279ul.topnav li {
     280        float: left;
     281        margin: 0;     
     282        padding: 0 15px 0 0;
     283        position: relative; /*--Declare X and Y axis base--*/
     284}
     285ul.topnav li a{
     286        padding: 6px 10px 10px 20px;
     287        color: #fff;
     288        display: block;
     289        text-decoration: none;
     290        float: left;
     291       
     292}
     293ul.topnav li a:hover{
     294        background: transparent;
     295        color:#ffcd0b;
     296}
     297ul.topnav li span { /*--Drop down trigger styles--*/
     298        width: 17px;
     299        height: 35px;
     300        float: left;
     301}
     302ul.topnav li span.subhover {background-position: center bottom; cursor: pointer;} /*--Hover effect for trigger--*/
     303ul.topnav li ul.subnav {
     304        list-style: none;
     305        position: absolute; /*--Important - Keeps subnav from affecting main navigation flow--*/
     306        left: 20px; top: 35px;
     307        margin: 0; padding: 0;
     308        display: none;
     309        float: left;
     310        width: 170px;
     311        -moz-border-radius-bottomleft: 5px;
     312        -moz-border-radius-bottomright: 5px;
     313        -webkit-border-bottom-left-radius: 5px;
     314        -webkit-border-bottom-right-radius: 5px;
     315        border: 1px solid #663e05;
     316        z-index:1000000;
     317       
     318
     319}
     320ul.topnav li ul.subnav li{
     321        margin: 0; padding: 0;
     322
     323        clear: both;
     324        width: 125px;
     325}
     326html ul.topnav li ul.subnav li a {
     327                font-size:.8em;
     328        float: left;
     329        width: 155px;
     330        background: #663e05;
     331        padding:3px 5px 3px 10px ;
     332
     333}
     334html ul.topnav li ul.subnav li a:hover { /*--Hover effect for subnav links--*/
     335 
     336}
  • trunk/docs/_templates/layout.html

    r120 r121  
    11{% extends "!layout.html" %}
     2
     3{% block extrahead %}
     4
     5<script type="text/javascript">
     6$(document).ready(function(){
     7
     8        $("ul.topnav li a").hover(function() {
     9
     10                //Following events are applied to the subnav itself (moving subnav up and down)
     11                $(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click
     12
     13                $(this).parent().hover(function() {
     14                }, function(){
     15                        $(this).parent().find("ul.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
     16                });
     17
     18                //Following events are applied to the trigger (Hover events for the trigger)
     19                }).hover(function() {
     20                        $(this).addClass("subhover"); //On hover over, add class "subhover"
     21                }, function(){  //On Hover Out
     22                        $(this).removeClass("subhover"); //On hover out, remove class "subhover"
     23        });
     24
     25});
     26</script>
     27
     28    {{ super() }}
     29{% endblock %}
    230
    331{% block header %}
    432    <img src="_static/images/header-logo.jpg">
    5     {{ super() }}
    6 {% endblock %}
    733
    8 {% block rootrellink %}
    9     <li><a href="http://www.zoo-project.org/">Project Homepage</a> &raquo;</li>
     34<ul class="topnav">
     35  <li><a href="/site/">Home</a></li>
     36  <li><a href="#">ZOO Project</a>
     37       <ul class="subnav">
     38
     39         <li><a href="/site/ZooWebSite/ZooProject/About">About</a></li>
     40         <li><a href="/site/ZooWebSite/ZooProject/Tribe">ZOO Tribe</a></li>
     41         <li><a href="/site/ZooWebSite/ZooProject/Events">Events</a></li>
     42         <li><a href="/site/ZooWebSite/ZooProject/Photos">Photos</a></li>
     43         <li><a href="/site/ZooWebSite/ZooProject/Contact">Contacts</a></li>
     44       </ul>
     45
     46  </li>
     47  <li>
     48    <a href="#">Components</a>
     49    <ul class="subnav">
     50      <li><a href="/site/ZooWebSite/ZooKernel">ZOO Kernel</a></li>
     51      <li><a href="/site/ZooWebSite/ZooServices">ZOO Services</a></li>
     52      <li><a href="/site/ZooWebsite/ZooApi">ZOO API</a></li>
     53
     54    </ul>
     55  </li>
     56  <li><a href="download.html">Download</a></li>
     57  <li><a href="/site/ZooDocumentation">Docs</a></li>
     58  <li><a href="#">Demos</a>
     59    <ul class="subnav">
     60      <li><a href="/site/ZooWebSite/Demo/SpatialTools">ZOO Spatial Tools</a></li>
     61
     62      <li><a href="/site/ZooWebSite/Demo/CGAL">ZOO CGAL Vor</a></li>
     63      <li><a href="/site/ZooWebSite/Demo/WFS-T">ZOO Mapserver WFS-T</a></li>
     64      <li><a href="/site/ZooWebSite/Demo/GdalProfile">ZOO Elevation Profile</a></li>
     65      <li><a href="/site/ZooWebSite/Demo/FormTools">ZOO Form tools</a></li>
     66    </ul>
     67  </li>
     68  <li><a href="/trac">Trac</a></li>
     69
     70</ul>
     71
     72
    1073    {{ super() }}
    1174{% endblock %}
     
    1477{% block sidebar1 %}{% endblock %}
    1578{% block sidebar2 %}{{ sidebar() }}{% endblock %}
     79
     80{# remove first relbar #}
     81{% block relbar1 %}{% endblock %}
  • trunk/docs/conf.py

    r120 r121  
    3838
    3939# The master toctree document.
    40 master_doc = 'index'
     40master_doc = 'documentation'
    4141
    4242# General information about the project.
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png