Skip to content

Instantly share code, notes, and snippets.

@vanderb
Last active August 26, 2019 15:06
Show Gist options
  • Save vanderb/36dfc7bee070a36b7e710c47090ba974 to your computer and use it in GitHub Desktop.
Save vanderb/36dfc7bee070a36b7e710c47090ba974 to your computer and use it in GitHub Desktop.
Bulma - Flex-Column-Order for SCSS
@for $n from 1 through 12 {
.is-order-#{$n} {
order: #{$n} !important;
}
@include mobile {
.is-order-#{$n}-mobile {
order: #{$n} !important;
}
}
@include tablet {
.is-order-#{$n}-tablet {
order: #{$n} !important;
}
}
@include tablet-only {
.is-order-#{$n}-tablet-only {
order: #{$n} !important;
}
}
@include touch {
.is-order-#{$n}-touch {
order: #{$n} !important;
}
}
@include desktop {
.is-order-#{$n}-desktop {
order: #{$n} !important;
}
}
@include desktop-only {
.is-order-#{$n}-desktop-only {
order: #{$n} !important;
}
}
@include widescreen {
.is-order-#{$n}-widescreen {
order: #{$n} !important;
}
}
@include widescreen-only {
.is-order-#{$n}-widescreen-only {
order: #{$n} !important;
}
}
@include fullhd {
.is-order-#{$n}-fullhd {
order: #{$n} !important;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment