MediaWiki:Common.css: Difference between revisions

Shift content up to perfectly latch onto the navigation menu
Shift content down by 4px and stretch active tab to maintain seamless border connection
Line 687: Line 687:
     position: relative;
     position: relative;
     z-index: 1; /* Sit under the tabs which are z-index 2 */
     z-index: 1; /* Sit under the tabs which are z-index 2 */
}
/* --- 22. Fine-Tuned 4px Shift --- */
/* Push the content box down by 4 more pixels so the inactive tabs stop overlapping the border */
#content {
    margin-top: 65px !important;
}
/* Because the content box moved down 4px, we must stretch the active tab down by 4 more pixels
  so it still seamlessly overlaps the dark brown border of the content box! */
.vector-menu-tabs .vector-menu-content-list > li.selected {
    margin-bottom: -7px !important;
}
}