diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a45eb97..cca236fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ * 🎉 [List of buttons](https://bulma.io/documentation/elements/button/#list-of-buttons) * 🎉 #1235 Support for five column grid: `.is-one-fifth, .is-two-fifths, .is-three-fifths, .is-four-fifths` * 🎉 #1287 New `.is-invisible` helper +* 🎉 #1255 New `.is-expanded` modifier for `navbar-item` ### Improvements diff --git a/docs/documentation/components/navbar.html b/docs/documentation/components/navbar.html index 4a9576a4..eb04bd24 100644 --- a/docs/documentation/components/navbar.html +++ b/docs/documentation/components/navbar.html @@ -736,6 +736,9 @@ document.addEventListener('DOMContentLoaded', function () { navbar-dropdown +

+ You can add the modifier class is-expanded to turn it into a full-width element. +

{% include anchor.html name="Transparent navbar" %} diff --git a/sass/components/navbar.sass b/sass/components/navbar.sass index 2910772a..7f9c2af3 100644 --- a/sass/components/navbar.sass +++ b/sass/components/navbar.sass @@ -130,6 +130,9 @@ a.navbar-item, max-height: $navbar-item-img-max-height &.has-dropdown padding: 0 + &.is-expanded + flex-grow: 1 + flex-shrink: 1 &.is-tab border-bottom: 1px solid transparent min-height: $navbar-height