Skip to content

Commit

Permalink
Added icon for external links in Docs nav and removed Complementary T…
Browse files Browse the repository at this point in the history
…ools and Examples in favor of this icon
  • Loading branch information
joecritch committed Feb 22, 2016
1 parent 5ebb784 commit de85f7d
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 68 deletions.
2 changes: 2 additions & 0 deletions docs/_data/nav_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@
title: Videos
- id: complementary-tools
title: Complementary Tools
href: https://github.com/facebook/react/wiki/Complementary-Tools
- id: examples
title: Examples
href: https://github.com/facebook/react/wiki/Examples
- title: Guides
items:
- id: why-react
Expand Down
16 changes: 16 additions & 0 deletions docs/css/react.scss
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,22 @@ h1, h2, h3, h4, h5, h6 {
&.active {
color: $primary;
}

&[href*="http"] {
&:after {
content: "";
display: inline-block;
width: 10px;
height: 10px;
padding-left: 5px;
@include retina-image('../img/external', 10px 10px);
background-position: 100% 0;
background-repeat: no-repeat;
font-size: 10px;
line-height: 1em;
opacity: 0.5;
}
}
}

.nav-docs-section {
Expand Down
9 changes: 0 additions & 9 deletions docs/docs/complementary-tools.it-IT.md

This file was deleted.

9 changes: 0 additions & 9 deletions docs/docs/complementary-tools.ko-KR.md

This file was deleted.

9 changes: 0 additions & 9 deletions docs/docs/complementary-tools.md

This file was deleted.

9 changes: 0 additions & 9 deletions docs/docs/complementary-tools.zh-CN.md

This file was deleted.

8 changes: 0 additions & 8 deletions docs/docs/examples.it-IT.md

This file was deleted.

8 changes: 0 additions & 8 deletions docs/docs/examples.ko-KR.md

This file was deleted.

8 changes: 0 additions & 8 deletions docs/docs/examples.md

This file was deleted.

8 changes: 0 additions & 8 deletions docs/docs/examples.zh-CN.md

This file was deleted.

Binary file added docs/img/external.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/external_2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit de85f7d

Please sign in to comment.