Ignore:
Timestamp:
09/08/07 15:41:22 (12 years ago)
Author:
lawrence
Message:

Slightly nicer handling of the history/selection tabs (which is going
to be deprecated shortly anyway, but it's a learning exercise).

Location:
TI05-delivery/ows_framework/trunk/ows_server/ows_server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/public/layout/ndg2.css

    r2791 r2793  
    4747/* Left Column if Necessary */ 
    4848 
    49 #Left{ WIDTH: 220px; FLOAT: left; margin-bottom: 10px; margin-right:20px;} 
    50 .tabhdr { float:left; line-height:normal;} 
     49#Left{ WIDTH: 220px; FLOAT: left; margin-bottom: 10px; margin-right:10px;margin-left:5px;} 
     50.tabhdr { margin-top:5px; float:left; line-height:normal;} 
    5151.tabhdr ul {margin:0; padding:0; list-style:none;} 
    5252.tabhdr a:link {display:block; text-decoration:none; color:black; float:left; width:5em;} 
    53 li.current {float:left; margin:0; padding:2px 10px; background-color:#f0f0f0; border-top: 1px solid #3c78b5; border-right: 1px solid #3c78b5; border-left: 1px solid #3c78b5;} 
    54 li.hidden {float:left; margin:0; padding:2px 10px; 
     53.tabhdr li {margin:0;} 
     54.tabhdr li.current {float:left; margin-right:3px; padding:2px 10px; background-color:#f0f0f0;  
     55                    border-top: 1px solid #3c78b5; border-right: 1px solid #3c78b5; border-left: 1px solid #3c78b5; position:relative;top:1px;} 
     56.tabhdr li.hidden {float:left; margin-right:3px; padding:2px 10px; 
    5557    border-left:1px solid #3c78b5; border-right:1px solid #3c78b5; border-top:1px solid #3c78b5; } 
    5658.tabcontent {padding:2px 10px; background: #f0f0f0; clear:both; border:1px solid #3c78b5;} 
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/ndgPage.kid

    r2776 r2793  
    6767                <div class="tabhdr"> 
    6868                    <ul> 
    69                         <li class="current"> History</li> 
    70                         <li class="hidden">${XML(h.link_to_remote("Selected",dict(update="Left", url=h.url_for(controller="tabs", action="update",value="Selection"))))}</li> 
     69                        <li class="current"> <span class="tabhdri">History</span></li> 
     70                        <li class="hidden"><span class="tabhdri">${XML(h.link_to_remote("Selected",dict(update="Left", url=h.url_for(controller="tabs", action="update",value="Selection"))))}</span></li> 
    7171                    </ul> 
    7272                </div> 
     
    8282                <div class="tabhdr"> 
    8383                    <ul> 
    84                     <li class="hidden">${XML(h.link_to_remote("History",dict(update="Left", url=h.url_for(controller="tabs", action="update",value="History"))))}</li> 
    85                     <li class="current">Selection</li> 
     84                    <li class="hidden"><span class="tabhdri">${XML(h.link_to_remote("History",dict(update="Left", url=h.url_for(controller="tabs", action="update",value="History"))))}</span></li> 
     85                    <li class="current"><span class="tabhdri">Selection</span></li> 
    8686                    </ul> 
    8787                </div> 
Note: See TracChangeset for help on using the changeset viewer.