Skip to content

Commit

Permalink
Fix min-height for wrapper + landing
Browse files Browse the repository at this point in the history
  • Loading branch information
MattIPv4 committed Jan 23, 2024
1 parent 8a43fbd commit 86f5085
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/components/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ figure {
flex-direction: column;
line-height: $line-height;
margin: 0;
min-height: 100vh;
padding: 0;
text-rendering: optimizeLegibility;

Expand Down
8 changes: 6 additions & 2 deletions src/components/_landing.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2022 DigitalOcean
Copyright 2024 DigitalOcean
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -17,7 +17,11 @@ limitations under the License.
.landing {
display: flex;
flex-direction: column;
min-height: calc(100vh - 171px); // Account for Community nav height
min-height: calc(100vh - (
var(--top-hat-height, 0px) +
var(--primary-nav-height, 0px) +
var(--sub-nav-height, 0px)
)); // Account for Community nav height
position: relative;

.container {
Expand Down

0 comments on commit 86f5085

Please sign in to comment.