Skip to content

Commit

Permalink
Update min-height for <main>
Browse files Browse the repository at this point in the history
This ensures that we always take the full window height to avoid
crowding elements together
  • Loading branch information
acdha committed Nov 14, 2018
1 parent 1947d17 commit 51b5093
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions concordia/static/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@
--control-label-color: #333333;

--height-top-nav: 113px; /* Height of logo image plus padding */
--height-main: calc(
100vh - var(--height-top-nav)
); /* Subtract height of navbar */
--height-footer: 149px;
--height-main: calc(100vh - (var(--height-top-nav) + var(--height-footer)));

/* Making room for instructions button on bottom and breadcrumb and nav on top */
--height-contribute-image: calc(
Expand All @@ -51,6 +50,10 @@ body {
background-color: var(--bg-offwhite);
}

main {
min-height: var(--height-main);
}

h1 {
font-family: 'Roboto Slab', serif;
font-weight: bold;
Expand Down

0 comments on commit 51b5093

Please sign in to comment.