L
L
lavezzi12015-10-20 07:51:10
css
lavezzi1, 2015-10-20 07:51:10

Grid like Bootstrap for SCSS?

Please shine a light on a 12-column grid that works like a bootstrap grid. Thank you.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Alex K, 2015-10-20
@alexk111

If Bootstrap ported to SCSS ( https://github.com/twbs/bootstrap-sass) doesn't work then try gridle.org - very flexible system for any SCSS grids (including 12 columns)

A
Alexander Zubarev, 2015-10-20
@zualex

In this template , I use my SCSS grid.
There is a demo to see the grid itself.
The grid itself here

A
Andrey Goncharov, 2015-10-20
@agmegadeth

I made mine to fit my needs. 12 columns, but not in floats like in bootstrap, but inline blocks.

.grid {
  position: relative;
  min-height: 1px;
  display: inline-block;
  vertical-align: top;
  margin-right: -4px;
}

@for $i from 1 through 12 {
  .grid-#{$i} {
    @extend .grid;
    width: 1 / 12 * $i * 100%;
  }
}

@media screen and (max-width: XXXpx) {
  @for $i from 1 through 12 {
    .grid-#{$i}_XXX{
      width: 1 / 12 * $i * 100%;
    }
  }
}

XXX - screen width for the breakpoint (set it yourself), There may be several such media queries for several breakpoints.

A
Alexander Taratin, 2015-10-20
@Taraflex

https://github.com/twbs/bootstrap/blob/v4-dev/scss...

D
Dmitry Khristoev, 2015-10-20
@Haoss

https://github.com/corysimmons/lost

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question