-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
176 lines (176 loc) · 6.02 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
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>CSS Generators</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="css/style.css">
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon">
</head>
<body>
<div class="container">
<!-- Title -->
<div class="main-title">
<h1>CSS Generators</h1>
</div>
<hr>
<!-- Border-radius -->
<div class="border-radius-generator">
<h2>border-radius generator</h2>
<table>
<tr>
<td>
<label for="top_left">top-left</label>
<input id="top_left" type="range" min="0" max="75" step="1" value="75">
</td>
<td></td>
<td>
<label for="top_right">top-right</label>
<input id="top_right" type="range" min="0" max="75" step="1" value="75">
</td>
</tr>
<tr>
<td></td>
<td>
<div class="result_box"></div>
</td>
<td></td>
</tr>
<tr>
<td>
<label for="bottom_left">bottom-left</label>
<input id="bottom_left" type="range" min="0" max="75" step="1" value="0">
</td>
<td></td>
<td>
<label for="bottom_right">bottom-right</label>
<input id="bottom_right" type="range" min="0" max="75" step="1" value="75">
</td>
</tr>
</table>
<label for="result_border_css">Результат</label>
<textarea id="result_border_css" readonly></textarea>
</div>
<hr>
<!-- Text shadow -->
<div class="text-shadow-generator">
<h2>text-shadow generator</h2>
<div class="example">Test Text</div>
<label for="offset_x">Смещение по оси x</label>
<input id="offset_x" type="range" min="-15" max="15" step="1" value="4">
<label for="offset_y">Смещение по оси y</label>
<input id="offset_y" type="range" min="-15" max="15" step="1" value="-1">
<label for="blur">Размытие</label>
<input id="blur" type="range" min="0" max="15" step="1" value="0">
<label for="color">Цвет</label>
<input type="color" value="#ff0000">
<label for="opacity">Прозрачность</label>
<input id="opacity" type="range" min="0" max="1" step="0.01" value="1">
<label for="result_text_shadow">Результат</label>
<textarea id="result_text_shadow" readonly></textarea>
</div>
<hr>
<!-- Box shadow -->
<div class="box-shadow-generator">
<h2>box-shadow generator</h2>
<div class="result_box"></div>
<label for="inset">Тень внутри элемента?</label>
<input type="checkbox" id="inset">
<label for="offset_x">Смещение по оси x</label>
<input id="offset_x" type="range" min="-25" max="25" step="1" value="0">
<label for="offset_y">Смещение по оси y</label>
<input id="offset_y" type="range" min="-25" max="25" step="1" value="0">
<label for="blur">Размытие</label>
<input id="blur" type="range" min="0" max="25" step="1" value="8">
<label for="size">Растяжение</label>
<input id="size" type="range" min="-20" max="20" step="1" value="6">
<label for="color">Цвет</label>
<input type="color" value="#000000">
<label for="opacity">Прозрачность</label>
<input id="opacity" type="range" min="0" max="1" step="0.01" value="0.5">
<label for="resultRgba">Результат</label>
<textarea id="resultRgba" readonly></textarea>
</div>
<hr>
<!-- Triangle generator -->
<div class="triangle-generator">
<h2>triangle generator</h2>
<label for="width">Размер</label>
<input id="width" type="range" min="0" max="60" step="1" value="50">
<label for="color">Цвет</label>
<input type="color" value="#ff7700">
<table>
<tr>
<td>
<label for="top_left">top-left</label>
<input id="top_left" type="radio" name="triangle" value="top_left" checked>
</td>
<td>
<label for="top">top</label>
<input id="top" type="radio" name="triangle" value="top">
</td>
<td>
<label for="top_right">top-right</label>
<input id="top_right" type="radio" name="triangle" value="top_right">
</td>
</tr>
<tr>
<td>
<label for="left">left</label>
<input id="left" type="radio" name="triangle" value="left">
</td>
<td>
<div class="triangle"></div>
</td>
<td>
<label for="right">right</label>
<input id="right" type="radio" name="triangle" value="right">
</td>
</tr>
<tr>
<td>
<label for="bottom_left">bottom-left</label>
<input id="bottom_left" type="radio" name="triangle" value="bottom_left">
</td>
<td>
<label for="bottom">bottom</label>
<input id="bottom" type="radio" name="triangle" value="bottom">
</td>
<td>
<label for="bottom_right">bottom-right</label>
<input id="bottom_right" type="radio" name="triangle" value="bottom_right">
</td>
</tr>
</table>
<label for="result_triangle">Результат</label>
<textarea id="result_triangle" readonly></textarea>
</div>
<hr>
<!-- Gradient Generator -->
<div class="gradient-generator">
<h2>gradient generator</h2>
<div class="flex">
<div class="color_1">
<label for="color_1">Цвет 1</label>
<input id="color_1" type="color" value="#000000">
</div>
<div class="color_2">
<label for="color_2">Цвет 2</label>
<input id="color_2" type="color" value="#ff7700">
</div>
</div>
<label for="offset_color_1">Смещение 1-го цвета</label>
<input id="offset_color_1" type="range" min="0" max="100" step="1" value="25">
<label for="offset_color_2">Смещение 2-го цвета</label>
<input id="offset_color_2" type="range" min="0" max="100" step="1" value="75">
<label for="direction">Направление</label>
<input id="direction" type="range" min="0" max="360" step="1" value="90">
<div class="example_gradient"></div>
<label for="result_gradient">Результат</label>
<textarea id="result_gradient" readonly></textarea>
</div>
<hr>
</div>
<script src="js/main.js"></script>
</body>
</html>