Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css

MediaWiki interface page
Revision as of 05:01, 1 April 2026 by Devonnn (talk | contribs) (one more change copium)

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.
.page-Main_Page .firstHeading { display: none !important; }

/* Container */
.wiki-grid-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px;
  color: inherit;
}

/* Top Row */
.top-row-container {
  display: flex;
  flex-wrap: wrap; 
  gap: 15px;
}

.top-tile {
  flex: 1 1 250px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(128, 128, 128, 0.2);
  padding: 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* Bottom Large Box - Flex column on mobile */
.bottom-tile-large {
  display: flex;
  flex-direction: row; /* Horizontal by default */
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.top-tile:hover, .bottom-tile-large:hover {
  border-color: #cd3333;
  box-shadow: 0 0 64px 0 rgba(205, 51, 51, 0.3)
}


.bottom-centered-row {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 25px !important;
  clear: both;
}


.links-tile {
  flex: 0 1 calc(33.333% - 20px); 
  min-width: 300px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(128, 128, 128, 0.2);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
}


.links-tile:hover {
  border-color: #3b82f6;
  box-shadow: 0 0 15px rgba(205, 51, 51, 0.3);
}


.links-list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

/* Sidebar: 1/3 Width */
.large-sidebar {
  flex: 1;
  padding: 20px;
  border-right: 1px solid rgba(205, 51, 51, 0.3);
  display: flex;
  flex-direction: column;
  align-items: flex-end; 
  text-align: right;
}

/* Body: 2/3 Width */
.large-body {
  flex: 2;
  padding: 20px;
}

/* Force MediaWiki images to behave inside the sidebar */
.large-sidebar .thumb, 
.large-sidebar .tright, 
.large-sidebar .floatright,
.large-sidebar .thumbinner {
  margin: 10px 0 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  float: none !important;
  display: block !important;
}

.wiki-pill {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 2px;
  color: white;
}

.tile-title {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 2px;
  display: block;
}

/* Responsive: Stack vertically on small screens */
@media (max-width: 750px) {
  .top-tile {
    flex: 1 1 100%;
  }
  .bottom-tile-large {
    flex-direction: column; /* Stacks sidebar on top of body */
  }
  .large-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    align-items: center;
    text-align: center;
    flex: none;
    width: 100%;
    box-sizing: border-box;
  }
  .large-body {
    flex: none;
    width: 100%;
    box-sizing: border-box;
  }
}


/* --- COMPREHENSIVE LINK COLORING --- */

/* 1. General & Internal Links */
a, 
.mw-body-content a {
    color: #cd3333;
    text-decoration: none;
}

/* 2. Interwiki & External Links */
/* Targets links to other wikis and outside websites */
a.extiw,
a.external {
    color: #cd3333 !important;
}

/* 3. Visited State */
/* A slightly deeper shade for links already clicked */
a:visited,
a.extiw:visited,
a.external:visited {
    color: #a12828 !important;
}

/* 4. Hover & Focus States */
/* Ensures all link types (including interwiki) turn bright red on hover */
a:hover,
a:focus,
a.extiw:hover,
a.extiw:focus,
a.external:hover,
a.external:focus {
    color: #e63939 !important;
    text-decoration: underline !important;
}

/* 5. New/Missing Pages (Redlinks) */
/* Kept as a distinct red so you can still identify pages that need creating */
a.new {
    color: #ba0000;
}

/* 6. Specific UI Overrides */
/* Targets the sidebar and tabs to ensure consistency across the framework */
#mw-panel a,
#p-cactions a,
#p-personal a {
    color: #cd3333;
}

#mw-panel a:hover,
#p-cactions a:hover,
#p-personal a:hover {
    color: #e63939;
}