Ответы пользователя по тегу Sass
  • Есть ли у кого-то миксин bootstrap-grid для sass?

    @ForestEsprit
    HTML - верстальщик
    v4-alpha.getbootstrap.com/layout/grid/#example-usage

    // Creates a wrapper for a series of columns
    @mixin make-row($gutter: $grid-gutter-width) {
      margin-left:  ($gutter / -2);
      margin-right: ($gutter / -2);
      @include clearfix();
    }
    
    // Make the element grid-ready (applying everything but the width)
    @mixin make-col($gutter: $grid-gutter-width) {
      position: relative;
      float: left;
      min-height: 1px;
      padding-left:  ($gutter / 2);
      padding-right: ($gutter / 2);
    }
    
    // Set a width (to be used in or out of media queries)
    @mixin make-col-span($columns) {
      width: percentage(($columns / $grid-columns));
    }
    
    // Get fancy by offsetting, or changing the sort order
    @mixin make-col-offset($columns) {
      margin-left: percentage(($columns / $grid-columns));
    }
    @mixin make-col-push($columns) {
      left: percentage(($columns / $grid-columns));
    }
    @mixin make-col-pull($columns) {
      right: percentage(($columns / $grid-columns));
    }
    Ответ написан
    Комментировать