Jump to content
Toggle menu
  • 63 articles
  • 2 files
  • 2 users
  • 222 edits
Virginia.wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css

MediaWiki interface page
Revision as of 20:15, 29 September 2026 by Agthorne (talk | contribs) (Created page with "→========================================================= Virginia.wiki — Main Page =========================================================: .vw-home { max-width: 1380px; margin: 0 auto; --vw-navy: #0c2f4f; --vw-blue: #376f91; --vw-sky: #dceaf2; --vw-green: #506f59; --vw-cream: #f6f2e8; --vw-text: #172332; } →Hide normal article title on homepage: body.page-Main_Page .mw-first-heading, body.page-Main_Page #firstHeading { display: none; } /*...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 — Main Page
   ========================================================= */

.vw-home {
	max-width: 1380px;
	margin: 0 auto;
	--vw-navy: #0c2f4f;
	--vw-blue: #376f91;
	--vw-sky: #dceaf2;
	--vw-green: #506f59;
	--vw-cream: #f6f2e8;
	--vw-text: #172332;
}

/* Hide normal article title on homepage */
body.page-Main_Page .mw-first-heading,
body.page-Main_Page #firstHeading {
	display: none;
}

/* HERO */

.vw-hero {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	min-height: 390px;
	margin: 0 0 4rem;
	padding: clamp(3rem, 7vw, 6rem);
	border-radius: 30px;
	color: #fff;
	background:
		radial-gradient(circle at 83% 20%, rgba(255,255,255,.20), transparent 26%),
		linear-gradient(135deg, #092945 0%, #326989 56%, #597763 100%);
	box-shadow: 0 20px 55px rgba(12,47,79,.18);
}

.vw-hero-inner {
	max-width: 850px;
}

.vw-eyebrow {
	margin-bottom: .8rem;
	font-size: .82rem;
	font-weight: 800;
	letter-spacing: .18em;
	text-transform: uppercase;
	opacity: .9;
}

.vw-hero-title {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(3.4rem, 8vw, 6.8rem);
	font-weight: 700;
	line-height: .95;
	letter-spacing: -.045em;
}

.vw-hero-subtitle {
	max-width: 780px;
	margin-top: 1.5rem;
	font-size: clamp(1.05rem, 2vw, 1.35rem);
	line-height: 1.6;
	opacity: .95;
}


/* SECTIONS */

.vw-home-section {
	margin: 4.5rem 0;
}

.vw-home-section > h2 {
	margin: 0 0 1.8rem;
	padding: 0;
	border: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.1;
	color: var(--vw-navy);
}


/* DISCOVER CARDS */

.vw-card-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.15rem;
}

.vw-card {
	min-height: 170px;
	padding: 1.6rem;
	border: 1px solid rgba(12,47,79,.11);
	border-radius: 21px;
	background: rgba(255,255,255,.78);
	box-shadow: 0 8px 26px rgba(12,47,79,.07);
	transition: transform .18s ease, box-shadow .18s ease;
}

.vw-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(12,47,79,.12);
}

.vw-card h3 {
	margin: 0 0 .9rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.55rem;
	color: var(--vw-navy);
}


/* POPULAR DESTINATIONS */

.vw-link-grid ul {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: .85rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vw-link-grid li {
	margin: 0;
}

.vw-link-grid a {
	display: block;
	padding: 1.05rem 1.15rem;
	border: 1px solid rgba(12,47,79,.12);
	border-radius: 15px;
	background: rgba(255,255,255,.72);
	color: var(--vw-navy);
	font-weight: 700;
	text-decoration: none;
	transition: background .18s ease, transform .18s ease;
}

/* Don't show undeveloped homepage links in alarming red */
.vw-link-grid a.new {
	color: var(--vw-navy);
}

.vw-link-grid a:hover {
	background: #fff;
	transform: translateY(-2px);
	text-decoration: none;
}


/* FEATURE CARDS */

.vw-feature-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.15rem;
}

.vw-feature {
	padding: 1.8rem;
	border-radius: 22px;
	background:
		linear-gradient(145deg, rgba(220,234,242,.85), rgba(246,242,232,.9));
	border: 1px solid rgba(12,47,79,.08);
}

.vw-feature h3 {
	margin: 0 0 .8rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.55rem;
	color: var(--vw-navy);
}


/* BOTTOM PANEL */

.vw-home-bottom {
	padding: 2.3rem 2.5rem;
	border-radius: 25px;
	background: var(--vw-navy);
	color: #fff;
}

.vw-home-bottom > h2 {
	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: 300px;
		margin-bottom: 3rem;
		padding: 2.6rem 1.5rem;
		border-radius: 22px;
	}

	.vw-hero-title {
		font-size: clamp(3rem, 15vw, 4.8rem);
	}

	.vw-card-grid,
	.vw-feature-grid {
		grid-template-columns: 1fr;
	}

	.vw-link-grid ul {
		grid-template-columns: 1fr 1fr;
	}

	.vw-home-section {
		margin: 3.3rem 0;
	}

	.vw-home-bottom {
		padding: 1.7rem;
	}
}

@media (max-width: 440px) {
	.vw-link-grid ul {
		grid-template-columns: 1fr;
	}
}