Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .pure-u-0 and similar classes #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FaultyAstragal
Copy link

This code allows for the hiding certain elements based on Media Queries.

…. `.pure-u-0-24`) and sets them to `display: none`.

Signed-off-by: Daniel <[email protected]>
@lkraav
Copy link
Collaborator

lkraav commented Oct 25, 2014

Do you have a demonstration somewhere that shows how this would be used?

@FaultyAstragal
Copy link
Author

Not currently, however displaying one layout versus another based on screen size is the point of responsive web design. Showing one div element to mobile users and laying out a different one for desktop users, allows for greater flexibility for designers.

For example:

<div class='pure-u-0 pure-u-lg-1-2'> ... </div>
<div class='pure-u-1 pure-u-lg-0'> ... </div>

This code will display one div element for desktops at half width, and a separate div for mobiles (up to lg size) at full width.

@ericf
Copy link
Collaborator

ericf commented Oct 27, 2014

Seems like a good idea to me!

@jamesalley @jconniff @tilomitra what do you all think of this idea?

@jconniff
Copy link

Seems helpful, as long as its purpose is documented clearly so people don't think they have to hide and show duplicate code to get responsive layout.

@adelgado
Copy link

For the record I have a situation right now where I think this would be the cleanest way (which is how I've been brought to this issue). Is there something missing in this PR to get it merged?

@ericf
Copy link
Collaborator

ericf commented Mar 16, 2015

/cc @jamesalley

@teson2000
Copy link

+1 for this to be included in standard pure. Why it needs to be inside pure and example here, https://github.com/yahoo/pure/files/854487/purezero.zip (from the thread pure-css/pure#640)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants