-
Notifications
You must be signed in to change notification settings - Fork 35
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
Why not height? #52
Comments
Hi @ivansglazunov, we have not found a need for height quite yet as most content on the web that extends the viewport height can just be scrolled down, but if this is an urgent requirement I can definitely get along with the idea. Would you like to submit a pull request containing your proposed feature additions? I'm sure @Jenius would accept this addition, but it's worth hearing his thoughts first. |
The popular trend of the season - one idea on one screen. |
@ivansglazunov renaming |
I'm against breaking changes when they are not necessary, however, we recently changed to and from to to-width and from-width because of an issue with those words being used in gradient syntax, so I can accept this breaking change in API as being more aligned with those changes. It would be wise to listen to @Jenius' thoughts on the matter though, as this is quite an opinionated change. |
Although width-based queries may be the norm, height-based ones are no less from the spec's point of view so it would be nice if this were reflected in the naming of the functions in my opinion. I also use mainly width-based queries, but height-based ones are used for more than just slides, of course. For example, I'll be making navigation sticky when the viewport is over a certain height. |
Yeah I'm conflicted here. I don't see height-based queries as being a very common request as has been mentioned, and also do not want to push a massively breaking change either. But at the same time I think I'm swaying towards the side at the moment of saying I'm ok with switching |
On that last note, I've thought of a way of addressing that in #53 that won't constitute any deprecation or breaking change and would be better in the long run. The steps necessary for that would be to change all of the mixins from |
Ok, so |
👍 |
I have a use case for height as well, due to some still believing in "the fold" that I would like to squish up some designs, i.e. signup form spending on the vertical viewport. |
If it helps at all, there's quite a bit of research out there that proves that "the fold" is not a thing and doesn't exist. I know how client work is and it's tough, but this one there is no question about it, and solid research and studies to back that it's not a legitimate concern. |
Yup well aware of research hence my air quoting "the fold" but hierarchy simply do not get it no matter what they are presented with. :( |
@ivansglazunov , are you referring to a method like this? http://jsfiddle.net/oneeezy/rrfwogxm/ That's what I got out of it when you said "one idea on one screen". This is done with CSS "viewport" units. You can simply say... section { height: 100vh; } And it will fill the height of any screen size allowing you to have "15 screens" in "1 page". (assuming that's what you were referring about). |
Just had a use case where I could do with height queries, so +1 to this. |
There's many use cases for height queries, I've used them myself for a few different projects. One was a web application where the GUI was built up of "tiles" in a grid-system that aligned the tiles differently depending on height and width. The latest commit was 2 years ago though, so not sure how likely this is to be solved? |
Personally, I have no use whatsoever for height queries, and I don't have time to add it. However, for anyone who feels strongly about it, you are more than welcome to submit a pull request to add it! While the project hasn't needed updates in a while (media queries are media queries), I am still monitoring it and will review and ship if someone submits a good PR. |
Does this mean the PostCSS port is also on ice? I was really looking forward to it as I attempt to make the pipeline a little more post processor agnostic which PostCSS seems to help with. |
@custa1200 So for postcss, you can use custom media queries to pretty much cover the situation. Generally my team's philosophy is shifting more towards standards-compliant approaches over excessive syntactic sugar, for compatibility and developer accessibility reasons. We are now only using postcss, no stylus. If others are still more on the stylus/syntax sugar train, have lots of ideas for adding to rupture, and prove they can do a good job with it, I'd be glad to designate them as the new lead maintainer. |
Height queries are useful for reducing overall top/bottom padding on panels, +1 |
As a proposal, I think we could use named parameters
|
No description provided.
The text was updated successfully, but these errors were encountered: