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: Difference between revisions

MediaWiki interface page
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; } /*..."
 
No edit summary
Line 1: Line 1:
/* =========================================================
/* =========================================================
   Virginia.wiki — Main Page
   Virginia.wiki — Homepage
   ========================================================= */
   ========================================================= */


.vw-home {
.vw-home {
--vw-navy: #0b2f4f;
--vw-blue: #3e718f;
--vw-green: #56725d;
--vw-sky: #dceaf2;
--vw-cream: #f6f2e7;
--vw-text: #172535;
max-width: 1380px;
max-width: 1380px;
margin: 0 auto;
margin: 0 auto;
--vw-navy: #0c2f4f;
color: var(--vw-text);
--vw-blue: #376f91;
--vw-sky: #dceaf2;
--vw-green: #506f59;
--vw-cream: #f6f2e8;
--vw-text: #172332;
}
}


/* Hide normal article title on homepage */
/* Remove ordinary article title from Main Page */
body.page-Main_Page .mw-first-heading,
body.page-Main_Page .mw-first-heading,
body.page-Main_Page #firstHeading {
body.page-Main_Page #firstHeading {
Line 20: Line 22:
}
}


/* HERO */
 
/* =========================================================
  HERO
  ========================================================= */


.vw-hero {
.vw-hero {
position: relative;
position: relative;
overflow: hidden;
overflow: hidden;
min-height: 430px;
display: flex;
display: flex;
align-items: center;
align-items: center;
min-height: 390px;
padding: clamp(3rem, 7vw, 6.5rem);
margin: 0 0 4rem;
margin: 0 0 4.5rem;
padding: clamp(3rem, 7vw, 6rem);
border-radius: 30px;
border-radius: 30px;
color: #fff;
color: #fff;
background:
background:
radial-gradient(circle at 83% 20%, rgba(255,255,255,.20), transparent 26%),
radial-gradient(circle at 82% 18%, rgba(255,214,132,.55), transparent 18%),
linear-gradient(135deg, #092945 0%, #326989 56%, #597763 100%);
linear-gradient(135deg, #092943 0%, #356d8b 58%, #657d64 100%);
box-shadow: 0 20px 55px rgba(12,47,79,.18);
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 {
.vw-hero-inner {
position: relative;
z-index: 2;
max-width: 850px;
max-width: 850px;
}
}


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


Line 54: Line 92:
margin: 0;
margin: 0;
font-family: Georgia, "Times New Roman", serif;
font-family: Georgia, "Times New Roman", serif;
font-size: clamp(3.4rem, 8vw, 6.8rem);
font-size: clamp(3.7rem, 8vw, 7rem);
font-weight: 700;
font-weight: 700;
line-height: .95;
line-height: .94;
letter-spacing: -.045em;
letter-spacing: -.045em;
color: #fff;
}
}


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




/* SECTIONS */
/* =========================================================
  SECTIONS
  ========================================================= */


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


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




/* DISCOVER CARDS */
/* =========================================================
  DISCOVER CARDS
  ========================================================= */


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


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


.vw-card:hover {
.vw-card:hover {
transform: translateY(-4px);
transform: translateY(-5px);
box-shadow: 0 14px 32px rgba(12,47,79,.12);
border-color: rgba(11,47,79,.20);
box-shadow: 0 16px 35px rgba(11,47,79,.13);
}
}


Line 112: Line 159:
margin: 0 0 .9rem;
margin: 0 0 .9rem;
font-family: Georgia, "Times New Roman", serif;
font-family: Georgia, "Times New Roman", serif;
font-size: 1.55rem;
font-size: 1.6rem;
color: var(--vw-navy);
color: var(--vw-navy);
}
}




/* POPULAR DESTINATIONS */
/* =========================================================
  DESTINATION LINKS
  ========================================================= */


.vw-link-grid ul {
.vw-link-grid ul {
display: grid;
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: .85rem;
gap: .9rem;
margin: 0;
margin: 0;
padding: 0;
padding: 0;
Line 134: Line 183:
.vw-link-grid a {
.vw-link-grid a {
display: block;
display: block;
padding: 1.05rem 1.15rem;
padding: 1.1rem 1.2rem;
border: 1px solid rgba(12,47,79,.12);
border: 1px solid rgba(11,47,79,.11);
border-radius: 15px;
border-radius: 15px;
background: rgba(255,255,255,.72);
background: rgba(255,255,255,.82);
color: var(--vw-navy);
color: var(--vw-navy);
font-weight: 700;
font-weight: 700;
text-decoration: none;
text-decoration: none;
transition: background .18s ease, transform .18s ease;
box-shadow: 0 4px 14px rgba(11,47,79,.04);
transition:
transform .18s ease,
background .18s ease,
box-shadow .18s ease;
}
}


/* Don't show undeveloped homepage links in alarming red */
/* Red links look normal on homepage */
.vw-link-grid a.new {
.vw-link-grid a.new {
color: var(--vw-navy);
color: var(--vw-navy);
Line 150: Line 203:


.vw-link-grid a:hover {
.vw-link-grid a:hover {
transform: translateY(-3px);
background: #fff;
background: #fff;
transform: translateY(-2px);
box-shadow: 0 9px 20px rgba(11,47,79,.09);
text-decoration: none;
text-decoration: none;
}
}




/* FEATURE CARDS */
/* =========================================================
  LOWER FEATURE CARDS
  ========================================================= */


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


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


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




/* BOTTOM PANEL */
/* =========================================================
  BOTTOM PANEL
  ========================================================= */


.vw-home-bottom {
.vw-home-bottom {
padding: 2.3rem 2.5rem;
padding: 2.5rem 2.7rem;
border-radius: 25px;
border-radius: 26px;
background: var(--vw-navy);
background:
linear-gradient(135deg, #092943, #174a69);
color: #fff;
color: #fff;
box-shadow: 0 16px 38px rgba(11,47,79,.16);
}
}


.vw-home-bottom > h2 {
.vw-home-bottom > h2 {
color: #fff;
}
.vw-home-bottom a {
color: #fff;
color: #fff;
}
}




/* MOBILE */
/* =========================================================
  MOBILE
  ========================================================= */


@media (max-width: 1000px) {
@media (max-width: 1000px) {
.vw-card-grid {
.vw-card-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
grid-template-columns: repeat(2, minmax(0, 1fr));
Line 207: Line 279:


@media (max-width: 700px) {
@media (max-width: 700px) {
.vw-hero {
.vw-hero {
min-height: 300px;
min-height: 330px;
margin-bottom: 3rem;
padding: 3rem 1.6rem;
padding: 2.6rem 1.5rem;
margin-bottom: 3.2rem;
border-radius: 22px;
border-radius: 22px;
}
}


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


Line 221: Line 294:
.vw-feature-grid {
.vw-feature-grid {
grid-template-columns: 1fr;
grid-template-columns: 1fr;
}
.vw-link-grid ul {
grid-template-columns: 1fr 1fr;
}
}


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


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


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

Revision as of 20:23, 29 September 2026

/* =========================================================
   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;
	}
}