MediaWiki:Common.css: Difference between revisions

From Hidden Mickey Wiki

No edit summary
No edit summary
Line 31: Line 31:
                             #content, #mw-content-container { margin-left: 0; } }
                             #content, #mw-content-container { margin-left: 0; } }


/* Keep the footer in the main content area */
/* Make footer live inside the content column */
#footer, #footer-places {
body.skin-medik #content #footer,
     max-width: 100%;         /* prevent it from overflowing */
body.skin-medik #content #footer-places {
    width: auto;
     display: inline;           /* allow row alignment */
    margin: 0;                /* remove previous left margin */
    padding: 5px 0;
     font-size: 0.85em;
     font-size: 0.85em;
    line-height: 1.5em;
     background: none;
     background: none;
     border: none;
     border: none;
     text-align: left;
     margin: 0;
     line-height: 1.5em;
     padding: 5px 0;
}
}


/* Constrain footer to main content column */
/* Combine "last edited" and links into one flex container */
body.skin-medik #footer,
#footer, #footer-places {
body.skin-medik #footer-places {
     display: flex;
     display: block;
     flex-wrap: wrap;         /* wrap if very narrow screen */
     box-sizing: border-box;
     align-items: center;
     margin-left: 260px;       /* match sidebar width */
     gap: 1em;                 /* spacing between items */
     margin-right: 20px;       /* optional padding from right edge */
}
}


/* Footer links inline and spaced */
/* Footer links styling */
#footer-places ul {
#footer-places ul {
    display: flex;
    flex-wrap: wrap;
     list-style: none;
     list-style: none;
     margin: 0;
     margin: 0;
Line 61: Line 61:


#footer-places ul li {
#footer-places ul li {
     display: inline;
     margin: 0;
     margin-left: 1em;
    padding: 0;
}
 
#footer-places ul li + li::before {
    content: "•";             /* separator between links */
     margin: 0 0.5em;
    color: #555;
}
}


#footer-places ul li:first-child {
/* Optional: subtle link styling */
     margin-left: 0;
#footer-places a {
     text-decoration: none;
    color: #333;
}
}
#footer-places a:hover {
    text-decoration: underline;
}


/* Medik sidebar shrink */
/* Medik sidebar shrink */

Revision as of 23:55, 3 February 2026

/* 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; }

/* Hide DIVs where class="d-flex flex-row" or class="flex-row d-flex", which removes "Page / Action / Tools" dropdowns */
div[class="d-flex flex-row"], div[class="flex-row d-flex"] { display: none !important; }

/* Shrink top gap in main content page */
#content,.mw-body,.mw-body-content { margin-top: -20px !important; padding-top: 0px !important; line-height: 1.5 !important; }

/* Fix mw-navbar to the top */
#mw-navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; }
body { padding-top: 60px; }

/* Hide the search portlet on mobile devices */
@media (max-width: 767px) { #p-search { display: none !important; } }

/* Fix the sidebar in place, and prevent content from sliding under sidebar */
#mw-navigation { position: fixed; top: 3.5rem; left: 0; height: calc(100vh - 3.5rem); overflow-y: auto; z-index: 100; }
#content, #mw-content-container { margin-left: 17rem; }
@media (max-width: 768px) { #mw-navigation { position: static; width: auto; height: auto; }
                            #content, #mw-content-container { margin-left: 0; } }

/* Make footer live inside the content column */
body.skin-medik #content #footer,
body.skin-medik #content #footer-places {
    display: inline;           /* allow row alignment */
    font-size: 0.85em;
    line-height: 1.5em;
    background: none;
    border: none;
    margin: 0;
    padding: 5px 0;
}

/* Combine "last edited" and links into one flex container */
#footer, #footer-places {
    display: flex;
    flex-wrap: wrap;          /* wrap if very narrow screen */
    align-items: center;
    gap: 1em;                 /* spacing between items */
}

/* Footer links styling */
#footer-places ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

#footer-places ul li {
    margin: 0;
    padding: 0;
}

#footer-places ul li + li::before {
    content: "•";             /* separator between links */
    margin: 0 0.5em;
    color: #555;
}

/* Optional: subtle link styling */
#footer-places a {
    text-decoration: none;
    color: #333;
}

#footer-places a:hover {
    text-decoration: underline;
}


/* Medik sidebar shrink */
body.skin-medik #mw-navigation { width: 270px; min-width: 270px; }    /* enforce minimum width */
body.skin-medik #mw-panel { max-width: 270px; } /* ensure panel items don’t overflow */

/* Center sidebar items in Medik skin; Adjust individual links if needed */
#mw-navigation { display: flex; flex-direction: column; align-items: center; text-align: center; }
#mw-navigation li { width: 100%; /* let links fill the available width */ }

/* Make sidebar items centered and highlighted */
#mw-navigation li { background-color: #f0f0f0; border-radius: 2px; margin: 2px 0; padding: 2px 4px; display: inline-block;  /* make the box shrink to content */
    text-align: center; cursor: pointer; transition: background-color 0.2s; font-weight: bold; }

/* Center the li boxes in the sidebar, and add a hover effect */
#mw-navigation ul { display: flex; flex-direction: column; align-items: center; padding: 0; list-style: none; }
#mw-navigation li:hover { background-color: #dcdcdc; }

/* On medium screens and larger: use flex layout */
@media (min-width: 768px) {
  .row { display: flex; flex-wrap: nowrap; } /* keep them side-by-side */
  .sidebar, .col-md-3 { flex: 0 0 auto; } /* shrink-to-fit, .sidebar keeps natural width */
  .col-12.col-md-9.col-xl-10.py-md-3.px-md-5 { flex: 1 1 auto !important; max-width: none !important; padding-left: 1rem !important; padding-right: 1rem !important; }
}

/* Spinner support */
body.show-spinner::before { content: ""; position: fixed; inset: 0; z-index: 9999; background: rgba(255, 255, 255, 0.65); pointer-events: none; }
body.show-spinner::after { content: ""; position: fixed; width: 56px; height: 56px; top: 50%; left: 50%; margin: -28px 0 0 -28px; border: 6px solid rgba(0, 0, 0, 0.25);
                           border-top-color: #202122; /* MediaWiki black */ border-radius: 50%; animation: mw-spin 0.8s linear infinite; z-index: 10000; }
@keyframes mw-spin { to { transform: rotate(360deg); } }