Updated partials. Moved scss into their own folders.

This commit is contained in:
Chris 2018-01-07 17:21:07 -05:00
parent 5b3c0f21fc
commit 8871bdb68c
10 changed files with 15 additions and 3 deletions

View File

@ -0,0 +1,3 @@
<nav class="navbar is-dark is-size-6 is-fixed-top" role="navigation" aria-label="main navigation">
{{ partial "layout/navbar_contents" . }}
</nav>

View File

@ -1,11 +1,14 @@
const navbar = document.getElementById('hero-navbar'); const navbar = document.getElementById('hero-navbar');
const navbarBaseColor = 'is-dark';
if (navbar) { if (navbar) {
window.addEventListener('scroll', () => { window.addEventListener('scroll', () => {
if (window.scrollY > 0) { if (window.scrollY > 0) {
navbar.classList.add('is-freestanding'); navbar.classList.add('is-freestanding');
navbar.classList.add(navbarBaseColor);
} else { } else {
navbar.classList.remove('is-freestanding'); navbar.classList.remove('is-freestanding');
navbar.classList.remove(navbarBaseColor);
} }
}); });
} }

View File

@ -0,0 +1 @@
$navbar-background-color: $light;

View File

@ -0,0 +1 @@
$primary: #ff8e03;

View File

@ -3,9 +3,9 @@
@import "./node_modules/bulma/sass/utilities/initial-variables.sass"; @import "./node_modules/bulma/sass/utilities/initial-variables.sass";
/* 2. Set the derived variables */ /* 2. Set the derived variables */
@import "./yuzu_before_derived.scss"; @import "./yuzu/yuzu_before_derived.scss";
@import "./node_modules/bulma/sass/utilities/derived-variables.sass"; @import "./node_modules/bulma/sass/utilities/derived-variables.sass";
@import "./yuzu_after_derived.scss"; @import "./yuzu/yuzu_after_derived.scss";
/* 3. Misc customization of Bulma */ /* 3. Misc customization of Bulma */
$body-background-color: $background; $body-background-color: $background;
@ -20,4 +20,4 @@ $navbar-item-img-max-height: 2.75rem;
/* 4. Import the rest of Bulma */ /* 4. Import the rest of Bulma */
@import "./node_modules/bulma/bulma.sass"; @import "./node_modules/bulma/bulma.sass";
@import "./shared.scss"; @import "./shared.scss";
@import "./yuzu.scss"; @import "./yuzu/yuzu.scss";

0
src/scss/yuzu/yuzu.scss Normal file
View File

View File

@ -1,4 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env bash
rm -rf ./site/themes/shared-bulma-theme/
git submodule update --remote --merge git submodule update --remote --merge
git add ./site/themes/shared-bulma-theme/
git commit -m "Updated shared-bulma-theme."
git push