a lot of css and js issues resolved. Pretty enough
parent
7ef604fc01
commit
9685fb299d
|
@ -4,6 +4,16 @@ document$.subscribe(function () {
|
||||||
const sidebarLeft = document.querySelector(".md-sidebar--primary");
|
const sidebarLeft = document.querySelector(".md-sidebar--primary");
|
||||||
const sidebarRight = document.querySelector(".md-sidebar--secondary");
|
const sidebarRight = document.querySelector(".md-sidebar--secondary");
|
||||||
|
|
||||||
|
// Add class to body if hero exists
|
||||||
|
if (hero) {
|
||||||
|
document.body.classList.add("has-hero");
|
||||||
|
} else {
|
||||||
|
// NO HERO - make header solid immediately
|
||||||
|
if (header) {
|
||||||
|
header.classList.add("scrolled");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!hero || !header) return;
|
if (!hero || !header) return;
|
||||||
|
|
||||||
// Reveal hero banner
|
// Reveal hero banner
|
||||||
|
@ -11,10 +21,9 @@ document$.subscribe(function () {
|
||||||
hero.style.opacity = 1;
|
hero.style.opacity = 1;
|
||||||
});
|
});
|
||||||
|
|
||||||
// Scroll logic
|
// Scroll logic - ONLY runs if hero exists
|
||||||
function updateUI() {
|
function updateUI() {
|
||||||
const heroBottom = hero.getBoundingClientRect().bottom;
|
const heroBottom = hero.getBoundingClientRect().bottom;
|
||||||
|
|
||||||
const hasScrolledPastHero = heroBottom <= 0;
|
const hasScrolledPastHero = heroBottom <= 0;
|
||||||
|
|
||||||
// Update header
|
// Update header
|
||||||
|
@ -50,4 +59,3 @@ document$.subscribe(function () {
|
||||||
window.addEventListener("scroll", updateUI);
|
window.addEventListener("scroll", updateUI);
|
||||||
updateUI(); // Initial run
|
updateUI(); // Initial run
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,111 +1,180 @@
|
||||||
/* === 1. HEADER: Starts transparent, turns indigo later === */
|
/* === GLOBAL RESETS === */
|
||||||
|
/* Remove all default spacing that causes the white gap */
|
||||||
|
.md-main__inner {
|
||||||
|
margin-top: 0 !important;
|
||||||
|
padding-top: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md-content__inner {
|
||||||
|
margin-top: 0 !important;
|
||||||
|
padding-top: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Add padding back ONLY for non-homepage content */
|
||||||
|
body:not(.has-hero) .md-content__inner {
|
||||||
|
padding-top: 4rem !important; /* Adjust based on your header height */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* === 1. HEADER: Fixed transparent to solid === */
|
||||||
.md-header {
|
.md-header {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
box-shadow: none !important;
|
transition: all 0.3s ease;
|
||||||
transition: background-color 0.3s ease, box-shadow 0.3s ease;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Transparent before scroll */
|
/* Force transparent background when not scrolled */
|
||||||
.md-header:not(.scrolled) {
|
.md-header:not(.scrolled) {
|
||||||
background-color: rgba(0, 0, 0, 0.01) !important;
|
background-color: transparent !important;
|
||||||
|
backdrop-filter: none !important;
|
||||||
|
box-shadow: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* After scroll past hero */
|
/* Solid background after scroll */
|
||||||
.md-header.scrolled {
|
.md-header.scrolled {
|
||||||
background-color: var(--md-primary-fg-color);
|
background-color: var(--md-primary-fg-color);
|
||||||
box-shadow: var(--md-shadow-z2);
|
box-shadow: var(--md-shadow-z2);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* === 2. HERO BANNER === */
|
/* === 2. HERO BANNER: Full viewport with proper positioning === */
|
||||||
.hero-banner {
|
.hero-banner {
|
||||||
|
/* Full viewport coverage */
|
||||||
|
width: 100vw;
|
||||||
|
min-height: 100vh;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
/* Reset any container constraints */
|
||||||
|
margin-left: calc(50% - 50vw);
|
||||||
|
margin-right: calc(50% - 50vw);
|
||||||
|
|
||||||
|
/* Background setup */
|
||||||
background:
|
background:
|
||||||
linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)),
|
linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)),
|
||||||
url('../assets/banner1.png') no-repeat center center;
|
url('../assets/banner1.png') no-repeat center center;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
color: white;
|
background-attachment: fixed; /* Optional: parallax effect */
|
||||||
text-align: center;
|
|
||||||
|
|
||||||
width: 100vw;
|
|
||||||
margin-left: calc(50% - 50vw);
|
|
||||||
|
|
||||||
|
/* Content centering */
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
min-height: 100vh;
|
/* Initial state for JS animation */
|
||||||
padding: 6rem 2rem 2rem;
|
|
||||||
box-sizing: border-box;
|
|
||||||
|
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transition: opacity 1s ease-in-out;
|
transition: opacity 1s ease-in-out;
|
||||||
|
|
||||||
|
/* Ensure it's behind header but above page background */
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 0; /* Ensure it's underneath the header */
|
z-index: 1;
|
||||||
|
|
||||||
|
/* Content styling */
|
||||||
|
color: white;
|
||||||
|
text-align: center;
|
||||||
|
padding: 2rem;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* === 3. PAGE OFFSET FIX: eliminate top margin under fixed header === */
|
/* Hero text styling */
|
||||||
.md-main__inner {
|
.hero-banner h1,
|
||||||
margin-top: 0 !important;
|
.hero-banner p {
|
||||||
}
|
|
||||||
.md-content {
|
|
||||||
margin-top: 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* === 4. HEADER TEXT COLOR: White on hero, revert on scroll === */
|
|
||||||
.md-header__title,
|
|
||||||
.md-header__button,
|
|
||||||
.md-search__input,
|
|
||||||
.md-search__icon,
|
|
||||||
.md-nav__link,
|
|
||||||
.md-icon {
|
|
||||||
color: white !important;
|
color: white !important;
|
||||||
fill: white !important;
|
text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
|
||||||
transition: color 0.3s ease, fill 0.3s ease;
|
margin: 0;
|
||||||
|
padding: 0.5rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* === 3. PAGE OFFSET FIX === */
|
||||||
|
/* Remove white bar at top */
|
||||||
|
.md-header + .md-container {
|
||||||
|
padding-top: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* === 4. HEADER COLORS: Amber when transparent, theme colors when solid === */
|
||||||
|
/* Transparent state - Amber styling */
|
||||||
|
.md-header:not(.scrolled) .md-header__title,
|
||||||
|
.md-header:not(.scrolled) .md-header__button,
|
||||||
|
.md-header:not(.scrolled) .md-nav__link,
|
||||||
|
.md-header:not(.scrolled) .md-icon,
|
||||||
|
.md-header:not(.scrolled) .md-search__icon {
|
||||||
|
color: #ffb300 !important;
|
||||||
|
fill: #ffb300 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Search box in transparent state */
|
||||||
|
.md-header:not(.scrolled) .md-search__form {
|
||||||
|
background-color: rgba(255, 179, 0, 0.1) !important;
|
||||||
|
border: 1px solid rgba(255, 179, 0, 0.3) !important;
|
||||||
|
box-shadow: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md-header:not(.scrolled) .md-search__input {
|
||||||
|
background-color: transparent !important;
|
||||||
|
color: #ffb300 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md-header:not(.scrolled) .md-search__input::placeholder {
|
||||||
|
color: rgba(255, 179, 0, 0.7) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Scrolled state - Default theme colors */
|
||||||
.md-header.scrolled .md-header__title,
|
.md-header.scrolled .md-header__title,
|
||||||
.md-header.scrolled .md-header__button,
|
.md-header.scrolled .md-header__button,
|
||||||
.md-header.scrolled .md-search__input,
|
|
||||||
.md-header.scrolled .md-search__icon,
|
|
||||||
.md-header.scrolled .md-nav__link,
|
.md-header.scrolled .md-nav__link,
|
||||||
.md-header.scrolled .md-icon {
|
.md-header.scrolled .md-icon,
|
||||||
|
.md-header.scrolled .md-search__icon {
|
||||||
color: var(--md-primary-bg-color) !important;
|
color: var(--md-primary-bg-color) !important;
|
||||||
fill: var(--md-primary-bg-color) !important;
|
fill: var(--md-primary-bg-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-banner h1,
|
.md-header.scrolled .md-search__form {
|
||||||
.hero-banner p {
|
background-color: var(--md-default-bg-color--light) !important;
|
||||||
color: white !important;
|
border: none !important;
|
||||||
text-shadow: 0 2px 4px rgba(0,0,0,0.4); /* Optional: adds readability over image */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.md-header.scrolled .md-search__input {
|
||||||
|
background-color: var(--md-default-bg-color--light) !important;
|
||||||
|
color: var(--md-default-fg-color) !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* === Sidebar Fade (desktop only) === */
|
/* === 5. SIDEBAR POSITIONING === */
|
||||||
@media screen and (min-width: 76.25em) {
|
@media screen and (min-width: 76.25em) {
|
||||||
.md-sidebar--primary {
|
/* Default positioning for hero pages */
|
||||||
transition: opacity 0.3s ease;
|
body.has-hero .md-sidebar {
|
||||||
|
top: 0;
|
||||||
|
height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* === Ensure sidebar menu text matches theme mode === */
|
/* Push sidebars down on non-hero pages */
|
||||||
.md-sidebar__inner,
|
body:not(.has-hero) .md-sidebar {
|
||||||
.md-nav__title,
|
top: 5rem !important;
|
||||||
.md-nav__link {
|
height: calc(100vh - 5rem) !important;
|
||||||
color: var(--md-typeset-color) !important;
|
}
|
||||||
|
|
||||||
|
/* Sidebar fade transition (managed by JS) */
|
||||||
|
.md-sidebar--primary,
|
||||||
|
.md-sidebar--secondary {
|
||||||
|
transition: opacity 0.3s ease;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* === 6. CONTENT AFTER HERO === */
|
||||||
|
/* Ensure content after hero has proper background */
|
||||||
|
.md-content__inner > *:not(.hero-banner) {
|
||||||
background-color: var(--md-default-bg-color);
|
background-color: var(--md-default-bg-color);
|
||||||
transition: color 0.3s ease, background-color 0.3s ease;
|
position: relative;
|
||||||
|
z-index: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Optional: add better hover contrast */
|
/* === 7. MOBILE ADJUSTMENTS === */
|
||||||
.md-nav__link:hover {
|
@media screen and (max-width: 76.25em) {
|
||||||
background-color: var(--md-accent-bg-color);
|
.hero-banner {
|
||||||
|
min-height: 70vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
body:not(.has-hero) .md-content__inner {
|
||||||
|
padding-top: 3.5rem !important; /* Smaller header on mobile */
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -44,8 +44,8 @@ markdown_extensions:
|
||||||
- pymdownx.tabbed:
|
- pymdownx.tabbed:
|
||||||
alternate_style: true
|
alternate_style: true
|
||||||
- pymdownx.emoji:
|
- pymdownx.emoji:
|
||||||
emoji_index: !!python/name:materialx.emoji.twemoji
|
emoji_index: !!python/name:material.extensions.emoji.twemoji
|
||||||
emoji_generator: !!python/name:materialx.emoji.to_svg
|
emoji_generator: !!python/name:material.extensions.emoji.to_svg
|
||||||
- pymdownx.highlight
|
- pymdownx.highlight
|
||||||
- pymdownx.inlinehilite
|
- pymdownx.inlinehilite
|
||||||
- pymdownx.snippets
|
- pymdownx.snippets
|
||||||
|
|
|
@ -4,6 +4,16 @@ document$.subscribe(function () {
|
||||||
const sidebarLeft = document.querySelector(".md-sidebar--primary");
|
const sidebarLeft = document.querySelector(".md-sidebar--primary");
|
||||||
const sidebarRight = document.querySelector(".md-sidebar--secondary");
|
const sidebarRight = document.querySelector(".md-sidebar--secondary");
|
||||||
|
|
||||||
|
// Add class to body if hero exists
|
||||||
|
if (hero) {
|
||||||
|
document.body.classList.add("has-hero");
|
||||||
|
} else {
|
||||||
|
// NO HERO - make header solid immediately
|
||||||
|
if (header) {
|
||||||
|
header.classList.add("scrolled");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!hero || !header) return;
|
if (!hero || !header) return;
|
||||||
|
|
||||||
// Reveal hero banner
|
// Reveal hero banner
|
||||||
|
@ -11,10 +21,9 @@ document$.subscribe(function () {
|
||||||
hero.style.opacity = 1;
|
hero.style.opacity = 1;
|
||||||
});
|
});
|
||||||
|
|
||||||
// Scroll logic
|
// Scroll logic - ONLY runs if hero exists
|
||||||
function updateUI() {
|
function updateUI() {
|
||||||
const heroBottom = hero.getBoundingClientRect().bottom;
|
const heroBottom = hero.getBoundingClientRect().bottom;
|
||||||
|
|
||||||
const hasScrolledPastHero = heroBottom <= 0;
|
const hasScrolledPastHero = heroBottom <= 0;
|
||||||
|
|
||||||
// Update header
|
// Update header
|
||||||
|
@ -50,4 +59,3 @@ document$.subscribe(function () {
|
||||||
window.addEventListener("scroll", updateUI);
|
window.addEventListener("scroll", updateUI);
|
||||||
updateUI(); // Initial run
|
updateUI(); // Initial run
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -2,46 +2,46 @@
|
||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
<url>
|
<url>
|
||||||
<loc>https://0_timeline.org/</loc>
|
<loc>https://0_timeline.org/</loc>
|
||||||
<lastmod>2025-07-10</lastmod>
|
<lastmod>2025-07-14</lastmod>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://0_timeline.org/0_timeline/history/</loc>
|
<loc>https://0_timeline.org/0_timeline/history/</loc>
|
||||||
<lastmod>2025-07-10</lastmod>
|
<lastmod>2025-07-14</lastmod>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://0_timeline.org/0_timeline/the-experiment/</loc>
|
<loc>https://0_timeline.org/0_timeline/the-experiment/</loc>
|
||||||
<lastmod>2025-07-10</lastmod>
|
<lastmod>2025-07-14</lastmod>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://0_timeline.org/0_timeline/the-observation/</loc>
|
<loc>https://0_timeline.org/0_timeline/the-observation/</loc>
|
||||||
<lastmod>2025-07-10</lastmod>
|
<lastmod>2025-07-14</lastmod>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://0_timeline.org/0_timeline/the-smartup-hypothesis/</loc>
|
<loc>https://0_timeline.org/0_timeline/the-smartup-hypothesis/</loc>
|
||||||
<lastmod>2025-07-10</lastmod>
|
<lastmod>2025-07-14</lastmod>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://0_timeline.org/smartup-zero/1_general_forum/</loc>
|
<loc>https://0_timeline.org/smartup-zero/1_general_forum/</loc>
|
||||||
<lastmod>2025-07-10</lastmod>
|
<lastmod>2025-07-14</lastmod>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://0_timeline.org/smartup-zero/2_workplace/</loc>
|
<loc>https://0_timeline.org/smartup-zero/2_workplace/</loc>
|
||||||
<lastmod>2025-07-10</lastmod>
|
<lastmod>2025-07-14</lastmod>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://0_timeline.org/smartup-zero/3_teams/</loc>
|
<loc>https://0_timeline.org/smartup-zero/3_teams/</loc>
|
||||||
<lastmod>2025-07-10</lastmod>
|
<lastmod>2025-07-14</lastmod>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://0_timeline.org/smartup-zero/4_roles/</loc>
|
<loc>https://0_timeline.org/smartup-zero/4_roles/</loc>
|
||||||
<lastmod>2025-07-10</lastmod>
|
<lastmod>2025-07-14</lastmod>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://0_timeline.org/smartup-zero/5_objectives/</loc>
|
<loc>https://0_timeline.org/smartup-zero/5_objectives/</loc>
|
||||||
<lastmod>2025-07-10</lastmod>
|
<lastmod>2025-07-14</lastmod>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://0_timeline.org/smartup-zero/6_tasks/</loc>
|
<loc>https://0_timeline.org/smartup-zero/6_tasks/</loc>
|
||||||
<lastmod>2025-07-10</lastmod>
|
<lastmod>2025-07-14</lastmod>
|
||||||
</url>
|
</url>
|
||||||
</urlset>
|
</urlset>
|
Binary file not shown.
|
@ -1,111 +1,180 @@
|
||||||
/* === 1. HEADER: Starts transparent, turns indigo later === */
|
/* === GLOBAL RESETS === */
|
||||||
|
/* Remove all default spacing that causes the white gap */
|
||||||
|
.md-main__inner {
|
||||||
|
margin-top: 0 !important;
|
||||||
|
padding-top: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md-content__inner {
|
||||||
|
margin-top: 0 !important;
|
||||||
|
padding-top: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Add padding back ONLY for non-homepage content */
|
||||||
|
body:not(.has-hero) .md-content__inner {
|
||||||
|
padding-top: 4rem !important; /* Adjust based on your header height */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* === 1. HEADER: Fixed transparent to solid === */
|
||||||
.md-header {
|
.md-header {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
box-shadow: none !important;
|
transition: all 0.3s ease;
|
||||||
transition: background-color 0.3s ease, box-shadow 0.3s ease;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Transparent before scroll */
|
/* Force transparent background when not scrolled */
|
||||||
.md-header:not(.scrolled) {
|
.md-header:not(.scrolled) {
|
||||||
background-color: rgba(0, 0, 0, 0.01) !important;
|
background-color: transparent !important;
|
||||||
|
backdrop-filter: none !important;
|
||||||
|
box-shadow: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* After scroll past hero */
|
/* Solid background after scroll */
|
||||||
.md-header.scrolled {
|
.md-header.scrolled {
|
||||||
background-color: var(--md-primary-fg-color);
|
background-color: var(--md-primary-fg-color);
|
||||||
box-shadow: var(--md-shadow-z2);
|
box-shadow: var(--md-shadow-z2);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* === 2. HERO BANNER === */
|
/* === 2. HERO BANNER: Full viewport with proper positioning === */
|
||||||
.hero-banner {
|
.hero-banner {
|
||||||
|
/* Full viewport coverage */
|
||||||
|
width: 100vw;
|
||||||
|
min-height: 100vh;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
/* Reset any container constraints */
|
||||||
|
margin-left: calc(50% - 50vw);
|
||||||
|
margin-right: calc(50% - 50vw);
|
||||||
|
|
||||||
|
/* Background setup */
|
||||||
background:
|
background:
|
||||||
linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)),
|
linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)),
|
||||||
url('../assets/banner1.png') no-repeat center center;
|
url('../assets/banner1.png') no-repeat center center;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
color: white;
|
background-attachment: fixed; /* Optional: parallax effect */
|
||||||
text-align: center;
|
|
||||||
|
|
||||||
width: 100vw;
|
|
||||||
margin-left: calc(50% - 50vw);
|
|
||||||
|
|
||||||
|
/* Content centering */
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
min-height: 100vh;
|
/* Initial state for JS animation */
|
||||||
padding: 6rem 2rem 2rem;
|
|
||||||
box-sizing: border-box;
|
|
||||||
|
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transition: opacity 1s ease-in-out;
|
transition: opacity 1s ease-in-out;
|
||||||
|
|
||||||
|
/* Ensure it's behind header but above page background */
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 0; /* Ensure it's underneath the header */
|
z-index: 1;
|
||||||
|
|
||||||
|
/* Content styling */
|
||||||
|
color: white;
|
||||||
|
text-align: center;
|
||||||
|
padding: 2rem;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* === 3. PAGE OFFSET FIX: eliminate top margin under fixed header === */
|
/* Hero text styling */
|
||||||
.md-main__inner {
|
.hero-banner h1,
|
||||||
margin-top: 0 !important;
|
.hero-banner p {
|
||||||
}
|
|
||||||
.md-content {
|
|
||||||
margin-top: 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* === 4. HEADER TEXT COLOR: White on hero, revert on scroll === */
|
|
||||||
.md-header__title,
|
|
||||||
.md-header__button,
|
|
||||||
.md-search__input,
|
|
||||||
.md-search__icon,
|
|
||||||
.md-nav__link,
|
|
||||||
.md-icon {
|
|
||||||
color: white !important;
|
color: white !important;
|
||||||
fill: white !important;
|
text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
|
||||||
transition: color 0.3s ease, fill 0.3s ease;
|
margin: 0;
|
||||||
|
padding: 0.5rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* === 3. PAGE OFFSET FIX === */
|
||||||
|
/* Remove white bar at top */
|
||||||
|
.md-header + .md-container {
|
||||||
|
padding-top: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* === 4. HEADER COLORS: Amber when transparent, theme colors when solid === */
|
||||||
|
/* Transparent state - Amber styling */
|
||||||
|
.md-header:not(.scrolled) .md-header__title,
|
||||||
|
.md-header:not(.scrolled) .md-header__button,
|
||||||
|
.md-header:not(.scrolled) .md-nav__link,
|
||||||
|
.md-header:not(.scrolled) .md-icon,
|
||||||
|
.md-header:not(.scrolled) .md-search__icon {
|
||||||
|
color: #ffb300 !important;
|
||||||
|
fill: #ffb300 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Search box in transparent state */
|
||||||
|
.md-header:not(.scrolled) .md-search__form {
|
||||||
|
background-color: rgba(255, 179, 0, 0.1) !important;
|
||||||
|
border: 1px solid rgba(255, 179, 0, 0.3) !important;
|
||||||
|
box-shadow: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md-header:not(.scrolled) .md-search__input {
|
||||||
|
background-color: transparent !important;
|
||||||
|
color: #ffb300 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md-header:not(.scrolled) .md-search__input::placeholder {
|
||||||
|
color: rgba(255, 179, 0, 0.7) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Scrolled state - Default theme colors */
|
||||||
.md-header.scrolled .md-header__title,
|
.md-header.scrolled .md-header__title,
|
||||||
.md-header.scrolled .md-header__button,
|
.md-header.scrolled .md-header__button,
|
||||||
.md-header.scrolled .md-search__input,
|
|
||||||
.md-header.scrolled .md-search__icon,
|
|
||||||
.md-header.scrolled .md-nav__link,
|
.md-header.scrolled .md-nav__link,
|
||||||
.md-header.scrolled .md-icon {
|
.md-header.scrolled .md-icon,
|
||||||
|
.md-header.scrolled .md-search__icon {
|
||||||
color: var(--md-primary-bg-color) !important;
|
color: var(--md-primary-bg-color) !important;
|
||||||
fill: var(--md-primary-bg-color) !important;
|
fill: var(--md-primary-bg-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-banner h1,
|
.md-header.scrolled .md-search__form {
|
||||||
.hero-banner p {
|
background-color: var(--md-default-bg-color--light) !important;
|
||||||
color: white !important;
|
border: none !important;
|
||||||
text-shadow: 0 2px 4px rgba(0,0,0,0.4); /* Optional: adds readability over image */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.md-header.scrolled .md-search__input {
|
||||||
|
background-color: var(--md-default-bg-color--light) !important;
|
||||||
|
color: var(--md-default-fg-color) !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* === Sidebar Fade (desktop only) === */
|
/* === 5. SIDEBAR POSITIONING === */
|
||||||
@media screen and (min-width: 76.25em) {
|
@media screen and (min-width: 76.25em) {
|
||||||
.md-sidebar--primary {
|
/* Default positioning for hero pages */
|
||||||
transition: opacity 0.3s ease;
|
body.has-hero .md-sidebar {
|
||||||
|
top: 0;
|
||||||
|
height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* === Ensure sidebar menu text matches theme mode === */
|
/* Push sidebars down on non-hero pages */
|
||||||
.md-sidebar__inner,
|
body:not(.has-hero) .md-sidebar {
|
||||||
.md-nav__title,
|
top: 5rem !important;
|
||||||
.md-nav__link {
|
height: calc(100vh - 5rem) !important;
|
||||||
color: var(--md-typeset-color) !important;
|
}
|
||||||
|
|
||||||
|
/* Sidebar fade transition (managed by JS) */
|
||||||
|
.md-sidebar--primary,
|
||||||
|
.md-sidebar--secondary {
|
||||||
|
transition: opacity 0.3s ease;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* === 6. CONTENT AFTER HERO === */
|
||||||
|
/* Ensure content after hero has proper background */
|
||||||
|
.md-content__inner > *:not(.hero-banner) {
|
||||||
background-color: var(--md-default-bg-color);
|
background-color: var(--md-default-bg-color);
|
||||||
transition: color 0.3s ease, background-color 0.3s ease;
|
position: relative;
|
||||||
|
z-index: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Optional: add better hover contrast */
|
/* === 7. MOBILE ADJUSTMENTS === */
|
||||||
.md-nav__link:hover {
|
@media screen and (max-width: 76.25em) {
|
||||||
background-color: var(--md-accent-bg-color);
|
.hero-banner {
|
||||||
|
min-height: 70vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
body:not(.has-hero) .md-content__inner {
|
||||||
|
padding-top: 3.5rem !important; /* Smaller header on mobile */
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue