-
Notifications
You must be signed in to change notification settings - Fork 197
/
Copy pathrepobanner.template
92 lines (89 loc) · 1.87 KB
/
repobanner.template
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
<style>
#forkongithub>div {
background: #000;
color: #fff;
font-family: arial,sans-serif;
text-align: center;
font-weight: bold;
padding: 5px 40px;
font-size: 0.9rem;
line-height: 1.3rem;
position: relative;
transition: 0.5s;
display: block;
width: 400px;
position: absolute;
top: 0;
right: 0;
transform: translateX(200px) rotate(45deg) translate(10px,70px);
box-shadow: 4px 4px 10px rgba(0,0,0,0.8);
pointer-events: auto;
}
#forkongithub a {
text-decoration: none;
color: #fff;
}
#forkongithub>div:hover {
background: #c11;
color: #fff;
}
#forkongithub .contributors {
font-size: 0.75rem;
background: rgba(255,255,255,0.2);
line-height: 1.2;
padding: 0.1em;
}
#forkongithub>div::before,#forkongithub>div::after {
content: "";
width: 100%;
display: block;
position: absolute;
top: 1px;
left: 0;
height: 1px;
background: #fff;
}
#forkongithub>div::after {
bottom: 1px;
top: auto;
}
#forkongithub{
z-index: 9999;
/* needed for firefox */
overflow: hidden;
width: 300px;
height: 300px;
position: absolute;
right: 0;
top: 0;
pointer-events: none;
}
#forkongithub svg{
width: 1em;
height: 1em;
vertical-align: middle;
}
#forkongithub img {
width: 1em;
height: 1em;
border-radius: 100%;
vertical-align: middle;
}
@media (max-width: 900px) {
#forkongithub>div {
line-height: 1.2rem;
}
}
@media (max-width: 700px) {
#forkongithub {
display: none;
}
}
@media (max-width: 410px) {
#forkongithub>div {
font-size: 0.7rem;
transform: translateX(150px) rotate(45deg) translate(20px,40px);
}
}
</style>
<div id="forkongithub"><div><div><a href="https://github.com/gfxfundamentals/threejsfundamentals">Fix, Fork, Contribute {{{include "build/templates/octocat-icon.svg"}}}</a></div></div></div>