-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
344 lines (305 loc) · 16.2 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
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
<!DOCTYPE html>
<html>
<head>
<title>Shorthand CSS Converter</title>
<meta name="theme-color" content="#037ed3">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0"/>
<!-- Icons -->
<link rel="icon" href="/img/favicon.ico">
<!-- Styles -->
<!-- Fonts -->
<link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="/css/styles.css">
</head>
<body>
<!-- <div class="sidenav">
<div id="sidenav-header">
<div id="sidenav-details">
<span id="sidenav-name"></span>
<span id="sidenav-version"></span>
</div>
<i class="material-icons"></i>
</div>
<div class="sidenav-item">
<a href="/">
<i class="material-icons"></i>Home
</a>
</div>
<div class="sidenav-item">
<a href="/shots">
<i class="material-icons"></i>Shots
</a>
<i class="material-icons"></i>
</div>
</div> -->
<div class="appbar">
<!-- <span class="hamburger"><i class=\"material-icons\"></i></span> -->
<span class="appname">Shorthand CSS</span>
<span class="tabs">
<span class="tab active">Input</span>
<span class="tab" onclick="alert('Coming soon, well... soon-ish ;)')">Text</span>
<span class="tab" onclick="alert('Coming soon, well... soon-ish ;)')">File</span>
</span>
<span class="actions">
<i class="material-icons" onclick="bugReport();" title="Report a Bug via GitHub"></i>
</span>
</div>
<div class="waterfall"></div>
<!-- Input -->
<div class="main" id="input">
<div class="subheader">Background</div>
<div class="card" id="background" data-can-layer>
<div class="actions"><i class="material-icons" onclick="makePermalink(this);" title="Permalink"></i><i class="material-icons" onclick="help();" title="Help"></i></div>
<div class="subheader">Longhand</div>
<div class="longhand">
<div class="layer">
<input type="text" id="background-image" placeholder="Image" data-initial-value="none">
<input type="text" id="background-position" placeholder="Position" data-initial-value="0% 0%">
<input type="text" id="background-size" placeholder="Size" data-initial-value="auto auto">
<input type="text" id="background-repeat" placeholder="Repeat" data-initial-value="repeat">
<input type="text" id="background-origin" placeholder="Origin" data-initial-value="padding-box">
<input type="text" id="background-clip" placeholder="Clip" data-initial-value="border-box">
<input type="text" id="background-attachment" placeholder="Attachment" data-initial-value="scroll">
<input type="text" id="background-color" placeholder="Color" data-initial-value="transparent">
</div>
</div>
<div class="buttons center">
<span id="add-background" class="button dark"><span onclick="addBackground();">Add Background</span></span>
<span id="remove-background" class="button dark disabled"><span onclick="removeBackground();">Remove Background</span></span>
</div>
<div class="subheader">Shorthand</div>
<div class="shorthand">
<input type="text" id="background-shorthand" placeholder="Shorthand" disabled>
</div>
</div>
<div class="subheader">Border</div>
<div class="card" id="border">
<div class="actions"><i class="material-icons" onclick="makePermalink(this);" title="Permalink"></i><i class="material-icons" onclick="help();" title="Help"></i></div>
<div class="subheader">Longhand</div>
<div class="longhand">
<input type="text" id="border-width" placeholder="Width" data-initial-value="medium">
<input type="text" id="border-style" placeholder="Style" data-initial-value="none">
<input type="text" id="border-color" placeholder="Color" data-initial-value="currentColor">
</div>
<div class="subheader">Shorthand</div>
<div class="shorthand">
<input type="text" id="border-shorthand" placeholder="Shorthand">
</div>
</div>
<div class="subheader">Border Radius</div>
<div class="card" id="border-radius">
<div class="actions"><i class="material-icons" onclick="makePermalink(this);" title="Permalink"></i><i class="material-icons" onclick="help();" title="Help"></i></div>
<div class="subheader">Longhand</div>
<div class="longhand">
<input type="text" id="border-radius-top Left" placeholder="Top Left" data-initial-value="0">
<input type="text" id="border-radius-top Right" placeholder="Top Right" data-initial-value="0">
<input type="text" id="border-radius-bottom Left" placeholder="Bottom Left" data-initial-value="0">
<input type="text" id="border-radius-bottom Right" placeholder="Bottom Right" data-initial-value="0">
</div>
<div class="subheader">Shorthand</div>
<div class="shorthand">
<input type="text" id="border-radius-shorthand" placeholder="Shorthand" disabled>
</div>
</div>
<div class="subheader">Border Top</div>
<div class="card" id="border-top">
<div class="actions"><i class="material-icons" onclick="makePermalink(this);" title="Permalink"></i><i class="material-icons" onclick="help();" title="Help"></i></div>
<div class="subheader">Longhand</div>
<div class="longhand">
<input type="text" id="border-top-width" placeholder="Width" data-initial-value="medium">
<input type="text" id="border-top-style" placeholder="Style" data-initial-value="none">
<input type="text" id="border-top-color" placeholder="Color" data-initial-value="currentColor">
</div>
<div class="subheader">Shorthand</div>
<div class="shorthand">
<input type="text" id="border-top-shorthand" placeholder="Shorthand" disabled>
</div>
</div>
<div class="subheader">Border Right</div>
<div class="card" id="border-right">
<div class="actions"><i class="material-icons" onclick="makePermalink(this);" title="Permalink"></i><i class="material-icons" onclick="help();" title="Help"></i></div>
<div class="subheader">Longhand</div>
<div class="longhand">
<input type="text" id="border-right-width" placeholder="Width" data-initial-value="medium">
<input type="text" id="border-right-style" placeholder="Style" data-initial-value="none">
<input type="text" id="border-right-color" placeholder="Color" data-initial-value="currentColor">
</div>
<div class="subheader">Shorthand</div>
<div class="shorthand">
<input type="text" id="border-right-shorthand" placeholder="Shorthand" disabled>
</div>
</div>
<div class="subheader">Border Bottom</div>
<div class="card" id="border-bottom">
<div class="actions"><i class="material-icons" onclick="makePermalink(this);" title="Permalink"></i><i class="material-icons" onclick="help();" title="Help"></i></div>
<div class="subheader">Longhand</div>
<div class="longhand">
<input type="text" id="border-bottom-width" placeholder="Width" data-initial-value="medium">
<input type="text" id="border-bottom-style" placeholder="Style" data-initial-value="none">
<input type="text" id="border-bottom-color" placeholder="Color" data-initial-value="currentColor">
</div>
<div class="subheader">Shorthand</div>
<div class="shorthand">
<input type="text" id="border-bottom-shorthand" placeholder="Shorthand" disabled>
</div>
</div>
<div class="subheader">Border Left</div>
<div class="card" id="border-left">
<div class="actions"><i class="material-icons" onclick="makePermalink(this);" title="Permalink"></i><i class="material-icons" onclick="help();" title="Help"></i></div>
<div class="subheader">Longhand</div>
<div class="longhand">
<input type="text" id="border-left-width" placeholder="Width" data-initial-value="medium">
<input type="text" id="border-left-style" placeholder="Style" data-initial-value="none">
<input type="text" id="border-left-color" placeholder="Color" data-initial-value="currentColor">
</div>
<div class="subheader">Shorthand</div>
<div class="shorthand">
<input type="text" id="border-left-shorthand" placeholder="Shorthand" disabled>
</div>
</div>
<div class="subheader">Border Width</div>
<div class="card" id="border-width">
<div class="actions"><i class="material-icons" onclick="makePermalink(this);" title="Permalink"></i><i class="material-icons" onclick="help();" title="Help"></i></div>
<div class="subheader">Longhand</div>
<div class="longhand">
<input type="text" id="border-width-top" placeholder="Top" data-initial-value="medium">
<input type="text" id="border-width-right" placeholder="Right" data-initial-value="medium">
<input type="text" id="border-width-bottom" placeholder="Bottom" data-initial-value="medium">
<input type="text" id="border-width-left" placeholder="Left" data-initial-value="medium">
</div>
<div class="subheader">Shorthand</div>
<div class="shorthand">
<input type="text" id="border-width-shorthand" placeholder="Shorthand" disabled>
</div>
</div>
<div class="subheader">Border Style</div>
<div class="card" id="border-style">
<div class="actions"><i class="material-icons" onclick="makePermalink(this);" title="Permalink"></i><i class="material-icons" onclick="help();" title="Help"></i></div>
<div class="subheader">Longhand</div>
<div class="longhand">
<input type="text" id="border-style-top" placeholder="Top" data-initial-value="nonemedium">
<input type="text" id="border-style-right" placeholder="Right" data-initial-value="nonemedium">
<input type="text" id="border-style-bottom" placeholder="Bottom" data-initial-value="nonemedium">
<input type="text" id="border-style-left" placeholder="Left" data-initial-value="nonemedium">
</div>
<div class="subheader">Shorthand</div>
<div class="shorthand">
<input type="text" id="border-style-shorthand" placeholder="Shorthand" disabled>
</div>
</div>
<div class="subheader">Border Color</div>
<div class="card" id="border-color">
<div class="actions"><i class="material-icons" onclick="makePermalink(this);" title="Permalink"></i><i class="material-icons" onclick="help();" title="Help"></i></div>
<div class="subheader">Longhand</div>
<div class="longhand">
<input type="text" id="border-color-top" placeholder="Top" data-initial-value="currentColor">
<input type="text" id="border-color-right" placeholder="Right" data-initial-value="currentColor">
<input type="text" id="border-color-bottom" placeholder="Bottom" data-initial-value="currentColor">
<input type="text" id="border-color-left" placeholder="Left" data-initial-value="currentColor">
</div>
<div class="subheader">Shorthand</div>
<div class="shorthand">
<input type="text" id="border-color-shorthand" placeholder="Shorthand" disabled>
</div>
</div>
<div class="subheader">Font</div>
<div class="card" id="font">
<div class="actions"><i class="material-icons" onclick="makePermalink(this);" title="Permalink"></i><i class="material-icons" onclick="help();" title="Help"></i></div>
<div class="subheader">Longhand</div>
<div class="longhand">
<input type="text" id="font-style" placeholder="Style" data-initial-value="normal">
<input type="text" id="font-variant" placeholder="Variant" data-initial-value="normal">
<input type="text" id="font-weight" placeholder="Weight" data-initial-value="normal">
<input type="text" id="font-stretch" placeholder="Stretch" data-initial-value="normal">
<input type="text" id="font-size" placeholder="Size" required data-initial-value="medium">
<input type="text" id="line-height" placeholder="Line Height" data-initial-value="normal">
<input type="text" id="font-family" placeholder="Family" required data-initial-value="normal">
</div>
<div class="subheader">Shorthand</div>
<div class="shorthand">
<input type="text" id="font-shorthand" placeholder="Shorthand" disabled>
</div>
</div>
<div class="subheader">List Style</div>
<div class="card" id="list-style">
<div class="actions"><i class="material-icons" onclick="makePermalink(this);" title="Permalink"></i><i class="material-icons" onclick="help();" title="Help"></i></div>
<div class="subheader">Longhand</div>
<div class="longhand">
<input type="text" id="list-style-type" placeholder="Type" data-initial-value="disc">
<input type="text" id="list-style-position" placeholder="Position" data-initial-value="outside">
<input type="text" id="list-style-image" placeholder="Image" data-initial-value="none">
</div>
<div class="subheader">Shorthand</div>
<div class="shorthand">
<input type="text" id="list-style-shorthand" placeholder="Shorthand" disabled>
</div>
</div>
<div class="subheader">Margin</div>
<div class="card" id="margin">
<div class="actions"><i class="material-icons" onclick="makePermalink(this);" title="Permalink"></i><i class="material-icons" onclick="help();" title="Help"></i></div>
<div class="subheader">Longhand</div>
<div class="longhand">
<input type="text" id="margin-top" placeholder="Top" required data-initial-value="0">
<input type="text" id="margin-right" placeholder="Right" required data-initial-value="0">
<input type="text" id="margin-bottom" placeholder="Bottom" required data-initial-value="0">
<input type="text" id="margin-left" placeholder="Left" required data-initial-value="0">
</div>
<div class="subheader">Shorthand</div>
<div class="shorthand">
<input type="text" id="margin-shorthand" placeholder="Shorthand" disabled>
</div>
</div>
<div class="subheader">Padding</div>
<div class="card" id="padding">
<div class="actions"><i class="material-icons" onclick="makePermalink(this);" title="Permalink"></i><i class="material-icons" onclick="help();" title="Help"></i></div>
<div class="subheader">Longhand</div>
<div class="longhand">
<input type="text" id="padding-top" placeholder="Top" required data-initial-value="0">
<input type="text" id="padding-right" placeholder="Right" required data-initial-value="0">
<input type="text" id="padding-bottom" placeholder="Bottom" required data-initial-value="0">
<input type="text" id="padding-left" placeholder="Left" required data-initial-value="0">
</div>
<div class="subheader">Shorthand</div>
<div class="shorthand">
<input type="text" id="padding-shorthand" placeholder="Shorthand" disabled>
</div>
</div>
<div class="subheader">Transition</div>
<div class="card" id="transition">
<div class="actions"><i class="material-icons" onclick="makePermalink(this);" title="Permalink"></i><i class="material-icons" onclick="help();" title="Help"></i></div>
<div class="subheader">Longhand</div>
<div class="longhand">
<input type="text" id="transition-property" placeholder="Property" data-initial-value="all">
<input type="text" id="transition-duration" placeholder="Duration" data-initial-value="0s">
<input type="text" id="transition-timing-function" placeholder="Timing Function" data-initial-value="ease">
<input type="text" id="transition-delay" placeholder="Delay" data-initial-value="0s">
</div>
<div class="subheader">Shorthand</div>
<div class="shorthand">
<input type="text" id="transition-shorthand" placeholder="Shorthand" disabled>
</div>
</div>
</div>
<!-- Text -->
<div class="main" id="text" style="display: none;">
<div class="card text longhand" contenteditable="true">Poop</div>
<div class="card text shorthand" contenteditable="true">Poop</div>
</div>
<!-- File -->
<div class="main" id="file" style="display: none;">
</div>
<!-- Scripts -->
<script type="text/javascript" src="/js/script.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.5.5/clipboard.min.js"></script>
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-37665721-10', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>