-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
52 lines (52 loc) · 1.38 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
<!DOCTYPE html>
<html 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" />
<meta
name="description"
content="Auto format frontendmentor.io style-guide code to SCSS readable format"
/>
<link
rel="shortcut icon"
href="assets/img/colors.png"
type="image/x-icon"
/>
<link rel="stylesheet" href="css/style.css" />
<title>FormatColor</title>
</head>
<body>
<div class="success-msg-con" id="invisible">
<p class="success-msg">copied to your clipboard</p>
</div>
<div class="content">
<header>
<div class="scss-con cons" data-status="1">
<input type="radio" name="scss" id="scss" value="scss" checked />
<label for="scss">SCSS</label>
</div>
<div class="css-con cons">
<input type="radio" name="scss" id="css" value="css" />
<label for="css">CSS</label>
</div>
</header>
<div class="con">
<textarea
placeholder="Paste style-guide colors here"
spellcheck="false"
autocorrect="off"
name="input"
id="unformatted-string"
cols="30"
rows="10"
></textarea>
<p class="error-msg invisible"
>Required format: <span>Color name: hsl(x, x%, x%)</span></p
>
</div>
<button>Format</button>
</div>
<script src="app.js" type="module"></script>
</body>
</html>