blob: 24421652dcf2e73aa215ae6084e7ec45938e582b (
plain)
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
|
---
---
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="{{ site.baseurl }}/assets/style.css">
<title>Tabler Icons</title>
</head>
<body>
<div class="container">
<div class="box">
{% assign last-icon = site.icons | sort: date | reverse | first %}
{% capture last-icon %}
{% include icon.html name=last-icon.slug %}
{% endcapture %}
<div class="row mb js-icon-manager">
<div class="col">
<div class="icon-preview-wrap">
<div class="icon-preview">
{{ last-icon }}
</div>
</div>
</div>
<div class="col-aside">
<div class="mb">
<button class="btn">
{{ last-icon }} Button
</button>
<button class="btn btn-icon">
{{ last-icon }}
</button>
<button class="btn btn-link">
{{ last-icon }} Button
</button>
</div>
<div class="input-icon mb">
<input type="text" class="input" value="Input value">
{{ last-icon }}
</div>
<div class="input-icon icon-left mb">
{{ last-icon }}
<input type="text" class="input" placeholder="Input placeholder">
</div>
<div class="mb">
<div class="avatar">{{ last-icon }}</div>
<div class="avatar avatar-sm">{{ last-icon }}</div>
</div>
<div class="tabs mb">
<a class="tab active">{{ last-icon }} Tab 1</a>
<a class="tab">Tab 2</a>
<a class="tab">Tab 3</a>
</div>
<div class="mb">
<a href="#">{{ last-icon }} Link</a>
</div>
</div>
</div>
<div>
<div class="icons-list">
{% for icon in site.icons %}
<a href="#" class="icons-list-icon js-icon" title="{{ icon.slug }}">
{% assign name = icon.slug %}
{% include icon.html name=name %}
</a>
{% endfor %}
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"></script>
<script>
$(document).ready(function(){
$('body').on('click', '.js-icon', function(){
$('.js-icon-manager svg').replaceWith($(this).find('>svg:eq(0)').clone());
});
});
</script>
</body>
</html>
|