MediaWiki:Gadget-SidebarTOC.css: Difference between revisions

Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
.mw-table-of-contents-container {
.mw-table-of-contents-container {
     position: -webkit-sticky;
     position: relative;
     position: sticky;
     float: right;
     top: 20px; /* Adjust as needed */
     width: 100%;
     height: calc(100vh - 20px); /* Adjust as needed */
     height: 100%;
    overflow-y: auto;
}
}


.vector-sticky-toc-container {
.vector-sticky-toc-container {
     padding: 10px; /* Adjust as needed */
     position: absolute;
     background-color: #f8f9fa; /* Adjust as needed */
     top: 0;
     border: 1px solid #c8ccd1; /* Adjust as needed */
}
 
.vector-sticky-toc-container.sticky {
    position: fixed;
     top: 0;
}
}

Revision as of 06:54, 22 February 2024

.mw-table-of-contents-container {
    position: relative;
    float: right;
    width: 100%;
    height: 100%;
}

.vector-sticky-toc-container {
    position: absolute;
    top: 0;
}

.vector-sticky-toc-container.sticky {
    position: fixed;
    top: 0;
}