MediaWiki:Common.css

From Blueseum - History of the Carlton Football Club
Revision as of 23:44, 12 March 2026 by Jarusa (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Nuke SpecialPages for Guests - chameleon specific IDs */
body.user-anon #t-specialpages,
body.user-anon .nav-item-specialpages,
body.user-anon a[href*="Special:SpecialPages"],
body.user-anon a[data-mw="interface"][href*="Special:SpecialPages"] {
    display: none !important;
}

body.anon #t-specialpages {
    display: none;
}

/* Also hide the "Tools" header if it's now empty at the bottom */
body.user-anon #p-tb-label,
body.user-anon .sidebar-title-tools {
    display: none !important;
}

/* Target the links by their destination URL for anonymous users */
body.user-anon a[href*="action=history"],
body.user-anon a[href*="action=edit"],
body.user-anon a[href*="title=Special:Log"] {
    display: none !important;
}

/* Hide special links by default */
.show-for-user {
    display: none;
}

/* Show links only when user is logged in */
body.ns-0 .show-for-user {
    display: list-item; /* or block, depending on theme */
}

/* Standard link colors */
.pagetools a,.pagetools .tab-group a {
    color: #cfccfc;
}

#p-views a,
#p-cactions a,
.vector-menu-content-list a {
    color: #cfccfc !important; /* Replace with your desired color */
}

.footer-info  {
  color: #212529;
  background-color: #e9ecef;
  margin-left: 0px;
 }

.mw-list-item a { color: #0000ff; }
.mw-body-content a { color: #0000ff; }
a:link { color: #0000ff; } /* normal unvisited links */
a:hover { color: #FFA500; } /* hovered links (example: orange) */

/* CSS placed here will be applied to all skins */

.flex-grow-0.col {
  max-width: 400px;
  width: auto; 
}

.p-logo img {
  max-width: 400px;
  width: auto; 

}

.p-logo {
  max-width: 400px;
  width: auto; 

}

/* To make images responsive */
img {
	max-width:100%;
	height:auto;
}


/* To make images responsive */
.res-img img {
	max-width:100%;
	height:auto;
}

blockquote{
  font-size: 1.4em;
  width:60%;
  margin:50px auto;
  font-family:Open Sans;
  font-style:italic;
  color: #555555;
  padding:1.2em 30px 1.2em 75px;
  border-left:8px solid #0b5394 ;
  line-height:1.6;
  position: relative;
  background:#EDEDED;
}

blockquote::before{
  font-family:Arial;
  content: "\201C";
  color:#0b5394;
  font-size:4em;
  position: absolute;
  left: 10px;
  top:-10px;
}

blockquote::after{
  content: '';
}

blockquote span{
  display:block;
  color:#333333;
  font-style: normal;
  font-weight: bold;
  margin-top:1em;
}

/* MediaWiki:Common.css */

/* Mobile-specific changes */
@media screen and (max-width: 768px) {
    /* Hide the default desktop sidebar navigation */
    #mw-panel {
        display: none;
    }

    /* Adjust content area to fill the screen */
    #content {
        margin-left: 0;
    }

    /* Example: Make custom nav bar fixed at the top */
    .my-custom-nav {
        position: fixed;
        top: 0;
        width: 100%;
        display: block;
    }
}

/* Add a small gap on the left for screens smaller than 982px (Tablets/Phones) */
@media screen and (max-width: 982px) {
    #content, #mw-content-text {
        padding-left: 15px;
        padding-right: 15px; /* Adding a right gap keeps it symmetrical */
    }
}