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: | ||
/* === | /* ===== Main Page ===== */ | ||
.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 of cards */ | ||
. | .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; } | |||
} | } | ||
. | /* Clickable card */ | ||
display: | .mainpage-card { | ||
display: block; | |||
background: rgba(255,214,90,.06); | |||
padding: | border: 1px solid rgba(255,214,90,.18); | ||
border-radius: 14px; | |||
padding: 16px 18px; | |||
text-decoration: none !important; | |||
color: inherit; | |||
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); | |||
} | } | ||
.mainpage-card-title { | |||
. | font-weight: 700; | ||
margin-bottom: 6px; | |||
color: #ffd65a; | color: #ffd65a; | ||
} | |||
.mainpage-card-desc { | |||
opacity: .85; | |||
line-height: 1.45; | |||
} | } | ||
. | /* Updates list */ | ||
.mainpage-updates { | |||
max-width: 900px; | |||
margin: 28px auto 10px; | |||
padding: 0 12px; | |||
} | |||
Revision as of 06:45, 12 November 2025
/* ===== Main Page ===== */
.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 of cards */
.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; }
}
/* Clickable card */
.mainpage-card {
display: block;
background: rgba(255,214,90,.06);
border: 1px solid rgba(255,214,90,.18);
border-radius: 14px;
padding: 16px 18px;
text-decoration: none !important;
color: inherit;
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);
}
.mainpage-card-title {
font-weight: 700;
margin-bottom: 6px;
color: #ffd65a;
}
.mainpage-card-desc {
opacity: .85;
line-height: 1.45;
}
/* Updates list */
.mainpage-updates {
max-width: 900px;
margin: 28px auto 10px;
padding: 0 12px;
}