mirror of
https://github.com/jgthms/bulma
synced 2026-03-15 02:04:29 -07:00
Fix mobile navbar
This commit is contained in:
@@ -10,7 +10,9 @@
|
|||||||
|
|
||||||
<div id="ghbtns" class="intro-ghbtns">
|
<div id="ghbtns" class="intro-ghbtns">
|
||||||
<iframe src="https://ghbtns.com/github-btn.html?user=jgthms&repo=bulma&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
|
<iframe src="https://ghbtns.com/github-btn.html?user=jgthms&repo=bulma&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
|
||||||
<img src="https://img.shields.io/npm/dm/bulma.svg">
|
<a href="https://www.npmjs.com/package/bulma" target="_blank" rel="nofollow">
|
||||||
|
<img src="https://img.shields.io/npm/dm/bulma.svg">
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% assign npmInstall = 'npm install bulma' %}
|
{% assign npmInstall = 'npm install bulma' %}
|
||||||
|
|||||||
@@ -272,22 +272,11 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
const specialShadow = document.getElementById('specialShadow');
|
const specialShadow = document.getElementById('specialShadow');
|
||||||
const NAVBAR_HEIGHT = 52;
|
const NAVBAR_HEIGHT = 52;
|
||||||
const THRESHOLD = 160;
|
const THRESHOLD = 160;
|
||||||
let navbarOpen = false;
|
|
||||||
let horizon = NAVBAR_HEIGHT;
|
let horizon = NAVBAR_HEIGHT;
|
||||||
let whereYouStoppedScrolling = 0;
|
let whereYouStoppedScrolling = 0;
|
||||||
let scrollFactor = 0;
|
let scrollFactor = 0;
|
||||||
let currentTranslate = 0;
|
let currentTranslate = 0;
|
||||||
|
|
||||||
navbarBurger.addEventListener('click', el => {
|
|
||||||
navbarOpen = !navbarOpen;
|
|
||||||
|
|
||||||
if (navbarOpen) {
|
|
||||||
rootEl.classList.add('bd-is-clipped-touch');
|
|
||||||
} else {
|
|
||||||
rootEl.classList.remove('bd-is-clipped-touch');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
// Anchors highlight
|
// Anchors highlight
|
||||||
|
|
||||||
let past_anchors = [];
|
let past_anchors = [];
|
||||||
|
|||||||
@@ -7,7 +7,15 @@ name: "Website redesign"
|
|||||||
icon: "star"
|
icon: "star"
|
||||||
---
|
---
|
||||||
|
|
||||||
The Bulma website has been widely redesigned!
|
The Bulma website has been widely redesigned! There's been a lot of work, to say the least:
|
||||||
|
|
||||||
|
<figure>
|
||||||
|
<img src="/images/blog/v7/files.png" alt="files" width="312" height="37">
|
||||||
|
<br>
|
||||||
|
<img src="/images/blog/v7/diff.png" alt="diff" width="167" height="38">
|
||||||
|
</figure>
|
||||||
|
|
||||||
|
Just see for yourself!
|
||||||
|
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
|
|||||||
@@ -249,11 +249,18 @@
|
|||||||
font-weight: $weight-semibold
|
font-weight: $weight-semibold
|
||||||
|
|
||||||
.intro-ghbtns
|
.intro-ghbtns
|
||||||
height: 30px
|
|
||||||
margin-bottom: 26px
|
margin-bottom: 26px
|
||||||
|
min-height: 30px
|
||||||
iframe,
|
iframe,
|
||||||
|
a,
|
||||||
img
|
img
|
||||||
height: 30px
|
height: 30px
|
||||||
|
a
|
||||||
|
display: inline-block
|
||||||
|
min-width: 100px
|
||||||
|
vertical-align: top
|
||||||
|
img
|
||||||
|
display: block
|
||||||
|
|
||||||
.intro-npm
|
.intro-npm
|
||||||
background: $black-ter
|
background: $black-ter
|
||||||
|
|||||||
@@ -10682,15 +10682,26 @@ svg {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.intro-ghbtns {
|
.intro-ghbtns {
|
||||||
height: 30px;
|
|
||||||
margin-bottom: 26px;
|
margin-bottom: 26px;
|
||||||
|
min-height: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.intro-ghbtns iframe,
|
.intro-ghbtns iframe,
|
||||||
|
.intro-ghbtns a,
|
||||||
.intro-ghbtns img {
|
.intro-ghbtns img {
|
||||||
height: 30px;
|
height: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.intro-ghbtns a {
|
||||||
|
display: inline-block;
|
||||||
|
min-width: 100px;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
.intro-ghbtns img {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
.intro-npm {
|
.intro-npm {
|
||||||
background: #242424;
|
background: #242424;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
|||||||
2
docs/css/bulma-docs.min.css
vendored
2
docs/css/bulma-docs.min.css
vendored
File diff suppressed because one or more lines are too long
BIN
docs/images/blog/v7/commits.png
Normal file
BIN
docs/images/blog/v7/commits.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
BIN
docs/images/blog/v7/diff.png
Normal file
BIN
docs/images/blog/v7/diff.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.9 KiB |
BIN
docs/images/blog/v7/files.png
Normal file
BIN
docs/images/blog/v7/files.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
@@ -274,22 +274,11 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||||||
var specialShadow = document.getElementById('specialShadow');
|
var specialShadow = document.getElementById('specialShadow');
|
||||||
var NAVBAR_HEIGHT = 52;
|
var NAVBAR_HEIGHT = 52;
|
||||||
var THRESHOLD = 160;
|
var THRESHOLD = 160;
|
||||||
var navbarOpen = false;
|
|
||||||
var horizon = NAVBAR_HEIGHT;
|
var horizon = NAVBAR_HEIGHT;
|
||||||
var whereYouStoppedScrolling = 0;
|
var whereYouStoppedScrolling = 0;
|
||||||
var scrollFactor = 0;
|
var scrollFactor = 0;
|
||||||
var currentTranslate = 0;
|
var currentTranslate = 0;
|
||||||
|
|
||||||
navbarBurger.addEventListener('click', function (el) {
|
|
||||||
navbarOpen = !navbarOpen;
|
|
||||||
|
|
||||||
if (navbarOpen) {
|
|
||||||
rootEl.classList.add('bd-is-clipped-touch');
|
|
||||||
} else {
|
|
||||||
rootEl.classList.remove('bd-is-clipped-touch');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
// Anchors highlight
|
// Anchors highlight
|
||||||
|
|
||||||
var past_anchors = [];
|
var past_anchors = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user