Skip to content

Commit

Permalink
Move Header Height to variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Blendify committed Apr 12, 2021
1 parent 0d8ed6d commit 25ea466
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sass/_theme_layout.sass
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ html
position: fixed
top: 0
width: 100%
height: 50px
line-height: 50px
height: $nav-header-height
line-height: $nav-header-height
text-align: center
font-size: 100%
transition: top 0.4s
Expand All @@ -314,7 +314,7 @@ html
cursor: pointer
padding-top: inherit
padding-left: $gutter / 4
line-height: 50px
line-height: $nav-header-height

.wy-nav-content-wrap
margin-left: $nav-desktop-width
Expand Down Expand Up @@ -398,7 +398,7 @@ footer
.wy-nav-content-wrap
margin-left: 0
.wy-nav-content
margin-top: 50px
margin-top: $nav-header-height
padding: $gutter
&.shift
position: fixed
Expand Down
1 change: 1 addition & 0 deletions src/sass/_theme_variables.sass
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
$fa-font-path: "~font-awesome/fonts"
$static-img: "../img/"

$nav-header-height: 50px
$nav-content-width: 800px
$nav-media-query: $nav-desktop-width + $nav-content-width

Expand Down

0 comments on commit 25ea466

Please sign in to comment.