Sha256: 17900ed3183b44bdf82269cc453d46cf1b6150e83ae9d95f3fd258240daba03f

Contents?: true

Size: 1.35 KB

Versions: 11

Compression:

Stored size: 1.35 KB

Contents

// Flex variation
//
// Custom styles for additional flex alignment options.

@if $enable-flex {
  @each $breakpoint in map-keys($grid-breakpoints) {
    // Flex column reordering
    @include media-breakpoint-up($breakpoint) {
      .flex-#{$breakpoint}-first { order: -1; }
      .flex-#{$breakpoint}-last { order: 1; }
      .flex-#{$breakpoint}-unordered { order: 0; }
    }

    // Alignment for every item
    @include media-breakpoint-up($breakpoint) {
      .flex-items-#{$breakpoint}-top { align-items: flex-start; }
      .flex-items-#{$breakpoint}-middle { align-items: center; }
      .flex-items-#{$breakpoint}-bottom { align-items: flex-end; }
    }

    // Alignment per item
    @include media-breakpoint-up($breakpoint) {
      .flex-#{$breakpoint}-top   { align-self: flex-start; }
      .flex-#{$breakpoint}-middle { align-self: center; }
      .flex-#{$breakpoint}-bottom { align-self: flex-end; }
    }

    // Horizontal alignment of item
    @include media-breakpoint-up($breakpoint) {
      .flex-items-#{$breakpoint}-left { justify-content: flex-start; }
      .flex-items-#{$breakpoint}-center { justify-content: center; }
      .flex-items-#{$breakpoint}-right { justify-content: flex-end; }
      .flex-items-#{$breakpoint}-around { justify-content: space-around; }
      .flex-items-#{$breakpoint}-between { justify-content: space-between; }
    }
  }
}

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
geekyll-0.1.2 _sass/geekyll/bootstrap4alpha4/utilities/_flex.scss
geekyll-0.1.1 _sass/geekyll/bootstrap4alpha4/utilities/_flex.scss
bootstrap-4.0.0.alpha5 assets/stylesheets/bootstrap/utilities/_flex.scss
geekyll-0.1.0 _sass/geekyll/bootstrap4alpha4/utilities/_flex.scss
geekyll-0.0.9 _sass/geekyll/bootstrap4alpha4/utilities/_flex.scss
flying_dutchman-0.6.0 vendor/assets/stylesheets/bootstrap/utilities/_flex.scss
bootstrap-4.0.0.alpha4 assets/stylesheets/bootstrap/utilities/_flex.scss
flying_dutchman-0.5.0 vendor/assets/stylesheets/bootstrap/utilities/_flex.scss
flying_dutchman-0.4.0 vendor/assets/stylesheets/bootstrap/utilities/_flex.scss
flying_dutchman-0.3.0 vendor/assets/stylesheets/bootstrap/utilities/_flex.scss
bootstrap-4.0.0.alpha3.1 assets/stylesheets/bootstrap/utilities/_flex.scss