MediaWiki:StickyRail.css

/** * StickyRail * Make WikiaRail stick to the top and scroll along with the screen * Make the height of WikiaRail suitable for screen **/ @media (min-width:1024px) { #WikiaRail { position: sticky; overflow: auto; margin-top: 8px; margin-bottom: 8px; background-image: radial-gradient(farthest-side at 50% 0,rgba(26,26,26,0.12),#ed1a1a00),radial-gradient(farthest-side at 50% 100%,rgba(26,26,26,0.12),transparent); background-position: 0 0,0 100%; background-repeat: no-repeat; background-size: 100% 16px; } #WikiaRail:before { background-color: #fff; content: ''; display: block; height: 30px; margin: 0 0 -30px; position: relative; z-index: -1; } #WikiaRail:after { background-color: #fff; content: ''; display: block; height: 30px; margin: 0 0 -30px; position: relative; z-index: -1; } }