-
Notifications
You must be signed in to change notification settings - Fork 46
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
Position mixins #59
Comments
Yeah sure, seems doable. I've been thinking of adding in an equal height columns mixin too. :) |
Updated my initial post. More positioning suggestions? I don't think finding and porting common solutions should be too hard. |
The position sticky concept intrigues me - I like the idea, dislike the current support. If we're going to add that in, we should probably create a JS polyfill for it. Not a regular old JS library, I mean a proper polyfill - one that detects your CSS for that property on browsers that do not support it (using Modernizr) and uses JS instead. Similar to how |
I agree with that's the proper way to go. Might seem as if it would take a little longer, but definitely worth it. |
À Quick search got me this: sticky polyfill |
It's a start but not ideal - it only works on a few browsers, which is a little counter-intuitive for a polyfill |
Oh haha. It was late, didn't check out the details. |
It could be nice to build and improve on though. I'm not so sure that iOS would be doable though, as accurate listening for the |
Added something I have found extremely useful to your list :D |
Woah, crazy. Really enjoying the stuff you guys have been coming up with - keep it up! |
Is anyone jumping on this one? It's been 7 months since the last activity -- I'm still interested to see some of this functionality pull requested into the |
So, I actually had planned to do this - but If I recall correctly, I hadn't found a solution to implementing these in such a way that it didn't care about the markup. These all rely on inner wrappers, outer wrappers and so on (except for maybe the break out of wrapper one - I'll investigate) |
So, I've been researching this a little in my off time. Nothing too big for conclusions quite yet, but so far:
|
|
I've only read a few image-replace techniques and if my memory serves me right, there is an issue with setting the font size to 0 - but it's not a rendering speed issue. I'll have to look it up again. As for using flexbox - browser compatibility is just too much of an issue here - I'm fine with flexbox stuff being in Axis, but I will never use flexbox in a design for at least the next two years, so you won't see me implementing anything that uses it. I'm going to do more research on the table method. |
I don't think it did! But that method has worked great for me across every browser so far, been pretty happy with it. But yeah agreed on flexbox shakes fist at IE |
I could have sworn I saw something with "9999px" in it? Was it not text-indent? Wait, I think I found what's tripping me up - it's the 999px being used in |
Haha no worries. Oh I actually did change it to that, but it has a very different effect. If you put |
I see what you mean! That is crazy. o.O |
Cool with me - add that in! |
Haha, you commented before I could finish editing. I just realized property bubbling bubbles all the way to the top so it could get a parent width and that would break it. It would work nicely if Stylus allowed you to specify how far to bubble up, probably with a 0-based index of some kind eg.
(I've had this idea for ages as well as many other ones that would make a killer CSS preprocessor but I tried and failed - too advanced for me) |
Ah you're right. I assume you opened a stylus issue for this already? haha |
What so they can steal my ideas? lolno Jokes aside, this issue had already been opened - but not by me :D |
Closing due to inactivity |
I recall having trouble setting up a sticky footer, and I believe I'm not the only one. Could we maybe build a mixin to ease some of this?
Position mixins
The text was updated successfully, but these errors were encountered: