docs: add support for templated tabs with the doc title

Change-Id: I820a2704d21c94a9a452854a46ea88749d8274d0
This commit is contained in:
Scott Main 2012-11-13 07:40:16 -08:00
parent 705e8a4f61
commit bbffb4bfb4
2 changed files with 55 additions and 1 deletions

View File

@ -486,6 +486,50 @@ video.with-shadow {
float:right;
text-transform:uppercase;
}
/* inner-doc tabs w/ title */
div#title-tabs-wrapper {
border-bottom:1px solid #ccc;
margin:20px 0 30px;
}
h1.with-title-tabs {
display:inline-block;
margin:0 0 -1px 0;
padding:0 60px 0 0;
border-bottom:1px solid #F9F9F9;
}
ul#title-tabs {
list-style:none;
padding:0;
height:29px;
margin:0;
font-size:16px;
line-height:26px;
display:inline-block;
vertical-align:bottom;
}
ul#title-tabs li {
display:block;
float:left;
margin-right:40px;
border-bottom: 3px solid transparent;
}
ul#title-tabs li.selected {
border-bottom: 3px solid #93C;
}
ul#title-tabs li a {
color:#333;
}
ul#title-tabs li a:hover,
ul#title-tabs li a:visited,
ul#title-tabs li a:active {
color:#93C !important;
}
/* content body */
@-webkit-keyframes glowheader {

View File

@ -101,7 +101,17 @@
<?cs /if ?>
</div>
<?cs else ?>
<h1 itemprop="name"><?cs var:page.title ?></h1>
<?cs if:tab1 ?><div id="title-tabs-wrapper">
<h1 itemprop="name" <?cs if:tab1 ?>class="with-title-tabs"<?cs /if ?>><?cs var:page.title ?></h1><?cs
if:tab1 ?><ul id="title-tabs">
<li class="selected"><a href="<?cs var:tab1.link ?>"><?cs var:tab1 ?></a></li>
<?cs if:tab2 ?>
<li><a href="<?cs var:tab2.link ?>"><?cs var:tab2 ?></a></li><?cs /if ?>
<?cs if:tab3 ?>
<li><a href="<?cs var:tab3.link ?>"><?cs var:tab3 ?></a></li><?cs /if ?>
</ul>
<?cs /if ?></div><!-- end tab-wrapper -->
<?cs /if ?>
<?cs /if ?>
<?cs /if ?>
<?cs /if ?><?cs # end if design ?>