Skip to content

Commit

Permalink
Removed header stickiness and animations
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkBrines committed Nov 27, 2024
1 parent 4fb171c commit b0c3e66
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 deletions.
6 changes: 3 additions & 3 deletions resources/scss/layout/_container.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* container */

$padding-top: calc((50px + 30px) * 2);
$padding-top: 0; // Header was set to fixed

.container {
padding: $padding-top 7% 3% 7%;
Expand All @@ -12,12 +12,12 @@ $padding-top: calc((50px + 30px) * 2);
}
}

body{
body {
display: flex;
flex-direction: column;
height: 100vh;

main {
flex: 1;
}
}
}
23 changes: 9 additions & 14 deletions resources/scss/layout/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,8 @@
display: flex;
justify-content: space-between;
align-items: center;
transition: all $transition-duration ease-in-out;
// transition: all $// transition-duration ease-in-out;
background-color: transparent;
z-index: 2;
position: fixed;
top: 0;
left: 0;
right: 0;

>.toggle-nav-btn {
// transform: translateY(-300%);
Expand All @@ -20,7 +15,7 @@
font-size: 1.5rem;
color: inherit;
cursor: pointer;
transition: all $transition-duration ease;
// transition: all $// transition-duration ease;
z-index: 1;

&.active {
Expand All @@ -41,10 +36,10 @@
color: inherit;
z-index: 1;
height: 60px;
transition: height $transition-duration ease;
// transition: height $// transition-duration ease;
/*
transform: translateY(-300%);
transition: all 0.5s ease;
// transition: all 0.5s ease;
&.visible {
transform: translate(0);
Expand All @@ -54,7 +49,7 @@

>.nav {
display: none;
transition: all $transition-duration ease;
// transition: all $// transition-duration ease;

>.nav-list {
display: flex;
Expand All @@ -80,7 +75,7 @@
border-radius: 0.2rem;
padding: 10%;
background: rgba(255, 255, 255, 0.7);
transition: all $transition-duration;
// transition: all $// transition-duration;
z-index: 2;
margin: -10%;
margin-top: 100%;
Expand Down Expand Up @@ -192,7 +187,7 @@

.responsive-nav {
transform: translateX(-200%);
transition: all $transition-duration ease;
// transition: all $// transition-duration ease;
}

.responsive-nav.active {
Expand All @@ -204,7 +199,7 @@

// opacity: 0;
// transform: translateY(-70%);
// transition: all 0.5s ease;
// // transition: all 0.5s ease;

// }

Expand Down Expand Up @@ -254,7 +249,7 @@

.presentation {
opacity: 0;
transition: all $transition-duration ease;
// transition: all $// transition-duration ease;

&.visible {
opacity: 1;
Expand Down

0 comments on commit b0c3e66

Please sign in to comment.