refactor: make header sticky
| | |
| | | .portfolio { |
| | | position: relative; |
| | | z-index: 0; |
| | | padding-left: 0px; |
| | | padding-right: 0px; |
| | | padding-bottom: 0px; |
| | |
| | | border: t('border'); |
| | | } |
| | | content: ''; |
| | | z-index: -1; |
| | | position: absolute; |
| | | top: 10%; |
| | | left: 10%; |
| | |
| | | display: block; |
| | | background-color: #fff; |
| | | position: relative; |
| | | z-index: 1; |
| | | overflow: hidden; |
| | | |
| | | &--right, |
| | |
| | | margin-right: auto; |
| | | margin-left: auto; |
| | | width: calc(100% - 64px); |
| | | z-index: -1; |
| | | padding: 32px 32px 0px 32px; |
| | | max-width: inherit; |
| | | |
| | |
| | | border-bottom: 0px; |
| | | width: 60%; |
| | | margin-top: -48px; |
| | | z-index: 3; |
| | | } |
| | | } |
| | | |
| | |
| | | -webkit-background-size: cover; |
| | | background-size: cover; |
| | | background-color: var(--bg-color); |
| | | margin-top: 40px; |
| | | |
| | | @include desktop_and_print { |
| | | @include themed() { |
| | | border-right: 1px solid t('primary-lighter'); |
| | | } |
| | | |
| | | z-index: 3; |
| | | height: 100vh; |
| | | z-index: 2; |
| | | position: fixed; |
| | | height: 100%; |
| | | margin-top: 0; |
| | | width: $sidebar-width; |
| | | display: flex; |
| | | flex-direction: column; |
| | | |
| | | @include themed() { |
| | | border-right: t('border'); |
| | | } |
| | | } |
| | | |
| | | @include widescreen { |
| | |
| | | } |
| | | width: 100%; |
| | | position: fixed; |
| | | right: 0; |
| | | z-index: 3; |
| | | z-index: 1; |
| | | top: 0; |
| | | |
| | | @include desktop { |
| | | position: sticky; |
| | | |
| | | @include themed() { |
| | | border-bottom: t('border'); |
| | | } |
| | | width: $content-width; |
| | | } |
| | | |
| | | @include print { |
| | |
| | | > |
| | | {{- partial "head.html" . -}} |
| | | <body class="body theme--light"> |
| | | <header class="header">{{ partial "navbar.html" . }}</header> |
| | | <div class="wrapper"> |
| | | <aside class="wrapper__sidebar"> |
| | | {{- partial "sidebar.html" . -}} |
| | | </aside> |
| | | <main class="wrapper__main"> |
| | | <header class="header">{{ partial "navbar.html" . }}</header> |
| | | {{- block "main" . }}{{- end }} |
| | | </main> |
| | | </div> |
| | |
| | | <div |
| | | class="page-top {{ with .Site.Params.doNotLoadAnimations }} |
| | | class="{{ with .Site.Params.doNotLoadAnimations }} |
| | | . |
| | | |
| | | {{ else }} |