183 points · by somecoder · 10y ago · 69 comments
- Subtle animations. It doesn't take many bytes, but it makes it look much better
- :active status gives visual feedback that you are clicking the element
- The grid doesn't accept gutter nor reversing order by css, which makes it not really mobile-friendly for alternating patterns in a page. There's not really a single good solution in css for both [2]
- <select> looks just like a normal input without down arrow in Firefox
Keep it up (:
[1] http://picnicss.com/ [2] https://github.com/picnicss/picnic/issues/58
If you alter your approach you can still achieve the same effect by making use of
position:fixed
with either transform:translateZ(0)
or will-change:transform
to establish a new paint layer and enable hardware acceleration, so scrolling down (a common activity) doesn't drop below 60fps.Your comment is a bit like sarcastically asking "what do we build C projects with these days? Make? Lint? Valgrind?"
I would love to be able to make a custom builds of milligram by shedding some of the modules I don't care about. This could also open it up to other modules being added like Modals or whatever.
Still, I like the flexbox-based grid.
Is 25kb for the single .css file or the .css and .js combined?
So, if you want to use bootstrap CSS + JS + jQuery, you're immediately looking at ~75kB worth of stuff.
Side note: I was recently dealing with this, and found Zepto to be a suitable jQuery replacement for small single page apps.
(I did look through the docs, but didn't see the kind of modular or "designed to be built on" philosophy expressed in frameworks like Pure CSS.)
This is just a light one, that is the point.
Neat.
https://github.com/milligram/milligram/blob/master/dist/mill...
Selected the 500+ lines of CSS, switched to my terminal window:
$ cat > milligram.css
[paste]
[Ctrl-D]
I just developed a small web app that has no CSS, and this fortuitously appeared on HN, so I'm giving it a shot.---
Result: Hate it. Everything is huge, and pink. A compact table that took up about 1/4 of the browser window is now spaced all over the screen.
$ git reset --hard ; rm milligram.css
Sorry!It has to be usable first with zero configuration; then the integrator gets excited and is inspired to weak.
What I like about this is the idea of a generic style sheet that just works with standard elements. It's successful in that basically it worked for me as designed; it applied its style to all the elements. Only, its idea of style is to make the fonts a bigger, and turn a simple table into something that needs scroll bars in both dimensions.
I would definitely like to try some other "just drop it in" stylesheet like this. Or maybe this one too, six months from now. Or its emerging forks (the project encourages forking).
Skeleton also seems somewhat dead.
> it seems somewhat dead
The beauty of skeleton is that it still accomplishes exactly what it is meant to, without needing attention.
To be fair, it is only html and css, so there aren't huge security concerns or dependencies like a big project would have. But that is the point. You can make a super quick website without using a bootstrap and it is very logical and minimal.
Was fed up with a template-driven site I built a few months ago and was looking for CSS frameworks to base a redesign on.
Only downloaded Milligram the other day and have been having a blast getting it set up. Has a great mobile-first approach with absolutely minimal code in order to build fast, responsive sites with ease.
Looking forward to tracking its development but it already has everything I want to get a site up and running quickly.
I've also used Skeleton in several projects though it required customization of UI element sizes, max grid width, etc. On the whole Skeleton worked well enough and sufficiently lightweight.
For all Skeleton users, the project was forked a few months ago and now lives on as skeletonframework, available here: https://github.com/skeletonframework/skeletonframework
Can't debug here but this usually caused by using the vh units in CSS: there's a bug with iOS that causes the vh unit to behave improperly. This may have been fixed in later versions of iOS
Anyone running a later version of iOS seeing the same thing?
However when I published my own css library few recommendations popped up:
- Pure CSS [ http://purecss.io/ ]
- Min CSS [ http://mincss.com/ ]
- Skeleton [ http://getskeleton.com/ ]
- Picnic CSS (my own) [ http://picnicss.com/ ]
- Basscss [ http://www.basscss.com/ ]
- Tachyons [ http://tachyons.io/ ]
Sometimes I just want a page to display data. This works perfect for that.
Particular kudos for going with REM units. My overall preference is to set:
html { font-size: medium; }
Then base subsequent sizes off of REM multiples. This ensures that users who do set default font size to something sane aren't suffering, while those who don't actually have a reasonable basis for zooming the page in and/or out.A slight margin for reasonably-large mobile sizes (10" tablet here) would also help a bit.
I'm going to be remaking my personal website soon with this. Thanks for posting.
Fortunately, this seems more easily amenable to that scenario than the typical framework due to its smaller footprint.
Also, defining pairs of CSS classes to accommodate the user rounding in either direction made me smile (ie .column-66 === .column-67).
Definitely going to try it out on my next project.
[1] getskeleton.com
<row>
<column ...
relying on ids makes creating components a pain in the ass