MediaWiki:Common.css

From psychmethods

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.
/* ================================================
   STUDY Academic Theme for Timeless Skin
   MediaWiki:Common.css
   Perfect for: Study Wikis, Educational Documentation
   ================================================ */

:root {
    /* STUDY Academic Color Palette */
    --floral-white: #FDF9F1;          /* Background - Floral White */
    --soft-linen: #EBE6DD;            /* Secondary background - Soft Linen */
    --silver: #C3B2AA;                /* Accent - Silver */
    --chestnut: #7E2F23;              /* Primary - Chestnut */
    --cinnamon-wood: #A66A4E;         /* Secondary - Cinnamon Wood */

    /* Extended palette for UI elements */
    --chestnut-light: #9e4733;        /* Lighter chestnut for hover */
    --cinnamon-light: #b67e5e;        /* Lighter cinnamon */
    --border-light: #d9d0c7;          /* Subtle borders */
    --bg-white: #ffffff;              /* Pure white for content */
    --text-primary: #3a2419;          /* Primary text - dark brown */
    --text-secondary: #5a4a3a;        /* Secondary text */
}

/* Main page background */
body {
    background-color: var(--floral-white);
    color: var(--text-primary);
}

/* Header/top navigation - scholarly chestnut */
#mw-header-container {
    background-color: var(--chestnut);
    border-bottom: 2px solid var(--silver);
}

#mw-header-nav-hack {
    background-color: var(--chestnut);
}

/* Site logo area */
#p-logo a {
    background-color: transparent;
}

/* Navigation links in header */
#mw-header-nav-hack a,
#user-tools a {
    color: var(--floral-white);
    font-weight: 500;
}

#mw-header-nav-hack a:hover,
#user-tools a:hover {
    color: var(--soft-linen);
}

/* Sidebar - academic catalog style */
#mw-site-navigation,
#mw-related-navigation {
    background-color: var(--floral-white);
    border-right: 1px solid var(--border-light);
}

#mw-site-navigation .sidebar-chunk,
#mw-related-navigation .sidebar-chunk {
    background-color: transparent;
}

#mw-site-navigation h3,
#mw-related-navigation h3 {
    background-color: var(--chestnut);
    color: white;
    border-bottom: 2px solid var(--silver);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

/* Sidebar links - use dark text for WCAG AA compliance */
#mw-site-navigation a,
#mw-related-navigation a {
    color: var(--text-primary);
    font-weight: 400;
}

#mw-site-navigation a:hover,
#mw-related-navigation a:hover {
    color: var(--cinnamon-wood);
    background-color: rgba(166, 106, 78, 0.1);
}

/* Main content area - clean white pages */
#mw-content-container {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(126, 47, 35, 0.08);
}

#mw-content {
    background-color: var(--bg-white);
    color: var(--text-primary);
}

/* Page title - academic heading */
#firstHeading {
    color: var(--chestnut);
    border-bottom: 3px solid var(--silver);
    font-weight: 600;
    padding-bottom: 12px;
}

/* Content headings - hierarchical typography */
.mw-body h1 {
    color: var(--chestnut);
    font-weight: 600;
}

.mw-body h2 {
    color: var(--chestnut);
    font-weight: 600;
    border-bottom: 2px solid var(--silver);
    padding-bottom: 8px;
    margin-top: 32px;
}

.mw-body h3 {
    color: var(--cinnamon-wood);
    font-weight: 600;
    margin-top: 24px;
}

.mw-body h4 {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Body text - optimal readability */
.mw-body,
.mw-body p {
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Links - scholarly style */
.mw-body a:not(.new) {
    color: var(--cinnamon-wood);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.mw-body a:not(.new):hover {
    color: var(--chestnut);
    border-bottom-color: var(--silver);
}

.mw-body a:not(.new):visited {
    color: var(--chestnut-light);
}

/* Red links (non-existent pages) */
.mw-body a.new {
    color: #9f4444;
}

/* Tabs (page actions) */
#p-namespaces ul li,
#p-views ul li {
    background-color: var(--soft-linen);
    border: 1px solid var(--border-light);
}

#p-namespaces ul li.selected,
#p-views ul li.selected {
    background-color: var(--bg-white);
    border-bottom-color: var(--bg-white);
    border-top: 2px solid var(--cinnamon-wood);
}

#p-namespaces a,
#p-views a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

#p-namespaces ul li.selected a,
#p-views ul li.selected a {
    color: var(--chestnut);
}

/* Buttons - academic actions */
.mw-ui-button,
.oo-ui-buttonElement-button {
    background-color: var(--cinnamon-wood);
    color: white;
    border: none;
    font-weight: 500;
    padding: 10px 20px;
    transition: background-color 0.2s ease;
}

.mw-ui-button:hover,
.oo-ui-buttonElement-button:hover {
    background-color: var(--chestnut);
}

/* Info boxes - study notes */
.infobox {
    background-color: var(--soft-linen);
    border: 1px solid var(--silver);
    border-left: 4px solid var(--cinnamon-wood);
    box-shadow: 0 1px 3px rgba(126, 47, 35, 0.1);
}

/* Table styling - academic data presentation */
table.wikitable {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

table.wikitable th {
    background-color: var(--cinnamon-wood);
    color: white;
    border: 1px solid var(--silver);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    padding: 12px 16px;
}

table.wikitable td {
    border: 1px solid var(--border-light);
    padding: 10px 16px;
}

table.wikitable tr:nth-child(even) {
    background-color: var(--soft-linen);
}

table.wikitable tr:hover {
    background-color: rgba(166, 106, 78, 0.1);
}

/* Code blocks - technical documentation */
pre, code {
    background-color: var(--soft-linen);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--silver);
    color: var(--text-primary);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
}

pre {
    padding: 16px;
    overflow-x: auto;
}

code {
    padding: 2px 6px;
}

/* Footer - study archive style */
#footer,
#mw-footer,
#mw-footer-container {
    background-color: var(--soft-linen);
    border-top: 2px solid var(--silver);
    color: var(--text-primary) !important;
    font-size: 0.875rem;
}

/* Footer text - dark for better contrast (WCAG AA) */
#footer-info,
#footer-places,
#footer-list,
#mw-footer ul,
#mw-footer li {
    color: var(--text-primary) !important;
}

/* Footer links */
#footer a,
#mw-footer a,
#footer-places a,
#footer-info a {
    color: var(--text-primary) !important;
    font-weight: 500;
}

#footer a:hover,
#mw-footer a:hover {
    color: var(--cinnamon-wood) !important;
}

/* Search box */
#searchInput {
    border: 1px solid var(--border-light);
    background-color: var(--bg-white);
    color: var(--text-primary);
    padding: 8px 12px;
}

#searchInput:focus {
    border-color: var(--cinnamon-wood);
    box-shadow: 0 0 0 2px rgba(166, 106, 78, 0.1);
    outline: none;
}

#searchInput::placeholder {
    color: var(--text-secondary);
}

/* Blockquotes - citations and references */
blockquote {
    border-left: 4px solid var(--silver);
    background-color: var(--soft-linen);
    padding: 16px 20px;
    margin: 20px 0;
    color: var(--text-secondary);
    font-style: italic;
}

/* Lists - structured documentation */
.mw-body ul,
.mw-body ol {
    line-height: 1.8;
    color: var(--text-primary);
}

/* Categories and metadata */
#catlinks {
    background-color: var(--soft-linen);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
}

/* Edit forms and inputs */
textarea,
input[type="text"],
input[type="search"] {
    background-color: var(--bg-white);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

textarea:focus,
input[type="text"]:focus,
input[type="search"]:focus {
    border-color: var(--cinnamon-wood);
    box-shadow: 0 0 0 2px rgba(166, 106, 78, 0.1);
}

/* ================================================
   Additional fixes for header text visibility
   ================================================ */

/* Wiki name/site title in top left */
#p-logo a,
#p-logo-text a,
.mw-wiki-title,
#sitelogo-text {
    color: var(--floral-white) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#p-logo a:hover,
#p-logo-text a:hover {
    color: var(--soft-linen) !important;
}

/* Username in top right corner */
#user-tools .mw-ui-icon + span,
#user-tools #pt-userpage a,
#personal h2,
#personal .mw-portlet-heading {
    color: var(--floral-white) !important;
    font-weight: 500 !important;
}

#user-tools #pt-userpage a:hover {
    color: var(--soft-linen) !important;
}

/* Dropdown menu from username */
#personal .mw-portlet-body,
#personal ul,
#user-tools .dropdown,
#personal .vector-menu-content {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(126, 47, 35, 0.15);
}

#personal .mw-portlet-body a,
#personal ul a,
#user-tools .dropdown a {
    color: var(--text-primary) !important;
    background-color: var(--bg-white);
    font-weight: 400;
}

#personal .mw-portlet-body a:hover,
#personal ul a:hover,
#user-tools .dropdown a:hover {
    color: var(--chestnut) !important;
    background-color: var(--soft-linen);
}

/* ================================================
   Icon Fixes for Dark Header Background
   ================================================ */

/* User icon - replace with light-colored version */
#personal h2 {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="6" r="3" fill="%23FDF9F1"/><path d="M10 10c-3 0-7 2-7 5v2h14v-2c0-3-4-5-7-5z" fill="%23FDF9F1"/></svg>') !important;
}

/* Site tools gear icon - replace with light-colored version */
#site-tools h2 {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="M10 1.5c-.85 0-1.6.55-1.85 1.35l-.35 1.1c-.25.05-.5.15-.75.25l-1-.6c-.75-.45-1.7-.3-2.3.35l-.7.7c-.65.65-.8 1.55-.35 2.3l.6 1c-.1.25-.2.5-.25.75l-1.1.35C1.05 9.4.5 10.15.5 11s.55 1.6 1.35 1.85l1.1.35c.05.25.15.5.25.75l-.6 1c-.45.75-.3 1.7.35 2.3l.7.7c.65.65 1.55.8 2.3.35l1-.6c.25.1.5.2.75.25l.35 1.1c.25.8 1 1.35 1.85 1.35s1.6-.55 1.85-1.35l.35-1.1c.25-.05.5-.15.75-.25l1 .6c.75.45 1.7.3 2.3-.35l.7-.7c.65-.65.8-1.55.35-2.3l-.6-1c.1-.25.2-.5.25-.75l1.1-.35c.8-.25 1.35-1 1.35-1.85s-.55-1.6-1.35-1.85l-1.1-.35c-.05-.25-.15-.5-.25-.75l.6-1c.45-.75.3-1.7-.35-2.3l-.7-.7c-.65-.65-1.55-.8-2.3-.35l-1 .6c-.25-.1-.5-.2-.75-.25l-.35-1.1C11.6 2.05 10.85 1.5 10 1.5zm0 5.5c1.65 0 3 1.35 3 3s-1.35 3-3 3-3-1.35-3-3 1.35-3 3-3z" fill="%23FDF9F1"/></svg>') !important;
}

/* Site navigation hamburger menu icon - replace with light-colored version */
#site-navigation h2,
#mw-site-navigation h2 {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="M2 4h16v2H2zm0 5h16v2H2zm0 5h16v2H2z" fill="%23FDF9F1"/></svg>') !important;
}

/* User tools icons in header - make light colored */
#user-tools .mw-ui-icon,
#user-tools .mw-ui-icon:before,
#user-tools .mw-ui-icon:after,
#personal .mw-ui-icon {
    color: var(--floral-white) !important;
    fill: var(--floral-white) !important;
    opacity: 0.9;
}

#user-tools .mw-ui-icon:hover,
#personal .mw-ui-icon:hover {
    color: var(--soft-linen) !important;
    fill: var(--soft-linen) !important;
    opacity: 1;
}