Fixed top navi, refactor hero padding

This commit is contained in:
kitajchuk
2021-04-01 14:08:13 -07:00
parent 1a0d923b51
commit b97d8bd77b
3 changed files with 17 additions and 1 deletions
+12 -1
View File
@@ -7,10 +7,15 @@
}
.hero {
padding-top: 96px;
padding-top: calc(96px + #{$navi-height});
padding-bottom: 96px;
text-align: center;
@media (max-width: $width-tablet-2) {
padding-top: calc(64px + #{$navi-height});
padding-bottom: 64px;
}
&--why {
.hero__subtext > div {
max-width: 870px;
@@ -18,6 +23,12 @@
}
&--pricing {
background-color: $pink;
.hero__headline {
color: $jambonz;
}
.hero__subtext {
> div {
max-width: 820px;
+4
View File
@@ -1,5 +1,9 @@
.navi {
padding: 16px 0;
position: fixed;
top: 0;
left: 0;
width: 100%;
// Menu / X icons for mobile nav interactions
.icon {
+1
View File
@@ -35,6 +35,7 @@ $icon-size-3: 36px;
/******************************************************************************
* Sizes
*******************************************************************************/
$navi-height: 74px;
$width-max: 1440px;
$width-tablet-1: 1024px;
$width-tablet-2: 768px;