News for hackers. Stuff that matters.
Re:Show HN: Minimalistic “Fork Me on GitHub.” by zichy on Monday September 11, 2017 @05:54AM (#15217283)
Here's another minimalistic approach:

    <a href="https://github.com/yourname">Fork me on GitHub</a>
You can now use the <a> tag anywhere in your code.
Re:Show HN: Minimalistic “Fork Me on GitHub.” by hashmal on Monday September 11, 2017 @06:33AM (#15217438)
"minimal*" is a word that is used a lot nowadays, but you sir, really got the gist of it.
Re:Show HN: Minimalistic “Fork Me on GitHub.” by muzzammildotxyz on Monday September 11, 2017 @08:30AM (#15218010)
That, sir, is truly <em>THE</em> minimalistic, easy, and with cross-browser compatibility approach I have ever seen. Thanks :)
Re:Show HN: Minimalistic “Fork Me on GitHub.” by asuzuki on Monday September 11, 2017 @05:58AM (#15217299)
Unbelievable! It just works. </sarcasm>
Re:Show HN: Minimalistic “Fork Me on GitHub.” by nebabyte on Monday September 11, 2017 @06:08AM (#15217334)
It even works with fluid designs. We call it liquid courage
Re:Show HN: Minimalistic “Fork Me on GitHub.” by muzzammildotxyz on Monday September 11, 2017 @08:31AM (#15218016)
It is the minimalistic approach. :D
Re:Show HN: Minimalistic “Fork Me on GitHub.” by chrismorgan on Monday September 11, 2017 @06:16AM (#15217359)
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.)

Re:Show HN: Minimalistic “Fork Me on GitHub.” by muzzammildotxyz on Monday September 11, 2017 @08:27AM (#15217987)
Yes it looks good with the animation... If I knew about this one I probably would not have wrote OctoCSS... Thanks anyway... :)
Re:Show HN: Minimalistic “Fork Me on GitHub.” by bfred_it on Monday September 11, 2017 @06:19AM (#15217375)
Much better design too, regardless of size.
Re:Show HN: Minimalistic “Fork Me on GitHub.” by muzzammildotxyz on Monday September 11, 2017 @08:31AM (#15218018)
Yup.
Re:Show HN: Minimalistic “Fork Me on GitHub.” by Tepix on Monday September 11, 2017 @05:45AM (#15217257)
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.

Re:Show HN: Minimalistic “Fork Me on GitHub.” by TazeTSchnitzel on Monday September 11, 2017 @06:04AM (#15217324)
One of the annoying things about images of this kind is their bounding box is twice the size it should be.
Re:Show HN: Minimalistic “Fork Me on GitHub.” by muzzammildotxyz on Monday September 11, 2017 @08:25AM (#15217974)
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.
Re:Show HN: Minimalistic “Fork Me on GitHub.” by BenjaminBini on Monday September 11, 2017 @05:50AM (#15217273)
On my screen I can see color difference between the Octocat and the background (on your demo website).
Re:Show HN: Minimalistic “Fork Me on GitHub.” by muzzammildotxyz on Monday September 11, 2017 @08:43AM (#15218064)
Re:Show HN: Minimalistic “Fork Me on GitHub.” by deam on Monday September 11, 2017 @06:05AM (#15217328)
That's correct. The svg background-color should be changed to #F9F9F9.
Re:Show HN: Minimalistic “Fork Me on GitHub.” by muzzammildotxyz on Monday September 11, 2017 @08:23AM (#15217955)
I'll fix that thanks.
Re:Show HN: Minimalistic “Fork Me on GitHub.” by muzzammildotxyz on Monday September 11, 2017 @08:22AM (#15217950)
Please feel free to contribute. I'll fix that thanks.
Re:Show HN: Minimalistic “Fork Me on GitHub.” by dannyw on Monday September 11, 2017 @05:41AM (#15217242)
Design suggestion: increase the padding of the GitHub logo. It looks quite crowded.
Re:Show HN: Minimalistic “Fork Me on GitHub.” by muzzammildotxyz on Monday September 11, 2017 @08:23AM (#15217958)
Please feel free to contribute.