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 / frontend / css / left-thumbs-rtl.css

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

130 lines 2.8 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 container-type: inline-size;
17 container-name: tptn-left-thumbs;
18 }
19
20 .tptn-left-thumbs ul {
21 margin: 0 !important;
22 padding: 0 !important;
23 list-style: none;
24 }
25
26 .tptn-left-thumbs ul li {
27 display: flex;
28 flex-wrap: nowrap;
29 gap: var(--tptn-gap);
30 align-items: flex-start;
31 margin-bottom: 1.25rem;
32 padding: 0 !important;
33 background: none;
34 list-style: none;
35 }
36
37 .tptn-left-thumbs li > a.tptn_link {
38 display: block;
39 flex: 0 0 auto;
40 align-self: flex-start;
41 width: min(var(--tptn-thumb-width, 9999px), 45%);
42 max-width: 45%;
43 padding: var(--tptn-thumb-frame-padding);
44 border-width: var(--tptn-thumb-frame-border-width);
45 border-style: solid;
46 border-color: var(--tptn-thumb-border);
47 border-radius: var(--tptn-border-radius);
48 box-shadow: var(--tptn-shadow);
49 transition:
50 transform var(--tptn-transition),
51 box-shadow var(--tptn-transition);
52 will-change: transform;
53 }
54
55 .tptn-left-thumbs ul li:last-child {
56 margin-bottom: 0;
57 }
58
59 .tptn-left-thumbs ul li:hover > a.tptn_link {
60 transform: scale(1.03);
61 box-shadow: var(--tptn-shadow-hover);
62 }
63
64 .tptn-left-thumbs img.tptn_thumb {
65 width: min(var(--tptn-thumb-width, 9999px), 100%);
66 height: var(--tptn-thumb-height, auto);
67 max-width: 100%;
68 max-height: var(--tptn-thumb-height, none);
69 display: block;
70 object-fit: cover;
71 aspect-ratio: var(--tptn-thumb-aspect-ratio, auto);
72 border-radius: calc(var(--tptn-border-radius) * 0.6);
73 }
74
75 .tptn-left-thumbs .tptn_after_thumb {
76 flex: 1 1 6rem;
77 min-width: 4rem;
78 }
79
80 .tptn-left-thumbs a.tptn_link {
81 text-decoration: none;
82 }
83
84 .tptn-left-thumbs .tptn_title {
85 display: block;
86 margin-bottom: 0.375rem;
87 font-weight: 600;
88 line-height: 1.3;
89 text-decoration: none;
90 }
91
92 .tptn-left-thumbs a.tptn_link:hover .tptn_title {
93 text-decoration: underline;
94 }
95
96 .tptn-left-thumbs .tptn_excerpt {
97 display: block;
98 font-size: 0.9em;
99 line-height: 1.4;
100 opacity: 0.85;
101 }
102
103 /* Below this width there isn't room for a legible thumbnail + text column side by side, so stack instead. */
104 @container tptn-left-thumbs (max-width: 240px) {
105 .tptn-left-thumbs ul li {
106 flex-wrap: wrap;
107 }
108
109 .tptn-left-thumbs li > a.tptn_link {
110 width: min(var(--tptn-thumb-width, 9999px), 100%);
111 max-width: 100%;
112 }
113
114 .tptn-left-thumbs .tptn_after_thumb {
115 flex-basis: 100%;
116 }
117 }
118
119 /* Reduced motion for accessibility. */
120 @media (prefers-reduced-motion: reduce) {
121 .tptn-left-thumbs li > a.tptn_link {
122 transition: none;
123 will-change: auto;
124 }
125
126 .tptn-left-thumbs ul li:hover > a.tptn_link {
127 transform: none;
128 }
129 }
130