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 -535 3.2.5 → 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,744 +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;
411 - margin-bottom: 20px;
410 + display: inline-block;
411 + margin-bottom: 20px;
412 412 }
413 413
414 414 .wpo-fieldgroup .button.wpo-toggle-advanced-options.opened::before {
415 - content: '';
416 - border-top: 1px solid #CCC;
417 - width: 100%;
418 - position: absolute;
419 - top: 16px;
420 - left: 0;
415 + content: "";
416 + border-top: 1px solid #CCC;
417 + width: 100%;
418 + position: absolute;
419 + top: 16px;
420 + left: 0;
421 421 }
422 422
423 423 .wpo-fieldgroup .button.wpo-toggle-advanced-options.opened span.dashicons {
424 - transform: rotate(180deg);
424 + transform: rotate(180deg);
425 425 }
426 426
427 +.wp-version-7 .wpo-fieldgroup .button.wpo-toggle-advanced-options.opened span.dashicons {
428 + top: 4px;
429 +}
430 +
427 431 .wpo-fieldgroup .wpo-advanced-options {
428 - display: none;
432 + display: none;
429 433 }
430 434
431 435 .wpo-advanced-options > fieldset:first-child {
432 - margin-top: 10px;
436 + margin-top: 10px;
433 437 }
434 438
435 439 .wpo-fieldgroup .button.wpo-toggle-advanced-options.opened + .wpo-advanced-options {
436 - display: block;
440 + display: block;
437 441 }
438 442
439 443 .wpo_smush_image:focus-within label {
440 - box-shadow: 0 0 4px #0272AA;
444 + box-shadow: 0 0 4px #0272AA;
441 445 }
442 446
443 447 .wpo_smush_image .wpo_smush_image__input:checked + label {
444 - border-color: #0272AA;
448 + border-color: #0272AA;
445 449 }
446 450
447 -.uncompressed-images input[type="checkbox"] {
448 - position: absolute;
449 - opacity: 0;
450 - width: 0;
451 - height: 0;
451 +.uncompressed-images input[type=checkbox] {
452 + position: absolute;
453 + opacity: 0;
454 + width: 0;
455 + height: 0;
452 456 }
453 457
454 458 .uncompressed-images small.red {
455 - clear: both;
456 - display: block;
457 - margin: 5px;
459 + clear: both;
460 + display: block;
461 + margin: 5px;
458 462 }
459 463
460 464 .smush-actions .wpo_primary_small {
461 - display: inline-block;
462 - margin: 5px;
465 + display: inline-block;
466 + margin: 5px;
463 467 }
464 468
465 469 .smush-actions {
466 - display: inline-block;
467 - width: 100%;
468 - margin: 10px 0;
470 + display: inline-block;
471 + width: 100%;
472 + margin: 10px 0;
469 473 }
470 474
471 475 .smush-actions .dashicons.dashicons-yes {
472 - font-size: 15px;
473 - margin: 0 5px;
476 + font-size: 15px;
477 + margin: 0 5px;
474 478 }
475 479
476 480 .smush-actions img {
477 - max-height: 25px;
478 - max-width: 25px;
481 + max-height: 25px;
482 + max-width: 25px;
479 483 }
480 484
481 485 /**
482 486 * Log and panels
483 487 */
484 -
485 488 #smush-log-modal {
486 - width: 100%;
487 - height: 100%;
489 + width: 100%;
490 + height: 100%;
488 491 }
489 492
490 493 #log-panel {
491 - height: 80%;
492 - overflow: scroll;
493 - margin: 2%;
494 + height: 80%;
495 + overflow: scroll;
496 + margin: 2%;
494 497 }
495 498
496 499 #log-panel pre {
497 - text-align: left;
498 - overflow: auto;
499 - height: 100%;
500 - background: gainsboro;
500 + text-align: left;
501 + overflow: auto;
502 + height: 100%;
503 + background: gainsboro;
501 504 }
502 505
503 506 .smush-information {
504 - margin-bottom: 10px;
507 + margin-bottom: 10px;
505 508 }
506 509
507 510 /**
508 511 * Smush modal progress box & related styling
509 512 */
510 -
511 513 #smush_stats {
512 - text-align: center;
513 - margin: 0 auto;
514 - padding: 2%;
515 - min-width: 350px;
516 - font-size: larger;
514 + text-align: center;
515 + margin: 0 auto;
516 + padding: 2%;
517 + min-width: 350px;
518 + font-size: larger;
517 519 }
518 520
519 521 #smush_stats .wpo_smush_stats_cta_btn {
520 - clear: both;
521 - display: block;
522 - text-align: center;
522 + clear: both;
523 + display: block;
524 + text-align: center;
523 525 }
524 526
525 527 #smush_stats .smush_stats_row td:first-child {
526 - text-align: left;
528 + text-align: left;
527 529 }
528 530
529 531 #smush_stats tr.smush_stats_row td:last-child {
530 - text-align: right;
532 + text-align: right;
531 533 }
532 534
533 535 #smush_stats #wpo_smush_images_information_container p {
534 - padding: 10px;
536 + padding: 10px;
535 537 }
536 538
537 539 #smush-complete-summary .checkmark-circle {
538 - width: 50px;
539 - height: 50px;
540 - position: relative;
541 - display: inline-block;
542 - vertical-align: top;
540 + width: 50px;
541 + height: 50px;
542 + position: relative;
543 + display: inline-block;
544 + vertical-align: top;
543 545 }
544 546
545 547 #smush-complete-summary .checkmark-circle .background {
546 - width: 50px;
547 - height: 50px;
548 - border-radius: 50%;
549 - background: #DF6927;
550 - position: absolute;
548 + width: 50px;
549 + height: 50px;
550 + border-radius: 50%;
551 + background: #DF6927;
552 + position: absolute;
551 553 }
552 554
553 555 #smush-complete-summary .checkmark-circle .checkmark {
554 - border-radius: 5px;
556 + border-radius: 5px;
555 557 }
556 558
557 559 #smush-complete-summary .checkmark-circle .checkmark.draw:after {
558 - animation-delay: 100ms;
559 - animation-duration: 1s;
560 - animation-timing-function: ease;
561 - animation-name: checkmark;
562 - transform: scalex(-1) rotate(135deg);
563 - 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;
564 566 }
565 567
566 568 #smush-complete-summary .checkmark-circle .checkmark:after {
567 - opacity: 1;
568 - height: 25px;
569 - width: 12.5px;
570 - transform-origin: left top;
571 - border-right: 5px solid white;
572 - border-top: 5px solid white;
573 - border-radius: 2.5px !important;
574 - content: '';
575 - left: 8.3333333333px;
576 - top: 25px;
577 - 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;
578 580 }
579 581
580 582 #smush_stats .wpo_primary_small {
581 - text-align: center;
583 + text-align: center;
582 584 }
583 585
584 586 #smush-complete-summary #summary-message {
585 - margin: 15px auto;
587 + padding: 15px;
586 588 }
587 589
588 590 img#wpo_smush_images_clear_stats_spinner {
589 - width: 20px;
590 - line-height: 1;
591 - vertical-align: middle;
591 + width: 20px;
592 + line-height: 1;
593 + vertical-align: middle;
592 594 }
593 595
594 596 /* Animated progress bar */
595 -
596 597 #wpo_smush_images_information_container {
597 - padding: 10px;
598 + padding: 10px;
598 599 }
599 600
600 601 #wpo_smush_images_information_wrapper .progress-bar {
601 - height: 25px;
602 - padding: 1px;
603 - width: 350px;
604 - margin: 10px auto;
605 - border-radius: 5px;
602 + height: 25px;
603 + padding: 1px;
604 + width: 350px;
605 + margin: 10px auto;
606 + border-radius: 5px;
606 607 }
607 608
608 609 #wpo_smush_images_information_wrapper .progress-bar span {
609 - display: inline-block;
610 - height: 100%;
611 - border-radius: 3px;
612 - box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
613 - 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;
614 615 }
615 616
616 617 #wpo_smush_images_information_wrapper .orange span {
617 - background-color: #DF6927;
618 + background-color: #DF6927;
618 619 }
619 620
620 621 #wpo_smush_images_information_wrapper .stripes span {
621 - background-size: 30px;
622 - 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);
623 - 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;
624 625 }
625 626
626 627 /**
627 628 * Smush metabox
628 629 */
629 -
630 630 #smush-metabox-inside-wrapper {
631 - display: inline-table;
632 - width: 100%;
631 + display: inline-table;
632 + width: 100%;
633 633 }
634 634
635 635 #smush-metabox-inside-wrapper h4 {
636 - margin: 2px 0;
636 + margin: 2px 0;
637 637 }
638 638
639 639 #smush-metabox-inside-wrapper label {
640 - margin-top: 5px;
641 - clear: left;
642 - display: block;
640 + margin-top: 5px;
641 + clear: left;
642 + display: block;
643 643 }
644 644
645 645 #smush-metabox-inside-wrapper .wpo_smush_single_image {
646 - display: block;
646 + display: block;
647 647 }
648 648
649 649 #smush-metabox-inside-wrapper .wpo_smush_single_image.action_button {
650 - padding: 5px 0;
650 + padding: 5px 0;
651 651 }
652 652
653 653 #smush-metabox-inside-wrapper fieldset {
654 - margin: 10px 0;
654 + margin: 10px 0;
655 655 }
656 656
657 -#smush-metabox-inside-wrapper input[type="radio"] {
658 - margin: -4px 4px 0 0;
657 +#smush-metabox-inside-wrapper input[type=radio] {
658 + margin: -4px 4px 0 0;
659 659 }
660 660
661 661 #smush-metabox-inside-wrapper .alignleft {
662 - float: left;
662 + float: left;
663 663 }
664 664
665 665 #smush-metabox-inside-wrapper p#smush_info {
666 - margin: 20px auto;
667 - padding-top: 10px;
668 - clear: both;
666 + margin: 20px auto;
667 + padding-top: 10px;
668 + clear: both;
669 669 }
670 670
671 671 #smush-metabox-inside-wrapper .wpo-toggle-advanced-options {
672 - cursor: pointer;
673 - display: block;
674 - clear: both;
675 - margin-top: 10px;
676 - margin-bottom: 10px;
672 + cursor: pointer;
673 + display: block;
674 + clear: both;
675 + margin-top: 10px;
676 + margin-bottom: 10px;
677 677 }
678 678
679 679 #smush-metabox-inside-wrapper .wpo-toggle-advanced-options:not(.opened) ~ .wpo-advanced-options {
680 - display: none;
680 + display: none;
681 681 }
682 682
683 683 #smush-metabox-inside-wrapper .wpo-toggle-advanced-options.opened ~ .wpo-advanced-options {
684 - display: block !important;
684 + display: block !important;
685 685 }
686 686
687 -#smush-metabox-inside-wrapper .smush-options.custom_compression span {
688 - display: block;
689 - max-width: 30%;
690 - 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;
691 692 }
692 693
693 -#smush-metabox-inside-wrapper input#custom_compression_slider {
694 - display: block;
695 - clear: both;
696 - 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%;
697 699 }
698 700
699 -#smush-metabox-inside-wrapper .smush-options.custom_compression span.alignleft {
700 - 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;
701 704 }
702 705
703 -#smush-metabox-inside-wrapper .smush-options.custom_compression span.alignright {
704 - float: right;
705 - 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;
706 710 }
707 711
708 712 .smush-metabox-dashboard-link {
709 - clear: both;
710 - padding-top: 15px;
711 - text-align: right;
713 + clear: both;
714 + padding-top: 15px;
715 + text-align: right;
712 716 }
713 717
714 -.media-frame-content .attachment-compat .compat-item,
715 -.compat-field-wpo_compress_image {
716 - overflow: visible !important;
718 +.media-frame-content .attachment-compat .compat-item {
719 + overflow: visible !important;
717 720 }
718 721
719 -.compat-field-wpo_compress_image {
720 - border-top: 1px solid #DDD;
722 +/** Smush popup content **/
723 +.wpo-smush-compress-popup-content {
724 + text-align: left;
725 + padding: 20px;
721 726 }
722 727
723 -.compat-field-wpo_compress_image span.dashicons {
724 - text-align: left;
725 - float: none;
726 - min-height: 0;
727 - padding-top: 2px;
728 +.wpo-smush-compress-popup-content .wpo-toggle-advanced-options {
729 + margin-top: 20px;
728 730 }
729 731
730 -.compat-field-wpo_compress_image td.field {
731 - width: auto;
732 - float: none;
732 +.wpo-smush-compress-popup-content h3 {
733 + margin-top: 0;
734 + text-align: center;
733 735 }
734 736
735 -.compat-field-wpo_compress_image td.field [data-tooltip] {
736 - display: none;
737 +.wpo-smush-compress-popup-content h4 {
738 + margin-bottom: 5px;
739 + margin-top: 10px;
737 740 }
738 741
739 -.compat-field-wpo_compress_image th.label {
740 - text-align: left;
741 - min-width: 0;
742 - float: none;
743 - margin: 0;
742 +.wpo-smush-compress-popup-content .wpo-advanced-options {
743 + display: none;
744 744 }
745 745
746 -.compat-field-wpo_compress_image th.label label span {
747 - font-weight: 500;
748 - text-align: left;
746 +.wpo-smush-compress-popup-content .wpo-toggle-advanced-options.opened + .wpo-advanced-options {
747 + display: block;
749 748 }
750 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 +
751 759 /* fix for elementor restore button position */
752 760 .wpo_restore_single_image .alignright {
753 - float: right;
761 + float: right;
754 762 }
755 763
756 764 /**
757 765 * Force fix the modals
@@ -756,158 +764,76 @@
756 764 /**
757 765 * Force fix the modals
758 766 */
759 767 .blockUI.blockMsg.blockPage {
760 - z-index: 170000 !important;
761 - right: 0;
762 - left: 0 !important;
763 - margin-right: auto !important;
764 - margin-left: auto !important;
765 - max-width: 90%;
766 - 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;
767 775 }
768 776
769 777 .blockUI.blockOverlay {
770 - cursor: default !important;
778 + cursor: default !important;
771 779 }
772 780
773 781 /**
774 782 * Tooltip Styles
775 783 */
776 -
777 -/* Add this attribute to the element that needs a tooltip */
778 -#smush-metabox-inside-wrapper [data-tooltip],
779 -.wpo-fieldgroup [data-tooltip] {
780 - position: relative;
781 - cursor: pointer;
782 - 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;
783 794 }
784 795
785 -/* Hide the tooltip content by default */
786 -#smush-metabox-inside-wrapper [data-tooltip]:before,
787 -#smush-metabox-inside-wrapper [data-tooltip]:after,
788 -.wpo-fieldgroup [data-tooltip]:before,
789 -.wpo-fieldgroup [data-tooltip]:after {
790 - visibility: hidden;
791 - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
792 - filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=0);
793 - opacity: 0;
794 - pointer-events: none;
795 -}
796 -
797 -/* Position tooltip above the element */
798 -#smush-metabox-inside-wrapper [data-tooltip]:before,
799 -.wpo-fieldgroup [data-tooltip]:before {
800 - position: absolute;
801 - bottom: 150%;
802 - left: 50%;
803 - margin-bottom: 5px;
804 - margin-left: -140px;
805 - padding: 12px;
806 - width: 275px;
807 - z-index: 9999;
808 - border-radius: 3px;
809 - background-color: #000;
810 - background-color: hsla(0, 0%, 20%, 0.95);
811 - color: #FFF;
812 - content: attr(data-tooltip);
813 - text-align: center;
814 - font-size: .85rem;
815 - font-weight: 400;
816 - line-height: 1.4;
817 -}
818 -
819 -#smush-metabox-inside-wrapper [data-tooltip]:before {
820 - margin-left: -280px;
821 -}
822 -
823 -/* Triangle hack to make tooltip look like a speech bubble */
824 -#smush-metabox-inside-wrapper [data-tooltip]:after,
825 -.wpo-fieldgroup [data-tooltip]:after {
826 - position: absolute;
827 - bottom: 150%;
828 - left: 50%;
829 - margin-left: -5px;
830 - width: 0;
831 - border-top: 5px solid #000;
832 - border-top: 5px solid hsla(0, 0%, 20%, 0.9);
833 - border-right: 5px solid transparent;
834 - border-left: 5px solid transparent;
835 - content: " ";
836 - font-size: 0;
837 - line-height: 0;
838 -}
839 -
840 -/* Show tooltip content on hover */
841 -#smush-metabox-inside-wrapper [data-tooltip]:hover:before,
842 -#smush-metabox-inside-wrapper [data-tooltip]:hover:after,
843 -.wpo-fieldgroup [data-tooltip]:hover:before,
844 -.wpo-fieldgroup [data-tooltip]:hover:after,
845 -#smush-metabox-inside-wrapper [data-tooltip]:focus:before,
846 -#smush-metabox-inside-wrapper [data-tooltip]:focus:after,
847 -.wpo-fieldgroup [data-tooltip]:focus:before,
848 -.wpo-fieldgroup [data-tooltip]:focus:after {
849 - visibility: visible;
850 - -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
851 - filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=100);
852 - opacity: 1;
853 -}
854 -
855 796 /**
856 797 * Animation needed for smush
857 798 */
858 -
859 799 @keyframes checkmark {
860 -
861 - 0% {
862 - height: 0;
863 - width: 0;
864 - opacity: 1;
865 - }
866 -
867 - 20% {
868 - height: 0;
869 - width: 12.5px;
870 - opacity: 1;
871 - }
872 -
873 - 40% {
874 - height: 25px;
875 - width: 12.5px;
876 - opacity: 1;
877 - }
878 -
879 - 100% {
880 - height: 25px;
881 - width: 12.5px;
882 - opacity: 1;
883 - }
884 -
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 + }
885 820 }
886 -
887 821 @keyframes animate-stripes {
888 -
889 - 0% {
890 - background-position: 0 0;
891 - }
892 -
893 - 100% {
894 - background-position: 60px 0;
895 - }
896 -
822 + 0% {
823 + background-position: 0 0;
824 + }
825 + 100% {
826 + background-position: 60px 0;
827 + }
897 828 }
898 -
899 829 @keyframes animate-stripes {
900 -
901 - 0% {
902 - background-position: 0 0;
903 - }
904 -
905 - 100% {
906 - background-position: 60px 0;
907 - }
908 -
830 + 0% {
831 + background-position: 0 0;
832 + }
833 + 100% {
834 + background-position: 60px 0;
835 + }
909 836 }
910 -
911 837 #wpo_smush_restore_all_compressed_images_btn + span > span {
912 - line-height: 28px;
913 -}
838 + line-height: 28px;
839 +}