MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
/* ==== | /* ========================================================================== | ||
Fandom-Inspired Dark Theme for MediaWiki (.madness-theme) | |||
========================================================================== */ | |||
/* - | /* Apply if 'madness-theme' class is on the body */ | ||
body { | .madness-theme, | ||
background-color: # | .madness-theme body { | ||
color: # | background-color: #202225 !important; /* Overall very dark grey (Fandom-like) */ | ||
color: #e0e1e2 !important; /* Light grey/off-white text */ | |||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important; /* Common Fandom font stack */ | |||
} | } | ||
/* --- Links --- */ | /* --- Global Links --- */ | ||
a { | .madness-theme a { | ||
color: # | color: #61dafb !important; /* Bright, techy blue for links (Fandom-like accent) */ | ||
text-decoration: none !important; | |||
} | } | ||
a:hover { | .madness-theme a:hover { | ||
color: # | color: #82e4ff !important; | ||
text-decoration: underline !important; | text-decoration: underline !important; | ||
} | } | ||
a:visited { | .madness-theme a:visited { | ||
color: # | /* color: #ad9bf3 !important; /* Optional: Fandom-like purple for visited */ | ||
} | } | ||
/* | .madness-theme a.new { /* Red links for non-existent pages */ | ||
color: #ff7675 !important; | |||
color: # | |||
} | } | ||
a.new:hover { | .madness-theme a.new:hover { | ||
color: # | color: #ff9493 !important; | ||
} | } | ||
/* --- Header | /* --- Page Header (Top Bar area) --- */ | ||
#mw- | .madness-theme #mw-head-base, /* Wraps logo, search, personal tools */ | ||
background-color: # | .madness-theme #mw-head { | ||
border-bottom: 1px solid # | background-color: #282b30 !important; /* Slightly lighter than body, for definition */ | ||
border-bottom: 1px solid #40444b !important; | |||
} | } | ||
# | /* Logo */ | ||
.madness-theme #p-logo, | |||
.madness-theme #p-logo a { | |||
/* Adjust if your logo needs specific styling to look good on dark */ | |||
} | } | ||
#p- | /* Personal Tools (Username, Talk, Preferences, Logout) */ | ||
.madness-theme #p-personal ul { | |||
background-color: transparent !important; | |||
color: # | } | ||
.madness-theme #p-personal ul li a { | |||
color: #c8c9ca !important; | |||
text-shadow: none !important; | |||
} | |||
.madness-theme #p-personal ul li a:hover { | |||
background-color: #3a3d42 !important; | |||
color: #ffffff !important; | |||
} | } | ||
/* | /* --- Site Navigation / Sidebars --- */ | ||
# | .madness-theme #mw-panel, /* Vector skins */ | ||
background-color: # | .madness-theme #column-one { /* Older skins like Monobook */ | ||
background-color: #282b30 !important; /* Consistent with header */ | |||
padding-top: 10px !important; | |||
} | } | ||
background | .madness-theme .portal, | ||
.madness-theme .portlet { /* Containers for sidebar sections */ | |||
background: none !important; | |||
border: none !important; | |||
margin-bottom: 1em !important; | |||
} | } | ||
background-color: # | .madness-theme .portal h3, | ||
.madness-theme .portlet h3, | |||
.madness-theme .vector-menu-heading { /* Sidebar section titles */ | |||
color: #e0e1e2 !important; | |||
background-color: #3a3d42 !important; /* Darker accent for section titles */ | |||
border: 1px solid #40444b !important; | |||
border-left: 3px solid #61dafb !important; /* Accent color strip */ | |||
padding: 8px 12px !important; | |||
font-size: 0.95em !important; | |||
text-shadow: none !important; | |||
border-radius: 3px 3px 0 0; | |||
margin-bottom: 0 !important; | |||
} | } | ||
.madness-theme .portal .body, | |||
.madness-theme .portlet .pBody, | |||
.madness-theme .vector-menu-content { /* Content of sidebar sections */ | |||
background-color: #2c2f33 !important; /* Slightly different from panel bg for depth */ | |||
padding: 10px !important; | |||
border: 1px solid #40444b !important; | |||
border-top: none !important; | |||
border-radius: 0 0 3px 3px; | |||
} | |||
.madness-theme .portal .body ul li a, | |||
.madness-theme .portlet .pBody ul li a, | |||
.madness-theme .vector-menu-content ul li a { | |||
color: #c8c9ca !important; | |||
padding: 5px 8px !important; | |||
display: block !important; | |||
border-radius: 3px; | |||
} | } | ||
.madness-theme .portal .body ul li a:hover, | |||
color: # | .madness-theme .portlet .pBody ul li a:hover, | ||
.madness-theme .vector-menu-content ul li a:hover { | |||
background-color: #3a3d42 !important; | |||
color: #ffffff !important; | |||
} | |||
.madness-theme .portal .body ul li.active a, /* Current page in nav */ | |||
.madness-theme .vector-menu-content ul li.selected a { /* Vector-2022 selected */ | |||
background-color: #61dafb !important; | |||
color: #1c1e20 !important; | |||
font-weight: bold; | |||
} | } | ||
# | |||
color: | /* --- Search Bar --- */ | ||
.madness-theme #simpleSearch, | |||
.madness-theme #p-search form { | |||
background-color: transparent !important; | |||
padding: 0 !important; /* Reset if there was padding on the form */ | |||
} | } | ||
# | .madness-theme #searchInput { | ||
color: # | background-color: #3a3d42 !important; | ||
background-color: | color: #e0e1e2 !important; | ||
border: 1px solid #40444b !important; | |||
border-radius: 3px !important; | |||
padding: 6px 10px !important; | |||
} | |||
.madness-theme #searchInput:focus { | |||
border-color: #61dafb !important; | |||
box-shadow: 0 0 0 2px rgba(97, 218, 251, 0.3) !important; | |||
} | |||
.madness-theme #searchButton, | |||
.madness-theme #mw-searchButton { /* The "Go" or magnifying glass button */ | |||
background-color: #4a4e54 !important; | |||
border: 1px solid #40444b !important; | |||
color: #e0e1e2 !important; | |||
border-radius: 3px !important; | |||
padding: 6px 10px !important; | |||
text-shadow: none !important; | |||
} | |||
.madness-theme #searchButton:hover, | |||
.madness-theme #mw-searchButton:hover { | |||
background-color: #5a5e64 !important; | |||
} | } | ||
/* --- Main Content Area --- */ | /* --- Main Content Area --- */ | ||
#content { | .madness-theme #content { | ||
background-color: # | background-color: #2c2f33 !important; /* Main content area background */ | ||
border: 1px solid #40444b !important; | |||
box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important; /* Subtle shadow */ | |||
border-radius: 4px; /* | border-radius: 4px !important; | ||
padding: 20px 25px !important; | |||
margin-left: /* Adjust based on your sidebar width, e.g., */ 11.5em !important; /* Or use CSS Grid/Flex for layout */ | |||
} | |||
.madness-theme #content.mw-body-primary { /* Vector 2022 content area */ | |||
margin-left: 0 !important; /* Vector 2022 handles its own layout */ | |||
} | } | ||
/* Page Title */ | /* Page Title */ | ||
#firstHeading, . | .madness-theme #firstHeading, | ||
color: # | .madness-theme .mw-first-heading { | ||
border-bottom: 1px solid # | color: #ffffff !important; /* Pure white for main title for emphasis */ | ||
padding-bottom: 0. | text-shadow: none !important; | ||
margin-bottom: 0. | border-bottom: 1px solid #40444b !important; | ||
padding-bottom: 0.4em !important; | |||
margin-bottom: 0.7em !important; | |||
} | |||
/* Content Text */ | |||
.madness-theme #mw-content-text { | |||
color: #e0e1e2 !important; | |||
} | |||
.madness-theme #mw-content-text p { | |||
line-height: 1.6 !important; | |||
} | |||
/* Other Headings in content */ | |||
.madness-theme #mw-content-text h2, | |||
.madness-theme #mw-content-text h3, | |||
.madness-theme #mw-content-text h4, | |||
.madness-theme #mw-content-text h5, | |||
.madness-theme #mw-content-text h6 { | |||
color: #f0f1f2 !important; | |||
border-bottom-color: #40444b !important; | |||
} | } | ||
/* | /* --- Page Tabs (View, Edit, History, etc.) --- */ | ||
.madness-theme #p-views, | |||
color: # | .madness-theme #p-cactions { /* Vector-2022 and similar */ | ||
border- | /* Adjust positioning if needed */ | ||
} | |||
.madness-theme #p-views ul, | |||
.madness-theme #p-cactions ul { | |||
background-image: none !important; /* Remove any gradient */ | |||
border-bottom: 1px solid #40444b !important; | |||
padding-left: 10px !important; | |||
} | |||
.madness-theme #p-views ul li, | |||
.madness-theme #p-cactions ul li { | |||
background: none !important; | |||
border: none !important; | |||
margin-right: 2px !important; | |||
} | |||
.madness-theme #p-views ul li a, | |||
.madness-theme #p-cactions ul li a { | |||
background-color: #3a3d42 !important; | |||
border: 1px solid #40444b !important; | |||
border-bottom: none !important; | |||
color: #c8c9ca !important; | |||
text-shadow: none !important; | |||
padding: 0.6em 1.2em !important; | |||
border-radius: 4px 4px 0 0 !important; | |||
} | |||
.madness-theme #p-views ul li.selected a, | |||
.madness-theme #p-cactions ul li.selected a { | |||
background-color: #2c2f33 !important; /* Match content background */ | |||
border-color: #40444b !important; | |||
color: #ffffff !important; | |||
padding-bottom: calc(0.6em + 1px) !important; /* Overlap border */ | |||
} | |||
.madness-theme #p-views ul li a:hover, | |||
.madness-theme #p-cactions ul li a:hover { | |||
background-color: #4a4e54 !important; | |||
color: #ffffff !important; | |||
} | } | ||
/* --- | |||
/* --- Warning and Message Boxes --- */ | |||
background-color: # | .madness-theme .warningbox, | ||
color: # | .madness-theme .usermessage, | ||
border: 1px solid # | .madness-theme div.error, | ||
.madness-theme div.warning, | |||
border- | .madness-theme .mw-message-box { | ||
border-radius: 4px !important; | |||
text-shadow: none !important; | |||
padding: 12px 18px !important; | |||
box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important; | |||
} | |||
.madness-theme .mw-message-box-warning, .madness-theme .warningbox { | |||
background-color: #4d322f !important; /* Dark, muted red */ | |||
color: #f0e0e0 !important; | |||
border: 1px solid #804040 !important; | |||
} | |||
.madness-theme .mw-message-box-success { | |||
background-color: #2f4d3c !important; /* Dark, muted green */ | |||
color: #e0f0e0 !important; | |||
border: 1px solid #408050 !important; | |||
} | |||
.madness-theme .mw-message-box-info { | |||
background-color: #2f3c4d !important; /* Dark, muted blue */ | |||
color: #e0e0f0 !important; | |||
border: 1px solid #405080 !important; | |||
} | } | ||
background-color: # | /* --- Code Editor (AceEditor for JS/CSS pages) --- */ | ||
color: # | .madness-theme .ace_editor { | ||
background-color: #1c1e20 !important; /* Even darker for code */ | |||
color: #d4d4d4 !important; | |||
border: 1px solid #3a3d42 !important; | |||
border-radius: 3px; | |||
} | } | ||
.madness-theme .ace_gutter { background: #25272a !important; color: #858585 !important; } | |||
.madness-theme .ace_gutter-active-line { background-color: #33363a !important; } | |||
.madness-theme .ace_marker-layer .ace_active-line { background: #2a2d30 !important; } | |||
.madness-theme .ace_cursor { color: #f0f0f0 !important; } | |||
.madness-theme .ace_keyword { color: #569cd6 !important; } | |||
.madness-theme .ace_string { color: #ce9178 !important; } | |||
.madness-theme .ace_comment { color: #6A9955 !important; font-style: italic; } | |||
.madness-theme .ace_variable { color: #9cdcfe !important; } | |||
.madness-theme .ace_numeric { color: #b5cea8 !important; } | |||
.madness-theme .ace_function { color: #dcdcaa !important; } | |||
.madness-theme .ace_tag { color: #569cd6 !important; } | |||
.madness-theme .ace_attr-name { color: #9cdcfe !important; } | |||
.madness-theme .ace_attr-value { color: #ce9178 !important; } | |||
# | /* --- Standard MediaWiki UI Buttons --- */ | ||
# | .madness-theme .mw-ui-button { | ||
background-color: # | background-color: #4a4e54 !important; | ||
color: # | color: #e0e1e2 !important; | ||
border: | border: 1px solid #40444b !important; | ||
border- | border-radius: 3px !important; | ||
text-shadow: none !important; | |||
padding: 6px 12px !important; | |||
} | |||
.madness-theme .mw-ui-button:hover { | |||
background-color: #5a5e64 !important; | |||
border-color: #50545b !important; | |||
} | |||
.madness-theme .mw-ui-button.mw-ui-progressive { /* Save page, etc. */ | |||
background-color: #28a745 !important; /* Fandom-like green */ | |||
border-color: #1e7e34 !important; | |||
color: #ffffff !important; | |||
} | |||
.madness-theme .mw-ui-button.mw-ui-progressive:hover { | |||
background-color: #218838 !important; | |||
border-color: #19692c !important; | |||
} | |||
.madness-theme .mw-ui-button.mw-ui-destructive { /* Delete, etc. */ | |||
background-color: #dc3545 !important; /* Fandom-like red */ | |||
border-color: #bd2130 !important; | |||
color: #ffffff !important; | |||
} | |||
.madness-theme .mw-ui-button.mw-ui-destructive:hover { | |||
background-color: #c82333 !important; | |||
border-color: #a51b28 !important; | |||
} | } | ||
/* --- Tables --- */ | /* --- Tables --- */ | ||
table | .madness-theme table.wikitable { | ||
background-color: # | background-color: #3a3d42 !important; | ||
border: 1px solid # | border: 1px solid #40444b !important; | ||
color: # | color: #c8c9ca !important; | ||
border-collapse: collapse !important; /* Cleaner look */ | |||
} | } | ||
table.wikitable > tr > th, table.wikitable > * > tr > | .madness-theme table.wikitable > tr > th, | ||
background-color: # | .madness-theme table.wikitable > * > tr > th { | ||
color: # | background-color: #4a4e54 !important; | ||
border: 1px solid #40444b !important; | |||
color: #e0e1e2 !important; | |||
padding: 8px 10px !important; | |||
} | } | ||
table.wikitable > tr > td, table.wikitable > * > tr > | .madness-theme table.wikitable > tr > td, | ||
border: 1px solid # | .madness-theme table.wikitable > * > tr > td { | ||
border: 1px solid #40444b !important; | |||
padding: 8px 10px !important; | |||
} | } | ||
/* --- | /* --- Footer --- */ | ||
.madness-theme #footer { | |||
background-color: #282b30 !important; | |||
background-color: # | border-top: 1px solid #40444b !important; | ||
padding: 15px !important; | |||
color: #a8a9aa !important; | |||
} | |||
.madness-theme #footer ul li { | |||
color: #a8a9aa !important; /* Ensure list items in footer are styled */ | |||
} | |||
.madness-theme #footer ul li a { | |||
color: #61dafb !important; /* Footer links */ | |||
} | } | ||
.madness-theme #footer ul li a:hover { | |||
color: #82e4ff !important; | |||
} | } | ||
/* | /* --- Other common elements --- */ | ||
.madness-theme hr { | |||
border-top-color: #40444b !important; | |||
border-bottom: none !important; | |||
border: | |||
} | } | ||
.madness-theme input[type="text"], | |||
. | .madness-theme input[type="password"], | ||
.madness-theme input[type="email"], | |||
border: | .madness-theme input[type="search"], | ||
.madness-theme textarea { | |||
background-color: #3a3d42 !important; | |||
color: #e0e1e2 !important; | |||
border: 1px solid #40444b !important; | |||
border-radius: 3px !important; | |||
padding: 6px 10px !important; | |||
} | } | ||
.madness-theme input[type="text"]:focus, | |||
.madness-theme input[type="password"]:focus, | |||
.madness-theme input[type="email"]:focus, | |||
.madness-theme input[type="search"]:focus, | |||
.madness-theme textarea:focus { | |||
border-color: #61dafb !important; | |||
box-shadow: 0 0 0 2px rgba(97, 218, 251, 0.3) !important; | |||
} | } | ||
/* | /* Adjustments for specific skins if needed */ | ||
/* Example for Vector-2022 collapsible sidebar */ | |||
.madness-theme .vector-feature-sidebar-pinned-container .vector-sticky-header { | |||
border- | background-color: #282b30 !important; | ||
border-bottom: 1px solid #40444b !important; | |||
} | } |