Skip to content

Commit

Permalink
Merge pull request #1798 from matrix-org/anoa/sticky_headers_fix
Browse files Browse the repository at this point in the history
Fix sticky headers so they don't hide behind header bar on desktop
  • Loading branch information
anoadragon453 authored Jan 11, 2019
2 parents 576aa22 + b7b9683 commit be7a501
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions scripts/css/basic.css
Original file line number Diff line number Diff line change
Expand Up @@ -465,11 +465,23 @@ dl.glossary dt {
/* -- proposals page -------------------------------------------------------- */

#tables-of-tracked-proposals h2 {
margin-top: 7px;
padding-left: 10px;
position: -webkit-sticky;
position: sticky;
top: 0px;
padding-left: 10px;
position: -webkit-sticky;
position: sticky;
}

/* Move sticky headers below header bar on desktop */
@media all and (min-width:980px) {
#tables-of-tracked-proposals h2 {
top: 52px;
}
}

/* Sticky headers stick to the top on mobile */
@media all and (min-width:0px) and (max-width: 980px) {
#tables-of-tracked-proposals h2 {
top: 0px;
}
}

/* -- code displays --------------------------------------------------------- */
Expand Down

0 comments on commit be7a501

Please sign in to comment.