MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 500: | Line 500: | ||
#siteNotice .icelist-notice-table td { | #siteNotice .icelist-notice-table td { | ||
border: none !important; | border: none !important; | ||
} | |||
/* Hide empty siteNotice for logged-in users */ | |||
#siteNotice:empty { | |||
display: none; | |||
} | } | ||
Revision as of 21:05, 20 December 2025
/* CSS placed here will be applied to all skins */
/* Hide username, talk link, and notification bell in the personal toolbar */
#pt-userpage,
#pt-mytalk,
.mw-echo-notifications-badge,
.mw-echo-notifications,
#pt-notifications-alert,
#pt-notifications-notice {
display: none !important;
}
/* HOMEPAGE LAYOUT FIX */
.icelist-homepage-columns {
display: flex;
flex-direction: row;
align-items: flex-start;
justify-content: space-between;
gap: 1.5em;
width: 100%;
}
/* Each column */
.icelist-homepage-column {
flex: 1;
min-width: 320px;
max-width: 100%;
}
/* Mobile / tablet breakpoint */
@media (max-width: 900px) {
.icelist-homepage-columns {
flex-direction: column;
}
}
/* Hide "Create pages" portlet by default */
#p-createpages {
display: none;
}
.page-Main_Page .mw-first-heading {
display: none;
}
/* Tighten spacing between blocks on Main Page */
.page-Main_Page .icelist-homepage-column > * {
margin-top: 0;
}
/* If Featured_* outputs a wrapper with margins, this kills it */
.page-Main_Page .icelist-homepage-column .ic-card {
margin-bottom: 6px;
}
/* Extra clamp: remove stray paragraph margins that appear between templates */
.page-Main_Page .icelist-homepage-column p:empty {
display: none;
}
.page-Main_Page .icelist-homepage-column > .ic-card + .ic-card {
margin-top: 0;
}
.icelist-homepage-columns {
gap: 0.6em;
}
/* Main Page: remove mystery gap between Featured agent + Featured incident */
.page-Main_Page .icelist-homepage-column .ic-card + .ic-card {
margin-top: 0 !important;
}
/* If the template output is wrapped in paragraphs, MediaWiki adds margins */
.page-Main_Page .icelist-homepage-column p {
margin-block-start: 0.5em;
margin-block-end: 0.5em;
}
/* But specifically remove margins for any paragraph directly between cards */
.page-Main_Page .icelist-homepage-column .ic-card + p,
.page-Main_Page .icelist-homepage-column p + .ic-card {
margin-top: 0 !important;
margin-bottom: 0 !important;
}
.page-Main_Page .icelist-homepage-column br {
display: none;
}
/* Reduce space after top templates (infobox / agent page) */
.mw-parser-output > table.infobox,
.mw-parser-output > div.infobox {
margin-bottom: 0.6em;
}
/* Reduce space before first heading */
.mw-parser-output > h1,
.mw-parser-output > h2:first-of-type {
margin-top: 0.6em;
}
/* General infobox tightening */
.ic-infobox td,
.ic-infobox th {
padding: 4px 6px;
vertical-align: top;
}
/* Kill paragraph spacing inside infobox */
.ic-infobox p {
margin: 0.2em 0;
}
/* Prevent empty cells from creating space */
.ic-infobox td:empty,
.ic-infobox th:empty {
display: none;
}
/* Compact status / verification rows */
.ic-infobox .verification,
.ic-infobox .status {
display: inline-block;
margin: 0;
padding: 2px 6px;
font-size: 85%;
}
.ic-infobox {
background: #fafafa;
border: 1px solid #d9d9d9;
border-radius: 4px;
padding: 6px;
}
.ic-infobox img {
display: block;
margin-bottom: 6px;
border-radius: 3px;
}
.ic-infobox img {
background: #fff;
}
.ic-infobox th {
font-weight: 600;
color: #444;
background: transparent;
padding-right: 0.6em;
}
.ic-infobox td {
padding-left: 0;
}
/* Dock verification block to the infobox (Agent pages) */
.ic-infobox-wrap {
display: inline-block; /* makes verification match infobox width */
}
.ic-infobox-wrap .ic-verification-wrap {
margin-top: 6px;
}
/* If Verification outputs a paragraph/div with margins, kill them inside the dock */
.ic-infobox-wrap .ic-verification-wrap > * {
margin: 0;
}
.ic-infobox th,
.ic-infobox td {
padding: 4px 6px;
vertical-align: top;
}
.ic-infobox .ic-verification,
.infobox .ic-verification {
display: inline-block;
margin: 0;
}
.ic-agent-addinfo{
float: right;
clear: right;
width: 260px;
margin: -0.6em 0 1em 1em; /* tucks it closer to the infobox */
font-size: 90%;
background: #fafafa;
border: 1px solid #d9d9d9;
border-radius: 4px;
padding: 6px 8px;
box-sizing: border-box;
}
.ic-agent-addinfo a{
font-weight: 600;
text-decoration: none;
}
.ic-agent-addinfo a:hover{
text-decoration: underline;
}
.ic-verify{
font-weight: 700;
padding: 2px 6px;
border-radius: 4px;
display: inline-block;
border: 1px solid #d9d9d9;
background: #fafafa;
font-size: 90%;
}
/* Optional: color cues */
.ic-verify--verified{ border-color:#b7d7c2; background:#f4fbf6; }
.ic-verify--unverified{ border-color:#e0a1a1; background:#fff6f6; }
/* Verification display rules */
.ic-verify-inline { display: none; } /* default: hide inline label */
.ic-verify-banner { display: block; } /* default: show banner */
/* Inside agent infobox: hide banner, show inline */
.ic-infobox .ic-verify-banner { display: none; }
.ic-infobox .ic-verify-inline {
display: inline-block;
padding: 0.2em 0.5em;
border: 1px solid #ccc;
background: #fdfdfd;
font-size: 92%;
}
/* Optional: status styling via attribute selectors */
.ic-verify-inline[data-status="Verified"],
.ic-verify-banner[data-status="Verified"] {
border-color: #b7d7c2;
background: #f4fbf6;
}
.ic-verify-inline[data-status="Partially Verified"],
.ic-verify-banner[data-status="Partially Verified"] {
border-color: #e0d3a1;
background: #fffbe6;
}
.ic-verify-inline[data-status="Unverified"],
.ic-verify-banner[data-status="Unverified"] {
border-color: #e0a1a1;
background: #fff6f6;
}
/* ICE List mobile-only navigation */
.ic-mobile-nav {
display: none !important;
margin: 1em 0;
padding: 1em;
background: #f8f9fa;
border: 1px solid #ddd;
border-radius: 6px;
font-size: 1.05em;
}
/* Show ONLY on Minerva (mobile view) */
.skin-minerva .ic-mobile-nav {
display: block !important;
}
.ic-mobile-nav ul {
list-style: none;
padding-left: 0;
}
.ic-mobile-nav li {
margin: 0.4em 0;
}
.ic-mobile-nav a {
display: block;
padding: 0.5em 0.6em;
background: #ffffff;
border: 1px solid #ddd;
border-radius: 4px;
text-decoration: none;
font-weight: 500;
}
#ca-history { display: none !important; }
.ic-infobox {
float: right;
margin: 0 0 1em 1em;
clear: right;
}
/* Force infobox behavior for our company infobox */
.mw-parser-output table.ic-infobox {
float: right;
clear: right;
width: 22em;
max-width: 100%;
margin: 0 0 1em 1em;
}
/* Keep it from becoming full-width */
.mw-parser-output table.ic-infobox {
display: table;
}
/* Make sure cells behave nicely */
.mw-parser-output table.ic-infobox th,
.mw-parser-output table.ic-infobox td {
vertical-align: top;
}
/* === ICE List Site Notice (Stable, No JS Dependency) === */
#siteNotice {
background: #f2f2f2;
border-bottom: 1px solid #d0d0d0;
padding: 20px 24px;
font-size: 17px;
line-height: 1.5;
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
}
/* Headline emphasis */
#siteNotice strong {
font-size: 18px;
font-weight: 700;
}
/* Donate button styling (wikitext link) */
#siteNotice a {
display: inline-block;
margin-left: 12px;
padding: 8px 16px;
background: #e03a2d;
color: #fff !important;
text-decoration: none;
border-radius: 6px;
font-weight: 600;
}
#siteNotice a:hover {
background: #c83227;
}
/* Mobile adjustments */
@media (max-width: 720px) {
#siteNotice {
padding: 16px 14px;
font-size: 16px;
}
#siteNotice a {
display: block;
margin: 12px auto 0;
width: fit-content;
}
}
/* Close button for ICE List notice */
.icelist-notice-close {
position: absolute;
top: 10px;
right: 14px;
background: none;
border: none;
font-size: 22px;
font-weight: bold;
cursor: pointer;
color: #666;
}
.icelist-notice-close:hover {
color: #000;
}
/* Left text block */
#siteNotice > *:first-child {
flex: 1;
text-align: left;
}
/* Donate button on the right */
#siteNotice a {
flex-shrink: 0;
margin-left: 20px;
}
@media (max-width: 720px) {
#siteNotice {
flex-direction: column;
align-items: flex-start;
gap: 12px;
}
#siteNotice a {
margin-left: 0;
align-self: center;
}
}
/* Layout siteNotice as two columns: text left, CTA right */
#siteNotice {
display: flex;
align-items: center;
gap: 20px;
}
/* Let text take available space */
#siteNotice > *:not(a) {
flex: 1 1 auto;
}
/* Keep donate button fixed on the right */
#siteNotice a {
flex: 0 0 auto;
white-space: nowrap;
}
/* === FINAL OVERRIDE: ICE List siteNotice layout === */
/* This block intentionally overrides all previous #siteNotice rules */
#siteNotice {
display: flex !important;
align-items: center !important;
justify-content: space-between !important;
gap: 24px !important;
}
/* Text (everything except Donate + X) */
#siteNotice > :not(a):not(.icelist-notice-close) {
flex: 1 1 auto !important;
}
/* Donate button */
#siteNotice a {
flex: 0 0 auto !important;
margin-left: 24px !important;
white-space: nowrap !important;
}
/* === FINAL FIX: siteNotice layout using CSS Grid === */
#siteNotice {
display: grid !important;
grid-template-columns: 1fr auto;
align-items: center;
column-gap: 24px;
}
/* Ensure donate button stays in the right column */
#siteNotice a {
grid-column: 2;
justify-self: end;
white-space: nowrap;
}
/* Close button stays top-right */
.icelist-notice-close {
position: absolute;
top: 10px;
right: 14px;
}
/* ICE List notice table */
.icelist-notice-table {
width: 100%;
background: #f3f3f3;
border-bottom: 1px solid #d0d0d0;
padding: 12px 16px;
border-collapse: collapse;
}
.icelist-notice-table td {
vertical-align: middle;
font-size: 16px;
line-height: 1.4;
}
.icelist-notice-table td:last-child a {
background: #e5392d;
color: #fff !important;
padding: 8px 16px;
border-radius: 6px;
font-weight: 600;
text-decoration: none;
white-space: nowrap;
}
.icelist-notice-table td:last-child a:hover {
background: #cc2f25;
}
/* Remove internal separator line in site notice table */
#siteNotice .icelist-notice-table,
#siteNotice .icelist-notice-table td {
border: none !important;
}
/* Hide empty siteNotice for logged-in users */
#siteNotice:empty {
display: none;
}