-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
109 lines (95 loc) · 4.05 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
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Box Shadow Generetor</title>
<link rel="icon" type="image/png" sizes="32x32" href="./img/icon.png">
<link rel="stylesheet" href="./css/styles.css">
<script src="./js/scripts.js" defer></script>
</head>
<body>
<div id="box-shadow-generator">
<div id="controls-container">
<h2>Configurações da Box Shadow:</h2>
<div class="form-control">
<div class="range-input">
<label for="horizontal">Deslocamento Horizontal:</label>
<input type="range" id="horizontal" name="horizontal" min="-100" max="100" value="5" />
</div>
<div class="reference-input">
<input type="text" id="horizontal-value" name="horizontal-value" />
<p>px</p>
</div>
</div>
<div class="form-control">
<div class="range-input">
<label for="vertical">Deslocamento Vertical:</label>
<input type="range" id="vertical" name="vertical" min="-100" max="100" value="5" />
</div>
<div class="reference-input">
<input type="text" id="vertical-value" name="vertical-value" />
<p>px</p>
</div>
</div>
<div class="form-control">
<div class="range-input">
<label for="blur">Intensidade do Desfoque (Blur):</label>
<input type="range" id="blur" name="blur" min="0" max="100" value="20" />
</div>
<div class="reference-input">
<input type="text" id="blur-value" name="blur-value" />
<p>px</p>
</div>
</div>
<div class="form-control">
<div class="range-input">
<label for="spread">Intensidade da Expansão (Spread):</label>
<input type="range" id="spread" name="spread" min="-100" max="100" value="3" />
</div>
<div class="reference-input">
<input type="text" id="spread-value" name="spread-value" />
<p>px</p>
</div>
</div>
<div class="form-control">
<div class="range-input">
<label for="color">Cor da Sombra:</label>
<input type="color" id="color" name="color" value="#000000" />
</div>
<div class="reference-input">
<input type="text" id="color-value" name="color-value" />
</div>
</div>
<div class="form-control">
<div class="range-input">
<label for="opacity">Opacidade:</label>
<input type="range" id="opacity" name="opacity" min="0" max="1" value="1" step="0.01" />
</div>
<div class="reference-input">
<input type="text" id="opacity-value" name="opacity-value"/>
</div>
</div>
<div class="form-control">
<div class="range-input">
<label for="opacity">Sombra Interna? (Inset)</label>
<input type="checkbox" id="inset" name="inset" />
</div>
</div>
</div>
<div id="preview">
<h2>Preview do efeito gerado:</h2>
<div id="box"></div>
</div>
</div>
<div id="generated-rule">
<h2>Copie e cole no seu arquivo de CSS:</h2>
<div id="rules-area">
<p id="rule">box-shadow: <span></span>;</p>
<p id="webkit-rule">-webkit-box-shadow: <span></span>;</p>
<p id="moz-rule">-moz-box-shadow: <span></span>;</p>
</div>
<p id="copy-instructions">Clique no quadro acima para copiar as regras!</p>
</div>
</body>
</html>