PluginProbe
WebberZone Top 10 — Popular Posts / 4.4.0
WebberZone Top 10 — Popular Posts v4.4.0
4.5.1 4.5.0 4.4.3 4.4.2 4.4.1 4.4.0 4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 trunk 1.0 1.0.1 1.1 1.2 1.3 1.4 1.4.1 1.5 1.5.1 1.5.2 1.5.3 1.6 1.6.1 All 117 releases
top-10 / includes / admin / settings / css / admin-style.css

admin-style.css in WebberZone Top 10 — Popular Posts 4.4.0, at includes/admin/settings/css/admin-style.css

621 lines 11.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* General styles for the repeater wrapper */
2 .wz-repeater-wrapper {
3 position: relative;
4 margin-bottom: 1.5rem;
5 }
6
7 /* Repeater items container */
8 .wz-repeater-wrapper .wz-repeater-item {
9 display: flex;
10 flex-direction: column;
11 background: #f9f9f9;
12 border: 1px solid #ddd;
13 padding: 1rem;
14 margin-bottom: 1rem;
15 border-radius: 4px;
16 }
17
18 .wz-repeater-item .repeater-item-header {
19 display: flex;
20 justify-content: space-between;
21 align-items: center;
22 border-bottom: 1px solid #ddd;
23 padding-bottom: 0.5rem;
24 cursor: pointer;
25 font-weight: bold;
26 }
27
28 /* Header for repeater field */
29 .wz-repeater-field-header {
30 margin-bottom: 0.5rem;
31 }
32
33 .wz-repeater-field-label {
34 font-weight: bold;
35 font-size: 0.9rem;
36 }
37
38 /* Input field styles */
39 .wz-repeater-field-input {
40 margin-bottom: 1rem;
41 }
42
43 /* Repeater item actions (buttons) */
44 .repeater-item-actions {
45 display: flex;
46 gap: 0.5rem;
47 justify-content: flex-start;
48 margin-top: 1rem;
49 }
50
51 .repeater-item-actions .button {
52 display: inline-flex;
53 align-items: center;
54 gap: 0.25rem;
55 }
56
57 .repeater-item-actions .dashicons {
58 font-size: 16px;
59 }
60
61 /* Move up/down button styles */
62 .repeater-item-actions .move-up,
63 .repeater-item-actions .move-down {
64 background: #f4f4f4;
65 color: #333;
66 border: 1px solid #ddd;
67 border-radius: 3px;
68 padding: 0.5rem;
69 }
70
71 .repeater-item-actions .move-up:hover,
72 .repeater-item-actions .move-down:hover {
73 background: #e0e0e0;
74 }
75
76 /* Remove button styles */
77 .repeater-item-actions .remove-item {
78 background: #fdd;
79 border-color: #fbb;
80 }
81
82 .repeater-item-actions .remove-item:hover {
83 background: #fbb;
84 }
85
86 /* Add item button styling */
87 .wz-repeater-wrapper .add-item {
88 background-color: #0073aa;
89 color: #fff;
90 padding: 0.5rem 1rem;
91 border: none;
92 border-radius: 4px;
93 cursor: pointer;
94 font-size: 1rem;
95 margin-top: 1rem;
96 }
97
98 .wz-repeater-wrapper .add-item:hover {
99 background-color: #005177;
100 color: #fff;
101 border-color: #004063;
102 }
103
104 /* Template styling for new items (hidden template) */
105 .repeater-template {
106 display: none;
107 }
108
109 /* Responsiveness for smaller screens */
110 @media screen and (max-width: 768px) {
111 .wz-repeater-wrapper {
112 margin-bottom: 1rem;
113 }
114
115 .wz-repeater-item {
116 flex-direction: column;
117 }
118
119 .repeater-item-actions {
120 flex-direction: column;
121 align-items: flex-start;
122 }
123
124 .repeater-item-actions .button {
125 margin-bottom: 0.5rem;
126 }
127 }
128
129 /* Field input responsive tweaks */
130 @media screen and (max-width: 480px) {
131 .wz-repeater-field-label {
132 font-size: 0.85rem;
133 }
134
135 .wz-repeater-field-input {
136 font-size: 0.85rem;
137 }
138
139 .repeater-item-actions .button {
140 font-size: 0.85rem;
141 }
142
143 .add-item {
144 font-size: 1rem;
145 padding: 0.5rem;
146 }
147 }
148
149 /* Repeater Fields */
150 .wz-repeater-item {
151 background: #fff;
152 border: 1px solid #ccd0d4;
153 box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
154 margin-bottom: 15px;
155 border-radius: 3px;
156 }
157
158 .repeater-item-content {
159 padding: 15px;
160 }
161
162 .wz-repeater-field {
163 margin-bottom: 15px;
164 }
165
166 .wz-repeater-field:last-child {
167 margin-bottom: 0;
168 }
169
170 .wz-repeater-field-header {
171 margin-bottom: 8px;
172 }
173
174 .wz-repeater-field-label {
175 display: block;
176 font-weight: 600;
177 margin-bottom: 4px;
178 }
179
180 .wz-repeater-field-description {
181 color: #666;
182 font-style: italic;
183 margin: 4px 0 0;
184 font-size: 13px;
185 }
186
187 .wz-repeater-field-input input[type="text"],
188 .wz-repeater-field-input input[type="url"],
189 .wz-repeater-field-input input[type="number"],
190 .wz-repeater-field-input input[type="password"],
191 .wz-repeater-field-input input[type="email"],
192 .wz-repeater-field-input textarea,
193 .wz-repeater-field-input select {
194 width: 100%;
195 max-width: 100%;
196 }
197
198 .repeater-item-footer {
199 background: #f5f5f5;
200 border-top: 1px solid #ddd;
201 padding: 10px 15px;
202 text-align: right;
203 }
204
205 .repeater-item-footer .remove-item {
206 color: #b32d2e;
207 }
208
209 .repeater-item-footer .remove-item:hover {
210 color: #dc3232;
211 }
212
213 .repeater-item-footer .dashicons {
214 margin-top: 4px;
215 }
216
217 /* Required field indicator */
218 .required {
219 color: #d63638;
220 font-weight: bold;
221 margin-left: 2px;
222 font-size: 1.3em;
223 }
224
225 /* Tom Select Customizations */
226 .ts-wrapper.loading .spinner {
227 display: inline-block;
228 visibility: visible;
229 float: none;
230 margin: 5px auto;
231 }
232
233 .ts-wrapper .no-results {
234 padding: 5px 10px;
235 color: #666;
236 font-style: italic;
237 }
238
239 .ts-wrapper.form-control {
240 border: 1px solid #8c8f94;
241 border-radius: 4px;
242 min-height: 30px;
243 }
244
245 .ts-wrapper.focus {
246 border-color: #2271b1;
247 box-shadow: 0 0 0 1px #2271b1;
248 outline: 2px solid transparent;
249 }
250
251 .ts-dropdown {
252 border: 1px solid #8c8f94;
253 border-radius: 4px;
254 box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
255 }
256
257 .ts-dropdown .option {
258 padding: 6px 10px;
259 }
260
261 .ts-dropdown .active {
262 background-color: #2271b1;
263 color: #fff;
264 }
265
266 .ts-wrapper.single.plugin-clear_button {
267 position: relative;
268 }
269
270 .ts-wrapper.single .clear-button {
271 position: absolute;
272 top: 50%;
273 right: 8px;
274 transform: translateY(-50%);
275 font-size: 2em;
276 }
277 /* Toggle switch field type. */
278 .wz-toggle {
279 position: relative;
280 display: inline-block;
281 width: 40px;
282 height: 22px;
283 vertical-align: middle;
284 }
285
286 .wz-toggle input[type="checkbox"] {
287 position: absolute;
288 opacity: 0;
289 width: 100%;
290 height: 100%;
291 margin: 0;
292 cursor: pointer;
293 }
294
295 .wz-toggle .wz-toggle-slider {
296 position: absolute;
297 inset: 0;
298 background-color: #8c8f94;
299 border-radius: 11px;
300 transition: background-color 0.2s ease;
301 pointer-events: none;
302 }
303
304 .wz-toggle .wz-toggle-slider::before {
305 content: "";
306 position: absolute;
307 top: 2px;
308 left: 2px;
309 width: 18px;
310 height: 18px;
311 background-color: #fff;
312 border-radius: 50%;
313 transition: transform 0.2s ease;
314 }
315
316 .wz-toggle input[type="checkbox"]:checked + .wz-toggle-slider {
317 background-color: #2271b1;
318 }
319
320 .wz-toggle input[type="checkbox"]:checked + .wz-toggle-slider::before {
321 transform: translateX(18px);
322 }
323
324 .wz-toggle input[type="checkbox"]:focus-visible + .wz-toggle-slider {
325 outline: 2px solid #2271b1;
326 outline-offset: 2px;
327 }
328
329 .wz-toggle input[type="checkbox"]:disabled {
330 cursor: not-allowed;
331 }
332
333 .wz-toggle input[type="checkbox"]:disabled + .wz-toggle-slider {
334 opacity: 0.5;
335 }
336
337 /* Vertical settings tabs. */
338 .wz-vertical-tabs {
339 display: flex;
340 align-items: flex-start;
341 gap: 24px;
342 }
343
344 .wz-vertical-tabs > ul.nav-tab-wrapper {
345 flex: 0 0 auto;
346 width: fit-content;
347 min-width: 160px;
348 max-width: 260px;
349 display: flex;
350 flex-direction: column;
351 gap: 2px;
352 align-self: flex-start;
353 margin: 0;
354 padding: 8px;
355 background: #fff;
356 border: 1px solid #c3c4c7;
357 border-radius: 4px;
358 box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
359 position: sticky;
360 top: 46px;
361 }
362
363 .wz-vertical-tabs > ul.nav-tab-wrapper li {
364 margin: 0;
365 padding: 0;
366 border: 0;
367 background: transparent;
368 list-style: none;
369 }
370
371 .wz-vertical-tabs > ul.nav-tab-wrapper .nav-tab {
372 display: block;
373 float: none;
374 margin: 0;
375 padding: 8px 12px;
376 border: none;
377 border-radius: 3px;
378 background: transparent;
379 color: #2c3338;
380 font-weight: 500;
381 transition: background-color 0.15s ease, color 0.15s ease;
382 }
383
384 .wz-vertical-tabs > ul.nav-tab-wrapper .nav-tab:hover {
385 background-color: #f0f0f1;
386 color: #2271b1;
387 box-shadow: none;
388 }
389
390 .wz-vertical-tabs > ul.nav-tab-wrapper .nav-tab:focus-visible {
391 outline: 2px solid #2271b1;
392 outline-offset: -2px;
393 box-shadow: none;
394 }
395
396 .wz-vertical-tabs > ul.nav-tab-wrapper .nav-tab-active,
397 .wz-vertical-tabs > ul.nav-tab-wrapper .nav-tab-active:hover,
398 .wz-vertical-tabs > ul.nav-tab-wrapper .nav-tab-active:focus {
399 background-color: #2271b1;
400 color: #fff;
401 }
402
403 .wz-vertical-tabs > form {
404 flex: 1;
405 min-width: 0;
406 margin-top: 0;
407 }
408
409 /* Keep the CodeMirror CSS editor within its column on narrow screens. */
410 .wz-vertical-tabs .CodeMirror {
411 max-width: 100%;
412 }
413
414 /* Horizontal tabs on small screens (WP admin breakpoint); pills keep their style. */
415 @media screen and (max-width: 782px) {
416 .wz-vertical-tabs {
417 display: block;
418 }
419
420 .wz-vertical-tabs > ul.nav-tab-wrapper {
421 flex-direction: row;
422 flex-wrap: wrap;
423 width: auto;
424 max-width: none;
425 position: static;
426 margin-bottom: 16px;
427 }
428
429 .wz-vertical-tabs > ul.nav-tab-wrapper .wz-settings-search-wrap {
430 flex: 1 1 100%;
431 }
432 }
433
434 /* Settings search. */
435 .wz-vertical-tabs > ul.nav-tab-wrapper .wz-settings-search-wrap {
436 margin: 0 0 8px;
437 padding: 0;
438 }
439
440 .wz-settings-search-box {
441 position: relative;
442 display: block;
443 }
444
445 .wz-settings-search {
446 width: 100%;
447 margin: 0;
448 padding: 4px 28px 4px 8px;
449 border: 1px solid #8c8f94;
450 border-radius: 3px;
451 font-size: 13px;
452 line-height: 1.6;
453 }
454
455 .wz-settings-search:focus {
456 border-color: #2271b1;
457 box-shadow: 0 0 0 1px #2271b1;
458 outline: none;
459 }
460
461 /* Hide the native WebKit clear control; the plugin renders its own clear button. */
462 .wz-settings-search::-webkit-search-cancel-button {
463 -webkit-appearance: none;
464 appearance: none;
465 }
466
467 .wz-settings-search-clear {
468 position: absolute;
469 top: 50%;
470 right: 4px;
471 transform: translateY(-50%);
472 margin: 0;
473 padding: 0 6px;
474 border: 0;
475 border-radius: 2px;
476 background: transparent;
477 color: #646970;
478 cursor: pointer;
479 font-size: 18px;
480 line-height: 1.2;
481 }
482
483 .wz-settings-search-clear:hover {
484 color: #d63638;
485 }
486
487 .wz-settings-search-clear:focus-visible {
488 outline: 2px solid #2271b1;
489 outline-offset: 1px;
490 }
491
492 .wz-settings-search-clear[hidden] {
493 display: none;
494 }
495
496 /* Rows filtered out by the search. */
497 .wz-search-hidden {
498 display: none !important;
499 }
500
501 /* While searching, show every tab panel that has matches and hide the rest. */
502 .wz-vertical-tabs.wz-searching > form > div {
503 display: none !important;
504 }
505
506 .wz-vertical-tabs.wz-searching > form > div.wz-has-matches {
507 display: block !important;
508 margin-bottom: 24px;
509 }
510
511 /* Hide the per-tab button rows and legends while searching; a single save bar is shown instead. */
512 .wz-vertical-tabs.wz-searching > form > div.wz-has-matches > p {
513 display: none;
514 }
515
516 .wz-vertical-tabs.wz-searching > form > div.wz-has-matches > table.form-table {
517 margin-top: 0;
518 }
519
520 /* Per-tab section title: hidden normally, shown while searching to identify each group of results. */
521 .wz-section-title {
522 display: none;
523 }
524
525 .wz-vertical-tabs.wz-searching .wz-section-title {
526 display: block;
527 margin: 0;
528 padding: 6px 10px;
529 background: #f0f0f1;
530 border-left: 4px solid #2271b1;
531 color: #50575e;
532 font-size: 13px;
533 font-weight: 600;
534 text-transform: uppercase;
535 letter-spacing: 0.5px;
536 }
537
538 /* Single sticky save bar shown while search results are displayed. */
539 .wz-search-actions {
540 position: sticky;
541 bottom: 0;
542 margin: 0;
543 padding: 12px 0;
544 background: linear-gradient(to bottom, rgba(240, 240, 241, 0), #f0f0f1 40%);
545 }
546
547 /* Match-count badge on the navigation tabs. */
548 .wz-tab-count {
549 display: inline-block;
550 margin-left: 6px;
551 padding: 0 6px;
552 border-radius: 9px;
553 background-color: #2271b1;
554 color: #fff;
555 font-size: 11px;
556 line-height: 18px;
557 vertical-align: middle;
558 }
559
560 .wz-vertical-tabs > ul.nav-tab-wrapper .nav-tab-active .wz-tab-count {
561 background-color: #fff;
562 color: #2271b1;
563 }
564
565 .wz-vertical-tabs > ul.nav-tab-wrapper .wz-tab-no-matches {
566 opacity: 0.45;
567 }
568
569 /* Highlighted search term in row labels. */
570 mark.wz-search-mark {
571 padding: 0;
572 background-color: #fff3ad;
573 color: inherit;
574 }
575
576 /* No results message. */
577 .wz-search-no-results {
578 margin: 16px 0;
579 padding: 12px;
580 background: #fff;
581 border-left: 4px solid #dba617;
582 box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
583 }
584
585 /* Modified-from-default indicator. */
586 .wz-modified-dot {
587 display: inline-block;
588 width: 8px;
589 height: 8px;
590 margin: 0 6px 0 2px;
591 border-radius: 50%;
592 background-color: #dba617;
593 vertical-align: middle;
594 }
595
596 .wz-modified-legend {
597 margin-top: 4px;
598 color: #646970;
599 font-size: 12px;
600 }
601
602 .wz-modified-legend .wz-modified-dot {
603 margin-left: 0;
604 }
605
606 /* Hide the legend on tabs where nothing is modified. */
607 form > div:not(:has(.form-table .wz-modified-dot)) .wz-modified-legend {
608 display: none;
609 }
610
611 /* Default value note below field descriptions. */
612 .wz-default-value {
613 color: #646970;
614 font-size: 12px;
615 }
616
617 .wz-default-value code {
618 font-size: 11px;
619 padding: 1px 5px;
620 }
621