Skip to content

Commit

Permalink
fix ie11 footer alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
macfarlandian committed Apr 21, 2021
1 parent e83d973 commit 45fd78d
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions spotlight-client/src/SiteFooter/SiteFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@ import { useDataStore } from "../StoreProvider";
import { breakpoints, colors } from "../UiLibrary";

const Wrapper = styled.footer`
align-content: flex-end;
background: ${colors.footerBackground};
color: ${colors.caption};
display: flex;
flex-direction: column;
font-size: ${rem(12)};
font-weight: 700;
justify-content: flex-end;
line-height: 1.25;
margin-top: ${rem(120)};
min-height: ${rem(FOOTER_HEIGHT)};
Expand All @@ -47,12 +48,20 @@ const Wrapper = styled.footer`
a {
color: ${colors.caption};
}
/*
on smaller screens where we stack vertically, height may need to grow;
however, IE mangles vertical placement if there is only a min-height set.
larger screens should not require a taller footer
*/
@media screen and (min-width: ${breakpoints.tablet[0]}px) {
height: ${rem(FOOTER_HEIGHT)};
}
`;

const Contents = styled.div`
align-content: flex-end;
align-items: flex-end;
display: flex;
flex: 1 1 auto;
flex-wrap: wrap;
justify-content: space-between;
`;
Expand Down

0 comments on commit 45fd78d

Please sign in to comment.