Template:SCGE/styles.css: Difference between revisions
Appearance
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: | ||
} |
} |
||
/* |
/* Tabs */ |
||
.tabs li { |
.tabs li { |
||
list-style: none; |
list-style: none; |
||
flex: 1; |
flex: 1; |
||
text-align: center; |
text-align: center; |
||
border-top: 10px # |
border-top: 10px #111111 solid; /* near-black */ |
||
margin: 0 0.4ex; |
margin: 0 0.4ex; |
||
padding: 0.6em 0; |
padding: 0.6em 0; |
||
background: # |
background: #ffffff; |
||
transition: all 0.2s ease-in-out; |
|||
} |
} |
||
.tabs li:nth-child(even) { |
.tabs li:nth-child(even) { |
||
border-top-color: # |
border-top-color: #333333; /* softer black */ |
||
} |
} |
||
.tabs li a { |
.tabs li a { |
||
color: # |
color: #000000; |
||
font-weight: 600; |
font-weight: 600; |
||
font-family: |
font-family: "Sans-Serif", Arial, sans-serif; |
||
text-decoration: none; |
text-decoration: none; |
||
display: block; |
|||
} |
} |
||
/* |
/* 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: # |
background: #000000; |
||
border-top-color: # |
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 { |
|||
| ⚫ | |||
} |
|||
/* Hover effect (does NOT override active) */ |
|||
.tabs li:hover { |
|||
| ⚫ | |||
} |
|||
.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 |
/* Main heading (black banner) */ |
||
.main-heading { |
.main-heading { |
||
background: #000000; |
background: #000000; |
||
color: #ffffff; |
color: #ffffff; |
||
text-align: center; |
text-align: center; |
||
font-size: 2.2em; |
font-size: 2.2em; |
||
font-family: |
font-family: "Sans-Serif", Georgia, serif; |
||
text-transform: uppercase; |
|||
| ⚫ | |||
margin: 0 0 1em; |
margin: 0 0 1em; |
||
border: none; |
border: none; |
||
padding: 0. |
padding: 0.7em; |
||
font-weight: bold; |
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; |
|||
} |
|||
| ⚫ | |||
color: #333333; |
|||
} |
} |
||
/* Body text */ |
|||
body { |
body { |
||
font-family: |
font-family: "Sans-Serif", Arial, sans-serif; |
||
color: # |
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;
}