]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Make centered buttons have equal margin (#2381)
authorJames Adam Wasson <jameswasson1@gmail.com>
Fri, 17 May 2019 09:56:58 +0000 (03:56 -0600)
committerJeremy Thomas <bbxdesign@gmail.com>
Fri, 17 May 2019 09:56:58 +0000 (10:56 +0100)
* Make centered buttons have equal margin

* Add fix for .has-addons centered

* Add fix for is-right

sass/elements/button.sass

index e75cd2fd07852d3f20ccaa577b14e2705e8783ae..207c202d1f21ef3887c19cf7a05b322960d5a68c 100644 (file)
@@ -271,5 +271,13 @@ $button-static-border-color: $grey-lighter !default
         flex-grow: 1
   &.is-centered
     justify-content: center
+    &:not(.has-addons) 
+      .button:not(.is-fullwidth)
+        margin-left: 0.25rem
+        margin-right: 0.25rem
   &.is-right
     justify-content: flex-end
+    &:not(.has-addons) 
+      .button:not(.is-fullwidth)
+        margin-left: 0.25rem
+        margin-right: 0.25rem