MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
CaptainChris (talk | contribs) No edit summary |
CaptainChris (talk | contribs) No edit summary |
||
| Line 136: | Line 136: | ||
.infobox { | .infobox { | ||
position: relative; | position: relative; | ||
float: right; | |||
margin: 0 0 1em 1em; | margin: 0 0 1em 1em; | ||
width: 300px; | width: 300px; | ||
font-size: 90%; | font-size: 90%; | ||
background: #ffffff; | background: #ffffff; | ||
border: 1px solid #b8d4f1; /* soft blue border */ | border: 1px solid #b8d4f1; /* soft blue border */ | ||
padding: 2px; | padding: 2px; | ||
overflow: auto | overflow: hidden; /* prevent layout shift, fixed from auto */ | ||
box-shadow: 0 1px 3px rgba(0, 50, 100, 0.1); | box-shadow: 0 1px 3px rgba(0, 50, 100, 0.1); | ||
border-radius: 4px; | border-radius: 4px; | ||
clear: none !important; /* ensure no vertical gap above article */ | |||
margin-top: 0 !important; /* prevent space above article */ | |||
} | } | ||
@media all and (max-width: 511px) { | @media all and (max-width: 511px) { | ||
.infobox { | .infobox { | ||
float: none; | float: none; | ||
margin | margin: 0 0 1em 0; | ||
width: auto; | width: auto; | ||
} | } | ||
} | } | ||
@media all and (max-width: 337px) { | @media all and (max-width: 337px) { | ||
.infobox { | .infobox { | ||
| Line 170: | Line 174: | ||
border-radius: 2px 2px 0 0; | border-radius: 2px 2px 0 0; | ||
} | } | ||
.infobox > .infobox-title { | .infobox > .infobox-title { | ||
font-weight: bold; | font-weight: bold; | ||
| Line 176: | Line 181: | ||
border: none; | border: none; | ||
} | } | ||
.infobox th + td > ul { | .infobox th + td > ul { | ||
list-style: none; | list-style: none; | ||
margin-left: unset; | margin-left: unset; | ||
} | } | ||
.infobox-imagearea { | .infobox-imagearea { | ||
text-align: center; | text-align: center; | ||
padding: 4px; | padding: 4px; | ||
} | } | ||
.infobox-imagearea > div:not(:first-child) { | .infobox-imagearea > div:not(:first-child) { | ||
padding-top: 1em; | padding-top: 1em; | ||
| Line 200: | Line 208: | ||
margin: 0; | margin: 0; | ||
} | } | ||
.infobox-imagearea ul.gallery, | .infobox-imagearea ul.gallery, | ||
.infobox-imagearea li.gallerybox, | .infobox-imagearea li.gallerybox, | ||
| Line 205: | Line 214: | ||
margin: 0 !important; | margin: 0 !important; | ||
} | } | ||
.infobox-imagearea li.gallerybox div.gallerytext { | .infobox-imagearea li.gallerybox div.gallerytext { | ||
font-weight: bold; | font-weight: bold; | ||
| Line 265: | Line 275: | ||
margin: 0 !important; | margin: 0 !important; | ||
width: 100% !important; | width: 100% !important; | ||
border-collapse: collapse !important; | border-collapse: collapse !important; | ||
border-spacing: 0; | |||
} | } | ||
.infobox-rows tr:nth-child(2n) { | .infobox-rows tr:nth-child(2n) { | ||
background-color: #f0f7ff; /* light blue alternating rows */ | background-color: #f0f7ff; /* light blue alternating rows */ | ||
} | } | ||
.infobox-rows > tbody > tr > th { | .infobox-rows > tbody > tr > th { | ||
text-align: left; | text-align: left; | ||
| Line 279: | Line 288: | ||
color: #0d47a1; | color: #0d47a1; | ||
} | } | ||
.mw-body-content .infobox-rows p { | .mw-body-content .infobox-rows p { | ||
margin: 0; | margin: 0; | ||
| Line 287: | Line 297: | ||
margin-top: -0.4em; | margin-top: -0.4em; | ||
} | } | ||
.infobox-rows dl:last-child { | .infobox-rows dl:last-child { | ||
margin-bottom: 0.2em; | margin-bottom: 0.2em; | ||
Revision as of 23:12, 9 November 2025
/* CSS placed here will be applied to all skins */
.mp-container {
display: flex;
align-items: flex-start;
gap: 20px;
box-sizing: border-box;
}
.mp-left {
flex: 1 1 auto;
min-width: 0;
}
/* Right sidebar */
.mp-right {
flex: 0 0 320px;
max-width: 100%;
box-sizing: border-box;
border-left: 1px solid #e0e0e0;
padding-left: 16px;
margin-left: 4px;
}
.mp-right > * {
width: 100%;
}
@media (max-width: 900px) {
.mp-container {
flex-direction: column;
}
.mp-right {
flex: none;
width: 100%;
border-left: 0;
border-top: 1px solid #e0e0e0;
padding-left: 0;
padding-top: 12px;
margin-left: 0;
margin-top: 12px;
}
}
.wp-contrib-cta {
display: flex;
justify-content: center;
margin: 1rem 0;
}
/* layout */
display: flex;
align-items: center;
justify-content: center;
gap: 0.75rem;
width: min(100%, 28rem);
padding: 0.9rem 1.2rem;
background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
color: #fff;
border-radius: 999px;
font-weight: 700;
font-size: clamp(14px, 2.8vw, 18px);
text-decoration: none;
box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35),
0 2px 6px rgba(0, 0, 0, 0.15);
border: 1px solid rgba(255,255,255,0.18);
transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}
.wp-contrib-cta__btn:hover {
transform: translateY(-1px);
box-shadow: 0 14px 30px rgba(37, 99, 235, 0.45),
0 4px 10px rgba(0, 0, 0, 0.18);
filter: brightness(1.03);
}
.wp-contrib-cta__btn:active {
transform: translateY(0);
box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35),
0 2px 6px rgba(0, 0, 0, 0.14);
}
.wp-contrib-cta__btn:focus-visible {
outline: 3px solid #a5b4fc; /* soft indigo focus ring */
outline-offset: 3px;
}
.wp-contrib-cta__icon,
.wp-contrib-cta__arrow {
/* fixed space so the label stays visually centered,
even with icons on both sides */
width: 1.5em;
height: 1.5em;
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 1.5em;
line-height: 1;
}
.wp-contrib-cta__text {
text-align: center;
flex: 0 1 auto;
line-height: 1.2;
}
@media (prefers-reduced-motion: no-preference) {
.wp-contrib-cta__btn:hover .wp-contrib-cta__arrow {
transform: translateX(2px);
transition: transform 120ms ease;
}
}
@media (prefers-color-scheme: dark) {
.wp-contrib-cta__btn {
border-color: rgba(255,255,255,0.22);
}
}
body.page-Main_Page #firstHeading,
body.page-Main_Page .firstHeading,
body.page-Main_Page h1.firstHeading {
display: none !important;
}
body.page-Main_Page #siteSub,
body.page-Main_Page .mw-body h1,
body.page-Main_Page #contentSub {
display: none !important;
margin: 0 !important;
padding: 0 !important;
border: none !important;
}
/* [[Template:Infobox]], [[Template:Infobox row]] */
.infobox {
position: relative;
float: right;
margin: 0 0 1em 1em;
width: 300px;
font-size: 90%;
background: #ffffff;
border: 1px solid #b8d4f1; /* soft blue border */
padding: 2px;
overflow: hidden; /* prevent layout shift, fixed from auto */
box-shadow: 0 1px 3px rgba(0, 50, 100, 0.1);
border-radius: 4px;
clear: none !important; /* ensure no vertical gap above article */
margin-top: 0 !important; /* prevent space above article */
}
@media all and (max-width: 511px) {
.infobox {
float: none;
margin: 0 0 1em 0;
width: auto;
}
}
@media all and (max-width: 337px) {
.infobox {
margin-left: -16px;
margin-right: -16px;
border-left: none;
border-right: none;
}
}
.infobox-title {
background: #3b82f6; /* bright medium blue */
color: #ffffff;
padding-top: 8px;
padding-bottom: 8px;
border-radius: 2px 2px 0 0;
}
.infobox > .infobox-title {
font-weight: bold;
text-align: center;
font-size: 120%;
border: none;
}
.infobox th + td > ul {
list-style: none;
margin-left: unset;
}
.infobox-imagearea {
text-align: center;
padding: 4px;
}
.infobox-imagearea > div:not(:first-child) {
padding-top: 1em;
}
/* horizontally center animated images */
.mw-body-content .infobox-imagearea .animated {
display: inline-flex;
align-items: center;
}
/* infobox gallery tweaks */
.infobox-imagearea li.gallerybox div.thumb {
background: none;
border: none;
margin: 0;
}
.infobox-imagearea ul.gallery,
.infobox-imagearea li.gallerybox,
.infobox-imagearea li.gallerybox div.thumb > div {
margin: 0 !important;
}
.infobox-imagearea li.gallerybox div.gallerytext {
font-weight: bold;
font-size: 100%;
padding: 0;
}
/* infobox tabber */
.infobox-imagearea .tabber .tabbertab,
.infobox-imagearea ul.tabbernav li a,
.infobox-imagearea ul.tabbernav li.tabberactive a {
background: none;
border: none;
}
.infobox-imagearea ul.tabbernav {
font: inherit;
font-size: 100%;
}
.infobox-imagearea ul.tabbernav li a:hover,
.infobox-imagearea ul.tabbernav li.tabberactive a:hover {
color: #0d47a1; /* deep blue hover */
}
.infobox-imagearea ul.tabbernav > li {
margin-bottom: 5px;
padding: 0;
}
.infobox-imagearea ul.tabbernav > li > a {
color: #2763c4; /* standard blue tab text */
padding-bottom: 1px;
display: block;
}
/* prevent tab text jump */
.infobox-imagearea ul.tabbernav > li > a::before {
display: block;
content: attr(alt);
font-weight: bold;
height: 0;
color: transparent;
overflow: hidden;
visibility: hidden;
}
.infobox-imagearea ul.tabbernav > li.tabberactive {
border: none;
}
.infobox-imagearea ul.tabbernav > li.tabberactive > a {
font-weight: bold;
border-bottom: 2px solid #3b82f6; /* blue active underline */
color: #1e40af; /* darker blue active text */
}
.infobox .infobox-rows {
display: table;
margin: 0 !important;
width: 100% !important;
border-collapse: collapse !important;
border-spacing: 0;
}
.infobox-rows tr:nth-child(2n) {
background-color: #f0f7ff; /* light blue alternating rows */
}
.infobox-rows > tbody > tr > th {
text-align: left;
white-space: nowrap;
color: #0d47a1;
}
.mw-body-content .infobox-rows p {
margin: 0;
}
/* merge adjacent dls */
.infobox-rows dl + dl {
margin-top: -0.4em;
}
.infobox-rows dl:last-child {
margin-bottom: 0.2em;
}
.infobox-footer {
text-align: center;
color: #0d47a1;
background: #e8f2ff;
border-top: 1px solid #b8d4f1;
padding: 4px;
font-style: italic;
}
/* hide debug JSON */
.history-json {
display: none;
}