cobyism / gridism

A simple responsive CSS grid.
http://pages.cobyism.com/gridism
MIT License
658 stars 85 forks source link

Update gridism.css #33

Closed brijeshb42 closed 9 years ago

brijeshb42 commented 9 years ago

Added the opposite equivalent of 'hide-on-mobiles', 'show-on-mobiles' class which hides the elements by default and displays them on mobiles.

mpa3b commented 9 years ago

Right the thing I thought about! )

cobyism commented 9 years ago

:+1: I’m fine with adding this functionality, however I think the class name needs some thought. .hide-on-mobiles only affects mobiles, but this new functionality affects mobiles and desktop. For instance, by default, most people are going to want everything to be "shown on mobiles", so they may see this class and get confused when it disappears on larger screens. Perhaps .hide-on-desktop or .only-on-mobiles would be clearer class names?

brijeshb42 commented 9 years ago

@cobyism changed the class name to hide-on-desktop as suggested

cobyism commented 9 years ago

Just played around with this a little bit, and noticed that this will also hide content on tablets too, so maybe .only-on-mobiles would be better. @brijeshb42 How do you feel about that?

Also, I know it’s a small thing, but any chance you could add a space between the class name and the opening curly brace? I’d like to keep the formatting as consistent as possible.

brijeshb42 commented 9 years ago

just updated the name as you suggested and also added space

cobyism commented 9 years ago

:sparkling_heart:

brijeshb42 commented 9 years ago

@cobyism Thanks. (My first successful contribution to a project on github)

cobyism commented 9 years ago

@brijeshb42 No worries—thanks for the pull request, and congrats on your first contribution to a project. Hopefully it’s the first of many! :grinning: If there’s ever anything I can do to help, feel free to send me an email :+1:

brijeshb42 commented 9 years ago

@cobyism Will do. Thanks