-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
101 lines (94 loc) · 5.48 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="CSS Generator to generate a block of CSS as per your need.">
<meta name="keywords" content="CSS, Generator, HTML, CSS3, HTML5, CSS Generator, CSS Generators, Javascript, JS Projects">
<title>CSS Generator</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<main>
<div class="generator-wrapper">
<h1>CSS Generator</h1>
<form action="" method="get">
<fieldset class="global-wrapper">
<div class="input-wrapper">
<label for="css-selector" class="sr-only">Enter CSS Selector</label>
<input type="text" name="selector" id="css-selector" placeholder="Enter CSS Selector" />
</div>
<div class="input-wrapper">
<label for="base-size">Base Font:</label>
<input type="number" name="base" id="base-size" placeholder="in px" min="0" />
</div>
</fieldset>
<fieldset class="generator-content">
<div class="input-wrapper">
<label for="background-color">background-color:</label>
<input type="color" name="background-color" value="#ffffff" id="background-color" />
</div>
<div class="input-wrapper">
<label for="color">color:</label>
<input type="color" name="color" value="#000000" id="color" />
</div>
<div class="input-wrapper">
<label for="font-family">font-family:</label>
<input type="text" name="font-family" id="font-family" />
</div>
<div class="input-wrapper">
<label for="font-size">font-size:</label>
<input type="number" name="font-size" id="font-size" placeholder="in px" />
</div>
<div class="input-wrapper">
<label for="font-weight">font-weight:</label>
<input type="text" name="font-weight" id="font-weight" />
</div>
<div class="input-wrapper">
<label for="line-height">line-height:</label>
<input type="number" name="line-height" id="line-height" placeholder="in px" />
</div>
<div class="input-wrapper">
<span class="label">margin:</span>
<div class="spacing-wrapper" >
<label for="margin-top" class="sr-only">margin-top</label>
<input type="number" name="margin" id="margin-top" placeholder="in px" />
<label for="margin-right" class="sr-only">margin-right</label>
<input type="number" name="margin" id="margin-right" placeholder="in px" />
<label for="margin-bottom" class="sr-only">margin-bottom</label>
<input type="number" name="margin" id="margin-bottom" placeholder="in px" />
<label for="margin-left" class="sr-only">margin-left</label>
<input type="number" name="margin" id="margin-left" placeholder="in px" />
</div>
</div>
<div class="input-wrapper">
<span class="label">padding:</span>
<div class="spacing-wrapper">
<label for="padding-top" class="sr-only">padding-top</label>
<input type="number" name="padding" id="padding-top" placeholder="in px" />
<label for="padding-right" class="sr-only">padding-right</label>
<input type="number" name="padding" id="padding-right" placeholder="in px" />
<label for="padding-bottom" class="sr-only">padding-bottom</label>
<input type="number" name="padding" id="padding-bottom" placeholder="in px" />
<label for="padding-left" class="sr-only">padding-left</label>
<input type="number" name="padding" id="padding-left" placeholder="in px" />
</div>
</div>
</fieldset>
<fieldset class="form-footer">
<button type="button" id="generate">Generate CSS</button>
<button type="reset">Reset</button>
</fieldset>
</form>
<div class="generated-css-wrapper">
<img src="copy-regular.svg" alt="Copy Code" title="Copy" id="copy-css">
<textarea name="generated-css" id="generated-css" rows="10" placeholder="Generated CSS will be shown here..." readonly></textarea>
</div>
</div>
</main>
<script defer src="script.js"></script>
</body>
</html>