@for $i from 1 through 12
.columns.is-mobile > &.is-#{$i}
flex: none
- width: ($i / 12) * 100%
+ width: percentage($i / 12)
.columns.is-mobile > &.is-offset-#{$i}
- margin-left: ($i / 12) * 100%
+ margin-left: percentage($i / 12)
+mobile
&.is-narrow-mobile
flex: none
@for $i from 1 through 12
&.is-#{$i}-mobile
flex: none
- width: ($i / 12) * 100%
+ width: percentage($i / 12)
&.is-offset-#{$i}-mobile
- margin-left: ($i / 12) * 100%
+ margin-left: percentage($i / 12)
+tablet
&.is-narrow,
&.is-narrow-tablet
&.is-#{$i},
&.is-#{$i}-tablet
flex: none
- width: ($i / 12) * 100%
+ width: percentage($i / 12)
&.is-offset-#{$i},
&.is-offset-#{$i}-tablet
- margin-left: ($i / 12) * 100%
+ margin-left: percentage($i / 12)
+touch
&.is-narrow-touch
flex: none
@for $i from 1 through 12
&.is-#{$i}-touch
flex: none
- width: ($i / 12) * 100%
+ width: percentage($i / 12)
&.is-offset-#{$i}-touch
- margin-left: ($i / 12) * 100%
+ margin-left: percentage($i / 12)
+desktop
&.is-narrow-desktop
flex: none
@for $i from 1 through 12
&.is-#{$i}-desktop
flex: none
- width: ($i / 12) * 100%
+ width: percentage($i / 12)
&.is-offset-#{$i}-desktop
- margin-left: ($i / 12) * 100%
+ margin-left: percentage($i / 12)
+widescreen
&.is-narrow-widescreen
flex: none
@for $i from 1 through 12
&.is-#{$i}-widescreen
flex: none
- width: ($i / 12) * 100%
+ width: percentage($i / 12)
&.is-offset-#{$i}-widescreen
- margin-left: ($i / 12) * 100%
+ margin-left: percentage($i / 12)
+fullhd
&.is-narrow-fullhd
flex: none
@for $i from 1 through 12
&.is-#{$i}-fullhd
flex: none
- width: ($i / 12) * 100%
+ width: percentage($i / 12)
&.is-offset-#{$i}-fullhd
- margin-left: ($i / 12) * 100%
+ margin-left: percentage($i / 12)
.columns
margin-left: (-$column-gap)