-
Notifications
You must be signed in to change notification settings - Fork 138
Expand file tree
/
Copy pathindex.html
More file actions
174 lines (166 loc) · 5.05 KB
/
Copy pathindex.html
File metadata and controls
174 lines (166 loc) · 5.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Fork me on GitHub CSS Ribbon</title>
<style>
/* This is just the styling for this page. See below for the CSS for the ribbon itself. */
html {
font: 16px "Helvetica Neue", Helvetica, Arial, sans-serif;
}
h1,
h2 {
font-weight: 400;
}
pre {
background-color: #222;
color: white;
padding: 10px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
pre:before {
content: "$ ";
color: #999;
}
.content {
width: 560px;
margin: 0 auto;
padding-top: 80px;
color: #444;
}
a,
a:visited {
color: #c00;
}
.content p {
font-weight: 200;
}
/* The default background color is #c00 */
.github-fork-ribbon.right-bottom:before {
background-color: #090;
}
.github-fork-ribbon.right-top:before {
background-color: #f80;
}
.github-fork-ribbon.left-bottom:before {
background-color: #333;
}
</style>
<!-- START COPYING HERE -->
<link rel="stylesheet" href="gh-fork-ribbon.css" />
<!-- END COPYING HERE -->
</head>
<body>
<!-- TOP RIGHT RIBBON: START COPYING HERE -->
<a
class="github-fork-ribbon right-top"
href="https://github.com/simonwhitaker/github-fork-ribbon-css"
data-ribbon="Fork me on GitHub"
title="Fork me on GitHub"
>Fork me on GitHub</a
>
<!-- TOP RIGHT RIBBON: END COPYING HERE -->
<!-- TOP LEFT RIBBON: START COPYING HERE -->
<a
class="github-fork-ribbon left-top"
href="https://github.com/simonwhitaker/github-fork-ribbon-css"
data-ribbon="Fork me on GitHub"
title="Fork me on GitHub"
>Fork me on GitHub</a
>
<!-- TOP LEFT RIBBON: END COPYING HERE -->
<div class="content">
<h1>Fork me on GitHub – CSS ribbon</h1>
<p>
This is a pure CSS implementation of the famous
<a href="https://github.com/blog/273-github-ribbons"
>Fork me on GitHub</a
>
ribbon.
</p>
<h2>Usage</h2>
<p>
To use it on your site, just view source and copy the two marked
sections (one the CSS, the other the HTML tag). You'll also need to grab
the
<a href="https://github.com/simonwhitaker/github-fork-ribbon-css/"
>CSS files here</a
>.
</p>
<p>
Alternatively,
<a href="https://github.com/simonwhitaker/github-fork-ribbon-css/fork"
>fork the project on GitHub</a
>!
</p>
<h2>Using with Bower</h2>
<p>
You can install the CSS files using
<a href="https://github.com/bower/bower">Bower</a>.
</p>
<pre>bower install github-fork-ribbon-css</pre>
<h2>Using with npm</h2>
<p>
You can also install the CSS files using
<a href="https://www.npmjs.com/">npm</a>.
</p>
<pre>npm install --save github-fork-ribbon-css</pre>
<h2>Using with cdnjs</h2>
<p>
You can use github-fork-ribbon-css without installation via
<a href="https://cdnjs.com/libraries/github-fork-ribbon-css"
>cdnjs.com</a
>.<br />
Copy the following code into the <strong><head></strong> of your
page:
</p>
<code>
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.2.3/gh-fork-ribbon.min.css"
/><br />
</code>
<p>And this into the <strong><body></strong> of your page:</p>
<code>
<a class="github-fork-ribbon" href="http://url.to-your.repo"
data-ribbon="Fork me on GitHub" title="Fork me on GitHub">Fork me on
GitHub</a>
</code>
<h2>Styling</h2>
<p>
Set the background colour using the <strong>::before</strong> selector.
For example:
</p>
<code>
<style>.github-fork-ribbon:before { background-color: #333;
}</style>
</code>
<h2>About</h2>
<p>
This project was written by
<a href="https://twitter.com/s1mn">Simon Whitaker</a>. It is not
endorsed in any way by GitHub.
</p>
</div>
<!-- BOTTOM RIGHT RIBBON: START COPYING HERE -->
<a
class="github-fork-ribbon right-bottom fixed"
href="https://github.com/simonwhitaker/github-fork-ribbon-css"
data-ribbon="Fork me on GitHub"
title="Fork me on GitHub"
>Fork me on GitHub</a
>
<!-- BOTTOM RIGHT RIBBON: END COPYING HERE -->
<!-- BOTTOM LEFT RIBBON: START COPYING HERE -->
<a
class="github-fork-ribbon left-bottom fixed"
href="https://github.com/simonwhitaker/github-fork-ribbon-css"
data-ribbon="Fork me on GitHub"
title="Fork me on GitHub"
>Fork me on GitHub</a
>
<!-- BOTTOM LEFT RIBBON: END COPYING HERE -->
</body>
</html>