-
Notifications
You must be signed in to change notification settings - Fork 1
/
borders.html
368 lines (362 loc) · 22.2 KB
/
borders.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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Primary Meta Tags -->
<title>HashCSS || Border Generator</title>
<meta name="title" content="HashCSS || Border Generator">
<meta name="description" content="HashCSS is a collection of CSS tools for beginner developers. it can be used to get css codes snippets easily. Tools include borders, Glassmorphism UI , Shadows generators.">
<link rel="shortcut icon" href="assets/img/favicon.ico">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://github.com/abhiprojectz/hashcss">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:title" content="HashCSS || Border Generator">
<meta property="og:description" content="HashCSS is a collection of CSS tools for beginner developers. it can be used to get css codes snippets easily. Tools include borders, Glassmorphism UI , Shadows generators.">
<meta property="og:image" content="assets/img/glass.PNG">
<!-- meta viewport for screen size configuration -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Stylesheet css path -->
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
<!-- Toast notification starts -->
<div id="toast">
<div id="img">
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FFF" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<circle cx="12" cy="12" r="9" />
<line x1="12" y1="8" x2="12.01" y2="8" />
<polyline points="11 12 12 12 12 16 13 16" />
</svg>
</div>
<div id="desc"></div>
</div>
<!-- === SHARE WINDOW === -->
<div class="code-container" id="share__">
<div class="code-box">
<div class="code-head">
Share the app:
<svg xmlns="http://www.w3.org/2000/svg" id="cancel_share__" width="30" height="30" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FF0066" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<circle cx="12" cy="12" r="9" />
<path d="M10 10l4 4m0 -4l-4 4" />
</svg>
</div>
<pre id="generated-code" class="code-space"><code>
HashCSS :
// We have the right tools for all your CSS Needs.
-> GlassMorphism UI Generator
-> CSS Background Pattern generator
-> Borders generator
-> Shadow Generator
</code></pre>
<div class="button-container">
<button onclick="sharebtn('x')">
<svg style="margin-right: 15px;" xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-copy" width="2em" height="2em" viewBox="0 0 24 24" stroke-width="1.5" stroke="#fff" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<rect x="8" y="8" width="12" height="12" rx="2" />
<path d="M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2" />
</svg>
Copy this tools link!
</button>
<button onclick="sharebtn('https://hashcss.netlify.app')" class="btn_tp_b" >
<svg style="margin-right: 15px;" xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-copy" width="2em" height="2em" viewBox="0 0 24 24" stroke-width="1.5" stroke="#fff" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<rect x="8" y="8" width="12" height="12" rx="2" />
<path d="M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2" />
</svg>
Copy Apps link!
</button>
</div>
</div>
</div>
<!-- === Code space copy === -->
<div class="code-container" id="codecopy">
<div class="code-box">
<div class="code-head">
Generated Code:
<svg xmlns="http://www.w3.org/2000/svg" id="cancel-codecopy" width="30" height="30" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FF0066" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<circle cx="12" cy="12" r="9" />
<path d="M10 10l4 4m0 -4l-4 4" />
</svg>
</div>
<pre id="generated-code" class="code-space"><code id="copyoutput"></code></pre>
<div class="button-container">
<button onclick="copycode()">
<svg style="margin-right: 15px;" xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-copy" width="2em" height="2em" viewBox="0 0 24 24" stroke-width="1.5" stroke="#fff" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<rect x="8" y="8" width="12" height="12" rx="2" />
<path d="M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2" />
</svg>
Copy to clipboard!
</button>
</div>
</div>
</div>
<!-- === Settings Popup === -->
<div class="settings-container" id="popm">
<div class="settings-popup">
<div class="pop-head">
<p class="pop-heading">HashCSS Settings:</p>
<svg id="pop-close" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FF0066" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<circle cx="12" cy="12" r="9" />
<path d="M10 10l4 4m0 -4l-4 4" />
</svg>
</div>
<div class="pop-item">
Animations
<label class="switch">
<input id="anim" type="checkbox" checked/>
<div></div>
</label>
</div>
<div class="pop-item">
Tooltips (hints)
<label class="switch">
<input id="hints" type="checkbox" checked/>
<div></div>
</label>
</div>
</div>
</div>
<!-- === Header === -->
<div class="slideIn" id="header">
<svg xmlns="http://www.w3.org/2000/svg" id="menu" width="30" height="30" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FFF" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M6 17.6l-2 -1.1v-2.5" />
<path d="M4 10v-2.5l2 -1.1" />
<path d="M10 4.1l2 -1.1l2 1.1" />
<path d="M18 6.4l2 1.1v2.5" />
<path d="M20 14v2.5l-2 1.12" />
<path d="M14 19.9l-2 1.1l-2 -1.1" />
<line x1="12" y1="12" x2="14" y2="10.9" />
<line x1="18" y1="8.6" x2="20" y2="7.5" />
<line x1="12" y1="12" x2="12" y2="14.5" />
<line x1="12" y1="18.5" x2="12" y2="21" />
<path d="M12 12l-2 -1.12" />
<line x1="6" y1="8.6" x2="4" y2="7.5" />
</svg>
<span id="title">HashCSS - Border Generator </span>
<svg onclick="window.location.href = 'https://github.com/abhiprojectz/HashCSS'" xmlns="http://www.w3.org/2000/svg" class="giticon" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FFF" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5" />
</svg>
<svg xmlns="http://www.w3.org/2000/svg" id="about" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FFF" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z" />
<circle cx="12" cy="12" r="3" />
</svg>
</div>
<!-- === Pages Navigation === -->
<button class="page-btn" id="previous" onclick="window.location.href = 'pattern.html'">
<svg xmlns="http://www.w3.org/2000/svg" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FF0066" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M18 12h-15" />
<path d="M6 9l-3 3l3 3" />
<path d="M21 9l-3 3l3 3" />
</svg>
</button>
<button class="page-btn" id="next" onclick="window.location.href = 'shadow.html'">
<svg xmlns="http://www.w3.org/2000/svg" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FF0066" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M18 15l3 -3l-3 -3" />
<path d="M3 15l3 -3l-3 -3" />
<line x1="6" y1="12" x2="21" y2="12" />
</svg>
</button>
<!-- === Target display === -->
<div id="dis-target" class="display-container scaleIn">
<div class="display-c">
<div id="disbox" class="box"></div>
</div>
</div>
<!-- === Tools Navigation === -->
<div id="tools-nav" class="panel-container bottomfade">
<div class="wrapper">
<div class="panel1">
<ul id="ccc">
<li>
<div class="panel-sp">
<svg id="tip-width" xmlns="http://www.w3.org/2000/svg" class="sicon" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FF0066" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M17 3l4 4l-14 14l-4 -4z" />
<path d="M16 7l-1.5 -1.5" />
<path d="M13 10l-1.5 -1.5" />
<path d="M10 13l-1.5 -1.5" />
<path d="M7 16l-1.5 -1.5" />
</svg>
<div class="range">
<input type="range" min="0" max="50" id="width" value="0"/>
</div>
</div>
<!-- Border width: -->
</li>
<li>
<div class="panel-sp">
<svg id="tip-topL" class="sicon" xmlns="http://www.w3.org/2000/svg" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FF0066" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M4 12v-4a4 4 0 0 1 4 -4h4" />
<line x1="16" y1="4" x2="16" y2="4.01" />
<line x1="20" y1="4" x2="20" y2="4.01" />
<line x1="20" y1="8" x2="20" y2="8.01" />
<line x1="20" y1="12" x2="20" y2="12.01" />
<line x1="4" y1="16" x2="4" y2="16.01" />
<line x1="20" y1="16" x2="20" y2="16.01" />
<line x1="4" y1="20" x2="4" y2="20.01" />
<line x1="8" y1="20" x2="8" y2="20.01" />
<line x1="12" y1="20" x2="12" y2="20.01" />
<line x1="16" y1="20" x2="16" y2="20.01" />
<line x1="20" y1="20" x2="20" y2="20.01" />
</svg>
<div class="range">
<input min="0" max="50" type="range" id="topL" value="0"/>
</div>
</div>
<!-- Top left: -->
</li>
<li>
<div class="panel-sp">
<svg id="tip-topR" class="sicon" xmlns="http://www.w3.org/2000/svg" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FF0066" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M5 5h6a8 8 0 0 1 8 8v6" />
</svg>
<div class="range">
<input min="0" max="50" type="range" id="topR" value="0"/>
</div>
</div>
<!-- Top right: -->
</li>
<li>
<div class="panel-sp">
<svg id="tip-Bright" class="sicon" xmlns="http://www.w3.org/2000/svg" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FF0066" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M19 19h-6a8 8 0 0 1 -8 -8v-6" />
</svg>
<div class="range">
<input type="range" min="0" max="50" id="Bright" value="0"/>
</div>
</div>
<!-- Bottom left : -->
</li>
<li>
<div class="panel-sp">
<svg id="tip-Bl" class="sicon" xmlns="http://www.w3.org/2000/svg" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FF0066" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M19 5v6a8 8 0 0 1 -8 8h-6" />
</svg>
<div class="range">
<input type="range" min="0" max="50" id="Bl" value="0"/>
</div>
</div>
<!-- Bottom right: -->
</li>
<li>
<div class="panel-sp">
<svg id="tip-full" class="sicon" xmlns="http://www.w3.org/2000/svg" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FF0066" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<rect x="4" y="4" width="16" height="16" rx="2" />
<line x1="4" y1="12" x2="20" y2="12" />
<line x1="12" y1="4" x2="12" y2="20" />
</svg>
<div class="range">
<input type="range" min="0" max="50" id="full" value="0"/>
</div>
</div>
<!-- Full corners: -->
</li>
</ul>
</div>
<div class="panel2">
<div class="color-container" style="margin-bottom: 15px;">
<label for="backgroundColor" class="czo"><b style="font-family: 'Poppins';">Border Color</b></label>
<input class="colorc" style="border: 1px solid #000; cursor:pointer;" onchange="updateBorderColor()" type="color" value="#ff0000" id="Bcolor"/>
</div>
<div class="color-container">
<label for="backgroundColor" class="czo"><b style="font-family: 'Poppins';">Border style</b></label>
<section class="dropsel">
<select id="borstyle" class="selectbor" style="font-family: 'Poppins'; cursor:pointer;" onchange="updateBorder()">
<option value="Solid">Solid</option>
<option value="Dashed">Dashed</option>
<option value="dotted">dotted</option>
<option value="double">double</option>
<option value="inset">inset</option>
<option value="outset">outset</option>
<option value="ridge">ridge</option>
<option value="inherit">inherit</option>
<option value="hidden">hidden</option>
<option value="groove">groove</option>
<option value="none">none</option>
</select>
</section>
</div>
</div>
<div class="panel3">
<div class="home_btn_con">
<button id="button__" onclick="sharebtnpopup()">
<svg xmlns="http://www.w3.org/2000/svg" class="btn_svg" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FF0066" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<circle cx="6" cy="12" r="3" />
<circle cx="18" cy="6" r="3" />
<circle cx="18" cy="18" r="3" />
<line x1="8.7" y1="10.7" x2="15.3" y2="7.3" />
<line x1="8.7" y1="13.3" x2="15.3" y2="16.7" />
</svg>
<span style="margin-left: 6px;">Share</span>
</button>
<button id="button__" onclick="window.location.href = 'home.html'" style="margin-left: 12px;">
<svg xmlns="http://www.w3.org/2000/svg" class="btn_svg" width="20" height="20" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FF0066" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<circle cx="12" cy="12" r="1" />
<circle cx="12" cy="12" r="5" />
<line x1="15.9" y1="20.11" x2="15.9" y2="20.12" />
<line x1="19.04" y1="17.61" x2="19.04" y2="17.62" />
<line x1="20.77" y1="14" x2="20.77" y2="14.01" />
<line x1="20.77" y1="10" x2="20.77" y2="10.01" />
<line x1="19.04" y1="6.39" x2="19.04" y2="6.4" />
<line x1="15.9" y1="3.89" x2="15.9" y2="3.9" />
<line x1="12" y1="3" x2="12" y2="3.01" />
<line x1="8.1" y1="3.89" x2="8.1" y2="3.9" />
<line x1="4.96" y1="6.39" x2="4.96" y2="6.4" />
<line x1="3.23" y1="10" x2="3.23" y2="10.01" />
<line x1="3.23" y1="14" x2="3.23" y2="14.01" />
<line x1="4.96" y1="17.61" x2="4.96" y2="17.62" />
<line x1="8.1" y1="20.11" x2="8.1" y2="20.12" />
<line x1="12" y1="21" x2="12" y2="21.01" />
</svg>
<span style="margin-left: 6px;">More Tools</span>
</button>
</div>
<p id="hint" style="font-family: 'Poppins';">Powerfull css tools at one place.</p>
<div class="p3-span">
<span class="csave" id="result" type="border">
<svg xmlns="http://www.w3.org/2000/svg" class="icon" width="28" height="28" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FF0066" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<polyline points="7 8 3 12 7 16" />
<polyline points="17 8 21 12 17 16" />
<line x1="14" y1="4" x2="10" y2="20" />
</svg>
</span>
<span class="csave" id="random">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-loom" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="#FF0066" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M17.464 6.518a6.001 6.001 0 1 0 -3.023 7.965" />
<path d="M17.482 17.464a6.001 6.001 0 1 0 -7.965 -3.023" />
<path d="M6.54 17.482a6.001 6.001 0 1 0 3.024 -7.965" />
<path d="M6.518 6.54a6.001 6.001 0 1 0 7.965 3.024" />
</svg>
</span>
</div>
</div>
</div>
</div>
<!-- === Tooltip . Tippy scripts === -->
<script src="https://unpkg.com/@popperjs/core@2/dist/umd/popper.min.js"></script>
<script src="https://unpkg.com/tippy.js@6/dist/tippy-bundle.umd.js"></script>
</body>
<!-- ==== Inserting all external js scrips -->
<script src="assets/js/base.js"></script>
<script src="assets/js/border.js"></script>
<script src="assets/js/props.js"></script>
</html>