PluginProbe
Flex Posts – Responsive Posts Block / trunk
Flex Posts – Responsive Posts Block vtrunk
2.1.0 trunk 1.12.0 2.0.0
flex-posts / public / css / flex-posts.css

flex-posts.css in Flex Posts – Responsive Posts Block trunk, at public/css/flex-posts.css

257 lines 3.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Flex Posts styles
3 */
4
5 .fp-flex {
6 display: -webkit-flex;
7 display: -ms-flexbox;
8 display: flex;
9 justify-content: flex-start;
10 flex-direction: row;
11 flex-wrap: wrap;
12 -ms-flex-align: start;
13 align-items: flex-start;
14 }
15
16 .fp-row {
17 gap: 0 30px;
18 }
19
20 .fp-post {
21 margin-bottom: 20px;
22 }
23
24 .fp-col {
25 min-width: 200px;
26 max-width: 400px;
27 flex: 1 1 31%;
28 }
29
30 .fp-list-5 .fp-col {
31 min-width: 175px;
32 max-width: 350px;
33 flex: 1 1 25%;
34 }
35
36 .fp-list-6 .fp-col {
37 min-width: 100px;
38 max-width: 300px;
39 flex: 1 1 20%;
40 }
41
42 .fp-col:empty {
43 height: 0;
44 visibility: hidden;
45 margin-top: 0;
46 margin-bottom: 0;
47 }
48
49 .fp-list-3 .fp-col {
50 max-width: none;
51 }
52
53 .fp-body {
54 min-width: 0;
55 }
56
57 .fp-list-1 .fp-flex,
58 .fp-list-3 .fp-flex {
59 flex-wrap: nowrap;
60 }
61
62 .fp-list-1 .fp-media,
63 .fp-list-3 .fp-extra .fp-media {
64 flex-shrink: 0;
65 }
66
67 .fp-thumbnail {
68 display: block;
69 }
70
71 .fp-list-1 .fp-thumbnail,
72 .fp-list-3 .fp-extra .fp-thumbnail {
73 margin-right: 1em;
74 }
75
76 .rtl .fp-list-1 .fp-thumbnail,
77 .rtl .fp-list-3 .fp-extra .fp-thumbnail {
78 margin-right: 0;
79 margin-left: 1em;
80 }
81
82 .fp-thumbnail {
83 -webkit-transition: opacity 500ms ease;
84 transition: opacity 500ms ease;
85 }
86
87 .fp-thumbnail:hover {
88 opacity: 0.8;
89 }
90
91 .fp-thumbnail img {
92 display: block;
93 width: 100%;
94 object-fit: cover;
95 overflow: hidden;
96 }
97
98 .fp-media .fp-thumbnail img {
99 margin: 0;
100 }
101
102 .fp-thumbnail img.size-thumbnail {
103 width: 85px;
104 height: 85px;
105 }
106
107 .fp-list-5 .fp-thumbnail img,
108 .fp-list-6 .fp-thumbnail img {
109 height: auto;
110 }
111
112 .fp-list-2 .fp-media + .fp-body,
113 .fp-list-3 .fp-main .fp-media + .fp-body {
114 margin-top: 0.8em;
115 }
116
117 .fp-list-5 .fp-media + .fp-body,
118 .fp-list-6 .fp-media + .fp-body {
119 margin-top: 0.5em;
120 }
121
122 .fp-post .fp-title {
123 font-size: 1em;
124 line-height: 1.5;
125 font-weight: 400;
126 }
127
128 .widget .fp-post .fp-title {
129 margin: 0;
130 padding: 0;
131 }
132
133 .fp-list-2 .fp-title,
134 .fp-list-3 .fp-main .fp-title,
135 .fp-list-4 .fp-title {
136 font-size: 1.2em;
137 font-weight: 500;
138 }
139
140 .fp-list-4 .fp-post {
141 margin-left: -10px;
142 margin-right: -10px;
143 }
144
145 .fp-list-4 .fp-media {
146 flex: 1 0 40%;
147 min-width: 150px;
148 max-width: 300px;
149 margin-left: 10px;
150 margin-right: 10px;
151 margin-bottom: 0.8em;
152 }
153
154 .fp-list-4 .fp-body {
155 flex: 1 0 50%;
156 margin-left: 10px;
157 margin-right: 10px;
158 }
159
160 .fp-post .fp-title a {
161 color: currentColor;
162 text-decoration: none;
163 }
164
165 .fp-excerpt {
166 margin-top: 0.4em;
167 opacity: 0.8;
168 }
169
170 .fp-meta {
171 font-size: 0.9em;
172 margin-top: 0.2em;
173 }
174
175 .fp-post .fp-meta a {
176 opacity: 0.5;
177 color: currentColor;
178 text-decoration: none;
179 }
180
181 .fp-author span .author-image {
182 opacity: 1;
183 }
184
185 .fp-author span .author-image:hover {
186 text-decoration: none;
187 }
188
189 .author-image + .url {
190 margin-left: 0.2em;
191 }
192
193 .fp-author .photo {
194 vertical-align: middle;
195 border-radius: 50%;
196 }
197
198 .fp-comments > span {
199 opacity: 0.5;
200 }
201
202 .fp-meta a:hover {
203 opacity: 0.8;
204 }
205
206 .fp-meta > span:before {
207 content: "\a0\b7\a0";
208 opacity: 0.5;
209 }
210
211 .fp-meta > span:first-child:before {
212 content: "";
213 }
214
215 .fp-categories {
216 display: block;
217 font-size: 0.7em;
218 margin: 0;
219 opacity: 0.7;
220 text-transform: uppercase;
221 letter-spacing: 0.2em;
222 }
223
224 .fp-post .fp-categories a {
225 color: var(--fp-color);
226 }
227
228 .screen-reader-text {
229 border: 0;
230 clip: rect(1px, 1px, 1px, 1px);
231 clip-path: inset(50%);
232 height: 1px;
233 margin: -1px;
234 overflow: hidden;
235 padding: 0;
236 position: absolute ! important;
237 width: 1px;
238 word-wrap: normal ! important;
239 }
240
241 .fp-post .fp-readmore {
242 margin-top: .5em;
243 }
244
245 .fp-post .fp-readmore-link {
246 text-decoration: none;
247 font-size: 0.9em;
248 display: inline-block;
249 border: 1px solid;
250 padding: .2em .7em;
251 border-radius: 3px;
252 }
253
254 .fp-post .fp-readmore-link:hover {
255 text-decoration: none;
256 }
257