MediaWiki:Common.css: Difference between revisions
CaptainChris (talk | contribs) No edit summary Tag: Reverted |
CaptainChris (talk | contribs) No edit summary Tag: Reverted |
||
| Line 48: | Line 48: | ||
} | } | ||
/* 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; | |||
} | } | ||
| Line 88: | Line 88: | ||
.wp-contrib-cta__icon, | .wp-contrib-cta__icon, | ||
.wp-contrib-cta__arrow { | .wp-contrib-cta__arrow { | ||
width: 1.5em; | width: 1.5em; | ||
height: 1.5em; | height: 1.5em; | ||
| Line 137: | Line 135: | ||
position: relative; | position: relative; | ||
float: right; | float: right; | ||
margin: -2em 0 1em 1em; | margin: -2em 0 1em 1em; | ||
width: 300px; | width: 300px; | ||
font-size: 90%; | font-size: 90%; | ||
background: #ffffff; | background: #ffffff; | ||
border: 1px solid #b8d4f1; | border: 1px solid #b8d4f1; | ||
padding: | padding: 0; | ||
overflow: hidden; | overflow: hidden; | ||
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; | clear: none !important; | ||
z-index: 1; | z-index: 1; | ||
height: auto !important; | |||
} | } | ||
| Line 167: | Line 166: | ||
} | } | ||
.mw-body-content > .infobox { | .mw-body-content > .infobox { | ||
margin-top: -2em !important; | margin-top: -2em !important; | ||
| Line 179: | Line 177: | ||
/* --- title --- */ | /* --- title --- */ | ||
.infobox-title { | .infobox-title { | ||
background: #3b82f6; | background: #3b82f6; | ||
color: #ffffff; | color: #ffffff; | ||
padding | padding: 4px 6px; | ||
border-radius: 2px 2px 0 0; | border-radius: 2px 2px 0 0; | ||
text-align: center; | |||
font-weight: bold; | font-weight: bold; | ||
font-size: 120%; | font-size: 120%; | ||
margin: 0; | |||
line-height: 1.2; | |||
} | } | ||
| Line 203: | Line 192: | ||
text-align: center; | text-align: center; | ||
padding: 4px; | padding: 4px; | ||
margin: 0; | |||
} | } | ||
.infobox-imagearea > div:not(:first-child) { | .infobox-imagearea > div:not(:first-child) { | ||
padding-top | padding-top: 0.5em; | ||
. | |||
} | } | ||
| Line 291: | Line 206: | ||
border-collapse: collapse !important; | border-collapse: collapse !important; | ||
border-spacing: 0; | border-spacing: 0; | ||
height: auto; | |||
} | |||
.infobox-rows tr { | |||
height: auto; | |||
} | } | ||
.infobox-rows tr:nth-child(2n) { | .infobox-rows tr:nth-child(2n) { | ||
background-color: #f0f7ff; | background-color: #f0f7ff; | ||
} | } | ||
| Line 301: | Line 221: | ||
white-space: nowrap; | white-space: nowrap; | ||
color: #0d47a1; | color: #0d47a1; | ||
padding: 2px 4px; | |||
vertical-align: top; | |||
} | } | ||
.infobox-rows > tbody > tr > td { | |||
padding: 2px 4px; | |||
vertical-align: top; | |||
} | } | ||
| Line 322: | Line 236: | ||
background: #e8f2ff; | background: #e8f2ff; | ||
border-top: 1px solid #b8d4f1; | border-top: 1px solid #b8d4f1; | ||
padding: | padding: 3px; | ||
font-style: italic; | font-style: italic; | ||
line-height: 1.2; | |||
} | } | ||
/* Hide empty paragraph after infobox */ | |||
/* Hide | |||
.mw-parser-output > .infobox + p:empty, | .mw-parser-output > .infobox + p:empty, | ||
.mw-parser-output > .infobox + p:has(> br:only-child) { | .mw-parser-output > .infobox + p:has(> br:only-child) { | ||