MediaWiki:Common.css
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Hides the default MediaWiki login link in the top personal tools bar */
#pt-login {
display: none !important;
}
/* =========================================
EARTHMC HOMEPAGE
Shared layout and theme
========================================= */
.emc-home {
font-family: system-ui, -apple-system, "Segoe UI",
Roboto, Helvetica, Arial, sans-serif;
color: #1f2937;
line-height: 1.6;
}
.emc-home *,
.emc-home *::before,
.emc-home *::after {
box-sizing: border-box;
}
/* Main page layout */
.emc-layout {
display: flex;
flex-wrap: wrap;
align-items: stretch;
gap: 20px;
margin: 10px 0;
}
.emc-welcome,
.emc-editing {
flex: 1 1 380px;
min-width: 0;
}
.emc-info,
.emc-categories {
flex: 2 1 560px;
min-width: 0;
}
/* Shared panels */
.emc-panel {
padding: 18px 16px;
border: 1px solid #e2e8f0;
border-radius: 16px;
background: #fff;
box-shadow: 0 4px 16px rgba(31, 41, 55, .06);
}
/* Welcome panel */
.emc-welcome {
background: linear-gradient(
160deg, #fff 0%, #eef3fb 55%, #d9e6f7 100%
);
border-color: #dbe4f2;
padding: 22px 20px;
text-align: center;
}
.emc-welcome-content p {
margin: 6px auto;
color: #334155;
font-size: .98rem;
}
.emc-logo {
margin: 0 auto 6px;
}
.emc-welcome-title {
margin: 0 0 8px;
padding: 0;
border: 0;
color: #345fc2;
font-size: 1.5rem;
font-weight: 800;
line-height: 1.25;
}
.emc-command {
display: inline-block;
margin: 2px 3px;
padding: 3px 10px;
border: 1px solid #c7d6ef;
border-radius: 999px;
background: #fff;
color: #345fc2;
font-size: .8rem;
font-weight: 600;
}
/* Shared buttons */
.emc-welcome-actions,
.emc-quick-links,
.emc-footer-links {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 8px;
}
.emc-welcome-actions {
margin-top: 12px;
}
.emc-quick-links {
margin-top: 16px;
}
.emc-button {
display: inline-block;
padding: 8px 18px;
border: 1px solid #c7d6ef;
border-radius: 8px;
background: #fff;
color: #345fc2;
font-size: .9rem;
font-weight: 600;
text-align: center;
text-decoration: none;
box-shadow: 0 2px 5px rgba(0, 0, 0, .05);
}
.emc-button-primary {
border-color: #345fc2;
background: linear-gradient(90deg, #345fc2, #22418c);
color: #fff;
}
.emc-button-small {
padding: 6px 12px;
border-color: #e2e8f0;
font-size: .85rem;
}
/* Section headings */
.emc-section-heading {
margin: 0 0 14px;
padding: 11px 18px;
border-radius: 10px;
background: linear-gradient(90deg, #345fc2, #22418c);
color: #fff;
text-align: center;
box-shadow: 0 5px 16px rgba(52, 95, 194, .16);
}
.emc-section-heading h2 {
margin: 0;
padding: 0;
border: 0;
color: #fff;
font-size: 1.15rem;
font-weight: 700;
}
.emc-section-heading p {
margin: 2px 0 0;
color: #dbe6f7;
font-size: .86rem;
}
/* Navigation card grid */
.emc-card-grid {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: stretch;
gap: 12px;
text-align: center;
}
.emc-card {
flex: 0 1 180px;
min-width: 0;
min-height: 150px;
padding: 16px 10px;
border: 1px solid #e2e8f0;
border-top: 3px solid #345fc2;
border-radius: 10px;
background: #fff;
box-shadow: 0 3px 12px rgba(31, 41, 55, .05);
}
.emc-card-image {
height: 100px;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.emc-card-image img {
max-height: 100px;
max-width: 100%;
width: auto;
object-fit: contain;
}
.emc-card-title {
margin: 10px 0 0;
color: #1f2937;
font-size: .9rem;
font-weight: 700;
}
/* Editing panel */
.emc-editing-content {
text-align: center;
}
.emc-editing-content p {
margin: 0 0 10px;
color: #334155;
font-size: .95rem;
}
.emc-create-page {
margin: 12px 0;
}
.emc-divider {
margin: 20px 0;
border: 0;
border-top: 1px solid #e2e8f0;
}
.emc-info-list {
margin: 0;
padding-left: 22px;
color: #334155;
font-size: .92rem;
}
.emc-info-list li {
margin: 7px 0;
}
/* Server selector */
.emc-category-intro {
margin: 0 0 10px;
color: #334155;
font-size: .9rem;
text-align: center;
}
.emc-server-tabs {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 6px;
margin: 12px 0;
}
.emc-server-tab {
padding: 7px 18px;
border: 1px solid #c7d6ef;
border-radius: 999px;
background: #fff;
color: #345fc2;
font: inherit;
font-size: .92rem;
font-weight: 600;
cursor: pointer;
}
.emc-server-tab:hover,
.emc-server-tab:focus-visible {
border-color: #345fc2;
outline-offset: 2px;
}
.emc-server-tab-active {
border-color: #345fc2;
background: linear-gradient(90deg, #345fc2, #22418c);
color: #fff;
}
.emc-server-description {
margin: 4px 0 14px;
color: #5b6472;
font-size: .88rem;
text-align: center;
}
.emc-server-panel[hidden] {
display: none !important;
}
/* Footer */
.emc-footer-links {
margin: 16px 0 0;
}
.emc-footer-button {
white-space: nowrap;
border-color: #d7dce4;
font-size: .88rem;
}
/* Responsive design */
@media (max-width: 600px) {
.emc-layout {
gap: 12px;
}
.emc-welcome,
.emc-editing,
.emc-info,
.emc-categories {
flex: 1 1 100%;
}
.emc-card {
flex-basis: calc(50% - 6px);
}
.emc-welcome-title {
font-size: 1.3rem;
}
.emc-server-tab {
padding: 7px 13px;
}
}