Skip to content

Commit

Permalink
[PYT-144] Address footer design updates (Lightning-AI#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
patmellon authored and brsoff committed Aug 29, 2018
1 parent a6c8571 commit a8d3f56
Show file tree
Hide file tree
Showing 8 changed files with 132 additions and 3 deletions.
17 changes: 17 additions & 0 deletions images/chevron-right-orange.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions images/chevron-right-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion pytorch_sphinx_theme/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@
<div class="col-md-4 text-center">
<h2>Docs</h2>
<p>Lorem ipsum dolor sit amet, consectetur</p>
<a href="{{ theme_variables.external_urls['docs'] }}" class="with-right-arrow">View Docs</a>
<a class="with-right-arrow" href="{{ theme_variables.external_urls['docs'] }}">View Docs</a>
</div>

<div class="col-md-4 text-center">
Expand Down
31 changes: 30 additions & 1 deletion pytorch_sphinx_theme/static/css/theme.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions pytorch_sphinx_theme/static/images/chevron-right-orange.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions pytorch_sphinx_theme/static/images/chevron-right-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions scss/shared/_base_styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,22 @@ a:hover {
color: $orange;
}

a, .btn {
&.with-right-arrow {
padding-right: rem(22px);
position: relative;
background-image: url("../images/chevron-right-orange.svg");
background-size: 6px 13px;
background-position: center right 5px;
background-repeat: no-repeat;
@include desktop {
background-size: 8px 14px;
background-position: center right 12px;
padding-right: rem(32px);
}
}
}

::-webkit-input-placeholder {
color: $orange;
}
Expand Down
18 changes: 17 additions & 1 deletion scss/shared/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@
}
}

.with-right-arrow {
margin-left: 12px;
&:hover {
background-image: url("../images/chevron-right-white.svg");
}
}

p {
font-size: rem(16px);
line-height: rem(24px);
Expand All @@ -96,6 +103,9 @@
a {
font-size: rem(18px);
color: $orange;
&:hover {
color: $white;
}
}
}

Expand Down Expand Up @@ -162,7 +172,7 @@
}

.footer-social-icons {
margin: rem(10px) 0 rem(40px) 0;
margin: rem(137px) 0 rem(40px) 0;

a {
height: 32px;
Expand All @@ -187,3 +197,9 @@
}
}
}

.site-footer {
.mc-field-group {
margin-top: -2px;
}
}

0 comments on commit a8d3f56

Please sign in to comment.