Template:Sticky/style.css

Template page
Revision as of 12:15, 4 February 2021 by RogerDodger (talk | contribs) (Created page with ".sticky { position: sticky; z-index: 4; } →‎don't sticky if there's not much vertical space: @media (max-height: 800px) { .sticky { position: static; } }")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
.sticky {
   position: sticky;
   z-index: 4;
}

/* don't sticky if there's not much vertical space */
@media (max-height: 800px) {
   .sticky {
      position: static;
   }
}