PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 4.7.0
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v4.7.0
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
← All changes | css/smush.css +461 -534 3.2.3 → 4.7.0 View file →
@@ -1,15 +1,15 @@
1 1 /**
2 2 * Autosmush
3 3 */
4 4 .wpo-fieldgroup .autosmush {
5 - display: inline-block;
6 - width: 100%;
5 + display: inline-block;
6 + width: 100%;
7 7 }
8 8
9 9 .wpo-fieldgroup .autosmush h3 {
10 - font-size: 1.2em;
11 - margin: 3px 18px;
10 + font-size: 1.2em;
11 + margin: 3px 18px;
12 12 }
13 13
14 14 /**
15 15 * Compression Server
@@ -14,743 +14,752 @@
14 14 /**
15 15 * Compression Server
16 16 */
17 17 .wpo-fieldgroup .compression_server div {
18 - max-width: 300px;
18 + max-width: 300px;
19 19 }
20 20
21 21 .wpo-fieldgroup .compression_server h2 {
22 - margin: 10px 0;
22 + margin: 10px 0;
23 23 }
24 24
25 25 .wpo-fieldgroup .compression_server h3 {
26 - clear: both;
27 - width: 100%;
26 + clear: both;
27 + width: 100%;
28 28 }
29 29
30 30 .wpo-fieldgroup .compression_server p {
31 - margin: 1px;
31 + margin: 1px;
32 32 }
33 33
34 34 .wpo-fieldgroup .compression_server p:last-of-type {
35 - margin-bottom: 10px;
35 + margin-bottom: 10px;
36 36 }
37 37
38 38 .wpo-fieldgroup .compression_server {
39 - display: -ms-flexbox;
40 - display: flex;
41 - -ms-flex-flow: row wrap;
42 - flex-flow: row wrap;
39 + display: -ms-flexbox;
40 + display: flex;
41 + -ms-flex-flow: row wrap;
42 + flex-flow: row wrap;
43 43 }
44 44
45 45 .wpo-fieldgroup .compression_server > div {
46 - -ms-flex: 1;
47 - flex: 1;
48 - margin-right: 10px;
49 - height: 100%;
50 - position: relative;
46 + -ms-flex: 1;
47 + flex: 1;
48 + margin-right: 10px;
49 + height: 100%;
50 + position: relative;
51 51 }
52 52
53 -.wpo-fieldgroup .compression_server input[type="radio"] {
54 - position: absolute;
55 - z-index: 1;
56 - top: calc(50% + 2px);
57 - left: 20px;
58 - transform: translatey(-50%);
53 +.wpo-fieldgroup .compression_server input[type=radio] {
54 + position: absolute;
55 + z-index: 1;
56 + top: calc(50% + 2px);
57 + left: 20px;
58 + transform: translatey(-50%);
59 59 }
60 60
61 -.wpo-fieldgroup .compression_server input[type="radio"] ~ label h4 {
62 - color: #23282D;
63 - margin-top: 0;
64 - margin-bottom: 0.9em;
65 - font-size: 1.2em;
61 +.wpo-fieldgroup .compression_server input[type=radio] + div#wpo-resmushit-details h4 {
62 + color: #23282D;
63 + margin-top: 0;
64 + margin-bottom: 0.9em;
65 + font-size: 1.2em;
66 66 }
67 67
68 -.wpo-fieldgroup .compression_server label {
69 - display: block;
70 - position: relative;
71 - box-sizing: border-box;
72 - height: 100%;
73 - background: #FFF;
74 - text-align: left;
75 - box-shadow: 0px 3px 10px -2px hsla(150, 5%, 65%, 0.5);
68 +.wpo-fieldgroup .compression_server div#wpo-resmushit-details {
69 + display: block;
70 + position: relative;
71 + box-sizing: border-box;
72 + height: 100%;
73 + background: #FFF;
74 + text-align: left;
75 + box-shadow: 0px 3px 10px -2px hsla(150, 5%, 65%, 0.5);
76 76 }
77 77
78 -.wpo-fieldgroup .compression_server input[type="radio"] + label {
79 - padding: 20px;
80 - border: 2px solid #FFF;
81 - padding-left: 65px;
82 - position: relative;
83 - border-radius: 5px;
84 - color: #82868B;
78 +.wpo-fieldgroup .compression_server input[type=radio] + div#wpo-resmushit-details {
79 + padding: 20px;
80 + border: 2px solid #FFF;
81 + padding-left: 65px;
82 + position: relative;
83 + border-radius: 5px;
84 + color: #82868B;
85 85 }
86 86
87 -.wpo-fieldgroup .compression_server input[type="radio"] + label::before {
88 - content: '';
89 - display: block;
90 - position: absolute;
91 - top: 0;
92 - left: 52px;
93 - height: 100%;
94 - border-right: 1px solid #EDEFF0;
87 +.wpo-fieldgroup .compression_server input[type=radio] + div#wpo-resmushit-details::before {
88 + content: "";
89 + display: block;
90 + position: absolute;
91 + top: 0;
92 + left: 52px;
93 + height: 100%;
94 + border-right: 1px solid #EDEFF0;
95 95 }
96 96
97 97 .wpo-fieldgroup .save-options {
98 - margin: 10px 0;
98 + margin: 10px 0;
99 99 }
100 100
101 -.wpo-fieldgroup .compression_server input[type="radio"]:focus + label,
102 -.wpo-fieldgroup .compression_server input[type="radio"] + label:hover {
103 - border-color: rgba(0, 134, 184, 0.38);
101 +.wpo-fieldgroup .compression_server input[type=radio]:focus + div#wpo-resmushit-details,
102 +.wpo-fieldgroup .compression_server input[type=radio] + div#wpo-resmushit-details:hover {
103 + border-color: rgba(0, 134, 184, 0.38);
104 104 }
105 105
106 -.wpo-fieldgroup .compression_server input[type="radio"]:focus + label {
107 - box-shadow: 0px 3px 10px -2px #5B9DD9;
106 +.wpo-fieldgroup .compression_server input[type=radio]:focus + div#wpo-resmushit-details,
107 +.wpo-fieldgroup .compression_server input[type=radio] + div#wpo-resmushit-details:active {
108 + box-shadow: 0px 3px 10px -2px #5B9DD9;
108 109 }
109 110
110 -.wpo-fieldgroup .compression_server input[type="radio"]:focus + label h4 {
111 - color: #0086B9;
111 +.wpo-fieldgroup .compression_server input[type=radio]:focus + div#wpo-resmushit-details h4,
112 +.wpo-fieldgroup .compression_server input[type=radio] + div#wpo-resmushit-details:focus h4,
113 +.wpo-fieldgroup .compression_server input[type=radio] + div#wpo-resmushit-details:active h4 {
114 + color: #0086B9;
112 115 }
113 116
114 -.wpo-fieldgroup .compression_server input[type="radio"]:checked + label,
115 -.wpo-fieldgroup .compression_server input[type="radio"]:checked + label:hover {
116 - border-color: #0086B9;
117 +.wpo-fieldgroup .compression_server input[type=radio]:checked + div#wpo-resmushit-details,
118 +.wpo-fieldgroup .compression_server input[type=radio]:checked + div#wpo-resmushit-details:hover {
119 + border-color: #0086B9;
117 120 }
118 121
119 122 @media only screen and (max-width: 700px) {
120 -
121 - .wpo-fieldgroup .compression_server {
122 - -ms-flex-direction: column;
123 - flex-direction: column;
124 - }
125 -
126 - .wpo-fieldgroup .compression_server > div {
127 - margin-bottom: 15px;
128 - max-width: 100%;
129 - }
130 -
123 + .wpo-fieldgroup .compression_server {
124 + -ms-flex-direction: column;
125 + flex-direction: column;
126 + }
127 + .wpo-fieldgroup .compression_server > div {
128 + margin-bottom: 15px;
129 + max-width: 100%;
130 + }
131 131 }
132 -
133 132 /**
134 133 * Compression Options
135 134 */
136 135 .wpo-fieldgroup h4 {
137 - margin: 1em 0;
138 - width: 100%;
136 + margin: 1em 0;
137 + width: 100%;
139 138 }
140 139
141 140 .wpo-fieldgroup .image_quality input[type=radio] {
142 - position: absolute;
143 - visibility: hidden;
144 - display: none;
141 + position: absolute;
142 + visibility: hidden;
143 + display: none;
145 144 }
146 145
147 146 .wpo-fieldgroup .image_quality label {
148 - color: #23282D;
149 - display: inline-block;
150 - cursor: pointer;
151 - font-weight: bold;
152 - padding: 5px 20px;
153 - background: #F9F9F9;
154 - float: left;
155 - margin: 0 .5px;
147 + color: #23282D;
148 + display: inline-block;
149 + cursor: pointer;
150 + font-weight: bold;
151 + padding: 5px 20px;
152 + background: #F9F9F9;
153 + float: left;
154 + margin: 0 0.5px;
156 155 }
157 156
158 157 .wpo-fieldgroup .image_quality input[type=radio]:checked + label {
159 - color: white;
160 - background: #0088B9;
158 + color: white;
159 + background: #0088B9;
161 160 }
162 161
163 162 .wpo-fieldgroup .image_quality label + .wpo-fieldgroup .image_quality input[type=radio] + label {
164 - border-left: solid 3px #675F6B;
163 + border-left: solid 3px #675F6B;
165 164 }
166 165
167 166 .wpo-fieldgroup .image_quality.radio-group {
168 - border: solid .5px #C4C4C4;
169 - display: inline-block;
170 - border-radius: 5px;
171 - overflow: hidden;
172 - border-bottom: solid 2px #C4C4C4;
173 - background: #C4C4C4;
167 + border: solid 0.5px #C4C4C4;
168 + display: inline-block;
169 + border-radius: 5px;
170 + overflow: hidden;
171 + border-bottom: solid 2px #C4C4C4;
172 + background: #C4C4C4;
174 173 }
175 174
176 175 .wpo-fieldgroup .image_options input {
177 - min-height: 16px;
178 - min-width: 16px;
179 - margin: 3px 2px;
176 + min-height: 16px;
177 + min-width: 16px;
178 + margin: 3px 2px;
180 179 }
181 180
182 181 img#wpo_smush_images_save_options_spinner {
183 - max-width: 20px;
184 - max-height: 20px;
182 + max-width: 20px;
183 + max-height: 20px;
185 184 }
186 185
187 186 span#wpo_smush_images_save_options_fail {
188 - font-size: inherit;
189 - color: red;
187 + font-size: inherit;
188 + color: red;
190 189 }
191 190
192 191 span#wpo_smush_images_save_options_done {
193 - font-size: inherit;
194 - color: green;
192 + font-size: inherit;
193 + color: green;
195 194 }
196 195
197 196 #smush-complete-summary span.clearfix {
198 - height: 10px;
199 - display: block;
200 - clear: both;
197 + height: 10px;
198 + display: block;
199 + clear: both;
201 200 }
202 201
203 202 #smush-complete-summary span.close {
204 - display: block;
205 - clear: both;
206 - text-align: left;
207 - color: #DF6927;
208 - border: 2px solid;
209 - border-radius: 50%;
210 - cursor: pointer;
203 + display: block;
204 + clear: both;
205 + text-align: left;
206 + color: #DF6927;
207 + border: 2px solid;
208 + border-radius: 50%;
209 + cursor: pointer;
211 210 }
212 211
212 +#smush-complete-summary .wpo-save-btn-container {
213 + -ms-flex-pack: center;
214 + justify-content: center;
215 + margin: 10px 0;
216 +}
217 +
213 218 .modal-message-text {
214 - margin: 0 25px;
219 + margin: 0 25px;
215 220 }
216 221
217 222 .smush-options.custom_compression {
218 - margin: 10px;
223 + margin: 10px;
219 224 }
220 225
221 226 #smush-backup-delete-days {
222 - width: 50px;
223 - margin: 0 8px;
227 + width: 70px;
228 + margin: 0 8px;
224 229 }
225 230
226 231 img#wpo_smush_delete_backup_spinner {
227 - max-width: 20px;
228 - max-height: 20px;
229 - position: relative;
230 - top: 4px;
232 + max-width: 20px;
233 + max-height: 20px;
234 + position: relative;
235 + top: 4px;
231 236 }
232 237
233 238 span#wpo_smush_delete_backup_done {
234 - font-size: inherit;
235 - color: green;
239 + font-size: inherit;
240 + color: green;
236 241 }
237 242
238 243 .wpo-fieldgroup .smush-options.custom_compression {
239 - display: -ms-flexbox;
240 - display: flex;
241 - -ms-flex-align: center;
242 - align-items: center;
243 - margin-left: 24px;
244 + display: -ms-flexbox;
245 + display: flex;
246 + -ms-flex-align: center;
247 + align-items: center;
248 + margin-left: 24px;
244 249 }
245 250
246 251 .wpo-fieldgroup .smush-options.custom_compression > span {
247 - display: inline-block;
248 - padding: 6px;
249 - border: 1px solid #CFD2D4;
250 - border-radius: 4px;
251 - font-size: 0.9em;
252 - position: relative;
252 + display: inline-block;
253 + padding: 6px;
254 + border: 1px solid #CFD2D4;
255 + border-radius: 4px;
256 + font-size: 0.9em;
257 + position: relative;
253 258 }
254 259
255 260 .wpo-fieldgroup .smush-options.custom_compression > span.slider-start::after {
256 - content: '';
257 - width: 6px;
258 - height: 6px;
259 - display: block;
260 - position: absolute;
261 - top: 0;
262 - left: 100%;
263 - transform: translate(-3px, 8px) rotate(45deg);
264 - border-right: 1px solid #CFD2D4;
265 - border-top: 1px solid #CFD2D4;
266 - background: #EDEFF0;
261 + content: "";
262 + width: 6px;
263 + height: 6px;
264 + display: block;
265 + position: absolute;
266 + top: 0;
267 + left: 100%;
268 + transform: translate(-3px, 8px) rotate(45deg);
269 + border-right: 1px solid #CFD2D4;
270 + border-top: 1px solid #CFD2D4;
271 + background: #EDEFF0;
267 272 }
268 273
269 274 .wpo-fieldgroup .smush-options.custom_compression > span.slider-end::before {
270 - content: '';
271 - width: 6px;
272 - height: 6px;
273 - display: block;
274 - position: absolute;
275 - top: 0;
276 - right: 100%;
277 - transform: translate(3px, 8px) rotate(45deg);
278 - border-left: 1px solid #CFD2D4;
279 - border-bottom: 1px solid #CFD2D4;
280 - background: #EDEFF0;
275 + content: "";
276 + width: 6px;
277 + height: 6px;
278 + display: block;
279 + position: absolute;
280 + top: 0;
281 + right: 100%;
282 + transform: translate(3px, 8px) rotate(45deg);
283 + border-left: 1px solid #CFD2D4;
284 + border-bottom: 1px solid #CFD2D4;
285 + background: #EDEFF0;
281 286 }
282 287
283 288 .wpo-fieldgroup .smush-options.custom_compression > input {
284 - margin-left: 8px;
285 - margin-right: 8px;
289 + margin-left: 8px;
290 + margin-right: 8px;
286 291 }
287 292
288 293 @media screen and (max-width: 782px) {
289 -
290 - .wpo-fieldgroup input[type="radio"] {
291 - height: 16px;
292 - width: 16px;
293 - }
294 -
295 - .wpo-fieldgroup input[type="radio"]:checked:before {
296 - width: 6px;
297 - height: 6px;
298 - margin: 4px;
299 - }
300 -
301 - .wpo-fieldgroup .smush-options.custom_compression {
302 - -ms-flex-direction: column;
303 - flex-direction: column;
304 - }
305 -
306 - .wpo-fieldgroup .smush-options.custom_compression > input {
307 - width: 100%;
308 - }
309 -
310 - .wpo-fieldgroup .smush-options.custom_compression > span {
311 - display: block;
312 - width: 100%;
313 - }
314 -
315 - .wpo-fieldgroup .smush-options.custom_compression > span.slider-start::after {
316 - left: 0;
317 - transform: translate(7px, 22px) rotate(135deg);
318 - }
319 -
320 - .wpo-fieldgroup .smush-options.custom_compression > span.slider-end::before {
321 - right: auto;
322 - left: 100%;
323 - transform: translate(-14px, -5px) rotate(135deg);
324 - }
325 -
294 + .wpo-fieldgroup input[type=radio] {
295 + height: 16px;
296 + width: 16px;
297 + }
298 + .wpo-fieldgroup input[type=radio]:checked:before {
299 + width: 6px;
300 + height: 6px;
301 + margin: 4px;
302 + }
303 + .wpo-fieldgroup .smush-options.custom_compression {
304 + -ms-flex-direction: column;
305 + flex-direction: column;
306 + }
307 + .wpo-fieldgroup .smush-options.custom_compression > input {
308 + width: 100%;
309 + }
310 + .wpo-fieldgroup .smush-options.custom_compression > span {
311 + display: block;
312 + width: 100%;
313 + }
314 + .wpo-fieldgroup .smush-options.custom_compression > span.slider-start::after {
315 + left: 0;
316 + transform: translate(7px, 22px) rotate(135deg);
317 + }
318 + .wpo-fieldgroup .smush-options.custom_compression > span.slider-end::before {
319 + right: auto;
320 + left: 100%;
321 + transform: translate(-14px, -5px) rotate(135deg);
322 + }
326 323 }
327 -
328 324 /**
329 325 * Uncompressed images
330 326 */
331 -
332 327 #wpo_smush_settings .align-left {
333 - float: left;
328 + float: left;
334 329 }
335 330
336 331 #wpo_smush_settings .align-right {
337 - float: right;
332 + float: right;
338 333 }
339 334
340 335 .wpo-fieldgroup .wpo_smush_images_buttons_wrap {
341 - width: 100%;
336 + width: 100%;
342 337 }
343 338
344 339 .wpo-fieldgroup .smush-refresh-icon,
345 340 .wpo-fieldgroup .smush-select-actions {
346 - font-size: 15px;
341 + font-size: 15px;
347 342 }
348 343
349 344 .wpo-fieldgroup img.wpo_smush_images_loader {
350 - display: none;
351 - min-height: 20px;
352 - min-width: 20px;
345 + display: none;
346 + min-height: 20px;
347 + min-width: 20px;
353 348 }
354 349
355 -.wpo-fieldgroup .dashicons.dashicons-image-rotate, {
356 - font-size: 15px;
350 +.wpo-fieldgroup .dashicons.dashicons-image-rotate {
351 + font-size: 15px;
357 352 }
358 353
359 354 .wpo-fieldgroup .wpo-toggle-advanced-options {
360 - cursor: pointer;
361 - text-decoration: underline;
362 - color: #0088BC;
355 + cursor: pointer;
356 + text-decoration: underline;
357 + color: #0088BC;
363 358 }
364 359
365 360 .wpo-fieldgroup .button.wpo-toggle-advanced-options {
366 - display: block;
367 - width: calc(100% + 40px);
368 - margin-left: -20px;
369 - margin-right: -20px;
370 - padding-left: 20px;
371 - padding-right: 20px;
372 - position: relative;
373 - text-decoration: none;
361 + display: block;
362 + width: calc(100% + 40px);
363 + margin-left: -20px;
364 + margin-right: -20px;
365 + padding-left: 20px;
366 + padding-right: 20px;
367 + position: relative;
368 + text-decoration: none;
374 369 }
375 370
376 371 .wpo-fieldgroup .button.wpo-toggle-advanced-options span.dashicons {
377 - text-decoration: none;
378 - font-size: 16px;
379 - height: 16px;
380 - vertical-align: middle;
381 - color: #444;
382 - transition: .2s all;
372 + text-decoration: none;
373 + font-size: 16px;
374 + height: 16px;
375 + vertical-align: middle;
376 + color: #444;
377 + transition: 0.2s all;
378 + position: relative;
383 379 }
384 380
381 +.wp-version-7 .wpo-fieldgroup .button.wpo-toggle-advanced-options span.dashicons {
382 + top: -6px;
383 +}
384 +
385 385 .wpo-fieldgroup .wpo-toggle-advanced-options span.text {
386 - background: #F2F4F4;
387 - z-index: 1;
388 - position: relative;
389 - padding-right: 5px;
386 + background: #F2F4F4;
387 + z-index: 1;
388 + position: relative;
389 + padding-right: 5px;
390 390 }
391 391
392 392 .wpo-fieldgroup .button.wpo-toggle-advanced-options:hover,
393 393 .wpo-fieldgroup .button.wpo-toggle-advanced-options:focus {
394 - background: transparent;
394 + background: transparent;
395 395 }
396 396
397 397 .wpo-fieldgroup .button.wpo-toggle-advanced-options .wpo-toggle-advanced-options__text-show {
398 - display: inline-block;
398 + display: inline-block;
399 399 }
400 400
401 401 .wpo-fieldgroup .button.wpo-toggle-advanced-options .wpo-toggle-advanced-options__text-hide {
402 - display: none;
402 + display: none;
403 403 }
404 404
405 405 .wpo-fieldgroup .button.wpo-toggle-advanced-options.opened .wpo-toggle-advanced-options__text-show {
406 - display: none;
406 + display: none;
407 407 }
408 408
409 409 .wpo-fieldgroup .button.wpo-toggle-advanced-options.opened .wpo-toggle-advanced-options__text-hide {
410 - display: inline-block;
410 + display: inline-block;
411 + margin-bottom: 20px;
411 412 }
412 413
413 414 .wpo-fieldgroup .button.wpo-toggle-advanced-options.opened::before {
414 - content: '';
415 - border-top: 1px solid #CCC;
416 - width: 100%;
417 - position: absolute;
418 - top: 16px;
419 - left: 0;
415 + content: "";
416 + border-top: 1px solid #CCC;
417 + width: 100%;
418 + position: absolute;
419 + top: 16px;
420 + left: 0;
420 421 }
421 422
422 423 .wpo-fieldgroup .button.wpo-toggle-advanced-options.opened span.dashicons {
423 - transform: rotate(180deg);
424 + transform: rotate(180deg);
424 425 }
425 426
427 +.wp-version-7 .wpo-fieldgroup .button.wpo-toggle-advanced-options.opened span.dashicons {
428 + top: 4px;
429 +}
430 +
426 431 .wpo-fieldgroup .wpo-advanced-options {
427 - display: none;
432 + display: none;
428 433 }
429 434
430 435 .wpo-advanced-options > fieldset:first-child {
431 - margin-top: 10px;
436 + margin-top: 10px;
432 437 }
433 438
434 439 .wpo-fieldgroup .button.wpo-toggle-advanced-options.opened + .wpo-advanced-options {
435 - display: block;
440 + display: block;
436 441 }
437 442
438 443 .wpo_smush_image:focus-within label {
439 - box-shadow: 0 0 4px #0272AA;
444 + box-shadow: 0 0 4px #0272AA;
440 445 }
441 446
442 447 .wpo_smush_image .wpo_smush_image__input:checked + label {
443 - border-color: #0272AA;
448 + border-color: #0272AA;
444 449 }
445 450
446 -.uncompressed-images input[type="checkbox"] {
447 - position: absolute;
448 - opacity: 0;
449 - width: 0;
450 - height: 0;
451 +.uncompressed-images input[type=checkbox] {
452 + position: absolute;
453 + opacity: 0;
454 + width: 0;
455 + height: 0;
451 456 }
452 457
453 458 .uncompressed-images small.red {
454 - clear: both;
455 - display: block;
456 - margin: 5px;
459 + clear: both;
460 + display: block;
461 + margin: 5px;
457 462 }
458 463
459 464 .smush-actions .wpo_primary_small {
460 - display: inline-block;
461 - margin: 5px;
465 + display: inline-block;
466 + margin: 5px;
462 467 }
463 468
464 469 .smush-actions {
465 - display: inline-block;
466 - width: 100%;
467 - margin: 10px 0;
470 + display: inline-block;
471 + width: 100%;
472 + margin: 10px 0;
468 473 }
469 474
470 475 .smush-actions .dashicons.dashicons-yes {
471 - font-size: 15px;
472 - margin: 0 5px;
476 + font-size: 15px;
477 + margin: 0 5px;
473 478 }
474 479
475 480 .smush-actions img {
476 - max-height: 25px;
477 - max-width: 25px;
481 + max-height: 25px;
482 + max-width: 25px;
478 483 }
479 484
480 485 /**
481 486 * Log and panels
482 487 */
483 -
484 488 #smush-log-modal {
485 - width: 100%;
486 - height: 100%;
489 + width: 100%;
490 + height: 100%;
487 491 }
488 492
489 493 #log-panel {
490 - height: 80%;
491 - overflow: scroll;
492 - margin: 2%;
494 + height: 80%;
495 + overflow: scroll;
496 + margin: 2%;
493 497 }
494 498
495 499 #log-panel pre {
496 - text-align: left;
497 - overflow: auto;
498 - height: 100%;
499 - background: gainsboro;
500 + text-align: left;
501 + overflow: auto;
502 + height: 100%;
503 + background: gainsboro;
500 504 }
501 505
502 506 .smush-information {
503 - margin-bottom: 10px;
507 + margin-bottom: 10px;
504 508 }
505 509
506 510 /**
507 511 * Smush modal progress box & related styling
508 512 */
509 -
510 513 #smush_stats {
511 - text-align: center;
512 - margin: 0 auto;
513 - padding: 2%;
514 - min-width: 350px;
515 - font-size: larger;
514 + text-align: center;
515 + margin: 0 auto;
516 + padding: 2%;
517 + min-width: 350px;
518 + font-size: larger;
516 519 }
517 520
518 521 #smush_stats .wpo_smush_stats_cta_btn {
519 - clear: both;
520 - display: block;
521 - text-align: center;
522 + clear: both;
523 + display: block;
524 + text-align: center;
522 525 }
523 526
524 527 #smush_stats .smush_stats_row td:first-child {
525 - text-align: left;
528 + text-align: left;
526 529 }
527 530
528 531 #smush_stats tr.smush_stats_row td:last-child {
529 - text-align: right;
532 + text-align: right;
530 533 }
531 534
532 535 #smush_stats #wpo_smush_images_information_container p {
533 - padding: 10px;
536 + padding: 10px;
534 537 }
535 538
536 539 #smush-complete-summary .checkmark-circle {
537 - width: 50px;
538 - height: 50px;
539 - position: relative;
540 - display: inline-block;
541 - vertical-align: top;
540 + width: 50px;
541 + height: 50px;
542 + position: relative;
543 + display: inline-block;
544 + vertical-align: top;
542 545 }
543 546
544 547 #smush-complete-summary .checkmark-circle .background {
545 - width: 50px;
546 - height: 50px;
547 - border-radius: 50%;
548 - background: #DF6927;
549 - position: absolute;
548 + width: 50px;
549 + height: 50px;
550 + border-radius: 50%;
551 + background: #DF6927;
552 + position: absolute;
550 553 }
551 554
552 555 #smush-complete-summary .checkmark-circle .checkmark {
553 - border-radius: 5px;
556 + border-radius: 5px;
554 557 }
555 558
556 559 #smush-complete-summary .checkmark-circle .checkmark.draw:after {
557 - animation-delay: 100ms;
558 - animation-duration: 1s;
559 - animation-timing-function: ease;
560 - animation-name: checkmark;
561 - transform: scalex(-1) rotate(135deg);
562 - animation-fill-mode: forwards;
560 + animation-delay: 100ms;
561 + animation-duration: 1s;
562 + animation-timing-function: ease;
563 + animation-name: checkmark;
564 + transform: scalex(-1) rotate(135deg);
565 + animation-fill-mode: forwards;
563 566 }
564 567
565 568 #smush-complete-summary .checkmark-circle .checkmark:after {
566 - opacity: 1;
567 - height: 25px;
568 - width: 12.5px;
569 - transform-origin: left top;
570 - border-right: 5px solid white;
571 - border-top: 5px solid white;
572 - border-radius: 2.5px !important;
573 - content: '';
574 - left: 8.3333333333px;
575 - top: 25px;
576 - position: absolute;
569 + opacity: 1;
570 + height: 25px;
571 + width: 12.5px;
572 + transform-origin: left top;
573 + border-right: 5px solid white;
574 + border-top: 5px solid white;
575 + border-radius: 2.5px !important;
576 + content: "";
577 + left: 8.3333333333px;
578 + top: 25px;
579 + position: absolute;
577 580 }
578 581
579 582 #smush_stats .wpo_primary_small {
580 - text-align: center;
583 + text-align: center;
581 584 }
582 585
583 586 #smush-complete-summary #summary-message {
584 - margin: 15px auto;
587 + padding: 15px;
585 588 }
586 589
587 590 img#wpo_smush_images_clear_stats_spinner {
588 - width: 20px;
589 - line-height: 1;
590 - vertical-align: middle;
591 + width: 20px;
592 + line-height: 1;
593 + vertical-align: middle;
591 594 }
592 595
593 596 /* Animated progress bar */
594 -
595 597 #wpo_smush_images_information_container {
596 - padding: 10px;
598 + padding: 10px;
597 599 }
598 600
599 601 #wpo_smush_images_information_wrapper .progress-bar {
600 - height: 25px;
601 - padding: 1px;
602 - width: 350px;
603 - margin: 10px auto;
604 - border-radius: 5px;
602 + height: 25px;
603 + padding: 1px;
604 + width: 350px;
605 + margin: 10px auto;
606 + border-radius: 5px;
605 607 }
606 608
607 609 #wpo_smush_images_information_wrapper .progress-bar span {
608 - display: inline-block;
609 - height: 100%;
610 - border-radius: 3px;
611 - box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
612 - transition: width .4s ease-in-out;
610 + display: inline-block;
611 + height: 100%;
612 + border-radius: 3px;
613 + box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
614 + transition: width 0.4s ease-in-out;
613 615 }
614 616
615 617 #wpo_smush_images_information_wrapper .orange span {
616 - background-color: #DF6927;
618 + background-color: #DF6927;
617 619 }
618 620
619 621 #wpo_smush_images_information_wrapper .stripes span {
620 - background-size: 30px;
621 - background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
622 - animation: animate-stripes 3s linear infinite;
622 + background-size: 30px;
623 + background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
624 + animation: animate-stripes 3s linear infinite;
623 625 }
624 626
625 627 /**
626 628 * Smush metabox
627 629 */
628 -
629 630 #smush-metabox-inside-wrapper {
630 - display: inline-table;
631 - width: 100%;
631 + display: inline-table;
632 + width: 100%;
632 633 }
633 634
634 635 #smush-metabox-inside-wrapper h4 {
635 - margin: 2px 0;
636 + margin: 2px 0;
636 637 }
637 638
638 639 #smush-metabox-inside-wrapper label {
639 - margin-top: 5px;
640 - clear: left;
641 - display: block;
640 + margin-top: 5px;
641 + clear: left;
642 + display: block;
642 643 }
643 644
644 645 #smush-metabox-inside-wrapper .wpo_smush_single_image {
645 - display: block;
646 + display: block;
646 647 }
647 648
648 649 #smush-metabox-inside-wrapper .wpo_smush_single_image.action_button {
649 - padding: 5px 0;
650 + padding: 5px 0;
650 651 }
651 652
652 653 #smush-metabox-inside-wrapper fieldset {
653 - margin: 10px 0;
654 + margin: 10px 0;
654 655 }
655 656
656 -#smush-metabox-inside-wrapper input[type="radio"] {
657 - margin: -4px 4px 0 0;
657 +#smush-metabox-inside-wrapper input[type=radio] {
658 + margin: -4px 4px 0 0;
658 659 }
659 660
660 661 #smush-metabox-inside-wrapper .alignleft {
661 - float: left;
662 + float: left;
662 663 }
663 664
664 665 #smush-metabox-inside-wrapper p#smush_info {
665 - margin: 20px auto;
666 - padding-top: 10px;
667 - clear: both;
666 + margin: 20px auto;
667 + padding-top: 10px;
668 + clear: both;
668 669 }
669 670
670 671 #smush-metabox-inside-wrapper .wpo-toggle-advanced-options {
671 - cursor: pointer;
672 - display: block;
673 - clear: both;
674 - margin-top: 10px;
675 - margin-bottom: 10px;
672 + cursor: pointer;
673 + display: block;
674 + clear: both;
675 + margin-top: 10px;
676 + margin-bottom: 10px;
676 677 }
677 678
678 679 #smush-metabox-inside-wrapper .wpo-toggle-advanced-options:not(.opened) ~ .wpo-advanced-options {
679 - display: none;
680 + display: none;
680 681 }
681 682
682 683 #smush-metabox-inside-wrapper .wpo-toggle-advanced-options.opened ~ .wpo-advanced-options {
683 - display: block !important;
684 + display: block !important;
684 685 }
685 686
686 -#smush-metabox-inside-wrapper .smush-options.custom_compression span {
687 - display: block;
688 - max-width: 30%;
689 - clear: both;
687 +#smush-metabox-inside-wrapper .smush-options.custom_compression span,
688 +.wpo-smush-compress-popup-content .smush-options.custom_compression span {
689 + display: block;
690 + max-width: 30%;
691 + clear: both;
690 692 }
691 693
692 -#smush-metabox-inside-wrapper input#custom_compression_slider {
693 - display: block;
694 - clear: both;
695 - width: 100%;
694 +#smush-metabox-inside-wrapper input#custom_compression_slider,
695 +.wpo-smush-compress-popup-content input#custom_compression_slider {
696 + display: block;
697 + clear: both;
698 + width: 100%;
696 699 }
697 700
698 -#smush-metabox-inside-wrapper .smush-options.custom_compression span.alignleft {
699 - float: left;
701 +#smush-metabox-inside-wrapper .smush-options.custom_compression span.alignleft,
702 +.wpo-smush-compress-popup-content .smush-options.custom_compression span.alignleft {
703 + float: left;
700 704 }
701 705
702 -#smush-metabox-inside-wrapper .smush-options.custom_compression span.alignright {
703 - float: right;
704 - text-align: right;
706 +#smush-metabox-inside-wrapper .smush-options.custom_compression span.alignright,
707 +.wpo-smush-compress-popup-content .smush-options.custom_compression span.alignright {
708 + float: right;
709 + text-align: right;
705 710 }
706 711
707 712 .smush-metabox-dashboard-link {
708 - clear: both;
709 - padding-top: 15px;
710 - text-align: right;
713 + clear: both;
714 + padding-top: 15px;
715 + text-align: right;
711 716 }
712 717
713 -.media-frame-content .attachment-compat .compat-item,
714 -.compat-field-wpo_compress_image {
715 - overflow: visible !important;
718 +.media-frame-content .attachment-compat .compat-item {
719 + overflow: visible !important;
716 720 }
717 721
718 -.compat-field-wpo_compress_image {
719 - border-top: 1px solid #DDD;
722 +/** Smush popup content **/
723 +.wpo-smush-compress-popup-content {
724 + text-align: left;
725 + padding: 20px;
720 726 }
721 727
722 -.compat-field-wpo_compress_image span.dashicons {
723 - text-align: left;
724 - float: none;
725 - min-height: 0;
726 - padding-top: 2px;
728 +.wpo-smush-compress-popup-content .wpo-toggle-advanced-options {
729 + margin-top: 20px;
727 730 }
728 731
729 -.compat-field-wpo_compress_image td.field {
730 - width: auto;
731 - float: none;
732 +.wpo-smush-compress-popup-content h3 {
733 + margin-top: 0;
734 + text-align: center;
732 735 }
733 736
734 -.compat-field-wpo_compress_image td.field [data-tooltip] {
735 - display: none;
737 +.wpo-smush-compress-popup-content h4 {
738 + margin-bottom: 5px;
739 + margin-top: 10px;
736 740 }
737 741
738 -.compat-field-wpo_compress_image th.label {
739 - text-align: left;
740 - min-width: 0;
741 - float: none;
742 - margin: 0;
742 +.wpo-smush-compress-popup-content .wpo-advanced-options {
743 + display: none;
743 744 }
744 745
745 -.compat-field-wpo_compress_image th.label label span {
746 - font-weight: 500;
747 - text-align: left;
746 +.wpo-smush-compress-popup-content .wpo-toggle-advanced-options.opened + .wpo-advanced-options {
747 + display: block;
748 748 }
749 749
750 +/* Smush Media Library column */
751 +.wpo-smush-media-library-column .wpo-smush-compress-popup-btn {
752 + margin-bottom: 5px;
753 +}
754 +
755 +.wpo-smush-media-library-column .wpo_restore_single_image {
756 + margin-bottom: 5px;
757 +}
758 +
750 759 /* fix for elementor restore button position */
751 760 .wpo_restore_single_image .alignright {
752 - float: right;
761 + float: right;
753 762 }
754 763
755 764 /**
756 765 * Force fix the modals
@@ -755,158 +764,76 @@
755 764 /**
756 765 * Force fix the modals
757 766 */
758 767 .blockUI.blockMsg.blockPage {
759 - z-index: 170000 !important;
760 - right: 0;
761 - left: 0 !important;
762 - margin-right: auto !important;
763 - margin-left: auto !important;
764 - max-width: 90%;
765 - cursor: default !important;
768 + z-index: 170000 !important;
769 + right: 0;
770 + left: 0 !important;
771 + margin-right: auto !important;
772 + margin-left: auto !important;
773 + max-width: 90%;
774 + cursor: default !important;
766 775 }
767 776
768 777 .blockUI.blockOverlay {
769 - cursor: default !important;
778 + cursor: default !important;
770 779 }
771 780
772 781 /**
773 782 * Tooltip Styles
774 783 */
775 -
776 -/* Add this attribute to the element that needs a tooltip */
777 -#smush-metabox-inside-wrapper [data-tooltip],
778 -.wpo-fieldgroup [data-tooltip] {
779 - position: relative;
780 - cursor: pointer;
781 - line-height: 18px;
784 +.ui-tooltip.ui-widget-content {
785 + background: #1D2327;
786 + color: #FFF;
787 + border-radius: 4px;
788 + padding: 6px 10px;
789 + font-size: 13px;
790 + max-width: 260px;
791 + line-height: 1.3;
792 + z-index: 999990;
793 + box-shadow: none;
782 794 }
783 795
784 -/* Hide the tooltip content by default */
785 -#smush-metabox-inside-wrapper [data-tooltip]:before,
786 -#smush-metabox-inside-wrapper [data-tooltip]:after,
787 -.wpo-fieldgroup [data-tooltip]:before,
788 -.wpo-fieldgroup [data-tooltip]:after {
789 - visibility: hidden;
790 - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
791 - filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=0);
792 - opacity: 0;
793 - pointer-events: none;
794 -}
795 -
796 -/* Position tooltip above the element */
797 -#smush-metabox-inside-wrapper [data-tooltip]:before,
798 -.wpo-fieldgroup [data-tooltip]:before {
799 - position: absolute;
800 - bottom: 150%;
801 - left: 50%;
802 - margin-bottom: 5px;
803 - margin-left: -140px;
804 - padding: 12px;
805 - width: 275px;
806 - z-index: 9999;
807 - border-radius: 3px;
808 - background-color: #000;
809 - background-color: hsla(0, 0%, 20%, 0.95);
810 - color: #FFF;
811 - content: attr(data-tooltip);
812 - text-align: center;
813 - font-size: .85rem;
814 - font-weight: 400;
815 - line-height: 1.4;
816 -}
817 -
818 -#smush-metabox-inside-wrapper [data-tooltip]:before {
819 - margin-left: -280px;
820 -}
821 -
822 -/* Triangle hack to make tooltip look like a speech bubble */
823 -#smush-metabox-inside-wrapper [data-tooltip]:after,
824 -.wpo-fieldgroup [data-tooltip]:after {
825 - position: absolute;
826 - bottom: 150%;
827 - left: 50%;
828 - margin-left: -5px;
829 - width: 0;
830 - border-top: 5px solid #000;
831 - border-top: 5px solid hsla(0, 0%, 20%, 0.9);
832 - border-right: 5px solid transparent;
833 - border-left: 5px solid transparent;
834 - content: " ";
835 - font-size: 0;
836 - line-height: 0;
837 -}
838 -
839 -/* Show tooltip content on hover */
840 -#smush-metabox-inside-wrapper [data-tooltip]:hover:before,
841 -#smush-metabox-inside-wrapper [data-tooltip]:hover:after,
842 -.wpo-fieldgroup [data-tooltip]:hover:before,
843 -.wpo-fieldgroup [data-tooltip]:hover:after,
844 -#smush-metabox-inside-wrapper [data-tooltip]:focus:before,
845 -#smush-metabox-inside-wrapper [data-tooltip]:focus:after,
846 -.wpo-fieldgroup [data-tooltip]:focus:before,
847 -.wpo-fieldgroup [data-tooltip]:focus:after {
848 - visibility: visible;
849 - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
850 - filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=100);
851 - opacity: 1;
852 -}
853 -
854 796 /**
855 797 * Animation needed for smush
856 798 */
857 -
858 799 @keyframes checkmark {
859 -
860 - 0% {
861 - height: 0;
862 - width: 0;
863 - opacity: 1;
864 - }
865 -
866 - 20% {
867 - height: 0;
868 - width: 12.5px;
869 - opacity: 1;
870 - }
871 -
872 - 40% {
873 - height: 25px;
874 - width: 12.5px;
875 - opacity: 1;
876 - }
877 -
878 - 100% {
879 - height: 25px;
880 - width: 12.5px;
881 - opacity: 1;
882 - }
883 -
800 + 0% {
801 + height: 0;
802 + width: 0;
803 + opacity: 1;
804 + }
805 + 20% {
806 + height: 0;
807 + width: 12.5px;
808 + opacity: 1;
809 + }
810 + 40% {
811 + height: 25px;
812 + width: 12.5px;
813 + opacity: 1;
814 + }
815 + 100% {
816 + height: 25px;
817 + width: 12.5px;
818 + opacity: 1;
819 + }
884 820 }
885 -
886 821 @keyframes animate-stripes {
887 -
888 - 0% {
889 - background-position: 0 0;
890 - }
891 -
892 - 100% {
893 - background-position: 60px 0;
894 - }
895 -
822 + 0% {
823 + background-position: 0 0;
824 + }
825 + 100% {
826 + background-position: 60px 0;
827 + }
896 828 }
897 -
898 829 @keyframes animate-stripes {
899 -
900 - 0% {
901 - background-position: 0 0;
902 - }
903 -
904 - 100% {
905 - background-position: 60px 0;
906 - }
907 -
830 + 0% {
831 + background-position: 0 0;
832 + }
833 + 100% {
834 + background-position: 60px 0;
835 + }
908 836 }
909 -
910 837 #wpo_smush_restore_all_compressed_images_btn + span > span {
911 - line-height: 28px;
912 -}
838 + line-height: 28px;
839 +}