MediaWiki:Common.css

From CAMEO
Revision as of 09:21, 2 June 2026 by Rcouseillant (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* CSS placed here will be applied to all skins */
body.page-Category_Materials_database #mw-subcategories {display: none}
body.page-Category_Materials_database #mw-pages {display: none}
#footer-poweredbyico { display: none; }
.page-About_CAMEO #contentSub { display: none }

#p-tb { display: none;!important }

#p-tb h3 { display: none;!important }

#t-specialpages { display: none;!important }

#t-print { display: none;!important }

#t-link { display: none;!important }

#t-changes { display: none;!important }

#t-info { display: none;!important }

#t-Permalink { display: none;!important }

#t-Relatedchanges { display: none;!important }

#t-Whatlinkshere { display: none;!important }

#t-userrights { display: none;!important }

#t-log { display: none;!important }

#t-contributions { display: none;!important }

#t-recentchangeslinked { display: none;!important }

#t-feedlinks { display: none;!important }

#t-blockip { display: none;!important }

.portal h3 { color: #000000; font-weight: bold;font-size: 14px; font-family: "verdana, arial"; !important }

#mw-panel .portal { color: #000000; font-weight:bold; font-size: 16px; font-family: "verdana, arial"; !important }


/* Target Category pages in Vector skin, this script will hide the "Category" prefix on page titles */

.ns-14 #firstHeading {
    display: block !important;
    position: relative !important;
    visibility: visible !important; /* Forces it to stay visible */
    
    margin-left: -4.3em; 
    clip-path: inset(0 0 0 4.3em);
}

/*This script will control the font and size of the left panel sub menus*/

#mw-panel .mw-portlet h3, 
#mw-panel .portal h3,
.mw-sidebar-label {
    font-size: .9em !important;
    font-weight: normal !important;
}


/* 1. Target Vector's list item and clear default bullet spacing */
div.mw-portlet li[id*="Museum-of-Fine-Arts"],
div#mw-panel li[id*="Museum-of-Fine-Arts"],
div.mw-portlet li a[href*="Museum_of_Fine_Arts"] {
    list-style: none !important;
    list-style-image: none !important;
    background-image: none !important;
    padding: 0 !important;
    margin: 4px 0 !important;
}

/* 2. Target the link anchor inside Vector and force the layout dimensions */
div.mw-portlet li[id*="Museum-of-Fine-Arts"] a,
div#mw-panel li[id*="Museum-of-Fine-Arts"] a,
div.mw-portlet li a[href*="Museum_of_Fine_Arts"] {
    display: inline-block !important;
    width: 68px !important;       /* 1. Increased from 160px to give a longer logo room */
    height: 14px !important;
    font-weight: 100 !important;
    background-image: url('https://cameo.mfa.org/images/2/26/MFA_Logo.png') !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: contain !important; /* 2. Keeps the entire aspect ratio intact without clipping */

   
}

/* 3. Target Vector's internal text span to completely vanish the text string */
div.mw-portlet li[id*="Museum-of-Fine-Arts"] a span,
div#mw-panel li[id*="Museum-of-Fine-Arts"] a span,
div.mw-portlet li a[href*="Museum_of_Fine_Arts"] span {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}
/* Remove the automatic external link icon/pipe prefix from the MFA logo link */
div.mw-portlet li[id*="Museum-of-Fine-Arts"] a::after,
div#mw-panel li[id*="Museum-of-Fine-Arts"] a::after,
div.mw-portlet li a[href*="Museum_of_Fine_Arts"]::after,
div.mw-portlet li a[href*="Museum_of_Fine_Arts"] {
    background-image: none !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}