-
Notifications
You must be signed in to change notification settings - Fork 42
/
index.html
192 lines (176 loc) · 8.88 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
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>PatternBolt</title>
<link href='http://fonts.googleapis.com/css?family=Volkhov:400,700|Rye' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/normalize.css" />
<link rel="stylesheet" href="css/f-css-grid.css" />
<link rel="stylesheet" href="css/style-demo.css" />
<link rel="stylesheet" href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
<script src="js/jquery.js"></script>
<script src="js/demo-js.js"></script>
<!-- google anlytics PatternBolt -->
<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-55604528-2', 'auto');
ga('send', 'pageview');
</script>
<meta property="og:url" content="http://buseca.github.io/patternbolt/" />
<meta property="og:patternbolt" content="open source SVG pattern library" />
<meta property="og:type" content="website" />
<meta property="og:title" content="PatternBolt" />
<meta property="og:image" content="http://buseca.github.io/patternbolt/img/thumb.png" />
<meta property="og:description" content="a fine selection of SVG pattern background, packed in a single SCSS file."/>
<meta property="twitter:url" content="http://buseca.github.io/patternbolt" />
<meta property="twitter:card" content="summary" />
<meta property="twitter:description" content="a fine selection of SVG pattern background, packed in SCSS file." />
<meta property="twitter:creator" content="@ruggeromotta" />
<meta property="twitter:title" content="PatternBolt - open source SVG patterns library" />
<html itemscope itemtype="http://schema.org/Product">
<meta itemprop="name" content="PatternBolt">
<meta itemprop="description" content="a fine selection of SVG pattern background, packed in SCSS file.">
<meta itemprop="image" content="http://buseca.github.io/patternbolt/img/thumb.png">
</head>
<body>
<header>
<h1>PatternBolt</h1>
</header>
<div class="selecta showing-all">
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</div>
<div class="controllers">
<div class="zoomin"><span>+</span>Zoom In</div>
<div class="zoomout"><span>-</span>Zoom Out</div>
</div>
<div class="links content">
<div class="row">
<div class="columns small-4">
<a href="https://github.com/buseca/patternbolt/archive/gh-pages.zip" target="_blank" class="download"><span class="ion-arrow-down-a"></span>Dowload Demo</a>
</div>
<div class="columns small-4">
<a href="https://github.com/buseca/patternbolt" target="_blank" class="github"><span class="ion-social-github"></span>GitHub Repository</a>
</div>
<div class="columns small-4">
<a href="https://twitter.com/intent/tweet?text=PatternBolt%20is%20a%20SVG%20pattern%20library%20packed%20in%20a%20sass%20file:%20http://buseca.github.io/patternbolt/" target="_blank" class="twitter"><span class="ion-social-twitter"></span>Share it</a>
</div>
</div>
</div>
<div class="call content">
<div class="row">
<div class="columns medium-8 small-centered">
<h2>What is Patternbolt?</h2>
</div>
<div class="columns medium-8 small-centered">
Patternbolt is a fine selection of SVG pattern backgrounds, packed in a single or SCSS (or CSS) file.
The pattern is added in the ::after element and your original DOM's element still be inalterate and ready for manipulations.
<br>
<br>
As <b>.svg</b> they weigh much less than .png or .jpg and they are also really easy to manipulate by CSS rules. As they are vectors they never pixelate, not even on a 4k display.
</div>
</div>
<div class="row">
<div class="columns medium-8 small-centered">
<h2>Are you a Designer?</h2>
</div>
<div class="columns medium-8 small-centered">
The pattern selection still be under development, if you want to contribute to the project, you can <b>vote</b> the patterns proposals on the <a target="_blank" href="https://trello.com/b/qlC1dtZa/patternbolt-new-patterns-proposals">Trello board</a> with just a click.
<br>
<br>
Of course you can also <b>submit</b> your own pattern just requesting an invitation for the board. Just a small raster preview of the pattern is needed for the vote, but it's important for the original version of the pattern to be vector graphics (.svg, .ai, .pdf,...) otherwise it will not be compatible with PatternBolt. To request a board invitation write me a mail at <i>ruggero.motta at gmail dot com</i>, or tweet at my <a target="_blank" href="https://twitter.com/ruggeromotta">Twitter account</a>, I'll reply you quickly.
<br>
<br>
If you can <b>code</b> you can also join the <a target="_blank" href="https://github.com/buseca/patternbolt" target="_blank">Github Repository</a>
and make pull requests: contributions are really appreciated.
</div>
</div>
<div class="row">
<div class="columns medium-8 small-centered">
<h2>Example on images</h2>
</div>
<div class="columns medium-8 small-centered">
PatternBolt can also be used as overlay on image:
<br>
<br>
<div class="box-img">
<img src="img/shuttle.jpg" alt="shuttle">
</div>
</div>
</div>
<div class="row">
<div class="columns medium-8 small-centered">
<h2>How to use it?</h2>
</div>
<div class="columns medium-8 small-centered">
Detailed instruction are in the SCSS file, but here are the 2 easy steps:
<br>
<br>
1 - Add the Scss file in your main Scss or Sass file:
<br>
<code> @import '../patternbolt.scss'; </code>
<br>
2 - Use the basic mixin to activate a pattern on an spacific element:
<br>
<code>
.item {
@include pb('china-a');
}
</code>
<br>
<br>
If you want to be able to maniuplate sizes, colors and opacity, use the complete mixin:
<br>
<code>
.item {
@include pb('china-a', 25px, #f00, #0f0, 0.5, 'none');
}
</code>
</div>
</div>
<div class="row">
<div class="columns medium-8 small-centered">
<h2>Credits</h2>
</div>
<div class="columns medium-8 small-centered">
<ul>
<li><b>lines-45-a</b> by Ruggero Motta</li>
<li><b>lines-45-b</b> by Ruggero Motta</li>
<li><b>lines-45-c</b> by Ruggero Motta</li>
<li><b>lines-a</b> by Ruggero Motta</li>
<li><b>lines-b</b> by Ruggero Motta</li>
<li><b>lines-c</b> by Ruggero Motta</li>
<li><b>china-a</b> by Ruggero Motta</li>
<li><b>feather</b> by Martin Iturrieta</li>
<li><b>candy-a</b> by Ruggero Motta</li>
<li><b>candy-b</b> by Ruggero Motta</li>
<li><b>cross-a</b> by Ruggero Motta</li>
<li><b>cross-b</b> by Ruggero Motta</li>
<li><b>cross-c</b> by Ruggero Motta</li>
<li><b>cross-thin-a</b> by Ruggero Motta</li>
<li><b>cross-thin-b</b> by Ruggero Motta</li>
<li><b>cross-thin-c</b> by Ruggero Motta</li>
</ul>
</div>
</div>
</div>
</body>
</html>