]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Add breakpoint based column gaps (#1679)
authorTim MacDonald <tim.mac7@me.com>
Wed, 30 May 2018 08:59:51 +0000 (18:59 +1000)
committerJeremy Thomas <bbxdesign@gmail.com>
Wed, 30 May 2018 08:59:51 +0000 (09:59 +0100)
* add breakpoint based column gaps

* remove redundant loops :facepalm:

sass/grid/columns.sass

index 0b5d4de9d3652161c2d700bff00bd07c2687ea85..bd41761e4e1d477790047692b3f634961255246b 100644 (file)
@@ -475,3 +475,30 @@ $column-gap: 0.75rem !default
     @for $i from 0 through 8
       &.is-#{$i}
         --columnGap: #{$i * 0.25rem}
+      +mobile
+        &.is-#{$i}-mobile
+          --columnGap: #{$i * 0.25rem}
+      +tablet
+        &.is-#{$i}-tablet
+          --columnGap: #{$i * 0.25rem}
+      +tablet-only
+        &.is-#{$i}-tablet-only
+          --columnGap: #{$i * 0.25rem}
+      +touch
+        &.is-#{$i}-touch
+          --columnGap: #{$i * 0.25rem}
+      +desktop
+        &.is-#{$i}-desktop
+          --columnGap: #{$i * 0.25rem}
+      +desktop-only
+        &.is-#{$i}-desktop-only
+          --columnGap: #{$i * 0.25rem}
+      +widescreen
+        &.is-#{$i}-widescreen
+          --columnGap: #{$i * 0.25rem}
+      +widescreen-only
+        &.is-#{$i}-widescreen-only
+          --columnGap: #{$i * 0.25rem}
+      +fullhd
+        &.is-#{$i}-fullhd
+          --columnGap: #{$i * 0.25rem}