-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
180 lines (153 loc) · 3.7 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
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
177
178
179
180
<html>
<head>
<title>Advanced Font Settings</title>
<script src="js/cr.js"></script>
<script src="js/cr/ui.js"></script>
<script src="slider.js"></script>
<script src="pending_changes.js"></script>
<script src="popup.js"></script>
<link rel="stylesheet" href="css/chrome_shared.css">
<link rel="stylesheet" href="css/widgets.css">
<link rel="stylesheet" href="css/uber_shared.css">
<link rel="stylesheet" href="slider.css">
<style>
body.uber-frame {
margin-inline-start: 18px;
margin-inline-end: 18px;
}
body.uber-frame section:last-of-type {
margin-top: 28px;
}
body.uber-frame header {
left: 0;
padding-inline-start: 18px;
right: 0;
}
body.uber-frame header>h1 {
padding-bottom: 16px;
}
h1 {
font-size: 16px;
}
.script-header {
margin-top: 12px;
}
h3 {
margin-bottom: 11px;
font-size: 14px;
}
section {
font-size: 12px;
}
.bordered {
border: 1px solid #D9D9D9;
border-radius: 2px;
}
.smaller {
font-size: smaller;
}
.font-settings-div {
margin-inline-end: 5px;
width: 100px;
}
.font-settings-div:first-of-type {
width: 138px;
}
.font-settings-div> :first-child {
margin-bottom: 10px;
}
.font-settings-div>* {
margin-bottom: 14px;
}
.font-settings-row {
width: 300px;
}
.sample-text-div {
display: -webkit-flex;
white-space: nowrap;
width: 100%;
overflow: hidden;
}
.sample-text-span {
margin-top: auto;
margin-bottom: auto;
margin-left: 20px;
}
#minFontSample {
font-family: standard;
}
select {
width: 100%;
}
#footer>button {
padding-inline-start: 9px;
padding-inline-end: 9px;
}
#footer>#apply-settings {
padding-inline-start: 17px;
padding-inline-end: 17px;
}
#apply-settings:enabled {
background-color: #4f7dd6;
background-image: none;
border-color: #2a4aac;
box-shadow: none;
color: #fbfafb;
text-shadow: none;
}
.slider-legend {
position: relative;
top: -7px;
}
.slider-container {
display: inline-block;
position: relative;
top: 1px;
height: 24px;
width: 88px;
}
</style>
</head>
<body class="uber-frame">
<div class="page">
<header style="transform: translateX(0px);">
<h1>Blinews Font Settings</h1>
</header>
<section style="display: none;">
<h3 class="script-header">Script</h3>
<div class="font-settings-row">
<select style="width: 200px" id="scriptList"></select>
</div>
</section>
<section>
<h3>Minimum font size</h3>
<div class="font-settings-row">
<div class="font-settings-div">
<div id="minFontSizeLabel" style="margin-bottom: 8px"></div>
<div style="width: 100%; margin-bottom: 12px">
<span class="slider-legend smaller">Aa</span>
<div id="minFontSizeSliderContainer" class="slider-container"></div>
<span class="slider-legend">Aa</span>
</div>
</div>
</div>
<div class="bordered"
style="position: relative; overflow: hidden; left: 0; right: 0; height: 58px; width: 180px;">
<div class="sample-text-div" style="height: 100%">
<span id="minFontSample" class="sample-text-span">
Lorem Ipsum.
</span>
</div>
</div>
</section>
<section id="footer">
<button id="apply-settings">
Simpan
</button>
<button id="reset-all-button">
Reset
</button>
</section>
</div>
</body>
</html>