Show HN: Minimalistic “Fork Me on GitHub.”(github.com)
github.com
Show HN: Minimalistic “Fork Me on GitHub.”
https://github.com/muhammadmuzzammil1998/OctoCSS
21 comments
"minimal*" is a word that is used a lot nowadays, but you sir, really got the gist of it.
That, sir, is truly <em>THE</em> minimalistic, easy, and with cross-browser compatibility approach I have ever seen.
Thanks :)
Unbelievable! It just works.
</sarcasm>
It even works with fluid designs. We call it liquid courage
It is the minimalistic approach. :D
http://tholman.com/github-corners/ is another, which gives you straight SVG to inline. This one with a couple of minutes of minification and inlining comes to about 1 170 bytes (no gzip); that one after similar time comes to about 985 bytes and more accessible (see its aria-label/aria-hidden) if you remove the fancy animation which is a bonus.
(I confess I’m addicted to shaving bytes.)
(I confess I’m addicted to shaving bytes.)
Yes it looks good with the animation... If I knew about this one I probably would not have wrote OctoCSS... Thanks anyway... :)
FYI, the "original" ribbons are at
https://github.com/blog/273-github-ribbons
They use PNG images which are around 8kb. The SVG from this project (which lacks the text) is 1kb.
https://github.com/blog/273-github-ribbons
They use PNG images which are around 8kb. The SVG from this project (which lacks the text) is 1kb.
One of the annoying things about images of this kind is their bounding box is twice the size it should be.
Thanks, but I knew that already and didn't like it. So I thought an OctoCat would send the same message as "Fork me on Github" :) That's why it does not have any text.
On my screen I can see color difference between the Octocat and the background (on your demo website).
https://github.com/muhammadmuzzammil1998/OctoCSS/commit/246c...
Its fixed :) Thank you for noticing that.
Its fixed :) Thank you for noticing that.
That's correct. The svg background-color should be changed to #F9F9F9.
I'll fix that thanks.
Please feel free to contribute.
I'll fix that thanks.
Design suggestion: increase the padding of the GitHub logo. It looks quite crowded.
Please feel free to contribute.
[deleted]
You can now use the <a> tag anywhere in your code.