@import "../page-layout-base";
//
// Three Regions Priority Content 2-8-2
//
// This layout will place the first region in source order between the
// following two. For example, if we have the region source order:
//
//   - first
//   - second
//   - third
//
// But you want it to appear like this:
//
//   ------------------------------------------------------
//  |   second   |            first           |   third    |
//   ------------------------------------------------------

.threecol-source-ordered-2-8-2 {

  // Region first and second are active.
  .hr--1-2 {
    .l-r {
      &:first-child {
        @include span(10 of 12 last);
      }

      &:last-child {
        @include span(2 of 12);
      }
    }
  }

  // Region first and third are active.
  .hr--1-3 {
    .l-r {
      &:first-child {
        @include span(10 of 12);
      }

      &:last-child {
        @include span(2 of 12 last);
      }
    }
  }

  // Region second and third are active.
  .hr--2-3 {
    .l-r {
      @include span(6 of 12);

      &:last-child {
        @include last;
      }
    }
  }

  // All 3col regions are active.
  .arc--3 {
    .l-r {
      &:first-child {
        @include span(8 of 12);
        @include push(2 of 12);
      }

      &:nth-child(2) {
        @include span(2 of 12);
        @include pull(10 of 12);
      }

      &:last-child {
        @include span(2 of 12 last);
      }
    }
  }
}

