Skip to content

Commit 93453d4

Browse files
Merge pull request linode#273 from hzoppetti/header-footer-09-22-2020
[Update] Header/footer update 9/22
2 parents 152fbde + a1dc26b commit 93453d4

File tree

2 files changed

+33
-3
lines changed

2 files changed

+33
-3
lines changed

src/components/3_organisms/footer-nav.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,13 @@ const FooterNav = () => (
174174
</span>
175175
</a>
176176
</li>
177+
<li className="o-menu__item">
178+
<a className="o-menu__link" href="https://www.linode.com/alternative-cloud-provider/">
179+
<span className="o-menu__title">
180+
Alternative Cloud
181+
</span>
182+
</a>
183+
</li>
177184
<li className="o-menu__item">
178185
<a className="o-menu__link" href="https://www.linode.com/linode-vs-aws/">
179186
<span className="o-menu__title">

src/css/components/3_organisms/header.css

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@
154154
width: 13px;
155155
height: 7px;
156156
-ms-interpolation-mode: nearest-neighbor;
157-
image-rendering: -moz-crisp-edges;
158157
image-rendering: pixelated;
159158
content: "";
160159
transition: all 200ms;
@@ -482,10 +481,27 @@
482481
transform: translateY(-100px);
483482
transition: opacity .175s ease-out, transform .25s ease-out;
484483
will-change: position, transform;
484+
display: initial;
485485
padding-top: 108px;
486486
}
487487

488-
.c-sub-menu.active, .c-sub-menu:focus-within {
488+
@media (max-width: 61.99em) {
489+
.c-sub-menu {
490+
display: none;
491+
}
492+
}
493+
494+
.c-sub-menu.active {
495+
bottom: 0;
496+
left: 0;
497+
opacity: 1;
498+
position: fixed;
499+
right: 0;
500+
top: 0;
501+
transform: translateY(0px);
502+
}
503+
504+
.c-sub-menu:focus-within {
489505
bottom: 0;
490506
left: 0;
491507
opacity: 1;
@@ -695,13 +711,20 @@
695711
}
696712

697713
.c-sub-menu--mobile {
714+
display: none;
698715
font-size: 18px;
699716
line-height: 1.33333;
700717
font-family: "Source Sans Pro", sans-serif;
701718
font-weight: 400;
702719
letter-spacing: 0;
703720
}
704721

722+
@media (max-width: 61.99em) {
723+
.c-sub-menu--mobile {
724+
display: initial;
725+
}
726+
}
727+
705728
.c-sub-menu--mobile .o-layout__colset {
706729
border-bottom: 0;
707730
grid-template-columns: 1fr;
@@ -1009,4 +1032,4 @@
10091032
.c-weglot-nav .weglot-flags > span:before {
10101033
content: none !important;
10111034
display: none !important;
1012-
}
1035+
}

0 commit comments

Comments
 (0)