MediaWiki:Common.css: Difference between revisions

From Drug Information
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 4: Line 4:
}
}


/* Dark Mode Setup for MediaWiki */
/* Dark Mode: Global Backgrounds */
body, #content, #mw-content-text {
body, #mw-page-base, #mw-content-base, #content, #mw-head, #mw-panel, #p-logo, .vector-menu-content {
     background-color: #121212 !important;
     background-color: #121212 !important;
     color: #e0e0e0 !important;
     color: #e0e0e0 !important;
}
}


/* Ensure headings are readable */
/* Dark Mode: Content Area */
h1, h2, h3, h4, h5, h6 {
#content, .mw-body, .mw-body-content {
     color: #ffffff !important;
    background-color: #121212 !important;
     color: #e0e0e0 !important;
}
}


/* Adjust links for dark mode */
/* Dark Mode: Headers and Text */
a {
h1, h2, h3, h4, h5, h6, .mw-body-content p, .mw-body-content li {
     color: #81d4fa !important;
     color: #ffffff !important;
}
}


a:visited {
/* Dark Mode: Tables */
    color: #ce93d8 !important;
table, .wikitable, .wikitable th, .wikitable td {
}
 
/* Ensure tables are readable in dark mode */
table, th, td {
     background-color: #1e1e1e !important;
     background-color: #1e1e1e !important;
     color: #e0e0e0 !important;
     color: #e0e0e0 !important;
Line 31: Line 28:
}
}


/* Input fields and buttons */
/* Dark Mode: Links */
input, textarea, select, button {
a { color: #81d4fa !important; }
a:visited { color: #ce93d8 !important; }
 
/* Dark Mode: Inputs and Textareas */
textarea, input, select, button {
     background-color: #2c2c2c !important;
     background-color: #2c2c2c !important;
     color: #e0e0e0 !important;
     color: #ffffff !important;
     border: 1px solid #444444 !important;
     border: 1px solid #444444 !important;
}
/* Dark Mode: Sidebar and Toolboxes */
#mw-panel, #left-navigation, #right-navigation {
    background-color: #1a1a1a !important;
}
}

Revision as of 03:05, 8 March 2026

/* CSS placed here will be applied to all skins */
#footer-info-lastmod {
    display: none !important;
}

/* Dark Mode: Global Backgrounds */
body, #mw-page-base, #mw-content-base, #content, #mw-head, #mw-panel, #p-logo, .vector-menu-content {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

/* Dark Mode: Content Area */
#content, .mw-body, .mw-body-content {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

/* Dark Mode: Headers and Text */
h1, h2, h3, h4, h5, h6, .mw-body-content p, .mw-body-content li {
    color: #ffffff !important;
}

/* Dark Mode: Tables */
table, .wikitable, .wikitable th, .wikitable td {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border-color: #333333 !important;
}

/* Dark Mode: Links */
a { color: #81d4fa !important; }
a:visited { color: #ce93d8 !important; }

/* Dark Mode: Inputs and Textareas */
textarea, input, select, button {
    background-color: #2c2c2c !important;
    color: #ffffff !important;
    border: 1px solid #444444 !important;
}

/* Dark Mode: Sidebar and Toolboxes */
#mw-panel, #left-navigation, #right-navigation {
    background-color: #1a1a1a !important;
}