-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
138 lines (116 loc) · 3.65 KB
/
index.html
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
<!doctype html>
<html>
<head>
<title>CSS Ribbon Builder</title>
<!--link rel="shortcut icon" href="misc/ribbon.png" /-->
<link rel="icon" type="image/png" href="misc/ribbon.png" />
<style>
html, body {
margin: 0; padding: 0;
background-color: #e5e5e5;
color: #555;
text-align: center;
font-family: sans-serif;
font-size: .95em;
}
body{
width: 95%;
max-width: 600px;
margin: 0 auto;
z-index: 0;
}
.heading {
font-size: 2em;
margin: 15px;
}
.section {
margin: 15px 0;
}
.section .title {
font-size: 1.2em;
margin: 1.4em 0 0;
}
#locLeft, #locRight {
display: inline-block;
width: 200px;
}
#locLeft { text-align: right; }
#locRight { text-align: left; }
pre, input[type="text"] {
box-sizing: border-box;
width: 100%;
padding: 10px;
margin: 10px 0 0;
background-color: white;
border: 1px solid gray;
border-radius: 2px;
font-size: 1.2em;
}
input[type="text"] {
color: inherit;
}
input[name="hex"] { width: 100px; }
pre {
color: black;
font-weight: normal;
text-align: left;
white-space: pre-wrap;
}
#picker { width: 200px; height: 200px; display: inline-block; }
#slider { width: 20px; height: 200px; display: inline-block; }
#fork { z-index: 4; }
.CodeMirror.CodeMirror {
height: auto;
z-index: 1;
}
</style>
</head>
<body>
<a id="fork" class="" href="https://github.com/catdad/fork-ribbon-css-builder" style="display: none;">Fork me on GitHub</a>
<div class="heading">Pure CSS generator for the "Fork me on GitHub" ribbon</div>
<div class="section">
<div class="title">Ribbon color</div>
<div id="picker"></div>
<div id="slider"></div>
<br/>
<input type="text" name="hex" placeholder="color" />
</div>
<div class="section">
<div class="title">Position on the page</div>
<div id="locLeft">
<div>Top Left <input type="radio" name="position" value="top-left" /></div>
<div>Bottom Left <input type="radio" name="position" value="bottom-left" /></div>
</div>
<div id="locRight">
<div><input type="radio" name="position" value="top-right" checked /> Top Right</div>
<div><input type="radio" name="position" value="bottom-right" /> Bottom Right</div>
</div>
</div>
<div class="section">
<div class="title">Font color</div>
<input name="text" type="radio" value="#fff" checked /> White
<input name="text" type="radio" value="#e5e5e5" /> Gray
<input name="text" type="radio" value="#555" /> Dark
<input name="flat" type="checkbox" /> Flat
</div>
<div class="section">
<div class="title">Link URL</div>
<input type="text" name="link" placeholder="http://github.com/user/repo" />
</div>
<div class="section">
<div class="title">CSS Code</div>
<pre id="rawcss"></pre>
</div>
<div class="section">
<div class="title">Copy and Paste</div>
<pre id="copypaste"></pre>
</div>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.min.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/less.js/1.7.4/less.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.js"></script>
<script src="https://www.kirilv.com/tiny.cdn/lib/request/0.3.0/request.min.js"></script>
<script type="text/javascript" src="misc/colorpicker.min.js"></script>
<script type="text/javascript" src="misc/analytics.js"></script>
<script type="text/javascript" src="index.js"></script>
</body>
</html>