diff --git a/CHANGELOG.md b/CHANGELOG.md index 88fe4249..2f667f66 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,8 @@ * Fix `.level-item` height * Fix `.menu` spacing * Deprecate `.menu-nav` +* Add invert outlined buttons +* Fix `.nav` ## 0.2.2 diff --git a/docs/_includes/header.html b/docs/_includes/header.html index 4330afab..de6a9c92 100644 --- a/docs/_includes/header.html +++ b/docs/_includes/header.html @@ -66,7 +66,7 @@ {% else %} - {% highlight html %} {{button_inverted_example}} +{% endhighlight %} + + + +

Invert Outlined (the invert color becomes the text and border colors)

+ +{% capture button_inverted_outlined_example %} +
Invert Outlined +Invert Outlined +Invert Outlined +Invert Outlined +{% endcapture %} +
+
+
+{{button_inverted_outlined_example}} +
+
+
+{% highlight html %} +{{button_inverted_outlined_example}} {% endhighlight %}
diff --git a/sass/components/nav.sass b/sass/components/nav.sass index 184e7f3f..839c0b11 100644 --- a/sass/components/nav.sass +++ b/sass/components/nav.sass @@ -13,6 +13,7 @@ $nav-height: 3rem !default display: flex flex-grow: 0 flex-shrink: 0 + font-size: $size-normal justify-content: center padding: 0.5rem 0.75rem a @@ -23,10 +24,10 @@ $nav-height: 3rem !default .button + .button margin-left: 0.75rem .tag - &:first-child - margin-right: 0.25rem - &:last-child - margin-left: 0.25rem + &:first-child:not(:last-child) + margin-right: 0.5rem + &:last-child:not(:first-child) + margin-left: 0.5rem // Responsiveness +mobile justify-content: flex-start @@ -42,15 +43,17 @@ a.nav-item &.is-tab border-bottom: 1px solid transparent border-top: 1px solid transparent - padding-left: 12px - padding-right: 12px + padding-bottom: calc(0.5rem - 1px) + padding-left: 1rem + padding-right: 1rem + padding-top: calc(0.5rem - 1px) &:hover - border-bottom: 1px solid $link - border-top: 1px solid transparent + border-bottom-color: $link + border-top-color: transparent &.is-active border-bottom: 3px solid $link - border-top: 3px solid transparent color: $link + padding-bottom: calc(0.5rem - 3px) // Containers @@ -72,12 +75,16 @@ a.nav-item +tablet-only padding-right: 1.5rem -.nav-left + +.nav-left, +.nav-right align-items: stretch - display: flex flex-basis: 0 flex-grow: 1 flex-shrink: 0 + +.nav-left + display: flex justify-content: flex-start overflow: hidden overflow-x: auto @@ -86,19 +93,17 @@ a.nav-item .nav-center align-items: stretch display: flex + flex-grow: 0 + flex-shrink: 0 justify-content: center margin-left: auto margin-right: auto .nav-right + justify-content: flex-end // Responsiveness +tablet - align-items: stretch display: flex - flex-basis: 0 - flex-grow: 1 - flex-shrink: 0 - justify-content: flex-end // Main container diff --git a/sass/elements/button.sass b/sass/elements/button.sass index f652a96c..4dad6333 100644 --- a/sass/elements/button.sass +++ b/sass/elements/button.sass @@ -161,13 +161,20 @@ $button-shadow-inset: inset 0 1px 2px rgba($black, 0.2) &.is-outlined background-color: transparent border-color: $color - border-width: 1px color: $color &:hover, &:focus background-color: $color border-color: $color color: $color-invert + &.is-inverted.is-outlined + background-color: transparent + border-color: $color-invert + color: $color-invert + &:hover, + &:focus + background-color: $color-invert + color: $color // Sizes &.is-small +button-small