side nag update

This commit is contained in:
Alex Wolfe 2015-04-22 08:48:20 -07:00
parent 0ab35c0735
commit fa09eb4a81
4 changed files with 17 additions and 7 deletions

View File

@ -49,5 +49,5 @@ nav.side-nav.l-pinned-left.l-layer-4.l-offset-nav
ul.side-nav-tertiary
for page, slug in public.docs[current.path[1]][current.path[2]][current.path[3]][current.path[4]]._data
name = page.menuTitle || page.title
selected = current.path[4] == slug ? 'is-selected':''
selected = current.path[5] == slug ? 'is-selected':''
li(class="#{selected}")<a href="/docs/#{current.path[1]}/#{current.path[2]}/#{current.path[3]}/#{current.path[4]}/#{slug}.html" md-button>#{name}</a>

View File

@ -22,8 +22,8 @@ div.c4
div.c4
md-card.card
md-card-content
h3.text-headline.text-uppercase <span class="icon-book"></span> API
p.text-body Proposal for v2.0 API
h3.text-headline.text-uppercase <span class="icon-book"></span> API Preview
p.text-body API 2.0 Preview
footer
a(href="/docs/#{current.path[1]}/#{current.path[2]}/api/" class="button" md-button) View API

View File

@ -48,7 +48,13 @@
background: $mist;
}
}
}
}
footer {
a {
color: $blueberry;
font-size: 13px;
}
}
}

View File

@ -167,7 +167,7 @@
> a {
line-height: ($unit * 5) - 1;
padding: 0px ($unit * 2) 0px ($unit * 5);
padding: 0px ($unit * 2) 0px ($unit * 4);
font-size: 13px;
}
@ -187,12 +187,15 @@
.side-nav-tertiary {
padding-bottom: ($unit * 1);
margin: 0px;
padding: 0px;
> li {
margin: 0px;
&.is-selected {
> a {
background: transparent;
color: $coal;
background: darken($fog, 3%);
color: $blueberry;
}
}
@ -208,8 +211,9 @@
display: block;
text-decoration: none;
font-weight: 400;
padding: 0px $unit;
padding: 0px $unit 0px ($unit * 7);
line-height: 34px;
color: $metal;
}
}
}