MediaWiki:Common.css: Difference between revisions

From Hidden Mickey Wiki

No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 41: Line 41:
}
}


/* Freeze the entire navbar wrapper */
/* --- Sticky Navbar --- */
#mw-navbar,
.navbar.navbar-expand-lg {
.navbar.navbar-expand-lg {
     position: sticky;     /* sticky keeps it in the flow better than fixed */
     position: sticky !important;       /* keeps navbar in view */
     top: 0;
     top: 0;
     z-index: 9999;
    left: 0;
     background-color: #fff; /* ensures content doesn’t show through */
    width: 100%;
     z-index: 9999 !important;         /* ensures navbar is above content */
     background-color: #fff !important; /* visible background */
}
}


/* Push content down so it doesn’t overlap the navbar */
/* Ensure text, logo, and dropdowns are visible */
#mw-navbar * {
    z-index: 10000 !important;
    color: #000 !important;            /* adjust text color if needed */
}
 
/* Fix dropdowns inside sticky navbar */
.navbar .dropdown-menu {
    position: absolute !important;
    z-index: 10001 !important;
}
 
/* --- Main content spacing --- */
#content,
#content,
.mw-body,
.mw-body,
.mw-body-content,
.mw-body-content,
#mw-content {
#mw-content {
     padding-top: 80px; /* adjust to your navbar’s total height */
     padding-top: 80px !important;     /* adjust to navbar height */
}
 
/* --- Page title spacing --- */
#firstHeading {
    margin-top: 0 !important;          /* flush under navbar */
    padding-top: 0 !important;
}
 
/* --- Table of Contents spacing --- */
.toc {
    margin-top: 15px !important;      /* gap between title line and TOC */
}
 
/* --- Pull content closer to title --- */
#content,
.mw-body,
.mw-body-content,
#mw-content {
    margin-top: -20px !important;
    padding-top: 80px !important;      /* combine margin and padding for proper spacing */
}
 
/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    #content,
    .mw-body,
    .mw-body-content,
    #mw-content {
        padding-top: 120px !important;  /* taller navbar on mobile */
        margin-top: -10px !important;
    }
 
    .toc {
        margin-top: 10px !important;    /* smaller gap on mobile */
    }
}
}

Revision as of 16:46, 21 September 2025

/* CSS placed here will be applied to all skins */
/* Quote boxes */
blockquote { background-color: #e9ecef;padding: 5px;border-radius: 3px;font-style: italic;max-width: 860pt;word-wrap: break-word; }
blockquote cite { display: block;margin-top: 5px;font-size: 0.9em;color: #555;text-align: left; }

/* Disneyland fonts for the title bar; use larger font for desktop computers */
@font-face { font-family: 'Waltograph';src: url('/images/f/fb/Waltograph42.otf') format('opentype'); }
#p-logo a { font-family: 'Waltograph', sans-serif;font-size: 28px; }
@media (min-width: 768px) { #p-logo a { font-family: 'Waltograph', sans-serif;font-size: 42px; } }

/* Disable Discussion pages */
#ca-talk, .mw-indicator-talkpages { display: none !important; }

/* Change title bar, enables <title> to be different from display
@media (min-width: 768px) { .mw-desktop-sitename { visibility: hidden; position: relative; } }
@media (min-width: 768px) { .mw-desktop-sitename::after { content: "Hidden Mickey Wiki"; visibility: visible; position: absolute; top: 0; left: 0; } }
*/

/* Hide DIVs whose class attribute is exactly "d-flex flex-row" or "flex-row d-flex" */
div[class="d-flex flex-row"],
div[class="flex-row d-flex"] {
    display: none !important;
}

/* Pull main content up while keeping page title just below navbar */
#content,
.mw-body,
.mw-body-content,
#mw-content {
    margin-top: -20px !important;   /* adjust to move content closer */
    padding-top: 0 !important;
}
#firstHeading {
    margin-top: 0 !important;       /* keeps page title under navbar */
    padding-top: 0 !important;
}

/* Add gap between page title horizontal line and Table of Contents */
.toc {
    margin-top: 10px !important;   /* adjust number to control gap */
}

/* --- Sticky Navbar --- */
#mw-navbar,
.navbar.navbar-expand-lg {
    position: sticky !important;       /* keeps navbar in view */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999 !important;          /* ensures navbar is above content */
    background-color: #fff !important; /* visible background */
}

/* Ensure text, logo, and dropdowns are visible */
#mw-navbar * {
    z-index: 10000 !important;
    color: #000 !important;            /* adjust text color if needed */
}

/* Fix dropdowns inside sticky navbar */
.navbar .dropdown-menu {
    position: absolute !important;
    z-index: 10001 !important;
}

/* --- Main content spacing --- */
#content,
.mw-body,
.mw-body-content,
#mw-content {
    padding-top: 80px !important;      /* adjust to navbar height */
}

/* --- Page title spacing --- */
#firstHeading {
    margin-top: 0 !important;          /* flush under navbar */
    padding-top: 0 !important;
}

/* --- Table of Contents spacing --- */
.toc {
    margin-top: 15px !important;       /* gap between title line and TOC */
}

/* --- Pull content closer to title --- */
#content,
.mw-body,
.mw-body-content,
#mw-content {
    margin-top: -20px !important;
    padding-top: 80px !important;      /* combine margin and padding for proper spacing */
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    #content,
    .mw-body,
    .mw-body-content,
    #mw-content {
        padding-top: 120px !important;  /* taller navbar on mobile */
        margin-top: -10px !important;
    }

    .toc {
        margin-top: 10px !important;    /* smaller gap on mobile */
    }
}