Skip to content

Commit

Permalink
add sticky position to header
Browse files Browse the repository at this point in the history
  • Loading branch information
HectorVilas committed Jan 13, 2023
1 parent 1ef7cb1 commit 6f247b1
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ input:not([type="checkbox"]):focus {
position: absolute;
left: 0;
top: 0;
z-index: 1;
z-index: 2;
background-image: url(./media/images/icons/menu.svg);
background-size: 100%;
width: var(--icon-menu-size);
Expand All @@ -71,7 +71,7 @@ input:not([type="checkbox"]):focus {
}

#menu {
z-index: 1;
z-index: 2;
position: absolute;
box-sizing: border-box;
padding: .5rem;
Expand Down Expand Up @@ -183,16 +183,21 @@ body {background-color: var(--bgc-page);}
}

header {
position: sticky;
top: 0;
z-index: 1;
justify-content: center;
text-align: center;
height: var(--icon-menu-size);
background-color: var(--bgc-page);
box-shadow: var(--card-shadow);
}


/* cards */

.card {
isolation: isolate;
box-sizing: border-box;
width: 100%;
box-shadow: var(--card-shadow);
Expand Down Expand Up @@ -769,10 +774,6 @@ input[type="text"], input[type="date"] {
animation: bg-anim var(--duration) calc(var(--duration) / 5) infinite linear,
bg-zoom-out var(--duration) cubic-bezier(.08,.82,.17,1) forwards;
}

header {
box-shadow: none;
}
}

@media screen and (min-width: 1500px) {
Expand Down

0 comments on commit 6f247b1

Please sign in to comment.