Skip to content

Commit ca66399

Browse files
committed
[docs] Update site nav
1 parent b32fbef commit ca66399

File tree

2 files changed

+23
-13
lines changed

2 files changed

+23
-13
lines changed

docs/_layouts/default.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,16 @@
4545
<img class="nav-logo" src="/react/img/logo.svg" width="36" height="36">
4646
React
4747
</a>
48-
<ul class="nav-site">
49-
<li><a href="/react/docs/getting-started.html"{% if page.sectionid == 'docs' or page.sectionid == 'tips' %} class="active"{% endif %}>docs</a></li>
50-
<li><a href="/react/support.html"{% if page.id == 'support' %} class="active"{% endif %}>support</a></li>
51-
<li><a href="/react/downloads.html"{% if page.id == 'downloads' %} class="active"{% endif %}>download</a></li>
52-
<li><a href="/react/blog/"{% if page.sectionid == 'blog' %} class="active"{% endif %}>blog</a></li>
53-
<li><a href="https://github.com/facebook/react">github</a>
48+
<ul class="nav-site nav-site-internal">
49+
<li><a href="/react/docs/getting-started.html"{% if page.sectionid == 'docs' or page.sectionid == 'tips' %} class="active"{% endif %}>Docs</a></li>
50+
<li><a href="/react/support.html"{% if page.id == 'support' %} class="active"{% endif %}>Support</a></li>
51+
<li><a href="/react/downloads.html"{% if page.id == 'downloads' %} class="active"{% endif %}>Download</a></li>
52+
<li><a href="/react/blog/"{% if page.sectionid == 'blog' %} class="active"{% endif %}>Blog</a></li>
53+
</ul>
54+
55+
<ul class="nav-site nav-site-external">
56+
<li><a href="https://github.com/facebook/react">GitHub</a>
57+
<li><a href="http://facebook.github.io/react-native/">React Native</a>
5458
</ul>
5559
</div>
5660
</div>

docs/css/react.scss

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,25 +111,30 @@ h1, h2, h3, h4, h5, h6 {
111111
text-decoration: none;
112112
}
113113

114-
.nav-site {
114+
.nav-site-internal {
115+
margin: 0 0 0 20px;
116+
}
117+
118+
.nav-site-external {
115119
float: right;
116120
margin: 0;
121+
}
117122

123+
.nav-site {
118124
li {
119125
margin: 0;
120126
}
121127

122128
a {
123-
padding: 0 8px;
124-
text-transform: uppercase;
125-
letter-spacing: 1px;
129+
box-sizing: content-box;
130+
padding: 0 10px;
126131
line-height: $navHeight;
127132
display: inline-block;
128133
height: $navHeight;
129-
color: $mediumTextColor;
134+
color: #ddd;
130135

131136
&:hover {
132-
color: $lightTextColor;
137+
color: #fff;
133138
}
134139

135140
&.active {
@@ -154,7 +159,8 @@ h1, h2, h3, h4, h5, h6 {
154159
}
155160

156161
ul {
157-
display: inline;
162+
display: inline-block;
163+
vertical-align: top;
158164
}
159165

160166
li {

0 commit comments

Comments
 (0)