Skip to content

Commit

Permalink
(docs) Move the "Fork me on GitHub" image to the repo
Browse files Browse the repository at this point in the history
Also compress it losslessly.
Before: 7,60 KB (7.791 bytes)
After:  4,47 KB (4.582 bytes)
Thanks to @XhmikosR
  • Loading branch information
feimosi committed Mar 11, 2017
1 parent 27d3959 commit a24dd4d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Binary file added demo/img/forkme-on-github-right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 9 additions & 2 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@
box-shadow: 0 0 4px -1px #000;
}

.ribbon > img {
position: absolute;
top: 0;
right: 0;
border: 0;
}

@media (max-width: 768px) {
.sm-hidden {
display: none;
Expand All @@ -85,8 +92,8 @@
</style>
</head>
<body>
<a href="https://github.com/feimosi/baguetteBox.js" class="sm-hidden">
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png">
<a href="https://github.com/feimosi/baguetteBox.js" class="ribbon sm-hidden">
<img src="img/forkme-on-github-right.png" alt="Fork me on GitHub">
</a>
<header>
<h1>baguetteBox.js</h1>
Expand Down

0 comments on commit a24dd4d

Please sign in to comment.