MediaWiki:Common.css: Difference between revisions

From Practices and Politics of Representation
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
/* Hide all logos */
/************************************************************
* CLEAN MINIMAL THEME — FULL RGB, RESPONSIVE, NO GRADIENTS
************************************************************/
 
 
/*----------------------------------------------------------
  0. GLOBAL RESET / CLEANUP
----------------------------------------------------------*/
 
.mw-wiki-logo,
.mw-wiki-logo,
.mw-logo,
.mw-logo,
Line 12: Line 20:
}
}


/* Force all text to Arial font */
body, h1, h2, h3, h4, h5, h6, p, div, span, a, li, td, th,
body, h1, h2, h3, h4, h5, h6, p, div, span, a, li, td, th,  
input, textarea, select, button {
input, textarea, select, button {
     font-family: Arial, sans-serif !important;
     font-family: Arial, sans-serif !important;
    color: rgb(30, 30, 30) !important;
}
}


/* Remove shadows and effects - but NOT on edit elements */
body {
.portlet, .pBody, #content, #column-content,  
    background: #ffffff !important;
#column-one, .portlet h3, .portlet h5, .gallerybox,
}
 
/* Remove shadows everywhere */
.portlet, .pBody, #content, #column-content, #column-one,
.portlet h3, .portlet h5, .gallerybox,
.thumb, .thumbinner, .infobox, table, #footer,
.thumb, .thumbinner, .infobox, table, #footer,
#p-cactions, .vector-menu-tabs {
#p-cactions, .vector-menu-tabs {
Line 27: Line 39:
}
}


/* Move entire navigation menu to bottom of sidebar */
 
#p-navigation {
/*----------------------------------------------------------
     order: 999 !important;
  REMOVE ALL HEADER & TOP SHADOWS
     margin-top: auto !important;
----------------------------------------------------------*/
     padding-top: 100px !important;
 
     border-top: 1px solid #eee !important;
#mw-head,
#mw-head-base,
#mw-page-base,
.vector-header,
.vector-sticky-header,
.vector-container,
.mw-header {
     background: none !important;
     background-color: transparent !important;
     box-shadow: none !important;
     filter: none !important;
}
}
/*----------------------------------------------------------
  1. SIDEBAR LAYOUT
----------------------------------------------------------*/


#column-one {
#column-one {
Line 39: Line 66:
     flex-direction: column !important;
     flex-direction: column !important;
     min-height: 100vh !important;
     min-height: 100vh !important;
    background: none !important;
}
}


/* Clean headings - remove underlines */
#mw-panel, .vector-legacy-sidebar {
h1, h2, h3, h4, h5, h6, .firstHeading {
    border-bottom: none !important;
     background: none !important;
     background: none !important;
    background-image: none !important;
    color: #333 !important;
}
}


/* Clean sidebar */
#p-navigation {
.portlet {
    order: 999 !important;
     background: none !important;
     margin-top: auto !important;
     background-image: none !important;
     padding-top: 60px !important;
     border: none !important;
     border-top: 1px solid #eee !important;
}
}


/* Sidebar titles */
.portlet h3, .portlet h5 {
.portlet h3, .portlet h5 {
    color: rgb(20,20,20) !important;
     background: none !important;
     background: none !important;
    background-image: none !important;
    border: none !important;
    color: #333 !important;
     font-weight: bold !important;
     font-weight: bold !important;
}
}


/* Sidebar links */
.portlet .pBody ul li a {
.portlet .pBody ul li a {
     color: #0066cc !important;
     color: rgb(0,102,255) !important;     /* FULL saturation link blue */
     text-decoration: none !important;
     text-decoration: none !important;
    background: none !important;
}
}
.portlet .pBody ul li a:hover {
.portlet .pBody ul li a:hover {
     color: #004499 !important;
     color: rgb(0,51,204) !important;     /* darker full RGB blue */
     text-decoration: underline !important;
     text-decoration: underline !important;
}
}


/* Clean top tabs - no borders */
 
#p-cactions, #p-namespaces, #p-views {
/*----------------------------------------------------------
  2. TABS / PERSONAL MENU
----------------------------------------------------------*/
 
#p-cactions, #p-namespaces, #p-views, #p-personal {
     background: none !important;
     background: none !important;
     border: none !important;
     border: none !important;
Line 83: Line 109:
#p-cactions li, #p-namespaces li, #p-views li {
#p-cactions li, #p-namespaces li, #p-views li {
     background: none !important;
     background: none !important;
    background-image: none !important;
     border: none !important;
     border: none !important;
     margin: 0 10px 0 0 !important;
     margin-right: 10px !important;
}
}


#p-cactions li a, #p-namespaces li a, #p-views li a {
#p-cactions li a, #p-namespaces li a, #p-views li a {
     background: none !important;
     background: none !important;
     background-image: none !important;
     padding: 8px 15px !important;
     color: #0066cc !important;
     color: rgb(0,102,255) !important;
     text-decoration: none !important;
     text-decoration: none !important;
    border: none !important;
    padding: 8px 15px !important;
}
}


#p-cactions li.selected a, #p-namespaces li.selected a, #p-views li.selected a {
#p-cactions li.selected a,
     color: #333 !important;
#p-namespaces li.selected a,
#p-views li.selected a {
     color: rgb(20,20,20) !important;
     font-weight: bold !important;
     font-weight: bold !important;
    background: none !important;
}
}


#p-cactions li a:hover, #p-namespaces li a:hover, #p-views li a:hover {
#p-cactions li a:hover,
     background: #f0f0f0 !important;
#p-namespaces li a:hover,
     color: #004499 !important;
#p-views li a:hover {
     background: rgb(240,240,240) !important;
     color: rgb(0,51,204) !important;
}
}


/* Clean personal tools (right menu) */
 
#p-personal {
/*----------------------------------------------------------
  3. CONTENT AREA
----------------------------------------------------------*/
 
#content, .mw-body, .mw-body-content {
     background: none !important;
     background: none !important;
     border: none !important;
     border: none !important;
}
}


#p-personal ul li a {
#content {
     color: #0066cc !important;
     background: #ffffff !important;
     text-decoration: none !important;
    border: 1px solid #ddd !important;
     border-top: none !important;
}
 
/* Headings */
h1, h2, h3, h4, h5, h6, .firstHeading {
    border-bottom: none !important;
    color: rgb(20,20,20) !important;
     background: none !important;
     background: none !important;
}
}


#p-personal ul li a:hover {
/* Edit links */
     color: #004499 !important;
.mw-editsection a {
    color: rgb(0,102,255) !important;
}
.mw-editsection a:hover {
     color: rgb(0,51,204) !important;
     text-decoration: underline !important;
     text-decoration: underline !important;
}
}


/* Clean content area */
 
#content {
/*----------------------------------------------------------
     background: #ffffff !important;
  4. RESPONSIVE CONTENT WIDTH (NEW)
     border: 1px solid #ddd !important;
----------------------------------------------------------*/
 
.mw-body-content,
#content,
#mw-content-text {
     max-width: 1100px !important;    /* WIDER MAIN AREA */
    margin-left: auto !important;
    margin-right: auto !important;
}
 
/* Tablets */
@media (max-width: 1100px) {
    .mw-body-content,
    #content,
    #mw-content-text {
        max-width: 90% !important;
     }
}
 
/* Mobile */
@media (max-width: 700px) {
    .mw-body-content,
    #content,
    #mw-content-text {
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}
}


/* Gallery - larger images, no gray backgrounds */
 
.gallerybox {
/*----------------------------------------------------------
  5. IMAGES / GALLERIES
----------------------------------------------------------*/
 
.gallerybox,
.gallerybox .thumb,
.thumb,
.thumbinner {
     background: none !important;
     background: none !important;
     border: none !important;
     border: none !important;
    width: 200px !important;
    margin: 15px !important;
}
}


.gallerybox .thumb {
.gallerybox {
    background: none !important;
    border: none !important;
     width: 200px !important;
     width: 200px !important;
    margin: 15px !important;
}
}


Line 150: Line 222:
}
}


.gallerytext {
.gallerytext, .thumbcaption {
    background: none !important;
     color: rgb(110,110,110) !important;
    border: none !important;
     color: #666 !important;
    text-align: center !important;
}
}


/* Clean image thumbnails */
 
.thumb {
/*----------------------------------------------------------
  6. TABLES
----------------------------------------------------------*/
 
table {
    border-collapse: collapse !important;
     background: none !important;
     background: none !important;
     border: none !important;
}
table th, table td {
     border: 1px solid #ddd !important;
    padding: 6px !important;
}
table th {
    font-weight: bold !important;
    color: rgb(20,20,20) !important;
}
}


.thumbinner {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
}


.thumbcaption {
/*----------------------------------------------------------
    background: none !important;
  7. INFOBOX
    color: #666 !important;
----------------------------------------------------------*/
}


/* Clean and simple infobox */
.infobox {
.infobox {
     background: none !important;
     background: none !important;
    background-color: transparent !important;
     border-left: 3px solid rgb(0,180,255) !important; /* FULL saturation cyan/blue */
    border: none !important;
     border-left: 3px solid #0066cc !important;
     padding: 15px !important;
     padding: 15px !important;
     margin: 0 0 20px 20px !important;
     margin: 0 0 20px 20px !important;
    width: 300px !important;
}
.infobox th {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid #eee !important;
    color: #333 !important;
    font-weight: bold !important;
    padding: 8px 0 !important;
    text-align: left !important;
}
}
 
.infobox th, .infobox td {
.infobox td {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
     border-bottom: 1px solid #eee !important;
     border-bottom: 1px solid #eee !important;
     padding: 8px 0 !important;
     padding: 8px 0 !important;
    color: #666 !important;
}
}
.infobox tr:last-child th,
.infobox tr:last-child th,
.infobox tr:last-child td {
.infobox tr:last-child td {
Line 210: Line 264:
}
}


/* Clean tables */
table {
    border-collapse: collapse !important;
    background: none !important;
}
table th {
    background: none !important;
    background-image: none !important;
    border: 1px solid #ddd !important;
    color: #333 !important;
    font-weight: bold !important;
}


table td {
/*----------------------------------------------------------
    background: none !important;
  8. FORMS
    border: 1px solid #ddd !important;
----------------------------------------------------------*/
}


/* Clean forms */
input, textarea, select {
input, textarea, select {
     border: 1px solid #ccc !important;
     border: 1px solid #ccc !important;
Line 236: Line 275:
}
}


#searchInput {
    border: 1px solid #ccc !important;
    background: #ffffff !important;
    border-radius: 0 !important;
}
/* Clean footer */
#footer {
    background: none !important;
    border: none !important;
    border-top: 1px solid #eee !important;
    color: #666 !important;
}


/* Clean edit section links */
/*----------------------------------------------------------
.mw-editsection a {
  9. FOOTER & META
    color: #0066cc !important;
----------------------------------------------------------*/
    text-decoration: none !important;
}
 
.mw-editsection a:hover {
    color: #004499 !important;
    text-decoration: underline !important;
}


/* Clean categories */
#footer, #catlinks {
#catlinks {
     background: none !important;
     background: none !important;
    border: none !important;
     border-top: 1px solid #eee !important;
     border-top: 1px solid #eee !important;
    color: #666 !important;
     color: rgb(110,110,110) !important;
}
 
/* Clean body */
body {
    background: #ffffff !important;
}
 
/* Preserve layout structure */
#column-one, #column-content {
    background: none !important;
}
 
.mw-body, .mw-body-content {
    background: none !important;
    border: none !important;
}
/* Academic Year links - specific targeting */
#n-Academic-Year-2025 a,
#n-Academic-Year-2024 a,
#n-Academic-Year-2023 a,
#n-Academic-Year-2022 a {
    text-decoration: underline !important;
    font-weight: bold !important;
}
 
/* Remove gray gradient shadow from top */
#mw-head,
.mw-header,
.vector-header,
#mw-head-base,
#mw-page-base {
    background: none !important;
    background-image: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}
 
/* Remove gradient from content area top */
#content {
    background: #ffffff !important;
    background-image: none !important;
    border-top: none !important;
}
 
/* Clean page background */
body {
    background: #ffffff !important;
    background-image: none !important;
}
 
/* Remove any remaining gradients */
.vector-legacy-sidebar,
#mw-panel {
    background: none !important;
    background-image: none !important;
}
 
/************************************
* IMPROVEMENTS BASED ON FEEDBACK
************************************/
 
/* ★ Use RGB at full saturation — replace navy-ish blues with full rgb blues */
a,
.portlet .pBody ul li a,
#p-personal ul li a,
#p-cactions li a,
#p-namespaces li a,
#p-views li a {
     color: rgb(0, 102, 255) !important; /* bright saturated blue */
}
 
a:hover,
.portlet .pBody ul li a:hover,
#p-personal ul li a:hover,
#p-cactions li a:hover,
#p-namespaces li a:hover,
#p-views li a:hover {
    color: rgb(0, 51, 204) !important; /* darker saturated blue */
}
 
/* Info Box left border – fully saturated cyan/blue */
.infobox {
    border-left: 3px solid rgb(0, 122, 255) !important;
}
 
/* Headings – strong neutral black instead of gray */
h1, h2, h3, h4, h5, h6, .firstHeading {
    color: rgb(30, 30, 30) !important;
}
 
/* Footer and meta text – pure neutral gray */
#footer,
.gallerytext,
.thumbcaption,
#catlinks {
    color: rgb(102, 102, 102) !important;
}
 
/****************************************
* ★ Increase font-size — improve reading
****************************************/
 
body, p, li, td, th, span, div {
    font-size: 17px !important;  /* from ~14–16px to readable 17px */
    line-height: 1.55 !important; /* smoother line spacing */
}
 
/***************************************************
* ★ Reduce line length (typography best practice)
***************************************************/
 
.mw-body-content,
#content,
#mw-content-text {
    max-width: 130ch !important;    /* limit to 70 characters per line */
    margin-left: auto !important;
    margin-right: auto !important;  /* center align the content block */
}
 
/* Keep sidebars unaffected by max-width */
#mw-panel,
#column-one {
    max-width: none !important;
}
}

Revision as of 15:51, 1 December 2025

/************************************************************
 * CLEAN MINIMAL THEME — FULL RGB, RESPONSIVE, NO GRADIENTS
 ************************************************************/


/*----------------------------------------------------------
  0. GLOBAL RESET / CLEANUP
----------------------------------------------------------*/

.mw-wiki-logo,
.mw-logo,
.mw-logo-icon,
.mw-logo-wordmark,
.vector-logo,
#p-logo,
#p-logo a,
.mw-logo-container {
    display: none !important;
    visibility: hidden !important;
}

body, h1, h2, h3, h4, h5, h6, p, div, span, a, li, td, th,
input, textarea, select, button {
    font-family: Arial, sans-serif !important;
    color: rgb(30, 30, 30) !important;
}

body {
    background: #ffffff !important;
}

/* Remove shadows everywhere */
.portlet, .pBody, #content, #column-content, #column-one,
.portlet h3, .portlet h5, .gallerybox,
.thumb, .thumbinner, .infobox, table, #footer,
#p-cactions, .vector-menu-tabs {
    box-shadow: none !important;
    text-shadow: none !important;
}


/*----------------------------------------------------------
  REMOVE ALL HEADER & TOP SHADOWS
----------------------------------------------------------*/

#mw-head,
#mw-head-base,
#mw-page-base,
.vector-header,
.vector-sticky-header,
.vector-container,
.mw-header {
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    filter: none !important;
}


/*----------------------------------------------------------
  1. SIDEBAR LAYOUT
----------------------------------------------------------*/

#column-one {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    background: none !important;
}

#mw-panel, .vector-legacy-sidebar {
    background: none !important;
}

#p-navigation {
    order: 999 !important;
    margin-top: auto !important;
    padding-top: 60px !important;
    border-top: 1px solid #eee !important;
}

/* Sidebar titles */
.portlet h3, .portlet h5 {
    color: rgb(20,20,20) !important;
    background: none !important;
    font-weight: bold !important;
}

/* Sidebar links */
.portlet .pBody ul li a {
    color: rgb(0,102,255) !important;     /* FULL saturation link blue */
    text-decoration: none !important;
}
.portlet .pBody ul li a:hover {
    color: rgb(0,51,204) !important;      /* darker full RGB blue */
    text-decoration: underline !important;
}


/*----------------------------------------------------------
  2. TABS / PERSONAL MENU
----------------------------------------------------------*/

#p-cactions, #p-namespaces, #p-views, #p-personal {
    background: none !important;
    border: none !important;
}

#p-cactions li, #p-namespaces li, #p-views li {
    background: none !important;
    border: none !important;
    margin-right: 10px !important;
}

#p-cactions li a, #p-namespaces li a, #p-views li a {
    background: none !important;
    padding: 8px 15px !important;
    color: rgb(0,102,255) !important;
    text-decoration: none !important;
}

#p-cactions li.selected a,
#p-namespaces li.selected a,
#p-views li.selected a {
    color: rgb(20,20,20) !important;
    font-weight: bold !important;
}

#p-cactions li a:hover,
#p-namespaces li a:hover,
#p-views li a:hover {
    background: rgb(240,240,240) !important;
    color: rgb(0,51,204) !important;
}


/*----------------------------------------------------------
  3. CONTENT AREA
----------------------------------------------------------*/

#content, .mw-body, .mw-body-content {
    background: none !important;
    border: none !important;
}

#content {
    background: #ffffff !important;
    border: 1px solid #ddd !important;
    border-top: none !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6, .firstHeading {
    border-bottom: none !important;
    color: rgb(20,20,20) !important;
    background: none !important;
}

/* Edit links */
.mw-editsection a {
    color: rgb(0,102,255) !important;
}
.mw-editsection a:hover {
    color: rgb(0,51,204) !important;
    text-decoration: underline !important;
}


/*----------------------------------------------------------
  4. RESPONSIVE CONTENT WIDTH (NEW)
----------------------------------------------------------*/

.mw-body-content,
#content,
#mw-content-text {
    max-width: 1100px !important;     /* WIDER MAIN AREA */
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Tablets */
@media (max-width: 1100px) {
    .mw-body-content,
    #content,
    #mw-content-text {
        max-width: 90% !important;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .mw-body-content,
    #content,
    #mw-content-text {
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}


/*----------------------------------------------------------
  5. IMAGES / GALLERIES
----------------------------------------------------------*/

.gallerybox,
.gallerybox .thumb,
.thumb,
.thumbinner {
    background: none !important;
    border: none !important;
}

.gallerybox {
    width: 200px !important;
    margin: 15px !important;
}

.gallerybox .thumb img {
    width: 200px !important;
    height: auto !important;
}

.gallerytext, .thumbcaption {
    color: rgb(110,110,110) !important;
}


/*----------------------------------------------------------
  6. TABLES
----------------------------------------------------------*/

table {
    border-collapse: collapse !important;
    background: none !important;
}
table th, table td {
    border: 1px solid #ddd !important;
    padding: 6px !important;
}
table th {
    font-weight: bold !important;
    color: rgb(20,20,20) !important;
}


/*----------------------------------------------------------
  7. INFOBOX
----------------------------------------------------------*/

.infobox {
    background: none !important;
    border-left: 3px solid rgb(0,180,255) !important; /* FULL saturation cyan/blue */
    padding: 15px !important;
    margin: 0 0 20px 20px !important;
}
.infobox th, .infobox td {
    border-bottom: 1px solid #eee !important;
    padding: 8px 0 !important;
}
.infobox tr:last-child th,
.infobox tr:last-child td {
    border-bottom: none !important;
}


/*----------------------------------------------------------
  8. FORMS
----------------------------------------------------------*/

input, textarea, select {
    border: 1px solid #ccc !important;
    background: #ffffff !important;
    border-radius: 0 !important;
}


/*----------------------------------------------------------
  9. FOOTER & META
----------------------------------------------------------*/

#footer, #catlinks {
    background: none !important;
    border-top: 1px solid #eee !important;
    color: rgb(110,110,110) !important;
}