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
No edit summary
No edit summary
Line 1: Line 1:
/* =========================================================
/* =========================================================
   Virginia.wiki — Homepage
   VIRGINIA.WIKI
  Main Page / Citizen Skin Styling
  ========================================================= */
 
 
/* =========================================================
  GLOBAL HOMEPAGE VARIABLES
   ========================================================= */
   ========================================================= */


Line 21: Line 27:
   ========================================================= */
   ========================================================= */


/* Hide ordinary article title on Main Page */
/* Hide normal MediaWiki page title on 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 {
display: none;
display: none;
}
/* Hide parser-generated empty paragraphs inside grids */
.vw-card-grid > p,
.vw-photo-card-grid > p,
.vw-feature-grid > p,
.vw-link-grid > p {
display: none !important;
}
}


Line 35: Line 52:
position: relative;
position: relative;
overflow: hidden;
overflow: hidden;
min-height: 430px;
 
display: flex;
display: flex;
align-items: center;
align-items: center;
min-height: 430px;
padding: clamp(3rem, 7vw, 6.5rem);
padding: clamp(3rem, 7vw, 6.5rem);
margin: 0 0 4.5rem;
margin: 0 0 4.5rem;
border-radius: 30px;
border-radius: 30px;
color: #fff;
 
color: #ffffff;


background:
background:
radial-gradient(
radial-gradient(
circle at 82% 18%,
circle at 82% 18%,
rgba(255,214,132,.55),
rgba(255, 214, 132, .55),
transparent 18%
transparent 18%
),
),
Line 56: Line 78:
);
);


box-shadow: 0 22px 60px rgba(11,47,79,.20);
box-shadow:
0 22px 60px rgba(11, 47, 79, .20);
}
}




/* Decorative Blue Ridge mountain layer */
/* Background mountain layer */


.vw-hero::before {
.vw-hero::before {
content: "";
content: "";
position: absolute;
position: absolute;
left: -5%;
left: -5%;
right: -5%;
right: -5%;
bottom: -2%;
bottom: -2%;
height: 42%;
height: 42%;


background: rgba(17,57,78,.48);
background: rgba(17, 57, 78, .48);


clip-path: polygon(
clip-path: polygon(
Line 89: Line 115:




/* Decorative foreground mountain layer */
/* Foreground mountain layer */


.vw-hero::after {
.vw-hero::after {
content: "";
content: "";
position: absolute;
position: absolute;
left: -5%;
left: -5%;
right: -5%;
right: -5%;
bottom: -8%;
bottom: -8%;
height: 33%;
height: 33%;


background: rgba(24,75,78,.48);
background: rgba(24, 75, 78, .48);


clip-path: polygon(
clip-path: polygon(
Line 119: Line 148:
position: relative;
position: relative;
z-index: 2;
z-index: 2;
max-width: 850px;
max-width: 850px;
}
}
Line 131: Line 161:


text-transform: uppercase;
text-transform: uppercase;
opacity: .92;
 
color: rgba(255, 255, 255, .92);
}
}


Line 139: Line 170:


font-family: Georgia, "Times New Roman", serif;
font-family: Georgia, "Times New Roman", serif;
font-size: clamp(3.7rem, 8vw, 7rem);
font-size: clamp(3.7rem, 8vw, 7rem);
font-weight: 700;
font-weight: 700;
Line 145: Line 177:
letter-spacing: -.045em;
letter-spacing: -.045em;


color: #fff;
color: #ffffff;
}
}


Line 151: Line 183:
.vw-hero-subtitle {
.vw-hero-subtitle {
max-width: 780px;
max-width: 780px;
margin-top: 1.55rem;
margin-top: 1.55rem;


Line 156: Line 189:
line-height: 1.6;
line-height: 1.6;


color: rgba(255,255,255,.95);
color: rgba(255, 255, 255, .96);
}
}




/* =========================================================
/* =========================================================
   HOMEPAGE SECTIONS
   HERO SEARCH
   ========================================================= */
   ========================================================= */


.vw-home-section {
.vw-search {
margin: 4.75rem 0;
position: relative;
}
z-index: 3;


max-width: 700px;


.vw-home-section > h2 {
margin-top: 2.2rem;
margin: 0 0 1.9rem;
}
padding: 0;


border: 0;


font-family: Georgia, "Times New Roman", serif;
.vw-search .mw-inputbox-centered {
font-size: clamp(2.1rem, 4vw, 3.15rem);
text-align: left !important;
}


line-height: 1.08;


color: var(--vw-navy);
.vw-search form {
}
display: flex;
align-items: stretch;


width: 100%;


/* =========================================================
gap: .7rem;
  DISCOVER VIRGINIA CARDS
  ========================================================= */
 
.vw-card-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 1.2rem;
}
}




.vw-card {
.vw-search input[type="text"] {
min-height: 180px;
flex: 1;
padding: 1.7rem;


border: 1px solid rgba(11,47,79,.10);
min-width: 0;
border-radius: 22px;
height: 58px;


background: rgba(255,255,255,.82);
box-sizing: border-box;


box-shadow:
padding: 0 1.25rem;
0 8px 28px rgba(11,47,79,.07);


transition:
border: 1px solid rgba(255, 255, 255, .45);
transform .18s ease,
border-radius: 14px;
box-shadow .18s ease,
border-color .18s ease;
}


background: rgba(255, 255, 255, .96);


.vw-card:hover {
color: #172535;
transform: translateY(-5px);


border-color: rgba(11,47,79,.20);
font-size: 1.05rem;


box-shadow:
box-shadow:
0 16px 35px rgba(11,47,79,.13);
0 9px 25px rgba(0, 0, 0, .13);
}
}




.vw-card h3 {
.vw-search input[type="text"]:focus {
margin: 0 0 .9rem;
outline: 3px solid rgba(255, 255, 255, .25);


font-family: Georgia, "Times New Roman", serif;
border-color: #ffffff;
font-size: 1.6rem;
 
color: var(--vw-navy);
}
}




/* =========================================================
.vw-search input[type="submit"],
  POPULAR DESTINATIONS
.vw-search button {
  ========================================================= */
min-height: 58px;


.vw-link-grid ul {
padding: 0 1.7rem;
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));


gap: .9rem;
border: 0 !important;
border-radius: 14px !important;


margin: 0;
background: #ffffff !important;
padding: 0;


list-style: none;
color: var(--vw-navy) !important;
}


font-size: 1rem;
font-weight: 800;


.vw-link-grid li {
cursor: pointer;
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:
box-shadow:
0 4px 14px rgba(11,47,79,.04);
0 9px 25px rgba(0, 0, 0, .13);
 
transition:
transform .18s ease,
background .18s ease,
box-shadow .18s ease;
}
}




/* Don't show uncreated homepage links in bright red */
.vw-search input[type="submit"]:hover,
 
.vw-search button:hover {
.vw-link-grid a.new {
background: var(--vw-cream) !important;
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
   HOMEPAGE SECTIONS
   ========================================================= */
   ========================================================= */


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




.vw-feature {
.vw-home-section > h2 {
min-height: 185px;
margin: 0 0 1.9rem;
padding: 1.9rem;
padding: 0;


border: 1px solid rgba(11,47,79,.08);
border: 0;
border-radius: 23px;


background:
font-family: Georgia, "Times New Roman", serif;
linear-gradient(
145deg,
rgba(220,234,242,.92),
rgba(246,242,231,.92)
);
}


font-size: clamp(2.1rem, 4vw, 3.15rem);


.vw-feature h3 {
line-height: 1.08;
margin: 0 0 .85rem;
 
font-family: Georgia, "Times New Roman", serif;
font-size: 1.6rem;


color: var(--vw-navy);
color: var(--vw-navy);
Line 339: Line 308:


/* =========================================================
/* =========================================================
   START EXPLORING / BOTTOM PANEL
   BASIC CARD GRID
   ========================================================= */
   ========================================================= */


.vw-home-bottom {
.vw-card-grid {
padding: 2.5rem 2.7rem;
display: grid;
 
grid-template-columns:
repeat(4, minmax(0, 1fr));


border-radius: 26px;
gap: 1.2rem;


background:
align-items: stretch;
linear-gradient(
}
135deg,
#092943,
#174a69
);


color: #fff !important;


box-shadow:
.vw-card-grid > .vw-card {
0 16px 38px rgba(11,47,79,.16);
min-width: 0;
width: auto;
}
}




/* Citizen may otherwise override heading colors */
.vw-card {
min-width: 0;
min-height: 180px;


.vw-home-bottom h2,
padding: 1.7rem;
.vw-home-bottom h3,
.vw-home-bottom p,
.vw-home-bottom div,
.vw-home-bottom span {
color: #fff !important;
}


border: 1px solid rgba(11, 47, 79, .10);
border-radius: 22px;


.vw-home-bottom a {
background: rgba(255, 255, 255, .82);
color: #fff !important;
}


box-shadow:
0 8px 28px rgba(11, 47, 79, .07);


.vw-home-bottom a:hover {
transition:
color: #fff !important;
transform .18s ease,
box-shadow .18s ease,
border-color .18s ease;
}
}




/* =========================================================
.vw-card:hover {
  GENERAL HOMEPAGE TYPOGRAPHY
transform: translateY(-5px);
  ========================================================= */
 
.vw-home p {
line-height: 1.65;
}


border-color: rgba(11, 47, 79, .20);


.vw-card,
box-shadow:
.vw-feature {
0 16px 35px rgba(11, 47, 79, .13);
line-height: 1.6;
}
}




/* =========================================================
.vw-card h3 {
  TABLET
margin: 0 0 .9rem;
  ========================================================= */


@media (max-width: 1000px) {
font-family: Georgia, "Times New Roman", serif;


.vw-card-grid {
font-size: 1.6rem;
grid-template-columns:
repeat(2, minmax(0, 1fr));
}
 
.vw-link-grid ul {
grid-template-columns:
repeat(2, minmax(0, 1fr));
}


color: var(--vw-navy);
}
}




/* =========================================================
/* =========================================================
   MOBILE
   PHOTOGRAPHIC DISCOVERY CARDS
   ========================================================= */
   ========================================================= */


@media (max-width: 700px) {
.vw-photo-card-grid {
display: grid !important;


.vw-hero {
grid-template-columns:
min-height: 330px;
repeat(4, minmax(0, 1fr)) !important;


padding: 3rem 1.6rem;
gap: 1.2rem !important;
margin-bottom: 3.2rem;


border-radius: 22px;
align-items: stretch;
}
}




.vw-hero-title {
.vw-photo-card-grid > .vw-photo-card {
font-size:
min-width: 0;
clamp(3.2rem, 15vw, 5rem);
width: auto;
}
}




.vw-card-grid,
.vw-photo-card {
.vw-feature-grid {
display: flex;
grid-template-columns: 1fr;
flex-direction: column;
}


min-width: 0;
min-height: 400px;


.vw-home-section {
padding: 0 !important;
margin: 3.5rem 0;
}


overflow: hidden;


.vw-home-bottom {
border-radius: 22px;
padding: 1.8rem;
}


background: #ffffff;
}
}




/* =========================================================
/* Image container */
  SMALL MOBILE
  ========================================================= */


@media (max-width: 460px) {
.vw-card-image {
display: block;


.vw-link-grid ul {
width: 100%;
grid-template-columns: 1fr;
height: 200px;
}


}
margin: 0;
/* Force Start Exploring heading to white */
padding: 0;
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 {
overflow: hidden;
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 {
background: var(--vw-sky);
color: #ffffff !important;
font-size: 1.05rem;
line-height: 1.65;
}
/* =========================================================
  Virginia.wiki — Hero Search
  ========================================================= */


.vw-search {
line-height: 0;
margin-top: 2.2rem;
max-width: 700px;
}
}


.vw-search .mw-inputbox-centered {
text-align: left !important;
}


.vw-search form {
/*
display: flex;
  MediaWiki wraps images inside links/spans.
align-items: stretch;
  Force all wrappers to remain inside the card.
gap: .7rem;
*/
width: 100%;
}


.vw-search input[type="text"] {
.vw-card-image > span,
flex: 1;
.vw-card-image .mw-default-size,
min-width: 0;
.vw-card-image .mw-file-description,
height: 58px;
.vw-card-image a {
padding: 0 1.25rem;
display: block !important;


border: 1px solid rgba(255,255,255,.45);
width: 100% !important;
border-radius: 14px;
max-width: 100% !important;


background: rgba(255,255,255,.96);
height: 100% !important;
color: #172535;


font-size: 1.05rem;
margin: 0 !important;
 
padding: 0 !important;
box-shadow:
0 9px 25px rgba(0,0,0,.13);
}
}


.vw-search input[type="text"]:focus {
outline: 3px solid rgba(255,255,255,.25);
border-color: #ffffff;
}


.vw-search input[type="submit"],
/* Actual image */
.vw-search button {
min-height: 58px;
padding: 0 1.7rem;


border: 0 !important;
.vw-card-image img,
border-radius: 14px !important;
.vw-card-image .mw-file-element {
display: block !important;


background: #ffffff !important;
width: 100% !important;
color: #0b2f4f !important;
max-width: 100% !important;


font-size: 1rem;
height: 200px !important;
font-weight: 800;


cursor: pointer;
margin: 0 !important;
padding: 0 !important;


box-shadow:
object-fit: cover !important;
0 9px 25px rgba(0,0,0,.13);
object-position: center !important;
}
}


.vw-search input[type="submit"]:hover,
.vw-search button:hover {
background: #f6f2e7 !important;
}


@media (max-width: 700px) {
/* Card body */
 
.vw-card-content {
display: flex;
flex-direction: column;
flex: 1;


.vw-search form {
min-width: 0;
flex-direction: column;
}


.vw-search input[type="text"],
padding: 1.45rem 1.55rem 1.55rem;
.vw-search input[type="submit"],
.vw-search button {
width: 100% !important;
box-sizing: border-box;
}
}
/* =========================================================
  Virginia.wiki — Photographic Discovery Cards
  ========================================================= */


.vw-photo-card-grid {
line-height: 1.6;
align-items: stretch;
}
}


.vw-photo-card {
padding: 0;
overflow: hidden;
display: flex;
flex-direction: column;
min-height: 390px;
background: #fff;
}


.vw-photo-card:hover {
.vw-card-content h3 {
transform: translateY(-6px);
margin: 0 0 .75rem;
}


.vw-card-image {
font-family: Georgia, "Times New Roman", serif;
height: 195px;
overflow: hidden;
background: #dceaf2;
}


/* Remove MediaWiki image spacing/wrappers */
font-size: 1.6rem;
.vw-card-image .mw-file-element,
.vw-card-image img {
display: block;
width: 100% !important;
height: 195px !important;
max-width: none !important;
object-fit: cover;
object-position: center;
margin: 0 !important;
}


.vw-card-image a {
color: var(--vw-navy);
display: block;
height: 100%;
}
}


.vw-card-content {
display: flex;
flex-direction: column;
flex: 1;
padding: 1.45rem 1.55rem 1.55rem;
}


.vw-card-content h3 {
/* Card heading links */
margin: 0 0 .7rem;
}


.vw-card-content h3 a,
.vw-card-content h3 a,
.vw-card-content h3 a.new {
.vw-card-content h3 a.new {
color: var(--vw-navy) !important;
color: var(--vw-navy) !important;
text-decoration: none;
 
text-decoration: none !important;
}
}


.vw-card-content h3 a:hover {
.vw-card-content h3 a:hover {
text-decoration: underline;
text-decoration: underline !important;
}
}
/* Bottom card CTA */


.vw-card-link {
.vw-card-link {
margin-top: auto;
margin-top: auto;
padding-top: 1.15rem;
padding-top: 1.2rem;
font-size: .92rem;
 
font-size: .93rem;
font-weight: 800;
font-weight: 800;
}
}


.vw-card-link a,
.vw-card-link a,
.vw-card-link a.new {
.vw-card-link a.new {
color: var(--vw-blue) !important;
color: var(--vw-blue) !important;
text-decoration: none;
 
text-decoration: none !important;
}
}


.vw-card-link a:hover {
.vw-card-link a:hover {
text-decoration: underline;
text-decoration: underline !important;
}
}




/* Tablet */
/* =========================================================
  RED LINK OVERRIDE ON HOMEPAGE
  ========================================================= */


@media (max-width: 1000px) {
/*
  Pages we haven't created yet normally appear red.
  On the homepage we want them to look intentional.
*/


.vw-photo-card {
body.page-Main_Page .vw-home a.new {
min-height: 380px;
color: var(--vw-navy) !important;
}


text-decoration: none !important;
}
}




/* Mobile */
body.page-Main_Page .vw-home a.new:hover {
text-decoration: underline !important;
}


@media (max-width: 700px) {


.vw-card-image,
body.page-Main_Page .vw-card-link a.new {
.vw-card-image .mw-file-element,
color: var(--vw-blue) !important;
.vw-card-image img {
}
height: 230px !important;
}


.vw-photo-card {
min-height: 0;
}


}
/* =========================================================
/* =========================================================
   VIRGINIA.WIKI — HOMEPAGE GRID / IMAGE FIXES
   POPULAR DESTINATIONS
   ========================================================= */
   ========================================================= */


.vw-link-grid ul {
display: grid;
grid-template-columns:
repeat(4, minmax(0, 1fr));


/* ---------------------------------------------------------
gap: .9rem;
  MEDIAWIKI PARSER FIX


  MediaWiki can insert empty paragraph elements between
margin: 0;
  raw HTML blocks. Those paragraphs become CSS grid items.
padding: 0;
  Hide them inside our homepage grids.
  --------------------------------------------------------- */


.vw-card-grid > p,
list-style: none;
.vw-photo-card-grid > p,
.vw-feature-grid > p {
display: none !important;
}
}




/* Make sure actual cards occupy the grid normally */
.vw-link-grid li {
margin: 0;
}
 


.vw-card-grid > .vw-card,
.vw-link-grid a {
.vw-photo-card-grid > .vw-card,
display: block;
.vw-feature-grid > .vw-feature {
min-width: 0;
width: auto;
}


padding: 1.1rem 1.2rem;


/* ---------------------------------------------------------
border: 1px solid rgba(11, 47, 79, .11);
  DISCOVER VIRGINIA PHOTO CARDS
border-radius: 15px;
  --------------------------------------------------------- */


.vw-photo-card-grid {
background: rgba(255, 255, 255, .82);
display: grid !important;
grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
gap: 1.2rem !important;
align-items: stretch;
}


color: var(--vw-navy) !important;


.vw-photo-card {
font-weight: 700;
display: flex;
flex-direction: column;


min-width: 0;
text-decoration: none !important;
min-height: 400px;


padding: 0 !important;
box-shadow:
overflow: hidden;
0 4px 14px rgba(11, 47, 79, .04);


border-radius: 22px;
transition:
background: #ffffff;
transform .18s ease,
background .18s ease,
box-shadow .18s ease;
}
}




/* Photograph container */
.vw-link-grid a.new {
color: var(--vw-navy) !important;
}
 


.vw-card-image {
.vw-link-grid a:hover {
display: block;
transform: translateY(-3px);
width: 100%;
height: 200px;


margin: 0;
background: #ffffff;
padding: 0;


overflow: hidden;
box-shadow:
0 9px 20px rgba(11, 47, 79, .09);


background: #dceaf2;
text-decoration: none !important;
line-height: 0;
}
}




/*
/* =========================================================
   MediaWiki 1.46 places images inside wrapper spans and links.
   EXPLORE VIRGINIA FEATURE CARDS
   Force every wrapper to stay inside the card.
   ========================================================= */
*/
 
.vw-feature-grid {
display: grid !important;


.vw-card-image > span,
grid-template-columns:
.vw-card-image .mw-default-size,
repeat(3, minmax(0, 1fr)) !important;
.vw-card-image a {
display: block !important;


width: 100% !important;
gap: 1.25rem !important;
max-width: 100% !important;
height: 100% !important;


margin: 0 !important;
align-items: stretch;
padding: 0 !important;
}
}




/* Actual photograph */
.vw-feature-grid > .vw-feature {
 
min-width: 0;
.vw-card-image img,
width: auto;
.vw-card-image .mw-file-element {
}
display: block !important;


width: 100% !important;
max-width: 100% !important;


height: 200px !important;
.vw-feature {
min-width: 0;
min-height: 185px;


margin: 0 !important;
margin: 0 !important;
padding: 0 !important;


object-fit: cover !important;
padding: 1.9rem;
object-position: center !important;
}


border: 1px solid rgba(11, 47, 79, .08);
border-radius: 23px;


/* Text portion */
background:
linear-gradient(
145deg,
rgba(220, 234, 242, .92),
rgba(246, 242, 231, .92)
);


.vw-card-content {
line-height: 1.6;
display: flex;
flex-direction: column;
flex: 1;
 
min-width: 0;
 
padding: 1.45rem 1.55rem 1.55rem;
}
}




.vw-card-content h3 {
.vw-feature h3 {
margin: 0 0 .75rem;
margin: 0 0 .85rem;


font-family: Georgia, "Times New Roman", serif;
font-family: Georgia, "Times New Roman", serif;
font-size: 1.6rem;
font-size: 1.6rem;


Line 814: Line 682:




.vw-card-link {
.vw-feature h3 a,
margin-top: auto;
.vw-feature h3 a.new {
padding-top: 1.2rem;
color: var(--vw-navy) !important;
 
text-decoration: none !important;
}
 


font-size: .93rem;
.vw-feature h3 a:hover {
font-weight: 800;
text-decoration: underline !important;
}
}




/* ---------------------------------------------------------
/* =========================================================
   REMOVE RED "PAGE DOESN'T EXIST YET" LINKS FROM HOMEPAGE
   START EXPLORING PANEL
   --------------------------------------------------------- */
   ========================================================= */


body.page-Main_Page .vw-home a.new {
.vw-home-bottom {
color: var(--vw-navy) !important;
padding: 2.5rem 2.7rem;
text-decoration: none !important;
}


border-radius: 26px;


body.page-Main_Page .vw-card-link a.new {
background:
color: var(--vw-blue) !important;
linear-gradient(
}
135deg,
#092943,
#174a69
);


color: #ffffff !important;


body.page-Main_Page .vw-home a.new:hover {
box-shadow:
text-decoration: underline !important;
0 16px 38px rgba(11, 47, 79, .16);
}
}




/* ---------------------------------------------------------
.vw-bottom-title {
  EXPLORE VIRGINIA GRID
margin: 0 0 1.25rem;
  --------------------------------------------------------- */


.vw-feature-grid {
font-family: Georgia, "Times New Roman", serif;
display: grid !important;


grid-template-columns:
font-size: clamp(2rem, 4vw, 3rem);
repeat(3, minmax(0, 1fr)) !important;
font-weight: 700;


gap: 1.25rem !important;
line-height: 1.1;


align-items: stretch;
color: #ffffff !important;
}
}




.vw-feature {
.vw-bottom-text {
width: auto !important;
font-size: 1.05rem;
min-width: 0;
 
line-height: 1.65;
 
color: #ffffff !important;
}


margin: 0 !important;


padding: 1.9rem;
.vw-home-bottom,
.vw-home-bottom p,
.vw-home-bottom div,
.vw-home-bottom span,
.vw-home-bottom h2,
.vw-home-bottom h3 {
color: #ffffff !important;
}


border: 1px solid rgba(11,47,79,.08);
border-radius: 23px;


background:
.vw-home-bottom a {
linear-gradient(
color: #ffffff !important;
145deg,
rgba(220,234,242,.92),
rgba(246,242,231,.92)
);
}
}




.vw-feature h3 {
.vw-home-bottom a:hover {
margin: 0 0 .85rem;
color: #ffffff !important;
}
 


font-family: Georgia, "Times New Roman", serif;
/* =========================================================
font-size: 1.6rem;
  GENERAL HOMEPAGE TYPOGRAPHY
  ========================================================= */


color: var(--vw-navy);
.vw-home p {
line-height: 1.65;
}
}




/* ---------------------------------------------------------
/* =========================================================
   TABLET
   TABLET
   --------------------------------------------------------- */
   ========================================================= */


@media (max-width: 1000px) {
@media (max-width: 1000px) {


.vw-card-grid,
.vw-photo-card-grid {
.vw-photo-card-grid {
grid-template-columns:
grid-template-columns:
repeat(2, minmax(0, 1fr)) !important;
repeat(2, minmax(0, 1fr)) !important;
}
}
.vw-link-grid ul {
grid-template-columns:
repeat(2, minmax(0, 1fr));
}


.vw-feature-grid {
.vw-feature-grid {
Line 908: Line 797:




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


@media (max-width: 700px) {
@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-search form {
flex-direction: column;
}
.vw-search input[type="text"],
.vw-search input[type="submit"],
.vw-search button {
width: 100% !important;
box-sizing: border-box;
}
.vw-card-grid,
.vw-photo-card-grid,
.vw-photo-card-grid,
.vw-feature-grid {
.vw-feature-grid {
grid-template-columns: 1fr !important;
grid-template-columns: 1fr !important;
}
}


.vw-card-image,
.vw-card-image,
Line 924: Line 846:
height: 230px !important;
height: 230px !important;
}
}


.vw-photo-card {
.vw-photo-card {
min-height: 0;
min-height: 0;
}
.vw-home-section {
margin: 3.5rem 0;
}
.vw-home-bottom {
padding: 1.8rem;
}
}


}
}
body.page-Main_Page {
 
outline: 12px solid #ff00ff !important;
 
/* =========================================================
  SMALL MOBILE
  ========================================================= */
 
@media (max-width: 460px) {
 
.vw-link-grid ul {
grid-template-columns: 1fr;
}
 
}
}

Revision as of 20:51, 29 September 2026

/* =========================================================
   VIRGINIA.WIKI
   Main Page / Citizen Skin Styling
   ========================================================= */


/* =========================================================
   GLOBAL HOMEPAGE VARIABLES
   ========================================================= */

.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 normal MediaWiki page title on Main Page */

body.page-Main_Page .mw-first-heading,
body.page-Main_Page #firstHeading {
	display: none;
}


/* Hide parser-generated empty paragraphs inside grids */

.vw-card-grid > p,
.vw-photo-card-grid > p,
.vw-feature-grid > p,
.vw-link-grid > p {
	display: none !important;
}


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

.vw-hero {
	position: relative;
	overflow: hidden;

	display: flex;
	align-items: center;

	min-height: 430px;

	padding: clamp(3rem, 7vw, 6.5rem);
	margin: 0 0 4.5rem;

	border-radius: 30px;

	color: #ffffff;

	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);
}


/* Background 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%
	);
}


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

	color: rgba(255, 255, 255, .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: #ffffff;
}


.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, .96);
}


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

.vw-search {
	position: relative;
	z-index: 3;

	max-width: 700px;

	margin-top: 2.2rem;
}


.vw-search .mw-inputbox-centered {
	text-align: left !important;
}


.vw-search form {
	display: flex;
	align-items: stretch;

	width: 100%;

	gap: .7rem;
}


.vw-search input[type="text"] {
	flex: 1;

	min-width: 0;
	height: 58px;

	box-sizing: border-box;

	padding: 0 1.25rem;

	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 14px;

	background: rgba(255, 255, 255, .96);

	color: #172535;

	font-size: 1.05rem;

	box-shadow:
		0 9px 25px rgba(0, 0, 0, .13);
}


.vw-search input[type="text"]:focus {
	outline: 3px solid rgba(255, 255, 255, .25);

	border-color: #ffffff;
}


.vw-search input[type="submit"],
.vw-search button {
	min-height: 58px;

	padding: 0 1.7rem;

	border: 0 !important;
	border-radius: 14px !important;

	background: #ffffff !important;

	color: var(--vw-navy) !important;

	font-size: 1rem;
	font-weight: 800;

	cursor: pointer;

	box-shadow:
		0 9px 25px rgba(0, 0, 0, .13);
}


.vw-search input[type="submit"]:hover,
.vw-search button:hover {
	background: var(--vw-cream) !important;
}


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


/* =========================================================
   BASIC CARD GRID
   ========================================================= */

.vw-card-grid {
	display: grid;

	grid-template-columns:
		repeat(4, minmax(0, 1fr));

	gap: 1.2rem;

	align-items: stretch;
}


.vw-card-grid > .vw-card {
	min-width: 0;
	width: auto;
}


.vw-card {
	min-width: 0;
	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);
}


/* =========================================================
   PHOTOGRAPHIC DISCOVERY CARDS
   ========================================================= */

.vw-photo-card-grid {
	display: grid !important;

	grid-template-columns:
		repeat(4, minmax(0, 1fr)) !important;

	gap: 1.2rem !important;

	align-items: stretch;
}


.vw-photo-card-grid > .vw-photo-card {
	min-width: 0;
	width: auto;
}


.vw-photo-card {
	display: flex;
	flex-direction: column;

	min-width: 0;
	min-height: 400px;

	padding: 0 !important;

	overflow: hidden;

	border-radius: 22px;

	background: #ffffff;
}


/* Image container */

.vw-card-image {
	display: block;

	width: 100%;
	height: 200px;

	margin: 0;
	padding: 0;

	overflow: hidden;

	background: var(--vw-sky);

	line-height: 0;
}


/*
   MediaWiki wraps images inside links/spans.
   Force all wrappers to remain inside the card.
*/

.vw-card-image > span,
.vw-card-image .mw-default-size,
.vw-card-image .mw-file-description,
.vw-card-image a {
	display: block !important;

	width: 100% !important;
	max-width: 100% !important;

	height: 100% !important;

	margin: 0 !important;
	padding: 0 !important;
}


/* Actual image */

.vw-card-image img,
.vw-card-image .mw-file-element {
	display: block !important;

	width: 100% !important;
	max-width: 100% !important;

	height: 200px !important;

	margin: 0 !important;
	padding: 0 !important;

	object-fit: cover !important;
	object-position: center !important;
}


/* Card body */

.vw-card-content {
	display: flex;
	flex-direction: column;
	flex: 1;

	min-width: 0;

	padding: 1.45rem 1.55rem 1.55rem;

	line-height: 1.6;
}


.vw-card-content h3 {
	margin: 0 0 .75rem;

	font-family: Georgia, "Times New Roman", serif;

	font-size: 1.6rem;

	color: var(--vw-navy);
}


/* Card heading links */

.vw-card-content h3 a,
.vw-card-content h3 a.new {
	color: var(--vw-navy) !important;

	text-decoration: none !important;
}


.vw-card-content h3 a:hover {
	text-decoration: underline !important;
}


/* Bottom card CTA */

.vw-card-link {
	margin-top: auto;
	padding-top: 1.2rem;

	font-size: .93rem;
	font-weight: 800;
}


.vw-card-link a,
.vw-card-link a.new {
	color: var(--vw-blue) !important;

	text-decoration: none !important;
}


.vw-card-link a:hover {
	text-decoration: underline !important;
}


/* =========================================================
   RED LINK OVERRIDE ON HOMEPAGE
   ========================================================= */

/*
   Pages we haven't created yet normally appear red.
   On the homepage we want them to look intentional.
*/

body.page-Main_Page .vw-home a.new {
	color: var(--vw-navy) !important;

	text-decoration: none !important;
}


body.page-Main_Page .vw-home a.new:hover {
	text-decoration: underline !important;
}


body.page-Main_Page .vw-card-link a.new {
	color: var(--vw-blue) !important;
}


/* =========================================================
   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) !important;

	font-weight: 700;

	text-decoration: none !important;

	box-shadow:
		0 4px 14px rgba(11, 47, 79, .04);

	transition:
		transform .18s ease,
		background .18s ease,
		box-shadow .18s ease;
}


.vw-link-grid a.new {
	color: var(--vw-navy) !important;
}


.vw-link-grid a:hover {
	transform: translateY(-3px);

	background: #ffffff;

	box-shadow:
		0 9px 20px rgba(11, 47, 79, .09);

	text-decoration: none !important;
}


/* =========================================================
   EXPLORE VIRGINIA FEATURE CARDS
   ========================================================= */

.vw-feature-grid {
	display: grid !important;

	grid-template-columns:
		repeat(3, minmax(0, 1fr)) !important;

	gap: 1.25rem !important;

	align-items: stretch;
}


.vw-feature-grid > .vw-feature {
	min-width: 0;
	width: auto;
}


.vw-feature {
	min-width: 0;
	min-height: 185px;

	margin: 0 !important;

	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)
		);

	line-height: 1.6;
}


.vw-feature h3 {
	margin: 0 0 .85rem;

	font-family: Georgia, "Times New Roman", serif;

	font-size: 1.6rem;

	color: var(--vw-navy);
}


.vw-feature h3 a,
.vw-feature h3 a.new {
	color: var(--vw-navy) !important;

	text-decoration: none !important;
}


.vw-feature h3 a:hover {
	text-decoration: underline !important;
}


/* =========================================================
   START EXPLORING PANEL
   ========================================================= */

.vw-home-bottom {
	padding: 2.5rem 2.7rem;

	border-radius: 26px;

	background:
		linear-gradient(
			135deg,
			#092943,
			#174a69
		);

	color: #ffffff !important;

	box-shadow:
		0 16px 38px rgba(11, 47, 79, .16);
}


.vw-bottom-title {
	margin: 0 0 1.25rem;

	font-family: Georgia, "Times New Roman", serif;

	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;

	line-height: 1.1;

	color: #ffffff !important;
}


.vw-bottom-text {
	font-size: 1.05rem;

	line-height: 1.65;

	color: #ffffff !important;
}


.vw-home-bottom,
.vw-home-bottom p,
.vw-home-bottom div,
.vw-home-bottom span,
.vw-home-bottom h2,
.vw-home-bottom h3 {
	color: #ffffff !important;
}


.vw-home-bottom a {
	color: #ffffff !important;
}


.vw-home-bottom a:hover {
	color: #ffffff !important;
}


/* =========================================================
   GENERAL HOMEPAGE TYPOGRAPHY
   ========================================================= */

.vw-home p {
	line-height: 1.65;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

	.vw-card-grid,
	.vw-photo-card-grid {
		grid-template-columns:
			repeat(2, minmax(0, 1fr)) !important;
	}


	.vw-link-grid ul {
		grid-template-columns:
			repeat(2, minmax(0, 1fr));
	}


	.vw-feature-grid {
		grid-template-columns:
			repeat(3, minmax(0, 1fr)) !important;
	}

}


/* =========================================================
   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-search form {
		flex-direction: column;
	}


	.vw-search input[type="text"],
	.vw-search input[type="submit"],
	.vw-search button {
		width: 100% !important;

		box-sizing: border-box;
	}


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


	.vw-card-image,
	.vw-card-image img,
	.vw-card-image .mw-file-element {
		height: 230px !important;
	}


	.vw-photo-card {
		min-height: 0;
	}


	.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;
	}

}