-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
324 lines (324 loc) · 21.1 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
<!DOCTYPE html>
<html class="light" 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.0">
<link rel="apple-touch-icon" sizes="180x180" href="./img/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="./img/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="./img/favicon/favicon-16x16.png">
<link rel="manifest" href="./img/favicon/site.webmanifest">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.2/css/all.min.css" integrity="sha512-1sCRPdkRXhBV2PBLUdRb4tMg1w2YPf37qatUFeS7zlBy7jJI8Lf4VHwWfZZfpXtYSLy85pkm9GaYVYMfw5BC1A==" crossorigin="anonymous" referrerpolicy="no-referrer">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/styles/default.min.css">
<link rel="stylesheet" href="src/sass/style.scss">
<title>Magic CSS</title>
</head>
<body class="vh-100 position-relative overflow-hidden"></body>
<div class="container-fluid vh-100 d-flex justify-content-center align-items-center flex-column">
<div class="container">
<div class="row">
<header class="d-flex justify-content-evenly align-items-center mt-3">
<div class="d-flex justify-content-evenly align-items-center position-relative" id="title_section">
<h1 class="fs-1" id="heading">Magic CSS </h1><i class="fa-solid fa-hat-wizard fs-4 position-absolute" id="magic_stick"></i>
</div>
<button class="fs-2 border-0 bg-transparent" id="github"><a class="text-decoration-none" href="https://github.com/Silent-Watcher/magic-Css" target="_blank" rel="noopener noreferrer"> <i class="fa-brands fa-github"></i></a></button>
</header>
</div>
</div>
<div id="pages">
<div class="container page position-absolute" id="boxShadowMagic__page">
<div class="row h-100">
<section class="col-8" id="boxShadowMagic_tools">
<div class="row h-100">
<div class="col-6 text-center d-flex flex-column align-items-center justify-content-center fs-5">
<section id="x_boxShadow">
<p class="mb-0">X </p>
<div class="slider_range bxsh_slider_range"><span class="value left">-130</span>
<div class="wrapper_slider"><span class="navigator">0</span>
<input class="slider_range_input" id="x_bxsh" type="range" min="-130" max="130" value="10">
</div><span class="value right">130</span>
</div>
</section>
<section id="Y_boxShadow">
<p class="mb-0">Y </p>
<div class="slider_range bxsh_slider_range"><span class="value left">-130</span>
<div class="wrapper_slider"><span class="navigator">0</span>
<input class="slider_range_input" id="y_bxsh" type="range" min="-130" max="130" value="10">
</div><span class="value right">130</span>
</div>
</section>
<section id="blur_boxShadow">
<p class="mb-0">Blur </p>
<div class="slider_range bxsh_slider_range"><span class="value left">0</span>
<div class="wrapper_slider"><span class="navigator">0</span>
<input class="slider_range_input" id="blur_bxsh" type="range" min="0" max="130" value="5">
</div><span class="value right">130</span>
</div>
</section>
<section id="spread_boxShadow">
<p class="mb-0">Spread </p>
<div class="slider_range bxsh_slider_range"><span class="value left">-50</span>
<div class="wrapper_slider"><span class="navigator">0</span>
<input class="slider_range_input" id="spread_bxsh" type="range" min="-50" max="50" value="0">
</div><span class="value right">50</span>
</div>
</section>
<section class="d-flex justify-content-center align-items-center" id="inset_boxShadow">
<input class="pt-2" id="bxsh_inset_input" type="checkbox" name="">
<label class="ms-2" for="bxsh_inset_input">Inset </label>
</section>
</div>
<div class="col-6 text-center d-flex flex-column align-items-center justify-content-center fs-5">
<section class="d-flex flex-column align-items-center" id="color_boxShadow">
<div class="color-picker" id="color_boxShadow_color_picker"></div>
<section class="d-flex flex-column mt-4" id="boxShadow__ColorInfo">
<div class="wrapper d-flex">
<input class="hex__color d-inline-block" id="bxsh_hex" type="text" name="" value="#4169e1">
<input class="r__color d-inline-block" id="bxsh_r" type="number" name="" value="65" max="255" min="0">
<input class="g__color d-inline-block" id="bxsh_g" type="number" name="" value="105" max="255" min="0">
<input class="b__color d-inline-block" id="bxsh_b" type="number" name="" value="225" max="255" min="0">
<input class="a__color d-inline-block" id="bxsh_a" type="number" name="" value="0" max="255" min="0">
</div>
<div class="wrapper d-flex">
<label for="bxsh_hex">Hex</label>
<label for="bxsh_r">R</label>
<label for="bxsh_g">G</label>
<label for="bxsh_b">B</label>
<label for="bxsh_a">A</label>
</div>
</section>
<section class="w-75 flex-wrap mt-3 justify-content-center" id="bxsh_colorPalette"><span class="color" style="background-color:#D0021B" title="#D0021B"> </span><span class="color" style="background-color:#F5A623" title="#F5A623"> </span><span class="color" style="background-color:#F8E71C" title="#F8E71C"> </span><span class="color" style="background-color:#8B572A" title="#8B572A"> </span><span class="color" style="background-color:#7ED321" title="#7ED321"> </span><span class="color" style="background-color:#417505" title="#417505"> </span><span class="color" style="background-color:#BD10E0" title="#BD10E0"> </span><span class="color" style="background-color:#9013FE" title="#9013FE"> </span><span class="color" style="background-color:#4A90E2" title="#4A90E2"> </span><span class="color" style="background-color:#50E3C2" title="#50E3C2"> </span><span class="color" style="background-color:#B8E986" title="#B8E986"> </span><span class="color" style="background-color:#000000" title="#000000"> </span><span class="color" style="background-color:#4A4A4A" title="#4A4A4A"> </span><span class="color" style="background-color:#9B9B9B" title="#9B9B9B"> </span></section>
</section>
</div>
</div>
</section>
<section class="col-4 d-flex flex-column align-items-center justify-content-center h-100" id="boxShadowMagic_result">
<section class="d-inline-block" id="boxShadowMagic_sample"></section>
<section class="mt-auto position-relative" id="bxsh_result_display">
<pre><code> </code></pre>
<button class="copyToClipboardBtn p-2 btn btn-lg border-0 position-absolute" id="copyBxsh"><i class="fa-solid fa-clipboard-list"></i></button>
</section>
</section>
</div>
</div>
<div class="container page position-absolute page2" id="gradient_page">
<div class="row mt-4">
<section class="col-8 offset-2" id="gradient_result"> </section>
</div>
<div class="row mt-4">
<section class="col-3 d-flex justify-content-center align-items-center flex-column" id="gradient_color_left">
<div id="gradient_color_picker_left"></div>
<section class="d-flex flex-column mt-3" id="gd__ColorInfo__left">
<div class="wrapper d-flex">
<input class="hex__color d-inline-block" id="gd_hex_left" type="text" name="" value="#4169e1" readonly>
<input class="r__color d-inline-block" id="gd_r_left" type="number" name="" value="65" max="255" min="0" readonly>
<input class="g__color d-inline-block" id="gd_g_left" type="number" name="" value="105" max="255" min="0" readonly>
<input class="b__color d-inline-block" id="gd_b_left" type="number" name="" value="225" max="255" min="0" readonly>
<input class="a__color d-inline-block" id="gd_a_left" type="number" name="" value="0" max="255" min="0" readonly>
</div>
<div class="wrapper d-flex">
<label for="gd_hex_left">Hex</label>
<label for="gd_r_left">R</label>
<label for="gd_g_left">G</label>
<label for="gd_b_left">B</label>
<label for="gd_a_left">A</label>
</div>
</section>
</section>
<section class="col-6 d-flex justify-content-center align-items-center flex-column" id="gradient_type_tools">
<section class="d-flex align-items-center" id="gradient_type">
<p class="gradient_tool_title mb-2 me-3 user-select-none">Type </p>
<select id="gradient_select">
<option value="linear">linear </option>
<option value="radial">radial</option>
</select>
</section>
<section id="gradient_angle">
<p class="gradient_tool_title mb-0 mt-3 user-select-none">Angle </p>
<div class="slider_range"><span class="value left">0</span>
<div class="wrapper_slider"><span class="navigator">0</span>
<input class="slider_range_input" id="gd_angle" type="range" min="0" max="360" value="0">
</div><span class="value right">360</span>
</div>
</section>
<section class="position-relative w-100 mt-3 text-center" id="gradient_clipboard">
<pre><code> background: linear-gradient(24deg, rgb(68, 9, 9), rgb(37, 172, 165));</code></pre>
<button class="copyToClipboardBtn p-2 btn btn-lg border-0 position-absolute" id="copyGradient"><i class="fa-solid fa-clipboard-list"></i></button>
</section>
</section>
<section class="col-3 text-center d-flex justify-content-center align-items-center flex-column" id="gradient_color_right">
<div id="gradient_color_picker_right"></div>
<section class="d-flex flex-column mt-3" id="gd__ColorInfo__right">
<div class="wrapper d-flex">
<input class="hex__color d-inline-block" id="gd_hex_right" type="text" name="" value="#4169e1" readonly>
<input class="r__color d-inline-block" id="gd_r_right" type="number" name="" value="65" max="255" min="0" readonly>
<input class="g__color d-inline-block" id="gd_g_right" type="number" name="" value="105" max="255" min="0" readonly>
<input class="b__color d-inline-block" id="gd_b_right" type="number" name="" value="225" max="255" min="0" readonly>
<input class="a__color d-inline-block" id="gd_a_right" type="number" name="" value="0" max="255" min="0" readonly>
</div>
<div class="wrapper d-flex">
<label for="gd_hex_right">Hex</label>
<label for="gd_r_right">R</label>
<label for="gd_g_right">G</label>
<label for="gd_b_right">B</label>
<label for="gd_a_right">A</label>
</div>
</section>
</section>
</div>
</div>
<div class="container page position-absolute page3" id="txtShadow_page">
<div class="row mt-5">
<section class="text-center col-2 offset-5 mt-5 position-relative" id="txtShadow_input">
<label class="position-absolute" for="txt_sh_input">Text</label>
<input class="w-100 h-100" id="txt_sh_input" type="text">
</section>
</div>
<div class="row">
<section class="col-4 d-flex justify-content-center flex-column" id="txtShadow_color">
<div id="txtShadow_color_picker"></div>
<section class="d-flex flex-column mt-3" id="txtShadow__ColorInfo">
<div class="wrapper d-flex">
<input class="hex__color d-inline-block" id="txtsh_hex" type="text" name="" value="#4169e1" readonly>
<input class="r__color d-inline-block" id="txtsh_r" type="number" name="" value="65" max="255" min="0" readonly>
<input class="g__color d-inline-block" id="txtsh_g" type="number" name="" value="105" max="255" min="0" readonly>
<input class="b__color d-inline-block" id="txtsh_b" type="number" name="" value="225" max="255" min="0" readonly>
<input class="a__color d-inline-block" id="txtsh_a" type="number" name="" value="0" max="255" min="0" readonly>
</div>
<div class="wrapper d-flex">
<label for="txtsh_hex">Hex</label>
<label for="txtsh_r">R</label>
<label for="txtsh_g">G</label>
<label for="txtsh_b">B</label>
<label for="txtsh_a">A</label>
</div>
</section>
</section>
<section class="col-4" id="txtShadow_tools">
<section id="x_txtShadow">
<p class="mb-0 fs-4">X </p>
<div class="slider_range txtsh_slider_range justify-content-start"><span class="value left">-40</span>
<div class="wrapper_slider"><span class="navigator">0</span>
<input class="slider_range_input" id="x_txtsh" type="range" min="-40" max="40" value="0">
</div><span class="value right">40</span>
</div>
</section>
<section id="y_txtShadow">
<p class="mb-0 fs-4">Y </p>
<div class="slider_range txtsh_slider_range justify-content-start"><span class="value left">-40</span>
<div class="wrapper_slider"><span class="navigator">0</span>
<input class="slider_range_input" id="y_txtsh" type="range" min="-40" max="40" value="0">
</div><span class="value right">40</span>
</div>
<p class="mb-0 fs-4">Blur</p>
<div class="slider_range txtsh_slider_range justify-content-start"><span class="value left">0</span>
<div class="wrapper_slider"><span class="navigator">0</span>
<input class="slider_range_input" id="blur_txtsh" type="range" min="0" max="30" value="0">
</div><span class="value right">30</span>
</div>
</section>
</section>
<section class="col-4 mt-4 d-flex justify-content-center align-items-center" id="txtShadow_result_display">
<p class="fs-3" id="txtShadow_result_txt">magic css</p>
</section>
</div>
<div class="row">
<section class="position-relative col-4 offset-4 mt-5 text-center" id="txtShadow_clipboard">
<pre><code> text-shadow: #5e81ec 0px 0px 0px;;</code></pre>
<button class="copyToClipboardBtn p-2 btn btn-lg border-0 position-absolute" id="copytxtShadow"><i class="fa-solid fa-clipboard-list"> </i></button>
</section>
</div>
</div>
<div class="container page position-absolute page4" id="border_page">
<div class="row d-flex align-items-center h-100">
<section class="col-6 d-flex justify-content-center align-items-center flex-column" id="border_tools">
<select id="borderMode">
<option value="same">Same on all sides</option>
<option value="different">different on all sides</option>
</select>
<section class="mt-5" id="allSidesBorder_section">
<p class="mb-0 fs-5">Radius</p>
<div class="slider_range justify-content-start">
<div class="wrapper_slider"><span class="navigator">0</span>
<input class="slider_range_input border_range" id="allSidesBorder_input" type="range" min="0" max="100" value="0">
</div>
</div>
</section>
<section class="mt-5" id="eachSideBorder_section" hidden>
<div class="row">
<div class="col-6">
<p class="mb-0 fs-5">Top-left</p>
<div class="slider_range justify-content-start">
<div class="wrapper_slider"><span class="navigator">0</span>
<input class="slider_range_input border_range" id="topLeftBorder_input" type="range" min="0" max="100" value="0">
</div>
</div>
<p class="mb-0 fs-5">Bottom-left</p>
<div class="slider_range justify-content-start">
<div class="wrapper_slider"><span class="navigator">0</span>
<input class="slider_range_input border_range" id="bottomLeftBorder_input" type="range" min="0" max="100" value="0">
</div>
</div>
</div>
<div class="col-6">
<p class="mb-0 fs-5">Top-right</p>
<div class="slider_range justify-content-start">
<div class="wrapper_slider"><span class="navigator">0</span>
<input class="slider_range_input border_range" id="topRightBorder_input" type="range" min="0" max="100" value="0">
</div>
</div>
<p class="mb-0 fs-5">Bottom-right</p>
<div class="slider_range justify-content-start">
<div class="wrapper_slider"><span class="navigator">0</span>
<input class="slider_range_input border_range" id="bottomRightBorder_input" type="range" min="0" max="100" value="0">
</div>
</div>
</div>
</div>
</section>
<section id="units">
<p>Unit </p>
<div class="unit_wrapper">
<input class="border_units" id="pixel_border_unit" type="radio" name="units" checked>
<label for="pixel_border_unit">PX</label>
</div>
<div class="unit_wrapper">
<input class="border_units" id="percent_border_unit" type="radio" name="units">
<label for="percent_border_unit">%</label>
</div>
</section>
</section>
<section class="col-6 d-flex justify-content-center align-items-center flex-column" id="border_result_display">
<section id="border_result_sample"> </section>
<section class="position-relative mt-5 text-center" id="border_clipboard">
<pre><code>border-radius: 10px 10px 10px 10px;</code></pre>
<button class="copyToClipboardBtn p-2 btn btn-lg border-0 position-absolute" id="copyBorder"><i class="fa-solid fa-clipboard-list"> </i></button>
</section>
</section>
</div>
</div>
</div>
<div class="container mt-auto mb-2">
<div class="row text-center d-flex justify-content-center">
<nav class="col-4 position-relative rounded" id="menu">
<ul class="d-flex justify-content-around align-items-center mb-0 p-3" id="menu_list">
<li class="menu__item fs-5 w-100 text-center ps-3" data-target="bxSh_page_menu"><i class="fa-solid fa-wand-magic text-primary"></i></li>
<li class="menu__item fs-5 w-100 text-center ps-3" data-target="txtSh_page_menu"><i class="fa-solid fa-dice-d20"></i></li>
<li class="menu__item fs-5 w-100 text-center ps-3" data-target="gradient_page_menu"><i class="fa-solid fa-cookie-bite"></i></li>
<li class="menu__item fs-5 w-100 text-center ps-3" data-target="border_page_menu"><i class="fa-solid fa-user-astronaut"></i></li>
</ul>
<div class="position-absolute" id="tubeLight">
<div id="light"></div>
</div>
</nav>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/@jaames/iro@5"></script>
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/highlight.min.js"></script>
<script type="module" src="src/js/app.js"> </script>
</html>