Skip to content

Commit a5c1e7b

Browse files
committed
fbopensource footer link
1 parent 6517f2b commit a5c1e7b

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
lines changed

site/_core/Site.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ var Site = React.createClass({
7979
<a>GitHub</a>
8080
</div>
8181
</section>
82+
<a href="https://code.facebook.com/projects/" target="_blank" className="fbOpenSource">
83+
<img src="/img/oss_logo.png" alt="Facebook Open Source" width="170" height="45" />
84+
</a>
8285
<section className="copyright">
8386
Copyright &copy; 2016 Facebook Inc. The contents of this page are licensed BSD-3-Clause.
8487
</section>

site/_css/graphql.less

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,18 +132,14 @@ section {
132132
}
133133

134134
footer {
135-
.body-font(@size: 15px, @color: lighten(@dark-color, 40%));
135+
.body-font(@size: 15px);
136136
background: lighten(@dark-color, 10%);
137137
box-shadow: inset 0 10px 10px -5px darken(@dark-color, 5%);
138138
padding-top: 2em;
139139
padding-bottom: 2em;
140140
-webkit-font-smoothing: antialiased;
141141
-moz-osx-font-smoothing: grayscale;
142142

143-
.copyright {
144-
text-align: center;
145-
}
146-
147143
.sitemap {
148144
display: flex;
149145
justify-content: space-between;
@@ -176,6 +172,23 @@ footer {
176172
}
177173
}
178174
}
175+
176+
.fbOpenSource {
177+
display: block;
178+
margin: 1em auto;
179+
opacity: 0.4;
180+
transition: opacity 0.15s ease-in-out;
181+
width: 170px;
182+
183+
&:hover {
184+
opacity: 1.0;
185+
}
186+
}
187+
188+
.copyright {
189+
color: rgba(255,255,255,0.4);
190+
text-align: center;
191+
}
179192
}
180193

181194
h1 .anchor, h2 .anchor, h3 .anchor, h4 .anchor, h5 .anchor, h6 .anchor {

site/img/oss_logo.png

4.27 KB
Loading

0 commit comments

Comments
 (0)