Show HN: Wing – A minimal, responsive CSS framework
github.com
github.com
- The 12-column grid was a great tool when it was first used about 10 years ago, but it's limiting creativity and no longer necessary if...
- ... you use flex, which this framework doesn't. Flex is now supported in 97% of installed browsers (http://caniuse.com/#search=flex) and I'd guess those 3% will actually be quite scared if any website actually worked for them.
- Whenever someone sees a for-loop in a template they start a 10-paragraph rant about separation of concerns. But nobody bats an eye at <div class="col-md-2"> even though css was invented to separate content from presentation.
It's really easy to do semantic markup these days and style it without repetition. Use semantic tags like <main>, <article>, <aside>, <nav>, etc. This is usually enough, especially using the power of targeting tags based on their position&context in the document tree, i. e. :first-child & friends. If unavoidable, use semantic class names (article class="editorial") and future-self will thank current-self for making the CSS so easy to read.
Positioning happens with a display:flex on the container and a flex: x x x on the children. Stuff like class="col-s-4 offset-xs-3" was only invented because each of these rules required multiple lines of CSS hacks and workarounds.
Even if that fails, use the 45-step build pipeline you've running anyway and use some preprocessing to pull those hacks into a class via @mixins.
Wing is slowly transitioning into using Flexbox, I am well aware of it and the growing compatibility, but most people would like for it to work on IE 9+, which is why I use the normal grid.
I'm not sure about you, but the grid comes in pretty handy sometimes, I agree that there are simpler solutions, and I'm implementing those in Wing.
CSS is slowly evolving, Wing is meant to be there as a boilerplate, similar to Skeleton. As the features of CSS grow, such as Flexbox and the grid, Wing will slowly no longer be needed.
If you would like, you can help make Wing better by contributing at https://github.com/KingPixil/wing
It would be really helpful, and Wing can become better and better.
Django and Flask are frameworks for the backend, Flask is minimal, such as Koa or Express, but in the front end, file size matters. If you don't have a small framework, your website will take a long time to load, and I don't know about you, but I do not like long loading times.
[0] - http://getskeleton.com/
* must be fast, * minimal, or customizable * touch-first, and mobile first * css framework * no or minimal javascript, no typescript, on js framework etc.
I'm trying to find an alternative to Ionic2 to skip the angular and typescript parts, which I don't need.
Any experience?
What other things would you like implemented?
1. Wing is NOT a copy of Skeleton, it is inspired by it, yes, but if you look at the code, it is extremely different code.
2. It doesn't even use SCSS.
Do you think it is counter-productive to follow the advice above? Should we all be submitting PR's for bug fixes on large open source projects? Or should we only be allowed to work on projects that have been vetted and added to some dev community's backlog? I'm serious because I see this question come up so often.
Today, everyone writes a framework.
2036 will be awesome.