Spectre: Col size small, medium, large

Created on 21 Apr 2016  路  14Comments  路  Source: picturepan2/spectre

Hi,

can I choose col- depending on screen size like in Bootstrap or Foundation ?

I don't want the same % of width on mobile and desktop.

enhancement

Most helpful comment

Holy crap, that's fast ! 馃憤

All 14 comments

I am doing this right now in a new branch. 馃憤

Holy crap, that's fast ! 馃憤

Any chance to get an option like small-hide small-show ?
Same for medium, large ?

I'll allow us to show/hide thing depending on screen size ?

There are some hide utilities in src/utilities.less. Still working on more responsive things.

will check that

Please check feature/add-responsive-grid branch. I updated the doc as well. Thanks.

Though I add more col-xs-, col-sm- and col-md- options, another responsive thing form-horizontal is broken. I will fix it.

seems to be working well ! Will you merge it soon ? Can't tell npm to use a branch I guess ^^

About the hide thing, in utilities there is nothing about hide/show in xs, sm (etc)

looks like I didn't check enough :

@media screen and (max-width: 480px) {
.hide-xs {
    display: none !important;
    }
}

But missing same thing for show-xs, like :

[class^="show-"], [class*=" show-"] {
  display: none !important;
}

@media screen and (max-width: 480px) {
  .show-xs {
    display: inherit !important;
  }
}
@media screen and (max-width: 600px) {
  .show-sm {
    display: inherit !important;
  }
}
@media screen and (max-width: 840px) {
  .show-md {
    display: inherit !important;
  }
}
@media screen and (max-width: 960px) {
  .show-lg {
    display: inherit !important;
  }
}
@media screen and (max-width: 1280px) {
  .show-xl {
    display: inherit !important;
  }
}

Sorry, it is in src/layout.less.

@mgohin Sorry, no show- related classes yet. Still considering.

It's very usefull to display something elsewhere depending on screen size

Was this page helpful?
0 / 5 - 0 ratings

Related issues

picturepan2 picture picturepan2  路  3Comments

hume12 picture hume12  路  4Comments

tomcam picture tomcam  路  4Comments

alighasemzadeh picture alighasemzadeh  路  5Comments

alighasemzadeh picture alighasemzadeh  路  4Comments