Sha256: ff890655d5ee260c84edf94ce32d62c67b2e57d2568925c68dc5295e86398673

Contents?: true

Size: 733 Bytes

Versions: 1

Compression:

Stored size: 733 Bytes

Contents

// Row
section.grater {
  // Columns
  > section {
    width: 300px;
    margin: 0 0 2em;

    // First column
    &:first-child {
      float: left;
    }

    // Second column
    &:last-child {
      float: right;
    }
  }

  // When the `reverse` class is added, the columns are switch
  &.reverse > section {
    &:first-child {
      float: right;
    }

    &:last-child {
      float: left;
    }
  }
  
  // Clearfix
  zoom: 1;
  
  &:before,
  &:after {
    content: "";
    display: table;
  }
  
  &:after {
    clear: both;
  }

  // Responsive
  @media all and (max-width: 660px) {
    margin-bottom: 1em;

    > section {
      float: none !important; // Shut up. I know, I know
      margin: 0 auto 2em;
    }
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grater-0.1.0 app/assets/stylesheets/grater.css.scss