PluginProbe
WebberZone Top 10 — Popular Posts / 4.5.1
WebberZone Top 10 — Popular Posts v4.5.1
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.5.1, at includes/frontend/css/left-thumbs.css

128 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: transform var(--tptn-transition), box-shadow var(--tptn-transition);
50 will-change: transform;
51 }
52
53 .tptn-left-thumbs ul li:last-child {
54 margin-bottom: 0;
55 }
56
57 .tptn-left-thumbs ul li:hover > a.tptn_link {
58 transform: scale(1.03);
59 box-shadow: var(--tptn-shadow-hover);
60 }
61
62 .tptn-left-thumbs img.tptn_thumb {
63 width: min(var(--tptn-thumb-width, 9999px), 100%);
64 height: var(--tptn-thumb-height, auto);
65 max-width: 100%;
66 max-height: var(--tptn-thumb-height, none);
67 display: block;
68 object-fit: cover;
69 aspect-ratio: var(--tptn-thumb-aspect-ratio, auto);
70 border-radius: calc(var(--tptn-border-radius) * 0.6);
71 }
72
73 .tptn-left-thumbs .tptn_after_thumb {
74 flex: 1 1 6rem;
75 min-width: 4rem;
76 }
77
78 .tptn-left-thumbs a.tptn_link {
79 text-decoration: none;
80 }
81
82 .tptn-left-thumbs .tptn_title {
83 display: block;
84 margin-bottom: 0.375rem;
85 font-weight: 600;
86 line-height: 1.3;
87 text-decoration: none;
88 }
89
90 .tptn-left-thumbs a.tptn_link:hover .tptn_title {
91 text-decoration: underline;
92 }
93
94 .tptn-left-thumbs .tptn_excerpt {
95 display: block;
96 font-size: 0.9em;
97 line-height: 1.4;
98 opacity: 0.85;
99 }
100
101 /* Below this width there isn't room for a legible thumbnail + text column side by side, so stack instead. */
102 @container tptn-left-thumbs (max-width: 240px) {
103 .tptn-left-thumbs ul li {
104 flex-wrap: wrap;
105 }
106
107 .tptn-left-thumbs li > a.tptn_link {
108 width: min(var(--tptn-thumb-width, 9999px), 100%);
109 max-width: 100%;
110 }
111
112 .tptn-left-thumbs .tptn_after_thumb {
113 flex-basis: 100%;
114 }
115 }
116
117 /* Reduced motion for accessibility. */
118 @media (prefers-reduced-motion: reduce) {
119 .tptn-left-thumbs li > a.tptn_link {
120 transition: none;
121 will-change: auto;
122 }
123
124 .tptn-left-thumbs ul li:hover > a.tptn_link {
125 transform: none;
126 }
127 }
128