MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
AdminKursed (talk | contribs) No edit summary |
AdminKursed (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
/* | /* =========================== | ||
ConquestPS – Main Page styles | |||
=========================== */ | |||
/* | /* Hero */ | ||
.mainpage-hero { | .mainpage-hero { | ||
text-align: center; | text-align: center; | ||
margin: | margin: 10px auto 24px; | ||
} | } | ||
.mainpage-title { | .mainpage-title { | ||
font-size: | font-size: 28px; | ||
font-weight: 800; | font-weight: 800; | ||
letter-spacing: .3px; | |||
letter-spacing: | margin-top: 8px; | ||
margin-top: | |||
} | } | ||
.mainpage-sub { | .mainpage-sub { | ||
opacity: | opacity: .8; | ||
margin-top: | margin-top: 4px; | ||
} | } | ||
/* | /* Grid */ | ||
.mainpage-grid { | .mainpage-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(4, minmax(0, 1fr)); | grid-template-columns: repeat(4, minmax(0, 1fr)); | ||
gap: | gap: 16px; | ||
max-width: 1100px; | max-width: 1100px; | ||
margin: 24px auto; | margin: 24px auto; | ||
padding: 0 12px; | padding: 0 12px; | ||
} | } | ||
@media (max-width: 1000px) { | @media (max-width: 1000px) { | ||
.mainpage-grid { | .mainpage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } | ||
} | } | ||
@media (max-width: 560px) { | @media (max-width: 560px) { | ||
.mainpage-grid { | .mainpage-grid { grid-template-columns: 1fr; } | ||
} | } | ||
/* | /* Cards */ | ||
.mainpage-card { | .mainpage-card { | ||
background: rgba(255, 214, 90, | background: rgba(255,214,90,.06); | ||
border: 1px solid rgba(255, 214, 90, | border: 1px solid rgba(255,214,90,.18); | ||
border-radius: 14px; | border-radius: 14px; | ||
transition: transform | padding: 16px 18px; | ||
transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease; | |||
} | } | ||
.mainpage-card:hover { | .mainpage-card:hover { | ||
background: rgba(255, 214, 90, | background: rgba(255,214,90,.12); | ||
border-color: rgba(255, 214, 90, | border-color: rgba(255,214,90,.35); | ||
box-shadow: 0 6px 18px rgba(0, 0, 0, | box-shadow: 0 6px 18px rgba(0,0,0,.35); | ||
transform: translateY(-2px); | transform: translateY(-2px); | ||
} | } | ||
/* Make the whole card | /* Make the whole card a link */ | ||
.mainpage-card-link { | .mainpage-card-link { | ||
display: block; | display: block; | ||
color: inherit !important; | |||
text-decoration: none !important; | text-decoration: none !important; | ||
} | } | ||
/* Card text */ | |||
.mainpage-card-title { | .mainpage-card-title { | ||
font-weight: 700; | font-weight: 700; | ||
margin-bottom: 6px; | margin-bottom: 6px; | ||
color: #ffd65a; | color: #ffd65a; | ||
} | |||
.mainpage-card-title a { | |||
text-decoration: none !important; | |||
color: #ffd65a !important; | |||
display: inline-block; | |||
} | |||
.mainpage-card-title a:hover, | |||
.mainpage-card-link:hover .mainpage-card-title { | |||
text-shadow: 0 0 6px rgba(255, 214, 90, 0.8); | |||
} | } | ||
.mainpage-card-desc { | .mainpage-card-desc { | ||
opacity: | opacity: .85; | ||
line-height: 1.45; | line-height: 1.45; | ||
} | } | ||
/* | /* Updates section */ | ||
.mainpage-updates { | .mainpage-updates { | ||
max-width: 900px; | max-width: 900px; | ||
margin: | margin: 28px auto 10px; | ||
padding: 0 12px; | padding: 0 12px; | ||
} | } | ||
. | /* ======= Footer polish (optional) ======= */ | ||
.citizen-footer__poweredby { | |||
display: none !important; /* hide "Powered by MediaWiki" button */ | |||
} | } | ||
/* ====== | /* | ||
. | === Debug helper (temporary) === | ||
If you *still* see scrollable code boxes on the Main Page, | |||
it means the page is being parsed as <pre> due to leading spaces. | |||
You can uncomment the block below to “hide” that look while you fix | |||
the indentation, but don’t keep it long-term. | |||
.mw-parser-output pre { | |||
background: transparent; | background: transparent; | ||
border: 0; | |||
padding: 0; | |||
overflow: visible; | |||
white-space: normal; | |||
font-family: inherit; | |||
color: inherit; | |||
} | } | ||
*/ | |||
Revision as of 07:40, 12 November 2025
/* ===========================
ConquestPS – Main Page styles
=========================== */
/* Hero */
.mainpage-hero {
text-align: center;
margin: 10px auto 24px;
}
.mainpage-title {
font-size: 28px;
font-weight: 800;
letter-spacing: .3px;
margin-top: 8px;
}
.mainpage-sub {
opacity: .8;
margin-top: 4px;
}
/* Grid */
.mainpage-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 16px;
max-width: 1100px;
margin: 24px auto;
padding: 0 12px;
}
@media (max-width: 1000px) {
.mainpage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
.mainpage-grid { grid-template-columns: 1fr; }
}
/* Cards */
.mainpage-card {
background: rgba(255,214,90,.06);
border: 1px solid rgba(255,214,90,.18);
border-radius: 14px;
padding: 16px 18px;
transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.mainpage-card:hover {
background: rgba(255,214,90,.12);
border-color: rgba(255,214,90,.35);
box-shadow: 0 6px 18px rgba(0,0,0,.35);
transform: translateY(-2px);
}
/* Make the whole card a link */
.mainpage-card-link {
display: block;
color: inherit !important;
text-decoration: none !important;
}
/* Card text */
.mainpage-card-title {
font-weight: 700;
margin-bottom: 6px;
color: #ffd65a;
}
.mainpage-card-title a {
text-decoration: none !important;
color: #ffd65a !important;
display: inline-block;
}
.mainpage-card-title a:hover,
.mainpage-card-link:hover .mainpage-card-title {
text-shadow: 0 0 6px rgba(255, 214, 90, 0.8);
}
.mainpage-card-desc {
opacity: .85;
line-height: 1.45;
}
/* Updates section */
.mainpage-updates {
max-width: 900px;
margin: 28px auto 10px;
padding: 0 12px;
}
/* ======= Footer polish (optional) ======= */
.citizen-footer__poweredby {
display: none !important; /* hide "Powered by MediaWiki" button */
}
/*
=== Debug helper (temporary) ===
If you *still* see scrollable code boxes on the Main Page,
it means the page is being parsed as <pre> due to leading spaces.
You can uncomment the block below to “hide” that look while you fix
the indentation, but don’t keep it long-term.
.mw-parser-output pre {
background: transparent;
border: 0;
padding: 0;
overflow: visible;
white-space: normal;
font-family: inherit;
color: inherit;
}
*/