HTML is almost 100% responsive out of the box
fluidity.sexy
fluidity.sexy
@charset "UTF-8";
img,canvas,iframe,video,svg{max-width:100%}
.overflow-container{overflow-y:scroll;
-webkit-overflow-scrolling:touch}
Analysis (EDIT):I'm not sure why the CSS needs to be declared as containing UTF-8 since all the characters of the file are part of the US-ASCII range.
Use the .overflow-container on tables and pre/code blocks. "-webkit-overflow-scrolling" seems to be useful to allow horizontal scrolling on overflow elements on iOS [1].
* [1]: http://stackoverflow.com/questions/15605085/webkit-overflow-...
I may have to root/wipe it now... :( I can't prove that it was caused by either this or the other link, but the coincidence is troubling... who checks these HN submissions for malware anyway?
This guy posts that HTML is fluid by default with a couple lines of CSS and gets 20 votes.
HN, I really don't understand what the hell is going on here anymore.
It's not a personal attack. HN doesn't have a campaign against you (or if there is one, I wasn't invited).
So why did Fluidity get more upvotes? Here's my opinion:
1. Fluidity had a better subject line - I knew immediately what it was about and I was very curious. Linkbait? Sure, but it worked.
2. Fluidity demonstrated the concept immediately on click through - I didn't need to muddle through a clever metaphor to figure out the concept. I saw it immediately.
3. Fluidity used a kitten. People like kittens unless they are bad people. - it may sound like I'm making a joke but I'm not. "Kittens" are any facial image that triggers what Konrad Lorenz referred to as Kindchenschema. http://en.wikipedia.org/wiki/Cuteness It is a common trick in advertising and marketing. Fluidity uses it perfectly.
By contrast, MoshPit's README is complicated.
The density of the text alone is likely to be off putting to 90% of the intended audience. I gave it a serious read myself because I was curious about your question. I am still wondering what it is for.
To provide a bit more context, I have been a developer for more than 30 years. More of a hobbyist the last 10, but I regularly pick up new frameworks for fun. Last summer I ran through all the latest js frameworks (ember, angular, backbone, etc), so I'd say MoshPit is something I should be interested in but I'm not entirely sure why it matters to me.
Please know that this is not a reflection on you personally or on the project itself. I am just providing an opinion based on my impressions upon entering the page and trying to decipher what you were trying to accomplish.
I hope this helps.
I think I need a prettier demo with "tips" and "hints" about what exactly is different... 90% of people will click through the demo, see nothing they haven't seen before and move on, which is a shame.
Sometimes it's about dialing back on features. Sometimes it's about kittens.
Don't get frustrated though. Take each opportunity as a chance to learn and experiment.
I've often wondered what would happen if someone launched three identical projects on github with totally different approaches to marketing. I suppose one could compliance this with multiple versions of the README, but I'd go as far as testing different names too.
I suspect some may see this as a heretical approach to open source development, but it's naive to think that any group of people are somehow resistant to marketing techniques.
Anyway, the key is having a great product. Keep at it and eventually you'll be able to explain it in a single sentence that makes the concept instantly clear.
(and then we'll all be better off too!)
I've come to a similar conclusion that using @media incantations only covers the basic cases, so any advanced web layout would need a mix of CSS and JS anyway (so we might as well have a solid JS toolkit help us keep things flexible and tidy).
You don't have to
if (window.is_mobile() && this.$left_thing.css('display') == 'block') {
this.$left_thing.hide();
this.$right_thing.show();
} else if (window.is_tablet() && this.$left_thing.css('display' == 'block') {
this.$left_thing.css('left','-100px');
this.$right_thing.show().css('left','0');
} else if (i_hate_my_life) ...
Because managing it in the code, through QA, and receiving the email subject line:"We're adding a new component to the application, it will only be shown like this when this thing is happening and on mobile it will be able to show here, but not here, only if this thing is shown, and since it' launches from this we'll need these things to do this."
Doesn't cause more nested if else switch case statements to further complicate the code.
I agree. The feeling is indeed golden!
Cheers.
Stupid really, after all its just a TLD.
I do love their grid system though, does anyone know of a great lightweight grid system that's robust like Bootstrap's?
If you use the LESS or SASS versions of Bootstrap, you can pick and choose what to import (grid, navbar, pills, buttons, etc.)
Otherwise take a look at Bourbon (http://neat.bourbon.io/) or Susy (http://susy.oddbird.net/).
No SaSS/LeSS built in support, but it's small, you can just port it yourself pretty easy... it is called pure CSS for a reason I guess.
[0]- http://purecss.io/
P.S. Nice presentation of the concept
Isn't that kind of the point?
The complaint that Bootstrap is so huge is no longer valid, people are just super lazy.
Many designer/integrator seems to forget that there is no need to css3 to give fluidity. But responsivness is not what you think it is.
Your design is in now way responsiv, it merely adapt screen size, but content is became less and less readable as screen size lessen.
https://github.com/mrmrs/fluidity/blob/master/css/fluidity.c...
It's a good start to getting properly responsive websites. A lot of times this really is all that's needed. But sometimes more complex solutions are needed for certain elements.
Yes, HTML is 100% responsive out of the box, something so well understood, it nary even warrants mention. We are so far past that part of understanding that our conversations surround polishing appearance to the nth level. We don't fiddle with CSS because we don't need to; we do it for the 1% of cases HTML alone isn't enough. So congrats on writing your first reset, something literally every web developer has already done in their lifetime.
print "a = #{a} b = #{b}, c = #{c}, d = #{d}\n"
V
print "a = #{a}, b = #{b}, c = #{c}, d = #{d}\n" @charset "UTF-8";
img,canvas,iframe,video,svg{max-width:100%}
.overflow-container{overflow-y:scroll;-webkit-overflow-scrolling:touch}ps: cool domain suffix :)
http://www.key-systems.net/english/news/new-gtlds/new-gtld-l...