Browse Source

[docs] Update site nav

main
Ben Alpert 10 years ago
parent
commit
aa86d2fbab
  1. 16
      _layouts/default.html
  2. 20
      css/react.scss

16
_layouts/default.html

@ -45,12 +45,16 @@
<img class="nav-logo" src="/react/img/logo.svg" width="36" height="36"> <img class="nav-logo" src="/react/img/logo.svg" width="36" height="36">
React React
</a> </a>
<ul class="nav-site"> <ul class="nav-site nav-site-internal">
<li><a href="/react/docs/getting-started.html"{% if page.sectionid == 'docs' or page.sectionid == 'tips' %} class="active"{% endif %}>docs</a></li> <li><a href="/react/docs/getting-started.html"{% if page.sectionid == 'docs' or page.sectionid == 'tips' %} class="active"{% endif %}>Docs</a></li>
<li><a href="/react/support.html"{% if page.id == 'support' %} class="active"{% endif %}>support</a></li> <li><a href="/react/support.html"{% if page.id == 'support' %} class="active"{% endif %}>Support</a></li>
<li><a href="/react/downloads.html"{% if page.id == 'downloads' %} class="active"{% endif %}>download</a></li> <li><a href="/react/downloads.html"{% if page.id == 'downloads' %} class="active"{% endif %}>Download</a></li>
<li><a href="/react/blog/"{% if page.sectionid == 'blog' %} class="active"{% endif %}>blog</a></li> <li><a href="/react/blog/"{% if page.sectionid == 'blog' %} class="active"{% endif %}>Blog</a></li>
<li><a href="https://github.com/facebook/react">github</a> </ul>
<ul class="nav-site nav-site-external">
<li><a href="https://github.com/facebook/react">GitHub</a>
<li><a href="http://facebook.github.io/react-native/">React Native</a>
</ul> </ul>
</div> </div>
</div> </div>

20
css/react.scss

@ -111,25 +111,30 @@ h1, h2, h3, h4, h5, h6 {
text-decoration: none; text-decoration: none;
} }
.nav-site { .nav-site-internal {
margin: 0 0 0 20px;
}
.nav-site-external {
float: right; float: right;
margin: 0; margin: 0;
}
.nav-site {
li { li {
margin: 0; margin: 0;
} }
a { a {
padding: 0 8px; box-sizing: content-box;
text-transform: uppercase; padding: 0 10px;
letter-spacing: 1px;
line-height: $navHeight; line-height: $navHeight;
display: inline-block; display: inline-block;
height: $navHeight; height: $navHeight;
color: $mediumTextColor; color: #ddd;
&:hover { &:hover {
color: $lightTextColor; color: #fff;
} }
&.active { &.active {
@ -154,7 +159,8 @@ h1, h2, h3, h4, h5, h6 {
} }
ul { ul {
display: inline; display: inline-block;
vertical-align: top;
} }
li { li {

Loading…
Cancel
Save