MediaWiki:Common.css
MediaWiki interface page
More actions
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.
/* Main page portal tiles styling */
.main-header-portals {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
margin: 20px 0 40px 0;
}
.main-header-portal {
width: 150px;
background-color: #f8f8f8;
border: 1px solid #d0d0d0;
border-radius: 8px;
text-align: center;
padding: 15px 0;
transition: all 0.2s ease-in-out;
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.main-header-portal a {
font-size: 16px;
font-weight: bold;
color: #333;
text-decoration: none;
display: block;
width: 100%;
height: 100%;
}
/* Hover effect for tiles */
.main-header-portal:hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
border-color: #aaa;
}
/* Responsive behavior for mobile screens */
@media (max-width: 768px) {
.main-header-portals {
gap: 10px;
}
.main-header-portal {
width: 100px;
padding: 10px 0;
}
.main-header-portal a {
font-size: 14px;
}
.main-header-portals-desktop-text {
display: none;
}
}
/* Remove any top margin from infoboxes */
.infobox {
margin-top: 0 !important;
vertical-align: top;
}
/* Prevent paragraph wrapping around infobox */
.infobox + * {
clear: none;
}
/* =========================
TAB BAR CONTAINER
========================= */
.wt-tabs {
display: inline-flex;
flex-wrap: wrap;
gap: 0;
border-bottom: 2px solid var(--color-base--subtle, #a2a9b1);
margin-bottom: 1.25em;
padding: 0;
align-items: flex-end;
}
/* =========================
TAB SPANS (wrappers)
========================= */
.wt-tab {
display: inline-block;
position: relative;
margin-bottom: -2px; /* overlap container border-bottom */
}
/* =========================
TAB LINKS
========================= */
.wt-tab a {
display: inline-block;
padding: 0.4em 0.9em;
text-decoration: none;
color: var(--color-base, #54595d);
background: transparent;
border: 2px solid transparent;
border-bottom: none;
border-radius: 4px 4px 0 0;
line-height: 1.4;
white-space: nowrap;
font-size: 0.9em;
transition: background 0.15s, color 0.15s;
}
/* =========================
HOVER
========================= */
.wt-tab a:hover {
background: var(--color-surface-2, rgba(54,108,204,0.07));
color: var(--color-progressive, #36c);
}
/* =========================
ACTIVE TAB
.is-active is set by #ifeq in Template:SubTabs
========================= */
.wt-tab.is-active a {
font-weight: 600;
color: var(--color-progressive, #36c);
background: var(--color-surface-0, #fff);
border-color: var(--color-base--subtle, #a2a9b1);
border-bottom-color: var(--color-surface-0, #fff); /* "cuts into" the bottom border */
}