Skip to content

Commit 5a2d74a

Browse files
committed
Moved the github fork image locally
Often the image would not be able to load when using the external cdn. Instead we now host the image in order for it to always load. Also added some simple transition styles to the image when you hover.
1 parent d2f1efe commit 5a2d74a

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

public/css/app.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ input[type='radio'] { border: 0; }
2525
#footer a { vertical-align: top; color: #fff; }
2626
.clr:after { clear:both; content:"."; display: block; height:0; visibility: hidden; line-height:0; font-size:0; }
2727

28+
.ir { border: 0; font: 0/0 a; text-shadow: none; color: transparent; background-color: transparent; }
29+
2830
.preview_and_configuration { float: left; width: 395px; }
2931

3032
/* =MODULES
@@ -53,3 +55,18 @@ input[type='radio'] { border: 0; }
5355
.css_result { position: relative; float: right; width: 402px; }
5456
.css_result .code { white-space: pre; padding: 10px; display: block; width: 380px; font-size: 12px; font-family: 'Courier new'; font-weight: bold; background: #8c9196; background: rgba(0, 0, 0, 0.15); border-radius: 4px; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3); border: 1px solid #696d72; border-color: rgba(0, 0, 0, 0.2); box-shadow: 0 1px 1px 0 rgba(255, 255, 255, 0.3), inset 0 1px 5px rgba(0, 0, 0, 0.1); }
5557
.css_result .copy_code { position: absolute; bottom: 5px; right: 10px; width: 14px; height: 22px; background: url(../img/clippy.png) no-repeat 0 4px; }
58+
59+
60+
/* fork_me */
61+
.fork_me { position: absolute; top: 0; right: 0; display: block; width: 149px; height: 149px; background: url(../img/fork.png);
62+
opacity: 0.7;
63+
-webkit-transition: all 0.2s ease-in;
64+
-moz-transition: all 0.2s ease-in;
65+
transition: all 0.2s ease-in;
66+
}
67+
.fork_me:hover {
68+
opacity: 1;
69+
-webkit-transform: scale(1.03);
70+
-moz-transform: scale(1.03);
71+
transform: scale(1.03);
72+
}

public/img/fork.png

9.05 KB
Loading

public/index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
<link rel="stylesheet" type="text/css" href="css/app.css" />
88
</head>
99
<body>
10-
11-
<a href="http://github.com/hojberg/cssarrowplease"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://a248.e.akamai.net/assets.github.com/img/30f550e0d38ceb6ef5b81500c64d970b7fb0f028/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6f72616e67655f6666373630302e706e67" alt="Fork me on GitHub"></a>
1210

1311
<div id='content' class='clr'>
1412
<div class='preview_and_configuration'>
@@ -57,6 +55,10 @@ <h2>Arrow configuration</h2>
5755
<code class='code' readonly='readonly'></code>
5856
<div class='copy_code'></div>
5957
</div>
58+
59+
<a href="http://github.com/hojberg/cssarrowplease" class='fork_me ir'>
60+
Fork me on Github
61+
</a>
6062

6163
</div>
6264

0 commit comments

Comments
 (0)