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);
}
/* =========================================================
MAIN PAGE CLEANUP
========================================================= */
/* Hide ordinary article title on 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 mountain layer */
.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%
);
}
/* Decorative foreground mountain layer */
.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);
}
/* =========================================================
HOMEPAGE 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 VIRGINIA 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);
}
/* =========================================================
POPULAR DESTINATIONS
========================================================= */
.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;
}
/* Don't show uncreated homepage links in bright red */
.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);
}
/* =========================================================
START EXPLORING / BOTTOM PANEL
========================================================= */
.vw-home-bottom {
padding: 2.5rem 2.7rem;
border-radius: 26px;
background:
linear-gradient(
135deg,
#092943,
#174a69
);
color: #fff !important;
box-shadow:
0 16px 38px rgba(11,47,79,.16);
}
/* Citizen may otherwise override heading colors */
.vw-home-bottom h2,
.vw-home-bottom h3,
.vw-home-bottom p,
.vw-home-bottom div,
.vw-home-bottom span {
color: #fff !important;
}
.vw-home-bottom a {
color: #fff !important;
}
.vw-home-bottom a:hover {
color: #fff !important;
}
/* =========================================================
GENERAL HOMEPAGE TYPOGRAPHY
========================================================= */
.vw-home p {
line-height: 1.65;
}
.vw-card,
.vw-feature {
line-height: 1.6;
}
/* =========================================================
TABLET
========================================================= */
@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));
}
}
/* =========================================================
MOBILE
========================================================= */
@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;
}
}
/* =========================================================
SMALL MOBILE
========================================================= */
@media (max-width: 460px) {
.vw-link-grid ul {
grid-template-columns: 1fr;
}
}
/* Force Start Exploring heading to white */
body.page-Main_Page .vw-home-bottom .mw-heading,
body.page-Main_Page .vw-home-bottom .mw-heading h2,
body.page-Main_Page .vw-home-bottom h2 {
color: #ffffff !important;
}
/* Virginia.wiki bottom callout */
.vw-bottom-title {
color: #ffffff !important;
font-family: Georgia, "Times New Roman", serif;
font-size: clamp(2rem, 4vw, 3rem);
font-weight: 700;
line-height: 1.1;
margin: 0 0 1.25rem;
}
.vw-bottom-text {
color: #ffffff !important;
font-size: 1.05rem;
line-height: 1.65;
}