mirror of
https://github.com/yuzu-emu/yuzu-emu.github.io.git
synced 2024-12-02 13:14:21 +01:00
Updated partials. Moved scss into their own folders.
This commit is contained in:
parent
5b3c0f21fc
commit
8871bdb68c
3
site/layouts/partials/navbar.html
Normal file
3
site/layouts/partials/navbar.html
Normal 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>
|
@ -1,11 +1,14 @@
|
||||
const navbar = document.getElementById('hero-navbar');
|
||||
const navbarBaseColor = 'is-dark';
|
||||
|
||||
if (navbar) {
|
||||
window.addEventListener('scroll', () => {
|
||||
if (window.scrollY > 0) {
|
||||
navbar.classList.add('is-freestanding');
|
||||
navbar.classList.add(navbarBaseColor);
|
||||
} else {
|
||||
navbar.classList.remove('is-freestanding');
|
||||
navbar.classList.remove(navbarBaseColor);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
1
src/scss/citra/citra_after_derived.scss
Normal file
1
src/scss/citra/citra_after_derived.scss
Normal file
@ -0,0 +1 @@
|
||||
$navbar-background-color: $light;
|
1
src/scss/citra/citra_before_derived.scss
Normal file
1
src/scss/citra/citra_before_derived.scss
Normal file
@ -0,0 +1 @@
|
||||
$primary: #ff8e03;
|
@ -3,9 +3,9 @@
|
||||
@import "./node_modules/bulma/sass/utilities/initial-variables.sass";
|
||||
|
||||
/* 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 "./yuzu_after_derived.scss";
|
||||
@import "./yuzu/yuzu_after_derived.scss";
|
||||
|
||||
/* 3. Misc customization of Bulma */
|
||||
$body-background-color: $background;
|
||||
@ -20,4 +20,4 @@ $navbar-item-img-max-height: 2.75rem;
|
||||
/* 4. Import the rest of Bulma */
|
||||
@import "./node_modules/bulma/bulma.sass";
|
||||
@import "./shared.scss";
|
||||
@import "./yuzu.scss";
|
||||
@import "./yuzu/yuzu.scss";
|
0
src/scss/yuzu/yuzu.scss
Normal file
0
src/scss/yuzu/yuzu.scss
Normal file
@ -1,4 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
rm -rf ./site/themes/shared-bulma-theme/
|
||||
git submodule update --remote --merge
|
||||
git add ./site/themes/shared-bulma-theme/
|
||||
git commit -m "Updated shared-bulma-theme."
|
||||
git push
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user