-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
104 lines (93 loc) · 2.41 KB
/
popup.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>JSON Formatter Settings</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=DM+Sans:ital,opsz@0,9..40;1,9..40&display=swap"
rel="stylesheet">
<style>
body {
font-family: "DM Sans", sans-serif;
font-optical-sizing: auto;
line-height: 1.5;
max-width: 960px;
margin: 0 auto;
font-size: 1rem;
width: 300px;
}
.popup {
border-radius: 20px;
padding: 20px;
display: flex;
flex-direction: column;
}
select,
input {
margin-bottom: 10px;
}
.section-header {
font-size: 0.7rem;
color: #999;
font-weight: 500;
text-transform: uppercase;
margin: 0;
padding: 0 0 5px 0;
}
#saveButton {
background-color: rgb(76, 175, 80);
color: white;
cursor: pointer;
padding: 8px 12px;
border-width: initial;
border-style: none;
border-color: initial;
border-image: initial;
border-radius: 3px;
}
.footer {
background: #f9fafb;
padding-top: 10px;
border-top: 1px solid #ccc;
font-size: 12px;
text-align: center;
color: #666;
}
.footer a {
color: #4CAF50;
text-decoration: none;
}
.footer a:hover {
text-decoration: underline;
}
.heart {
color: #ff4d4d;
}
p {
margin: 0;
padding: 3px 0;
}
</style>
</head>
<body>
<div class="popup">
<h3 class="section-header">Theme</h3>
<select id="themeSelect">
<option value="dark">Dark</option>
<option value="light">Light</option>
</select>
<h3 class="section-header">Font family</h3>
<input type="text" id="fontInput" placeholder="e.g., Arial, sans-serif">
<button id="saveButton">Save</button>
<script src="src/popup.js"></script>
</div>
<div class="footer">
<p>Made with <span class="heart">♥</span> by <a href="https://twitter.com/askNilan"
target="_blank">Nilanchala</a></p>
<p>Love this extension? <a href="https://github.com/nilandev/json-formatter-extenson"
target="_blank">Contribute on GitHub</a></p>
<p style="padding-bottom: 20px">Thank you for using JSON Formatter!</p>
</div>
</body>
</html>