-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathview-image-info-page.css
300 lines (297 loc) · 5.89 KB
/
view-image-info-page.css
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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
/*
View Image Info Reborn - Info Page Styles
Copyright 2021. Jefferson "jscher2000" Scher. License: MPL-2.0.
Styles for new window/tab
version 1.0 - MVP
version 1.6 - Save As options
version 1.6.1 - bug fixes
version 1.7 - Referrer
version 1.8 - Referrer for preview, updated layout
version 1.9 - Thumbnail height adjustment, emojify save button
version 2.1 - TinEye image search button, spruce up srcset formatting
*/
body {
--body-text-color: #000;
color: var(--body-text-color);
--body-back-color: #aaa;
background-color: var(--body-back-color);
margin: 0;
padding: 8px 16px 0;
--body-size: 12px;
font-size: var(--body-size);
overflow-y: scroll;
font-family: sans-serif;
--maxthumbheight: 240px; /* [v1.9] */
}
/* Color scheme */
@media (prefers-color-scheme: light) {
body {
--body-text-color: #000;
--body-back-color: #f8f8f8;
--table-head-color: #f4f4f4;
--table-back-color: #333;
}
}
@media (prefers-color-scheme: dark) {
body {
--body-text-color: #f4f4f4;
--body-back-color: #333;
--table-head-color: #000;
--table-back-color: #e4e4e4;
}
}
/* Overrides from settings */
body[colorscheme="light"]{
--body-text-color: #000;
--body-back-color: #f8f8f8;
--table-head-color: #f4f4f4;
--table-back-color: #333;
}
body[colorscheme="dark"]{
--body-text-color: #f4f4f4;
--body-back-color: #333;
--table-head-color: #000;
--table-back-color: #e4e4e4;
}
@media print{
body {
--body-text-color: #000;
--body-back-color: #fff;
padding: 0;
}
#controls, #imagetools, #previewtools {
display: none !important;
}
}
#controls {
position: absolute;
right: 16px;
top: 2px;
z-index: 5;
background-color: var(--body-back-color);
border-radius: 4px;
}
#options, #tineye, #btnprint, #showresize, #btnsaveas {
-moz-appearance: none;
font-size: var(--body-size);
padding: 1px 2px 3px 2px !important;
border-radius: 4px;
color: var(--body-text-color);
background-color: rgba(0, 0, 0, 0.05) !important;
border-color: transparent !important;
min-width: 30px;
min-height: 30px;
filter: grayscale(1);
}
#options:hover, #options:focus,
#tineye:not([disabled]):hover, #tineye:not([disabled]):focus,
#btnprint:hover, #btnprint:focus,
#showresize:hover, #showresize:focus,
#btnsaveas:hover, #btnsaveas:focus {
border-color: var(--body-text-color) !important;
}
#btnsaveas[state="open"] {
color: var(--body-back-color);
background-color: var(--body-text-color) !important;
}
/* TinEye search button [v2.1] */
#tineye {
background-image: url(tineye/tineye16.png);
background-size: var(--body-size);
background-position: center;
background-repeat: no-repeat;
}
.imageinfo {
border: none;
margin-top: 1.5em;
width: 100%;
border-collapse: collapse;
}
.imageinfo:last-of-type {
margin-bottom: 1em;
}
.imageinfo th, .imageinfo td {
text-align: left;
vertical-align: top;
border-bottom: 1px solid #8888;
}
.imageinfo tbody th, .imageinfo tbody td {
padding: 3px 4px;
font-weight: normal;
}
.imageinfo tbody th {
width: 110px;
max-width: 110px;
}
.imageinfo thead th {
padding: 0 0 3px 0;
}
.imageinfo td p {
margin-top: 0;
}
.imageinfo td p:last-of-type {
margin-bottom: 0;
}
.imageinfo .urlnote {
font-weight: bold;
}
@media screen {
.imageinfo {
border-left: 8px solid var(--table-back-color);
}
.imageinfo tbody th {
padding-left: 8px;
}
.imageinfo thead th {
padding: 0;
}
.imageinfo thead span {
display: inline-block;
padding: 3px 24px 3px 8px;
border-radius: 0 16px 0px 0px / 0 16px 0px 0px;
color: var(--table-head-color);
background-color: var(--table-back-color);
}
main.ver1dot8 #preview.fitw {
margin-top: 16px;
}
}
#previewdiv {
position: relative;
}
main.classic #previewpar {
text-align: center;
border: 1px solid #888;
padding: 8px;
}
main.classic #preview {
max-width: 100%;
}
main.ver1dot8 #previewpar {
margin: 8px 0 0 0;
}
main.ver1dot8 #preview {
max-width: calc(100vw - 200px);
max-height: var(--maxthumbheight);
}
main.ver1dot8 #preview.shrinkToFit {
cursor: zoom-in;
}
main.ver1dot8 #preview.fitw {
max-width: 100%;
max-height: unset;
cursor: zoom-out;
}
#oops {
display: none;
color: highlightText;
background-color: highlight;
font-weight: bold;
padding: 4px 12px;
margin-top: 2em;
}
#oops button {
margin-left: 1em;
}
#popsizer {
display: none;
position: fixed;
right: 16px;
top: 4px;
padding: 0 8px;
width: 350px;
background: var(--body-back-color);
border: 1px solid var(--body-text-color);
border-radius: 6px;
z-index: 10;
}
.suboption {
margin-left: 22px;
}
/* Save As... [v1.6] */
#imagetools {
position: relative;
}
#saveaslist {
position: absolute;
top: calc((1em * 1.2) + 3px);
right: 4px;
margin: 0;
padding: 0;
list-style-type: none;
background-color: buttonface;
border: 1px solid #888;
border-radius: 4px;
border-bottom: none;
display: none;
z-index: 100;
}
#saveaslist li {
margin: 0;
padding: 0;
border-bottom: 1px solid var(--body-text-color);
white-space: nowrap;
}
#saveaslist li a {
display: block;
color: buttontext;
text-decoration: none;
padding: 6px 12px;
}
#saveaslist li a:hover {
color: highlightText;
background-color: highlight;
}
#saveaslist li a:active {
color: highlight;
background-color: highlightText;
}
#saveaslist li#saveasnoaccept a, #saveaslist li#saveasie11 a {
position: relative;
padding-right: 45px;
}
/* Referrer controls [v1.7] */
.btnRefer {
font-size: var(--body-size);
padding: 0 4px 1px;
border: none;
color: buttonface;
background-color: buttontext;
opacity: 0.5;
}
a > .btnRefer {
position: absolute;
right: 4px;
}
.btnRefer:hover {
opacity: 1;
}
#referForm {
display: none;
}
#referForm p {
margin: 0;
padding: 6px 12px;
}
input[name="radReferPolicy"] {
margin-right: 4px;
}
input[value="no-referrer"] {
margin-left: 0;
}
#previewtools {
position: absolute;
top: 4px;
left: 4px;
margin: 0;
padding: 0;
list-style-type: none;
background-color: var(--body-back-color);
z-index: 100;
display: none;
}
#previewtools li {
margin: 0;
padding: 0;
border: 1px solid #888;
}