-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocumentation.html
620 lines (609 loc) · 34.8 KB
/
documentation.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
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="Documentation for hybicon.js. Hybrid SVG icons. Better together." />
<meta name="keywords" content="svg icon" />
<meta name="author" content="gabor.berkesi@softwaretailoring.net" />
<link rel="shortcut icon" href="hybicon_favicon.png">
<title>HYBICON - Better together - Documentation</title>
<!-- Bootstrap core CSS -->
<link href="css/for-doc/bootstrap.min.css" rel="stylesheet">
<link href="css/for-doc/index.min.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<!-- NAVBAR
================================================== -->
<body>
<header>
<div class="row">
<div class="col-xs-5">
<a href="index.html" title="Back to index"><div id="userideaheader" data-hybicon="user-book" data-hybicon-align="right" data-hybicon-size="150"></div></a>
</div>
<div class="col-xs-7">
<h1 class="fontface pull-left"> <a href="index.html" title="Back to index">HYBICON</a></h1>
</div>
</div>
</header>
<div id="settings">
<div class="container">
<h2 class="fontface">Documentation</h2>
<div class="row">
<div class="col-lg-2 col-sm-12 col-xs-12"></div>
<div class="col-lg-1 col-sm-3 col-xs-6">
<div id="userideamain" data-hybicon="user-idea"></div>
</div>
<div class="col-lg-1 col-sm-3 col-xs-6">
<div id="twittertweetmain" data-hybicon="twitter-bubble" data-hybicon-color="#55ACEE"></div>
</div>
<div class="col-lg-1 col-sm-3 col-xs-6">
<div id="gplusplusmain" data-hybicon="google-plus" data-hybicon-color="#DD4B39"></div>
</div>
<div class="col-lg-1 col-sm-3 col-xs-6">
<div id="facebooklikemain" data-hybicon="facebook-like" data-hybicon-color="#3B5998"></div>
</div>
<div class="col-lg-1 col-sm-3 col-xs-6">
<div id="instagramfavemain" data-hybicon="instagram-fave" data-hybicon-color="#3f729b"></div>
</div>
<div class="col-lg-1 col-sm-3 col-xs-6">
<div id="pinterestpin" data-hybicon="pinterest-pin" data-hybicon-color="#bd081c"></div>
</div>
<div class="col-lg-1 col-sm-3 col-xs-6">
<div id="linkedinconnectmain" data-hybicon="linkedin-link" data-hybicon-color="#0077B5"></div>
</div>
<div class="col-lg-1 col-sm-3 col-xs-6">
<div id="githubforkmain" data-hybicon="github-fork"></div>
</div>
<div class="col-lg-2 col-sm-12 col-xs-12"></div>
</div>
<hr />
<div class="row">
<div class="col-xs-3 hidden-xs"></div>
<div class="col-xs-4 col-sm-2">
<div id="checkboxHover" data-hybicon="checkbox-check" data-hybicon-size="75" data-hybicon-clickmode title="Show on hover" onmousedown="setMode('hovermode');"></div>
<div class="smalltitle">Hover mode</div>
</div>
<div class="col-xs-4 col-sm-2">
<div id="checkboxClick" data-hybicon="checkbox-check" data-hybicon-size="75" data-hybicon-clickmode title="Show on click" onmousedown="setMode('clickmode');"></div>
<div class="smalltitle">Click mode</div>
</div>
<div class="col-xs-4 col-sm-2">
<div id="checkboxInfo" data-hybicon="checkbox-check" data-hybicon-size="75" data-hybicon-clickmode title="Show info" onmousedown="setMode('infomode');"></div>
<div class="smalltitle">Info mode</div>
</div>
<div class="col-xs-3 hidden-xs"></div>
</div>
<hr />
</div>
<div id="sourcecode">
<div class="container">
<h2 class="fontface">How to use?</h2>
<div class="usingtext">
<h5 class="fontface">Hybicon is based on SVG and works with <a href="http://dmitrybaranovskiy.github.io/raphael/" target="_blank">Raphaël.js</a>. Download and include these files into your HTML page and customize your icon with HTML5 data attributes.</h5>
</div>
<div class="row">
<div class="col-lg-12">
<div id="preIconHtmlBodyDiv" class="sourceResult">
<pre><body>
<div <strong class="usingpre">data-hybicon</strong>></div>
<script src="js/required/raphael.min.js"></script>
<script src="js/hybicon.min.js"></script>
</body></pre>
</div>
</div>
</div>
<div class="row" style="margin-top: 10px; margin-bottom: 15px;">
<div class="hidden-xs col-sm-2"></div>
<div class="col-xs-6 col-sm-2">
<a href="https://github.com/softwaretailoring/hybicon/releases/download/v1.4.0/hybicon.js-1.4.0.zip">
<div data-hybicon="download-code" data-hybicon-size="66" data-hybicon-hovermode="switch" data-hybicon-positioning="center"
data-hybicon-background="#EAFDF8" data-hybicon-color="#604c3b" data-hybicon-borderradius="50%"
title="Download files"></div>
</a>
<br class="visible-xs" />
</div>
<div class="col-xs-6 col-sm-2">
<a href="https://www.npmjs.com/package/hybicon" target="_blank">
<div data-hybicon="npm-search" data-hybicon-size="66" data-hybicon-hovermode="switch" data-hybicon-positioning="center"
data-hybicon-background="#EAFDF8" data-hybicon-color="#604c3b" data-hybicon-borderradius="50%"
title="Install via npm"></div>
</a>
<br class="visible-xs" />
</div>
<div class="col-xs-6 col-sm-2">
<a href="http://bower.io/search/?q=hybicon" target="_blank">
<div data-hybicon="bower-search" data-hybicon-size="66" data-hybicon-hovermode="switch" data-hybicon-positioning="center"
data-hybicon-background="#EAFDF8" data-hybicon-color="#604c3b" data-hybicon-borderradius="50%"
title="Install via Bower"></div>
</a>
</div>
<div class="col-xs-6 col-sm-2">
<a href="http://www.jsdelivr.com/?query=hybicon" target="_blank">
<div data-hybicon="jsdelivr-search" data-hybicon-size="66" data-hybicon-hovermode="switch" data-hybicon-positioning="center"
data-hybicon-background="#EAFDF8" data-hybicon-color="#604c3b" data-hybicon-borderradius="50%"
title="Use jsDelivr CDN"></div>
</a>
</div>
<div class="hidden-xs col-sm-2"></div>
</div>
</div>
</div>
</div>
<div id="using">
<div class="container">
<h2 class="fontface">How to customize?</h2>
<div class="row">
<div class="col-lg-12">
<h3 class="fontface">Icon</h3>
<div class="usingtext">
You can use predefined hybrid icons with <strong>data-hybicon</strong> attribute.
</div>
<div class="sourceResult">
<pre><div <strong class="usingpre">data-hybicon="icon1-icon2"</strong>></div></pre>
</div>
<div class="row">
<div class="col-xs-6 col-sm-4">
<div data-hybicon="github"></div>
<div class="smalltitle">github</div>
</div>
<div class="col-xs-6 col-sm-4">
<div data-hybicon="star"></div>
<div class="smalltitle">star</div>
</div>
<div class="col-xs-12 col-sm-4">
<div data-hybicon="github-star"></div>
<div class="smalltitle">github-star</div>
</div>
</div>
<div class="usinglink"><a href='icons.html' class="linkbutton">See available icons</a></div>
<hr id="positioning" />
<h3 class="fontface">Positioning</h3>
<div class="usingtext">
The icons can be positioned with <strong>data-hybicon-positioning</strong> attribute.
</div>
<div class="sourceResult">
<pre><div data-hybicon="github-star" <strong class="usingpre">data-hybicon-positioning="topright|center|topleft"</strong>></div></pre>
</div>
<div class="row">
<div class="col-xs-12 col-sm-4">
<div data-hybicon="github-star"></div>
<div class="smalltitle">default</div>
</div>
<div class="col-xs-6 col-sm-4">
<div data-hybicon="github-star" data-hybicon-positioning="center"></div>
<div class="smalltitle">center</div>
</div>
<div class="col-xs-6 col-sm-4">
<div data-hybicon="github-star" data-hybicon-positioning="topleft"></div>
<div class="smalltitle">topleft</div>
</div>
</div>
<hr id="hovermode" />
<h3 class="fontface">Hover mode</h3>
<div class="usingtext">
The icons animated on hover when set <strong>data-hybicon-hovermode</strong> attribute.
</div>
<div class="sourceResult">
<pre><div data-hybicon="code-fave" <strong class="usingpre">data-hybicon-hovermode="show|rotate|switch"</strong>></div></pre>
</div>
<div class="row">
<div class="col-xs-12 col-sm-4">
<div data-hybicon="code-fave" data-hybicon-hovermode></div>
<div class="smalltitle">default</div>
</div>
<div class="col-xs-6 col-sm-4">
<div data-hybicon="code-fave" data-hybicon-hovermode="rotate"></div>
<div class="smalltitle">rotate</div>
</div>
<div class="col-xs-6 col-sm-4">
<div data-hybicon="code-fave" data-hybicon-hovermode="switch"></div>
<div class="smalltitle">switch</div>
</div>
</div>
<hr id="clickmode" />
<h3 class="fontface">Click mode</h3>
<div class="usingtext">
The icons animated on click when set <strong>data-hybicon-clickmode</strong> attribute.
</div>
<div class="sourceResult">
<pre><div data-hybicon="icon1-icon2" <strong class="usingpre">data-hybicon-clickmode="show|rotate|switch"</strong>></div></pre>
</div>
<div class="row">
<div class="col-xs-12 col-sm-4">
<div data-hybicon="checkbox-check" data-hybicon-clickmode></div>
<div class="smalltitle">default</div>
</div>
<div class="col-xs-6 col-sm-4">
<div data-hybicon="checkbox-arrowright" data-hybicon-positioning="center" data-hybicon-clickmode="rotate"></div>
<div class="smalltitle">rotate</div>
</div>
<div class="col-xs-6 col-sm-4">
<div data-hybicon="view-noview" data-hybicon-clickmode="switch"></div>
<div class="smalltitle">switch</div>
</div>
</div>
<hr id="infomode" />
<h3 class="fontface">Info mode</h3>
<div class="usingtext">
The info field appears when set <strong>data-hybicon-infomode</strong> attribute.
</div>
<div class="sourceResult">
<pre><div data-hybicon="download-code"
<strong class="usingpre">data-hybicon-infomode="show|right-*width*"</strong>
<strong class="usingpre">data-hybicon-infotext="*your text*"</strong>>
</div></pre>
</div>
<div class="row">
<div class="col-sm-4">
<div data-hybicon="download-code" data-hybicon-size="60" data-hybicon-infomode data-hybicon-infotext="v1.4"></div>
<div class="smalltitle">default</div>
</div>
<div class="col-sm-4">
<div data-hybicon="download-code" data-hybicon-size="60" data-hybicon-infomode="right" data-hybicon-infotext="v1.4.0"></div>
<div class="smalltitle">right</div>
</div>
<div class="col-sm-4">
<div data-hybicon="download-code" data-hybicon-size="60" data-hybicon-infomode="right-300" data-hybicon-infotext="download"></div>
<div class="smalltitle">right-300</div>
</div>
</div>
<div class="usinglink"><a href='github.html' class="linkbutton">See GitHub plugin</a></div>
<hr id="hyperlink" />
<h3 class="fontface">Hyperlink</h3>
<div class="usingtext">
Simple add an anchor tag around hybicon's div.
</div>
<div class="sourceResult">
<pre><strong class="usingpre"><a href="documentation.html#hyperlink"></strong><div data-hybicon="link"></div><strong class="usingpre"></a></strong></pre>
</div>
<div class="row">
<div class="col-xs-12">
<a href="documentation.html#hyperlink"><div data-hybicon="link"></div></a>
<div class="smalltitle">click it</div>
</div>
</div>
<hr id="jsdisabled" />
<h3 class="fontface">JavaScript disabled</h3>
<div class="usingtext">
Add a HTML element into div if you want to treat that case when JavaScript disabled.
</div>
<div class="sourceResult">
<pre><div data-hybicon="github-star" data-hybicon-hovermode="switch" style="text-align:center;">
<strong class="usingpre"><img src="hybicon.sample.png" alt="GitHub stargazers" /></strong>
</div></pre>
</div>
<div class="row">
<div class="col-xs-12">
<a href="https://github.com/softwaretailoring/hybicon/stargazers" target="_blank">
<div data-hybicon="github-star" data-hybicon-hovermode="switch" style="text-align:center;">
<img src="hybicon.sample.png" alt="GitHub stargazers" />
</div>
</a>
<div class="smalltitle">try it without JS</div>
</div>
</div>
<hr id="accessibility" />
<h3 class="fontface">Accessibility</h3>
<div class="usingtext">
SVG may be <a href="http://www.sitepoint.com/tips-accessible-svg/" target="_blank">accessible</a> with <strong>data-hybicon-alt</strong> attribute.
<br /> It provides an alternative text to SVG and hybicon will be read out by <a href="https://en.wikipedia.org/wiki/Assistive_technology" target="_blank">assistive technologies</a>.
</div>
<div class="sourceResult">
<pre><div data-hybicon="noview-view"
data-hybicon-hovermode="switch"
<strong class="usingpre">data-hybicon-alt</strong>="Go to The Accessibility Project">
</div></pre>
</div>
<div class="row">
<div class="col-xs-12">
<a href="http://a11yproject.com/" target="_blank">
<div data-hybicon="noview-view" data-hybicon-hovermode="switch" data-hybicon-alt="Go to The Accessibility Project"></div>
</a>
<div class="smalltitle">try it with screen reader</div>
</div>
</div>
<hr id="keyboard" />
<h3 class="fontface">Keyboard</h3>
<div class="usingtext">
In click mode, hybicon is able to get focus and do the animation with keyboard. Default key is space bar and you can override it with <strong>data-hybicon-keycode</strong> attribute.
<br />Furthermore when you use the <strong>onmousedown</strong> event on the div it fired by keydown also.
<br />Generated SVG supports <a href="http://www.w3.org/WAI/intro/aria" target="_blank">WAI-ARIA</a> with <a href="http://www.w3.org/TR/wai-aria/states_and_properties#aria-pressed" target="_blank">aria-pressed</a> attribute.
</div>
<div class="sourceResult">
<pre><div data-hybicon="switch-circle"
data-hybicon-clickmode
<strong class="usingpre">data-hybicon-keycode</strong>="72"
<strong class="usingpre">onmousedown</strong>="alert('It appears after mousedown and keydown.');">
</div></pre>
</div>
<div class="row">
<div class="col-xs-12">
<div data-hybicon="switch-circle" data-hybicon-clickmode data-hybicon-keycode="72" onmousedown="alert('It appears after mousedown and keydown.');"></div>
<div class="smalltitle">try it with 'h' key</div>
</div>
</div>
<hr id="animation" />
<h3 class="fontface">Advanced mode</h3>
<div class="usingtext">
Hybicon works on a 100x100 matrix. Positioning and animation are based on the following formula:<br /><strong>"centerX, centerY, size, rotate"</strong>
<br />You can also set the time and <a href="http://dmitrybaranovskiy.github.io/raphael/easing.html" target="_blank">easing</a> of animation.
</div>
<div class="sourceResult">
<pre><div data-hybicon="arrowright-arrowright"
<strong class="usingpre">data-hybicon-icon1init</strong>="20,50,25,0" <!-- default: "45,55,77,0" -->
<strong class="usingpre">data-hybicon-icon1anim</strong>="35,50,30,180" <!-- default: "45,55,77,0" -->
<strong class="usingpre">data-hybicon-icon2init</strong>="80,50,25,180" <!-- default: "80,20,33,0" -->
<strong class="usingpre">data-hybicon-icon2anim</strong>="65,50,30,0" <!-- default: "80,20,33,0" -->
<strong class="usingpre">data-hybicon-animtime</strong>="600" <!-- default: "200" -->
<strong class="usingpre">data-hybicon-animease</strong>="bounce" <!-- default: "linear" -->
data-hybicon-clickmode>
</div>
</pre>
</div>
<div class="row">
<div class="col-xs-12">
<div data-hybicon="arrowright-arrowright"
data-hybicon-icon1init="20,50,25,0"
data-hybicon-icon1anim="35,50,30,180"
data-hybicon-icon2init="80,50,25,180"
data-hybicon-icon2anim="65,50,30,0"
data-hybicon-animtime="600"
data-hybicon-animease="bounce"
data-hybicon-clickmode
data-hybicon-border="solid 1px #333"></div>
</div>
<div class="smalltitle">click it</div>
</div>
<hr id="3rdpartyicon" />
<h3 class="fontface">3rd party icon</h3>
<div class="usingtext">
Icons are predefined <a href="http://www.w3.org/TR/SVG/paths.html#PathDataGeneralInformation" target="_blank">SVG paths</a>. You can use your own icons with <strong>data-hybicon-iconclass</strong> attribute.
<br />In this case only <strong>hybicon.core.min.js</strong> necessary.
</div>
<div class="sourceResult">
<pre>var <strong class="usingpre">myIcons</strong> = {
triangle: "M0,100,L100,100,L50,20,z",
rectangle: "M0,0,L100,0,L100,100,L0,100,z"
}</pre>
<pre><div <strong class="usingpre">data-hybicon-iconclass="myIcons"</strong>
data-hybicon="triangle-rectangle"
data-hybicon-clickmode="rotate">
</div>
<script src="js/required/raphael.min.js"></script>
<script src="js/<strong class="usingpre">hybicon.core.min.js</strong>"></script>
</pre>
</div>
<div class="row">
<div class="col-xs-12">
<div data-hybicon-iconclass="myIcons"
data-hybicon="triangle-rectangle"
data-hybicon-clickmode="rotate"></div>
</div>
<div class="smalltitle">click it</div>
</div>
<hr id="stylesettings" />
<h2 class="fontface">Style settings</h2>
<br id="alignment" />
<h3 class="fontface">Alignment</h3>
<div class="sourceResult">
<pre><div data-hybicon="icons" <strong class="usingpre">data-hybicon-align="left|center|right"</strong>"></div></pre>
</div>
<div class="row">
<div class="col-sm-4">
<div data-hybicon="icons" data-hybicon-align="left"></div>
<div class="smalltitle">left</div>
</div>
<div class="col-sm-4">
<div data-hybicon="icons" data-hybicon-align="center"></div>
<div class="smalltitle">default</div>
</div>
<div class="col-sm-4">
<div data-hybicon="icons" data-hybicon-align="right"></div>
<div class="smalltitle">right</div>
</div>
</div>
<hr id="size" />
<h3 class="fontface">Size</h3>
<div class="sourceResult">
<pre><div data-hybicon <strong class="usingpre">data-hybicon-size="unit in px|'css' for responsive behaviour"</strong>"></div></pre>
</div>
<div class="row">
<div class="col-sm-2">
<div data-hybicon data-hybicon-size="40"></div>
<div class="smalltitle">40</div>
</div>
<div class="col-sm-2">
<div data-hybicon data-hybicon-size="60"></div>
<div class="smalltitle">60</div>
</div>
<div class="col-sm-2">
<div data-hybicon data-hybicon-size="80"></div>
<div class="smalltitle">80</div>
</div>
<div class="col-sm-2">
<div data-hybicon></div>
<div class="smalltitle">default</div>
</div>
<div class="col-sm-2">
<div data-hybicon data-hybicon-size="120"></div>
<div class="smalltitle">120</div>
</div>
<div class="col-sm-2">
<div data-hybicon data-hybicon-size="140"></div>
<div class="smalltitle">140</div>
</div>
</div>
<hr id="background" />
<h3 class="fontface">Background</h3>
<div class="sourceResult">
<pre><div data-hybicon="github-star" <strong class="usingpre">data-hybicon-background="as CSS background"</strong>></div></pre>
</div>
<div class="row">
<div class="col-xs-12">
<div data-hybicon="github-star" data-hybicon-background="#fff"></div>
<div class="smalltitle">#FFF</div>
</div>
</div>
<hr id="border" />
<h3 class="fontface">Border</h3>
<div class="sourceResult">
<pre><div data-hybicon="github-star" <strong class="usingpre">data-hybicon-border="as CSS border"</strong>></div></pre>
</div>
<div class="row">
<div class="col-xs-12">
<div data-hybicon="github-star" data-hybicon-background="#fff" data-hybicon-border="solid 3px #333"></div>
<div class="smalltitle">solid 3px #333</div>
</div>
</div>
<hr id="borderradius" />
<h3 class="fontface">Border's radius</h3>
<div class="sourceResult">
<pre><div data-hybicon="github-star" <strong class="usingpre">data-hybicon-borderradius="as CSS border-radius"</strong>></div></pre>
</div>
<div class="row">
<div class="col-xs-12">
<div data-hybicon="github-star" data-hybicon-background="#fff" data-hybicon-border="solid 3px #333" data-hybicon-borderradius="15%"></div>
<div class="smalltitle">15%</div>
</div>
</div>
<hr id="color" />
<h3 class="fontface">Color</h3>
<div class="sourceResult">
<pre><div data-hybicon="github-star" <strong class="usingpre">data-hybicon-color="as CSS color(-icon2 color)"</strong>></div></pre>
</div>
<div class="row">
<div class="col-sm-6">
<div data-hybicon="github-star" data-hybicon-background="#fff" data-hybicon-border="solid 3px #333" data-hybicon-borderradius="15%" data-hybicon-color="#4183C4"></div>
<div class="smalltitle">#4183C4</div>
</div>
<div class="col-sm-6">
<div data-hybicon="github-star" data-hybicon-background="#fff" data-hybicon-border="solid 3px #333" data-hybicon-borderradius="15%" data-hybicon-color="#4183C4-#333"></div>
<div class="smalltitle">#4183C4-#333</div>
</div>
</div>
<hr id="style" />
<h3 class="fontface">Style</h3>
<div class="sourceResult">
<pre><div data-hybicon="github-star" <strong class="usingpre">data-hybicon-style="fill|stroke(-icon2 style)"</strong>></div></pre>
</div>
<div class="row">
<div class="col-sm-3">
<div data-hybicon="github-star"></div>
<div class="smalltitle">default</div>
</div>
<div class="col-sm-3">
<div data-hybicon="github-star" data-hybicon-style="stroke"></div>
<div class="smalltitle">stroke</div>
</div>
<div class="col-sm-3">
<div data-hybicon="github-star" data-hybicon-style="fill-stroke"></div>
<div class="smalltitle">fill-stroke</div>
</div>
<div class="col-sm-3">
<div data-hybicon="github-star" data-hybicon-style="stroke-fill"></div>
<div class="smalltitle">stroke-fill</div>
</div>
</div>
<hr id="css" />
<h3 class="fontface">CSS</h3>
<div class="usingtext">
The parts of hybicon can be styled with following ids.
</div>
<div class="sourceResult">
<pre><div <strong class="usingpre">id="myHybicon"</strong>
data-hybicon="user-idea"
data-hybicon-hovermode="switch"
data-hybicon-infomode
data-hybicon-size="css">
</div></pre>
<pre><strong class="usingpre">#myHybicon</strong> {
width: 222px;
height: 222px;
}
<strong class="usingpre">#myHybicon-svg</strong> {
background: #FFF;
border-radius: 15%;
}
<strong class="usingpre">#myHybicon-icon1</strong> {
fill: #333;
}
<strong class="usingpre">#myHybicon-icon2</strong> {
fill: #FFF;
stroke: #F6921E;
stroke-width: 2;
}
<strong class="usingpre">#myHybicon-info</strong> {
fill: #604c3b;
stroke: #604c3b;
stroke-width: 3;
}
<strong class="usingpre">#myHybicon-infotext</strong> {
fill: #FFF;
font: 11px Impact, sans-serif;
}</pre>
</div>
<div class="sourceResult">
<p data-height="420" data-theme-id="dark" data-slug-hash="qRGMMp" data-default-tab="result" data-user="softwaretailoring" data-embed-version="2" data-pen-title="hybicon.js template" class="codepen">See the Pen <a href="http://codepen.io/softwaretailoring/pen/qRGMMp/">hybicon.js template</a> by Gábor Berkesi (<a href="http://codepen.io/softwaretailoring">@softwaretailoring</a>) on <a href="http://codepen.io">CodePen</a>.</p>
<script async src="https://production-assets.codepen.io/assets/embed/ei.js"></script>
</div>
</div>
</div>
</div>
</div>
<div id="useful">
<div class="container">
<h2 class="fontface">How to spread?</h2>
<div class="row">
<div class="col-sm-4">
<div class="smalltitletop">Tweet for it</div>
<a href="https://twitter.com/intent/tweet?url=http://hybicon.softwaretailoring.net/&hashtags=hybicon&text=SVG based hybrid icons - Better together!" target="_blank">
<div id="iconTwitter" data-hybicon="twitter-bubble" data-hybicon-hovermode data-hybicon-size="140" data-hybicon-alt="Tweet about it"></div>
</a>
</div>
<div class="col-sm-4">
<div class="smalltitletop">Buy me a <s>coffee</s> beer</div>
<a href="https://www.buymeacoffee.com/sftwrtlrng" target="_blank">
<div id="iconDonate" data-hybicon="beer-pizza" data-hybicon-hovermode data-hybicon-size="140" data-hybicon-alt="Go to BuyMeACoffee for donation"></div>
</a>
</div>
<div class="col-sm-4">
<div class="smalltitletop">Star for it</div>
<a href="https://github.com/softwaretailoring/hybicon/stargazers" target="_blank">
<div id="iconGitHub" data-hybicon="github-star" data-hybicon-hovermode data-hybicon-size="140" data-hybicon-alt="Go to GitHub stargazers"></div>
</a>
</div>
</div>
</div>
</div>
<!-- FOOTER -->
<footer>
<table style="margin:auto;">
<tr>
<td>HYBICON v1.4 </td>
<td><a href="mailto:gabor.berkesi@softwaretailoring.net?subject=HYBICON"><div id="iconMailFooter" data-hybicon-size="25" data-hybicon="mail" data-hybicon-hovermode></div></a></td>
<td> © 2015-2018 <a href='http://softwaretailoring.net' target='_blank'>softwaretailoring.net</a></td>
</tr>
</table>
</footer>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/for-doc/jquery-1.10.2.min.js"></script>
<script src="js/for-doc/bootstrap.min.js"></script>
<script src="js/required/raphael.min.js"></script>
<script src="js/for-doc/index.min.js"></script>
<script src="js/hybicon.min.js"></script>
<script type="text/javascript">
var myIcons = {
triangle: "M0,100,L100,100,L50,20,z",
rectangle: "M0,0,L100,0,L100,100,L0,100,z"
}
</script>
</body>
</html>