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

responsive grid #19

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

responsive grid #19

wants to merge 4 commits into from

Conversation

paaragon
Copy link

Hi,

I modify this css to add responsive features. If you like them, here they are.

The way to use it is to add a prefix to the classes (-sm, -md, -lg, -xl) and it would only apply from that size.

@paaragon
Copy link
Author

paaragon commented Jun 7, 2022

Hi, it's been a while since the pr ¿do you consider to include it? feel free to close if you don't like it or comment the changes you would want 😊

@1000ch
Copy link
Owner

1000ch commented Jun 12, 2022

@paaragon thank you for your idea, but it seems to be slightly redundant, is there any better way to implement it?

@calvinmorett
Copy link

calvinmorett commented Jun 30, 2023

I've been using a single media query to set Cells, to full-width. It will make problems on more complex layouts (such as grids within grids), but it works for simple setups.

/* Media Queries
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media (max-width: 550px) {
    .Cell {
        width: 100%!important;
        display: block!important;
    }
}

Example:
https://github.com/1000ch/grd/assets/11654917/4c51a7df-5b0a-4ff8-8c57-038275dc8412

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

Successfully merging this pull request may close these issues.

3 participants