Skip to content

Commit edd1822

Browse files
committed
fix github ribbon
1 parent b4c661e commit edd1822

2 files changed

Lines changed: 29 additions & 1 deletion

File tree

src/css/style.css

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,32 @@
1616
* See the License for the specific language governing permissions and
1717
* limitations under the License.
1818
*/
19+
.ribbon {
20+
background-color: #003D06;
21+
overflow: hidden;
22+
white-space: nowrap;
23+
position: absolute;
24+
right: -50px;
25+
top: 40px;
26+
-webkit-transform: rotate(45deg);
27+
-moz-transform: rotate(45deg);
28+
-ms-transform: rotate(45deg);
29+
-o-transform: rotate(45deg);
30+
transform: rotate(45deg);
31+
-webkit-box-shadow: 0 0 10px #888;
32+
-moz-box-shadow: 0 0 10px #888;
33+
box-shadow: 0 0 10px #888;
34+
}
35+
.ribbon a {
36+
color: #fff;
37+
display: block;
38+
font: bold 81.25% 'Helvetica Neue', Helvetica, Arial, sans-serif;
39+
margin: 1px 0;
40+
padding: 10px 50px;
41+
text-align: center;
42+
text-decoration: none;
43+
text-shadow: 0 0 5px #444;
44+
}
1945
.mainTitle {
2046
font-family: Verdana, Arial, Helvetica, sans-serif;
2147
font-size: 20px;

src/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
</head>
2929

3030
<body vlink="#6c21b1" link="#0000ee" bgcolor="#ffffff" bottommargin="0" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
31-
<a href="https://github.com/Lightstreamer/Lightstreamer-example-RSS-client-javascript"><img style="position: absolute; top: 0; right: 0; border: 0; z-index:1" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
31+
<div class="ribbon">
32+
<a href="https://github.com/Lightstreamer/Lightstreamer-example-RSS-client-javascript">Fork me on GitHub</a>
33+
</div>
3234
<div id="wrap">
3335
<table border="0" cellspacing="0" cellpadding="0">
3436
<tr>

0 commit comments

Comments
 (0)