Skip to content

Commit a8d3f56

Browse files
patmellonbrsoff
authored andcommitted
[PYT-144] Address footer design updates (Lightning-AI#3)
1 parent a6c8571 commit a8d3f56

File tree

8 files changed

+132
-3
lines changed

8 files changed

+132
-3
lines changed

images/chevron-right-orange.svg

Lines changed: 17 additions & 0 deletions
Loading

images/chevron-right-white.svg

Lines changed: 17 additions & 0 deletions
Loading

pytorch_sphinx_theme/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@
263263
<div class="col-md-4 text-center">
264264
<h2>Docs</h2>
265265
<p>Lorem ipsum dolor sit amet, consectetur</p>
266-
<a href="{{ theme_variables.external_urls['docs'] }}" class="with-right-arrow">View Docs</a>
266+
<a class="with-right-arrow" href="{{ theme_variables.external_urls['docs'] }}">View Docs</a>
267267
</div>
268268

269269
<div class="col-md-4 text-center">

pytorch_sphinx_theme/static/css/theme.css

Lines changed: 30 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 17 additions & 0 deletions
Loading
Lines changed: 17 additions & 0 deletions
Loading

scss/shared/_base_styles.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,22 @@ a:hover {
2121
color: $orange;
2222
}
2323

24+
a, .btn {
25+
&.with-right-arrow {
26+
padding-right: rem(22px);
27+
position: relative;
28+
background-image: url("../images/chevron-right-orange.svg");
29+
background-size: 6px 13px;
30+
background-position: center right 5px;
31+
background-repeat: no-repeat;
32+
@include desktop {
33+
background-size: 8px 14px;
34+
background-position: center right 12px;
35+
padding-right: rem(32px);
36+
}
37+
}
38+
}
39+
2440
::-webkit-input-placeholder {
2541
color: $orange;
2642
}

scss/shared/_footer.scss

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@
8181
}
8282
}
8383

84+
.with-right-arrow {
85+
margin-left: 12px;
86+
&:hover {
87+
background-image: url("../images/chevron-right-white.svg");
88+
}
89+
}
90+
8491
p {
8592
font-size: rem(16px);
8693
line-height: rem(24px);
@@ -96,6 +103,9 @@
96103
a {
97104
font-size: rem(18px);
98105
color: $orange;
106+
&:hover {
107+
color: $white;
108+
}
99109
}
100110
}
101111

@@ -162,7 +172,7 @@
162172
}
163173

164174
.footer-social-icons {
165-
margin: rem(10px) 0 rem(40px) 0;
175+
margin: rem(137px) 0 rem(40px) 0;
166176

167177
a {
168178
height: 32px;
@@ -187,3 +197,9 @@
187197
}
188198
}
189199
}
200+
201+
.site-footer {
202+
.mc-field-group {
203+
margin-top: -2px;
204+
}
205+
}

0 commit comments

Comments
 (0)