lattice()

  • /src/css/core/abstract/_deprecated.scss

Abstract row component of flexbox based grid system

scss

@use "node_modules/sass-basis/src/css/core";

.c-lattice {
  @include core.lattice();

  &__col {
    @include core.lattice__col();

    &--1-3 {
      @include core.lattice__col(1, 3);
    }
  }
}

html

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
<div class="c-lattice">
  <div class="c-lattice__col c-lattice__col--1-3">
    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
  </div>
  <div class="c-lattice__col c-lattice__col--1-3">
    Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
  </div>
</div>

lattice__col()

  • /src/css/core/abstract/_deprecated.scss

Abstract column element of flexbox based grid system

scss

//
// @param  int  $columns      molecule column size
// @param  int  $max-columns  denominator column size
//

@use "node_modules/sass-basis/src/css/core";

.c-lattice {
  @include core.lattice();

  &__col {
    @include core.lattice__col();

    &--1-3 {
      @include core.lattice__col(1, 3);
    }
  }
}

html

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
<div class="c-lattice">
  <div class="c-lattice__col c-lattice__col--1-3">
    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
  </div>
  <div class="c-lattice__col c-lattice__col--1-3">
    Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
  </div>
</div>

lattice__col--width()

  • /src/css/core/abstract/_deprecated.scss

Sets column width of flexbox based grid system

scss

//
// @param  length  $width
//

@use "node_modules/sass-basis/src/css/core";

.c-lattice {
  @include core.lattice();

  &__col {
    @include core.lattice__col(1, 2);

    @include core.media-min(lg) {
      @include core.lattice__col--width(1 / 3 * 100%);
    }
  }
}