Skip to content

Commit

Permalink
Merge pull request #124 from micahhausler/scroll-header-padding
Browse files Browse the repository at this point in the history
Add scroll padding for searchbar
  • Loading branch information
kinclay committed Sep 20, 2024
2 parents 135a652 + 163572d commit afc3c87
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions docs/_sass/color_schemes/awsstyle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ $body-background-color: #0C0C0D;
$sidebar-color:#0C0C0D;
$body-font-family: "Amazon Ember", system-ui, -apple-system, blinkmacsystemfont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Segoe UI Emoji" !default;
$border-color: #272727;
$main-header-height: 5rem;

//Regular
@font-face {
Expand All @@ -24,6 +25,12 @@ $border-color: #272727;
font-style:normal;
}

// Apply scroll padding only for larger screens
@media (min-width: 50rem) {
html {
scroll-padding-top: $main-header-height;
}
}

//############ _variables.scss ############
//$body-font-family: "Amazon Ember", system-ui, -apple-system, blinkmacsystemfont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Segoe UI Emoji" !default;
Expand Down Expand Up @@ -51,8 +58,8 @@ $header-height: 5rem !default;
//############ Main ############

.main-header {
height:5rem;
max-height:5rem;
height: $main-header-height;
max-height: $main-header-height;
position: sticky;
top: 0;
z-index: 999;
Expand Down

0 comments on commit afc3c87

Please sign in to comment.