Jump to content

Template:SCGE/styles.css: Difference between revisions

From Meta, a Wikimedia project coordination wiki
Content deleted Content added
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:


/* Tabs container */
/* Tabs container */
.tabs ul {
.tabs ul {
Line 9: Line 7:
}
}


/* Individual tabs */
/* Tabs */
.tabs li {
.tabs li {
list-style: none;
list-style: none;
flex: 1;
flex: 1;
text-align: center;
text-align: center;
border-top: 10px #d0d0d0 solid; /* light grey */
border-top: 10px #111111 solid; /* near-black */
margin: 0 0.4ex;
margin: 0 0.4ex;
padding: 0.6em 0;
padding: 0.6em 0;
background: #fafafa;
background: #ffffff;
transition: all 0.2s ease-in-out;
}
}


.tabs li:nth-child(even) {
.tabs li:nth-child(even) {
border-top-color: #8c8c8c; /* deeper grey */
border-top-color: #333333; /* softer black */
}
}


.tabs li a {
.tabs li a {
color: #2b2b2b;
color: #000000;
font-weight: 600;
font-weight: 600;
font-family: 'Sans-Serif', 'Inter', Arial, sans-serif;
font-family: "Sans-Serif", Arial, sans-serif;
text-decoration: none;
text-decoration: none;
display: block;
}
}


/* Active tab states */
/* ACTIVE TAB — persistent */
.tabs.active-1 li:nth-child(1),
.tabs.active-1 li:nth-child(1),
.tabs.active-2 li:nth-child(2),
.tabs.active-2 li:nth-child(2),
.tabs.active-3 li:nth-child(3),
.tabs.active-3 li:nth-child(3),
.tabs.active-4 li:nth-child(4) {
.tabs.active-4 li:nth-child(4) {
background: #e6e6e6; /* soft grey highlight */
background: #000000;
border-top-color: #4a4a4a;
border-top-color: #000000;
}
}

/* Active tab text */
.tabs.active-1 li:nth-child(1) a,
.tabs.active-2 li:nth-child(2) a,
.tabs.active-3 li:nth-child(3) a,
.tabs.active-4 li:nth-child(4) a {
color: #ffffff;
}

/* Hover effect (does NOT override active) */
.tabs li:hover {
background: #111111;
}

.tabs li:hover a {
color: #ffffff;
}

/* Ensure active tab stays unchanged on hover */
.tabs.active-1 li:nth-child(1):hover,
.tabs.active-2 li:nth-child(2):hover,
.tabs.active-3 li:nth-child(3):hover,
.tabs.active-4 li:nth-child(4):hover {
background: #000000;
}


/* Main heading / banner */
/* Main heading (black banner) */
.main-heading {
.main-heading {
background: #000000; /* black banner */
background: #000000;
color: #ffffff; /* white text */
color: #ffffff;
text-align: center;
text-align: center;
font-size: 2.2em;
font-size: 2.2em;
font-family: 'Sans-Serif', Georgia, serif; /* title font */
font-family: "Sans-Serif", Georgia, serif;
font-variant: normal;
text-transform: uppercase;
letter-spacing: 1.5px;
margin: 0 0 1em;
margin: 0 0 1em;
border: none;
border: none;
padding: 0.6em;
padding: 0.7em;
font-weight: bold;
font-weight: bold;
letter-spacing: 0.5px;
}
}


/* Sub-headings (black variants only) */
.main-heading.grey-variant {
.sub-heading {
background: #2f2f2f; /* dark grey */
font-family: "Sans-Serif", Georgia, serif;
color: #ffffff;
color: #111111;
font-size: 1.4em;
margin-top: 1em;
}

.sub-heading.alt {
color: #333333;
}
}


/* Body text */
body {
body {
font-family: 'Sans-Serif', 'Inter', Arial, sans-serif;
font-family: "Sans-Serif", Arial, sans-serif;
color: #222;
color: #000000;
background: #ffffff;
background: #ffffff;
}
}

Latest revision as of 19:35, 9 April 2026

/* Tabs container */
.tabs ul { 
	display: flex; 
	flex-wrap: wrap; 
	margin: 1em 0 0; 
	padding: 0;
} 

/* Tabs */
.tabs li { 
	list-style: none; 
	flex: 1; 
	text-align: center; 
	border-top: 10px #111111 solid; /* near-black */
	margin: 0 0.4ex; 
	padding: 0.6em 0; 
	background: #ffffff;
	transition: all 0.2s ease-in-out;
} 

.tabs li:nth-child(even) { 
	border-top-color: #333333; /* softer black */
} 

.tabs li a { 
	color: #000000; 
	font-weight: 600; 
	font-family: "Sans-Serif", Arial, sans-serif;
	text-decoration: none;
	display: block;
} 

/* ACTIVE TAB — persistent */
.tabs.active-1 li:nth-child(1),
.tabs.active-2 li:nth-child(2),
.tabs.active-3 li:nth-child(3),
.tabs.active-4 li:nth-child(4) { 
	background: #000000;
	border-top-color: #000000;
}

/* Active tab text */
.tabs.active-1 li:nth-child(1) a,
.tabs.active-2 li:nth-child(2) a,
.tabs.active-3 li:nth-child(3) a,
.tabs.active-4 li:nth-child(4) a {
	color: #ffffff;
}

/* Hover effect (does NOT override active) */
.tabs li:hover {
	background: #111111;
}

.tabs li:hover a {
	color: #ffffff;
}

/* Ensure active tab stays unchanged on hover */
.tabs.active-1 li:nth-child(1):hover,
.tabs.active-2 li:nth-child(2):hover,
.tabs.active-3 li:nth-child(3):hover,
.tabs.active-4 li:nth-child(4):hover {
	background: #000000;
}

/* Main heading (black banner) */
.main-heading { 
	background: #000000;  
	color: #ffffff; 
	text-align: center; 
	font-size: 2.2em; 
	font-family: "Sans-Serif", Georgia, serif;
	text-transform: uppercase; 
	letter-spacing: 1.5px; 
	margin: 0 0 1em; 
	border: none; 
	padding: 0.7em; 
	font-weight: bold; 
} 

/* Sub-headings (black variants only) */
.sub-heading {
	font-family: "Sans-Serif", Georgia, serif;
	color: #111111;
	font-size: 1.4em;
	margin-top: 1em;
}

.sub-heading.alt {
	color: #333333;
}

/* Body text */
body {
	font-family: "Sans-Serif", Arial, sans-serif;
	color: #000000;
	background: #ffffff;
}