PluginProbe
WebberZone Top 10 — Popular Posts / 4.3.4
WebberZone Top 10 — Popular Posts v4.3.4
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 / frontend / css / left-thumbs.css

left-thumbs.css in WebberZone Top 10 — Popular Posts 4.3.4, at includes/frontend/css/left-thumbs.css

110 lines 2.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Top Posts Left Thumbs Styles
3 * Modern flexbox layout with clean styling.
4 */
5
6 .tptn-left-thumbs {
7 /* Custom properties for easy theming. */
8 --tptn-gap: 0.625rem;
9 --tptn-border-radius: 8px;
10 --tptn-thumb-frame-padding: 0.25rem;
11 --tptn-thumb-frame-border-width: 1px;
12 --tptn-thumb-border: #ccc;
13 --tptn-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
14 --tptn-shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.2);
15 --tptn-transition: 0.2s ease;
16 }
17
18 .tptn-left-thumbs ul {
19 margin: 0 !important;
20 padding: 0 !important;
21 list-style: none;
22 }
23
24 .tptn-left-thumbs ul li {
25 display: flex;
26 flex-wrap: wrap;
27 gap: var(--tptn-gap);
28 align-items: flex-start;
29 margin-bottom: 1.25rem;
30 padding: 0 !important;
31 background: none;
32 list-style: none;
33 }
34
35 .tptn-left-thumbs li > a.tptn_link {
36 display: block;
37 flex: 0 0 auto;
38 align-self: flex-start;
39 width: min(var(--tptn-thumb-width, 9999px), 100%);
40 max-width: 100%;
41 padding: var(--tptn-thumb-frame-padding);
42 border-width: var(--tptn-thumb-frame-border-width);
43 border-style: solid;
44 border-color: var(--tptn-thumb-border);
45 border-radius: var(--tptn-border-radius);
46 box-shadow: var(--tptn-shadow);
47 transition: transform var(--tptn-transition), box-shadow var(--tptn-transition);
48 will-change: transform;
49 }
50
51 .tptn-left-thumbs ul li:last-child {
52 margin-bottom: 0;
53 }
54
55 .tptn-left-thumbs ul li:hover > a.tptn_link {
56 transform: scale(1.03);
57 box-shadow: var(--tptn-shadow-hover);
58 }
59
60 .tptn-left-thumbs img.tptn_thumb {
61 width: min(var(--tptn-thumb-width, 9999px), 100%);
62 height: var(--tptn-thumb-height, auto);
63 max-width: 100%;
64 max-height: var(--tptn-thumb-height, none);
65 display: block;
66 object-fit: cover;
67 aspect-ratio: var(--tptn-thumb-aspect-ratio, auto);
68 border-radius: calc(var(--tptn-border-radius) * 0.6);
69 }
70
71 .tptn-left-thumbs .tptn_after_thumb {
72 flex: 1 1 12rem;
73 min-width: 0;
74 }
75
76 .tptn-left-thumbs a.tptn_link {
77 text-decoration: none;
78 }
79
80 .tptn-left-thumbs .tptn_title {
81 display: block;
82 margin-bottom: 0.375rem;
83 font-weight: 600;
84 line-height: 1.3;
85 text-decoration: none;
86 }
87
88 .tptn-left-thumbs a.tptn_link:hover .tptn_title {
89 text-decoration: underline;
90 }
91
92 .tptn-left-thumbs .tptn_excerpt {
93 display: block;
94 font-size: 0.9em;
95 line-height: 1.4;
96 opacity: 0.85;
97 }
98
99 /* Reduced motion for accessibility. */
100 @media (prefers-reduced-motion: reduce) {
101 .tptn-left-thumbs li > a.tptn_link {
102 transition: none;
103 will-change: auto;
104 }
105
106 .tptn-left-thumbs ul li:hover > a.tptn_link {
107 transform: none;
108 }
109 }
110