]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Fix for #1875 | buttons and tags group sizing (are-small/are-medium/are-large) ...
authorMay Kittens Devour Your Soul <yoshimitsu002@gmail.com>
Wed, 31 Oct 2018 18:57:58 +0000 (19:57 +0100)
committerJeremy Thomas <bbxdesign@gmail.com>
Wed, 31 Oct 2018 18:57:58 +0000 (18:57 +0000)
* Update button.sass

button grouping sizes

* Update tag.sass

sass/elements/button.sass
sass/elements/tag.sass

index 1146136498501b9e7816d8a718fbe9f9d1926391..0204f3ad878e745a4b27b7eb58a21b7fbe5b02bf 100644 (file)
@@ -231,6 +231,16 @@ $button-static-border-color: $grey-lighter !default
     margin-bottom: -0.5rem
   &:not(:last-child)
     margin-bottom: 1rem
+  // Sizes
+  &.are-small
+    .button
+      +button-small
+  &.are-medium
+    .button
+      +button-medium
+  &.are-large
+    .button
+      +button-large  
   &.has-addons
     .button
       &:not(:first-child)
index 25db0fe6b4be5668e5a9c5239e15a78269c5afce..43df0683aef76ca3a2d1bfc50690bde6105c60ca 100644 (file)
@@ -16,6 +16,22 @@ $tag-delete-margin: 1px !default
     margin-bottom: -0.5rem
   &:not(:last-child)
     margin-bottom: 1rem
+  // Sizes
+  &.are-medium
+    .tag
+      font-size: $size-normal
+  &.are-large
+    .tag
+      font-size: $size-medium  
+  &.has-addons
+    .tag
+      margin-right: 0
+      &:not(:first-child)
+        border-bottom-left-radius: 0
+        border-top-left-radius: 0
+      &:not(:last-child)
+        border-bottom-right-radius: 0
+        border-top-right-radius: 0
   &.is-centered
     justify-content: center
     .tag