MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (62 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap'); | |||
/ | |||
/***************************/ | |||
/* Define Infobox Style */ | |||
/***************************/ | |||
.infobox { | |||
border: 1px solid #aaaaaa; | |||
background-color: #f9f9f9; | |||
color: black; | |||
. | margin-bottom: 0.5em; | ||
margin-left: 1em; | |||
color: # | padding: 0.2em; | ||
float: right; | |||
clear: right; | |||
. | |||
margin-left: | |||
padding | |||
. | |||
} | } | ||
/* Modernize MediaWiki */ | |||
:root { | |||
--primary-color: #3b82f6; | |||
color: # | --text-color: #1e293b; | ||
--bg-color: #f8fafc; | |||
--border-color: #e2e8f0; | |||
--content-bg: #ffffff; | |||
--header-bg: #f1f5f9; | |||
} | } | ||
body { | |||
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif !important; | |||
font- | background-color: var(--bg-color) !important; | ||
color: var(--text-color) !important; | |||
} | } | ||
. | #content, .mw-body { | ||
font-family: 'Inter', sans-serif !important; | |||
border-radius: 8px !important; | |||
border: 1px solid var(--border-color) !important; | |||
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important; | |||
background-color: var(--content-bg) !important; | |||
margin-top: 1em !important; | |||
padding: 1.5em !important; | |||
} | } | ||
. | .portlet, .pBody { | ||
border-radius: 6px !important; | |||
} | } | ||
. | .pBody { | ||
background-color: var(--content-bg) !important; | |||
border: 1px solid var(--border-color) !important; | |||
} | } | ||
. | .wikitable { | ||
border-collapse: collapse !important; | |||
border-radius: 8px !important; | |||
overflow: hidden !important; | |||
border: 1px solid var(--border-color) !important; | |||
width: 100% !important; | |||
margin: 1em 0 !important; | |||
} | } | ||
. | .wikitable th { | ||
background-color: var(--primary-color) !important; | |||
color: #ffffff !important; | |||
padding: 12px 8px !important; | |||
text-align: left !important; | |||
} | } | ||
. | .wikitable td { | ||
padding: 10px 8px !important; | |||
border: 1px solid var(--border-color) !important; | |||
} | } | ||
.wikitable tr:nth-child(even) { | |||
background-color: #f1f5f9 !important; | |||
} | |||
a { | |||
color: var(--primary-color) !important; | |||
color: | |||
} | } | ||
Latest revision as of 16:13, 1 March 2026
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
/***************************/
/* Define Infobox Style */
/***************************/
.infobox {
border: 1px solid #aaaaaa;
background-color: #f9f9f9;
color: black;
margin-bottom: 0.5em;
margin-left: 1em;
padding: 0.2em;
float: right;
clear: right;
}
/* Modernize MediaWiki */
:root {
--primary-color: #3b82f6;
--text-color: #1e293b;
--bg-color: #f8fafc;
--border-color: #e2e8f0;
--content-bg: #ffffff;
--header-bg: #f1f5f9;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif !important;
background-color: var(--bg-color) !important;
color: var(--text-color) !important;
}
#content, .mw-body {
font-family: 'Inter', sans-serif !important;
border-radius: 8px !important;
border: 1px solid var(--border-color) !important;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
background-color: var(--content-bg) !important;
margin-top: 1em !important;
padding: 1.5em !important;
}
.portlet, .pBody {
border-radius: 6px !important;
}
.pBody {
background-color: var(--content-bg) !important;
border: 1px solid var(--border-color) !important;
}
.wikitable {
border-collapse: collapse !important;
border-radius: 8px !important;
overflow: hidden !important;
border: 1px solid var(--border-color) !important;
width: 100% !important;
margin: 1em 0 !important;
}
.wikitable th {
background-color: var(--primary-color) !important;
color: #ffffff !important;
padding: 12px 8px !important;
text-align: left !important;
}
.wikitable td {
padding: 10px 8px !important;
border: 1px solid var(--border-color) !important;
}
.wikitable tr:nth-child(even) {
background-color: #f1f5f9 !important;
}
a {
color: var(--primary-color) !important;
}