-
Notifications
You must be signed in to change notification settings - Fork 12
/
options.html
73 lines (68 loc) · 2.19 KB
/
options.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Render Whitespace on GitHub Extension Options</title>
<style>
.whitespace-indicator-input,
.preview {
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace !important;
font-size: 12px !important;
padding: 4px 6px !important;
}
.preview {
white-space: pre-wrap;
}
p > label + label {
margin-left: 0.6em;
}
.settings-and-preview-area {
margin: 0 -15px;
display: flex;
flex-direction: row;
flex-wrap: wrap;
width: 100%;
}
.preview-area,
.settings {
margin: 0 15px;
}
.preview-area {
align-content: center;
align-items: center;
}
</style>
</head>
<body>
<h2>Whitespace Indicators</h2>
<form>
<div class="settings-and-preview-area">
<div class="settings">
<p>
<label>Opacity <input type="number" min="0" max="1" step="0.001" required name="whitespace-opacity"></label>
</p>
<p>
<label>Space <input type="text" size="1" maxlength="1" required name="space" class="whitespace-indicator-input"></label>
<label>Tab <input type="text" size="4" maxlength="4" required name="tab" class="whitespace-indicator-input"></label>
</p>
</div>
<div class="preview-area">
<h3>Preview</h3>
<div class="preview"><span id="preview"></span>text</div>
</div>
</div>
<fieldset>
<legend>Advanced options</legend>
<p>
<label><input type="checkbox" name="copyable-whitespace"> Copyable whitespace indicators</label>
</p>
</fieldset>
<p>
<button type="submit">Save</button>
<button type="button" id="restore-defaults">Restore defaults</button>
<span id="status"></span>
</p>
</form>
<script src="options.js"></script>
</body>
</html>