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.
/* =========================================================
Virginia.wiki — Homepage
========================================================= */
.vw-home {
--vw-navy: #0b2f4f;
--vw-blue: #3e718f;
--vw-green: #56725d;
--vw-sky: #dceaf2;
--vw-cream: #f6f2e7;
--vw-text: #172535;
max-width: 1380px;
margin: 0 auto;
color: var(--vw-text);
}
/* Remove ordinary article title from Main Page */
body.page-Main_Page .mw-first-heading,
body.page-Main_Page #firstHeading {
display: none;
}
/* =========================================================
HERO
========================================================= */
.vw-hero {
position: relative;
overflow: hidden;
min-height: 430px;
display: flex;
align-items: center;
padding: clamp(3rem, 7vw, 6.5rem);
margin: 0 0 4.5rem;
border-radius: 30px;
color: #fff;
background:
radial-gradient(circle at 82% 18%, rgba(255,214,132,.55), transparent 18%),
linear-gradient(135deg, #092943 0%, #356d8b 58%, #657d64 100%);
box-shadow: 0 22px 60px rgba(11,47,79,.20);
}
/* Decorative Blue Ridge-style layers */
.vw-hero::before {
content: "";
position: absolute;
left: -5%;
right: -5%;
bottom: -2%;
height: 42%;
background: rgba(17,57,78,.48);
clip-path: polygon(
0 70%, 10% 48%, 20% 60%, 32% 28%,
43% 62%, 55% 38%, 66% 61%, 77% 35%,
89% 58%, 100% 37%, 100% 100%, 0 100%
);
}
.vw-hero::after {
content: "";
position: absolute;
left: -5%;
right: -5%;
bottom: -8%;
height: 33%;
background: rgba(24,75,78,.48);
clip-path: polygon(
0 60%, 14% 37%, 28% 67%, 44% 29%,
58% 57%, 73% 31%, 87% 59%, 100% 42%,
100% 100%, 0 100%
);
}
.vw-hero-inner {
position: relative;
z-index: 2;
max-width: 850px;
}
.vw-eyebrow {
margin-bottom: .9rem;
font-size: .83rem;
font-weight: 800;
letter-spacing: .19em;
text-transform: uppercase;
opacity: .92;
}
.vw-hero-title {
margin: 0;
font-family: Georgia, "Times New Roman", serif;
font-size: clamp(3.7rem, 8vw, 7rem);
font-weight: 700;
line-height: .94;
letter-spacing: -.045em;
color: #fff;
}
.vw-hero-subtitle {
max-width: 780px;
margin-top: 1.55rem;
font-size: clamp(1.05rem, 2vw, 1.35rem);
line-height: 1.6;
color: rgba(255,255,255,.95);
}
/* =========================================================
SECTIONS
========================================================= */
.vw-home-section {
margin: 4.75rem 0;
}
.vw-home-section > h2 {
margin: 0 0 1.9rem;
padding: 0;
border: 0;
font-family: Georgia, "Times New Roman", serif;
font-size: clamp(2.1rem, 4vw, 3.15rem);
line-height: 1.08;
color: var(--vw-navy);
}
/* =========================================================
DISCOVER CARDS
========================================================= */
.vw-card-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 1.2rem;
}
.vw-card {
min-height: 180px;
padding: 1.7rem;
border: 1px solid rgba(11,47,79,.10);
border-radius: 22px;
background: rgba(255,255,255,.82);
box-shadow: 0 8px 28px rgba(11,47,79,.07);
transition:
transform .18s ease,
box-shadow .18s ease,
border-color .18s ease;
}
.vw-card:hover {
transform: translateY(-5px);
border-color: rgba(11,47,79,.20);
box-shadow: 0 16px 35px rgba(11,47,79,.13);
}
.vw-card h3 {
margin: 0 0 .9rem;
font-family: Georgia, "Times New Roman", serif;
font-size: 1.6rem;
color: var(--vw-navy);
}
/* =========================================================
DESTINATION LINKS
========================================================= */
.vw-link-grid ul {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: .9rem;
margin: 0;
padding: 0;
list-style: none;
}
.vw-link-grid li {
margin: 0;
}
.vw-link-grid a {
display: block;
padding: 1.1rem 1.2rem;
border: 1px solid rgba(11,47,79,.11);
border-radius: 15px;
background: rgba(255,255,255,.82);
color: var(--vw-navy);
font-weight: 700;
text-decoration: none;
box-shadow: 0 4px 14px rgba(11,47,79,.04);
transition:
transform .18s ease,
background .18s ease,
box-shadow .18s ease;
}
/* Red links look normal on homepage */
.vw-link-grid a.new {
color: var(--vw-navy);
}
.vw-link-grid a:hover {
transform: translateY(-3px);
background: #fff;
box-shadow: 0 9px 20px rgba(11,47,79,.09);
text-decoration: none;
}
/* =========================================================
LOWER FEATURE CARDS
========================================================= */
.vw-feature-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1.25rem;
}
.vw-feature {
min-height: 185px;
padding: 1.9rem;
border: 1px solid rgba(11,47,79,.08);
border-radius: 23px;
background:
linear-gradient(
145deg,
rgba(220,234,242,.92),
rgba(246,242,231,.92)
);
}
.vw-feature h3 {
margin: 0 0 .85rem;
font-family: Georgia, "Times New Roman", serif;
font-size: 1.6rem;
color: var(--vw-navy);
}
/* =========================================================
BOTTOM PANEL
========================================================= */
.vw-home-bottom {
padding: 2.5rem 2.7rem;
border-radius: 26px;
background:
linear-gradient(135deg, #092943, #174a69);
color: #fff;
box-shadow: 0 16px 38px rgba(11,47,79,.16);
}
.vw-home-bottom > h2 {
color: #fff;
}
.vw-home-bottom a {
color: #fff;
}
/* =========================================================
MOBILE
========================================================= */
@media (max-width: 1000px) {
.vw-card-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.vw-link-grid ul {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 700px) {
.vw-hero {
min-height: 330px;
padding: 3rem 1.6rem;
margin-bottom: 3.2rem;
border-radius: 22px;
}
.vw-hero-title {
font-size: clamp(3.2rem, 15vw, 5rem);
}
.vw-card-grid,
.vw-feature-grid {
grid-template-columns: 1fr;
}
.vw-home-section {
margin: 3.5rem 0;
}
.vw-home-bottom {
padding: 1.8rem;
}
}
@media (max-width: 460px) {
.vw-link-grid ul {
grid-template-columns: 1fr;
}
}