blob: 1222b04c7184c455674f97bf1e469d8c2a67dcb4 [file] [log] [blame]
Dirk Dougherty1f121602014-01-23 19:10:05 -08001/* content layout */
2.resource-widget.resource-flow-layout {
3 display: inline-block;
4 margin-right: -20px;
5 /* clearfix idiom */ }
6 .resource-widget.resource-flow-layout.col-1 {
7 width: 60px; }
8 .resource-widget.resource-flow-layout.col-2 {
9 width: 120px; }
10 .resource-widget.resource-flow-layout.col-3 {
11 width: 180px; }
12 .resource-widget.resource-flow-layout.col-4 {
13 width: 240px; }
14 .resource-widget.resource-flow-layout.col-5 {
15 width: 300px; }
16 .resource-widget.resource-flow-layout.col-6 {
17 width: 360px; }
18 .resource-widget.resource-flow-layout.col-7 {
19 width: 420px; }
20 .resource-widget.resource-flow-layout.col-8 {
21 width: 480px; }
22 .resource-widget.resource-flow-layout.col-9 {
23 width: 540px; }
24 .resource-widget.resource-flow-layout.col-10 {
25 width: 600px; }
26 .resource-widget.resource-flow-layout.col-11 {
27 width: 660px; }
28 .resource-widget.resource-flow-layout.col-12 {
29 width: 720px; }
30 .resource-widget.resource-flow-layout.col-13 {
31 width: 780px; }
32 .resource-widget.resource-flow-layout.col-14 {
33 width: 840px; }
34 .resource-widget.resource-flow-layout.col-15 {
35 width: 900px; }
36 .resource-widget.resource-flow-layout.col-16 {
37 width: 960px; }
38 .resource-widget.resource-flow-layout:after {
39 content: ".";
40 display: block;
41 height: 0;
42 clear: both;
43 visibility: hidden; }
44 * html .resource-widget.resource-flow-layout {
45 height: 1px; }
46
47.resource-card {
48 /* stuff that applies to all cards */
49 display: -webkit-flex;
50 -webkit-transform: translateZ(0);
51 float: left;
52 position: relative;
53 margin-right: 20px;
54 margin-bottom: 20px;
55 background-color: #fff;
56 border-radius: 2px;
57 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
58 opacity: 0.8;
59 overflow: hidden;
60 transition: 0.4s box-shadow ease, 0.4s opacity ease;
61 /* card templates */
62 /* specific cards and customizations */ }
63 .resource-card .photo {
64 position: relative;
65 background-color: #eee;
66 background-size: cover;
67 background-repeat: no-repeat;
68 background-position: 50% 50%; }
69 .resource-card.nophoto .photo:after {
70 content: '';
71 display: block;
72 position: absolute;
73 left: 20px;
74 top: 20px;
75 right: 20px;
76 bottom: 20px;
77 opacity: 0.2;
78 background-position: center center;
79 background-repeat: no-repeat;
80 background-size: contain; }
81 .resource-card .icon {
82 background-position: center center;
83 background-repeat: no-repeat;
84 background-size: contain;
85 opacity: 0;
86 transition: 0.4s ease; }
87 .resource-card:hover .icon {
88 opacity: 0.2; }
89 .resource-card:hover {
90 opacity: 1;
91 box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5); }
92 .resource-card.resource-card-youtube.nophoto .photo:after, .resource-card.resource-card-youtube .icon {
93 background-image: url(../images/card_video.png); }
94 .resource-card.resource-card-samples.nophoto .photo:after, .resource-card.resource-card-samples .icon {
95 background-image: url(../images/card_sample.png); }
96 .resource-card.resource-card-blog.nophoto .photo:after, .resource-card.resource-card-blog .icon {
97 background-image: url(../images/card_post.png); }
98 .resource-card.resource-card-training.nophoto .photo:after, .resource-card.resource-card-training .icon {
99 background-image: url(../images/card_training.png); }
100 .resource-card .resource-card-text {
101 color: #333333; }
102 .resource-card .title {
103 /*font-weight: 700;*/
104 font-family: 'Roboto Condensed'; }
105 .resource-card .subtitle {
106 font-family: 'Roboto Condensed';
107 text-transform: uppercase;
108 opacity: 0.3; }
109 .resource-card .abstract {
110 font-weight: 300;
111 font-family: 'Roboto'; }
112 .resource-card.resource-card-12x7 {
113 width: 700px;
114 height: 400px;
115 -webkit-flex-direction: column; }
116 .resource-card.resource-card-12x7 .photo {
117 -webkit-flex: 1 1 auto;
118 border-bottom: 1px solid #ddd; }
119 .resource-card.resource-card-12x7 .resource-card-text {
120 margin: 20px;
121 padding-right: 88px; }
122 .resource-card.resource-card-12x7 .icon {
123 position: absolute;
124 right: 20px;
125 bottom: 20px;
126 width: 48px;
127 height: 48px; }
128 .resource-card.resource-card-12x7 .title {
129 font-size: 36px;
130 line-height: 35px;
131 max-height: 70px;
132 text-overflow: ellipsis;
133 display: -webkit-box;
134 overflow: hidden;
135 -webkit-line-clamp: 2;
136 -webkit-box-orient: vertical; }
137 .resource-card.resource-card-12x7 .subtitle {
138 font-size: 18px;
139 line-height: 20px;
140 max-height: 20px;
141 text-overflow: ellipsis;
142 display: -webkit-box;
143 overflow: hidden;
144 -webkit-line-clamp: 1;
145 -webkit-box-orient: vertical;
146 max-height: 0;
147 margin-top: 0;
148 transition: 0.4s ease; }
149 .resource-card.resource-card-12x7:hover .subtitle {
150 margin-top: 10px;
151 max-height: 20px; }
152 .resource-card.resource-card-12x7 .abstract {
153 font-size: 18px;
154 margin-top: 0;
155 line-height: 25px;
156 max-height: 75px;
157 text-overflow: ellipsis;
158 display: -webkit-box;
159 overflow: hidden;
160 -webkit-line-clamp: 3;
161 -webkit-box-orient: vertical;
162 max-height: 0;
163 transition: 0.4s ease; }
164 .resource-card.resource-card-12x7:hover .abstract {
165 margin-top: 20px;
166 max-height: 75px; }
167 .resource-card.resource-card-8x6 {
168 width: 460px;
169 height: 340px;
170 -webkit-flex-direction: column; }
171 .resource-card.resource-card-8x6 .photo {
172 -webkit-flex: 1 1 auto;
173 border-bottom: 1px solid #ddd; }
174 .resource-card.resource-card-8x6 .resource-card-text {
175 margin: 20px;
176 padding-right: 88px; }
177 .resource-card.resource-card-8x6 .icon {
178 position: absolute;
179 right: 20px;
180 bottom: 20px;
181 width: 48px;
182 height: 48px; }
183 .resource-card.resource-card-8x6 .title {
184 font-size: 36px;
185 line-height: 35px;
186 max-height: 70px;
187 text-overflow: ellipsis;
188 display: -webkit-box;
189 overflow: hidden;
190 -webkit-line-clamp: 2;
191 -webkit-box-orient: vertical; }
192 .resource-card.resource-card-8x6 .subtitle {
193 font-size: 18px;
194 line-height: 20px;
195 max-height: 20px;
196 text-overflow: ellipsis;
197 display: -webkit-box;
198 overflow: hidden;
199 -webkit-line-clamp: 1;
200 -webkit-box-orient: vertical;
201 max-height: 0;
202 margin-top: 0;
203 transition: 0.4s ease; }
204 .resource-card.resource-card-8x6:hover .subtitle {
205 margin-top: 10px;
206 max-height: 20px; }
207 .resource-card.resource-card-8x6 .abstract {
208 font-size: 18px;
209 margin-top: 0;
210 line-height: 25px;
211 max-height: 75px;
212 text-overflow: ellipsis;
213 display: -webkit-box;
214 overflow: hidden;
215 -webkit-line-clamp: 3;
216 -webkit-box-orient: vertical;
217 max-height: 0;
218 transition: 0.4s ease; }
219 .resource-card.resource-card-8x6:hover .abstract {
220 margin-top: 20px;
221 max-height: 75px; }
222 .resource-card.resource-card-8x6 .icon {
223 width: 32px;
224 height: 32px; }
225 .resource-card.resource-card-8x6 .title {
226 font-size: 24px;
227 line-height: 25px;
228 max-height: 50px;
229 text-overflow: ellipsis;
230 display: -webkit-box;
231 overflow: hidden;
232 -webkit-line-clamp: 2;
233 -webkit-box-orient: vertical; }
234 .resource-card.resource-card-8x6 .abstract {
235 font-size: 16px;
236 margin-top: 10px;
237 line-height: 20px;
238 max-height: 60px;
239 text-overflow: ellipsis;
240 display: -webkit-box;
241 overflow: hidden;
242 -webkit-line-clamp: 3;
243 -webkit-box-orient: vertical; }
244 .resource-card.resource-card-8x6 .subtitle {
245 font-size: 16px;
246 line-height: 20px;
247 max-height: 20px;
248 text-overflow: ellipsis;
249 display: -webkit-box;
250 overflow: hidden;
251 -webkit-line-clamp: 1;
252 -webkit-box-orient: vertical;
253 max-height: 0;
254 margin-top: 0;
255 transition: 0.4s ease; }
256 .resource-card.resource-card-8x6:hover .subtitle {
257 margin-top: 10px;
258 max-height: 20px; }
259 .resource-card.resource-card-8x6 .abstract {
260 font-size: 16px;
261 margin-top: 0;
262 line-height: 20px;
263 max-height: 60px;
264 text-overflow: ellipsis;
265 display: -webkit-box;
266 overflow: hidden;
267 -webkit-line-clamp: 3;
268 -webkit-box-orient: vertical;
269 max-height: 0;
270 transition: 0.4s ease; }
271 .resource-card.resource-card-8x6:hover .abstract {
272 margin-top: 10px;
273 max-height: 60px; }
274 .resource-card.resource-card-6x4 {
275 width: 340px;
276 height: 220px;
277 -webkit-flex-direction: column; }
278 .resource-card.resource-card-6x4 .photo {
279 -webkit-flex: 1 1 auto;
280 border-bottom: 1px solid #ddd; }
281 .resource-card.resource-card-6x4 .resource-card-text {
282 margin: 10px;
283 padding-right: 26px; }
284 .resource-card.resource-card-6x4 .icon {
285 position: absolute;
286 right: 10px;
287 bottom: 10px;
288 width: 16px;
289 height: 16px; }
290 .resource-card.resource-card-6x4 .title {
291 font-size: 16px;
292 line-height: 20px;
293 max-height: 40px;
294 text-overflow: ellipsis;
295 display: -webkit-box;
296 overflow: hidden;
297 -webkit-line-clamp: 2;
298 -webkit-box-orient: vertical; }
299 .resource-card.resource-card-6x4 .subtitle {
300 font-size: 13px;
301 line-height: 15px;
302 max-height: 30px;
303 text-overflow: ellipsis;
304 display: -webkit-box;
305 overflow: hidden;
306 -webkit-line-clamp: 2;
307 -webkit-box-orient: vertical;
308 max-height: 0;
309 margin-top: 0;
310 transition: 0.4s ease; }
311 .resource-card.resource-card-6x4:hover .subtitle {
312 max-height: 30px; }
313 .resource-card.resource-card-6x4 .abstract {
314 display: none; }
315 .resource-card.resource-card-6x4 .abstract {
316 font-size: 13px;
317 margin-top: 0;
318 line-height: 15px;
319 max-height: 30px;
320 text-overflow: ellipsis;
321 display: -webkit-box;
322 overflow: hidden;
323 -webkit-line-clamp: 2;
324 -webkit-box-orient: vertical;
325 max-height: 0;
326 display: block;
327 transition: 0.4s ease; }
328 .resource-card.resource-card-6x4:hover .abstract {
329 margin-top: 10px;
330 max-height: 30px; }
331 .resource-card.resource-card-4x3 {
332 width: 220px;
333 height: 160px;
334 -webkit-flex-direction: column; }
335 .resource-card.resource-card-4x3 .photo {
336 -webkit-flex: 1 1 auto;
337 border-bottom: 1px solid #ddd; }
338 .resource-card.resource-card-4x3 .resource-card-text {
339 margin: 10px;
340 padding-right: 26px; }
341 .resource-card.resource-card-4x3 .icon {
342 position: absolute;
343 right: 10px;
344 bottom: 10px;
345 width: 16px;
346 height: 16px; }
347 .resource-card.resource-card-4x3 .title {
348 font-size: 16px;
349 line-height: 20px;
350 max-height: 40px;
351 text-overflow: ellipsis;
352 display: -webkit-box;
353 overflow: hidden;
354 -webkit-line-clamp: 2;
355 -webkit-box-orient: vertical; }
356 .resource-card.resource-card-4x3 .subtitle {
357 font-size: 13px;
358 line-height: 15px;
359 max-height: 30px;
360 text-overflow: ellipsis;
361 display: -webkit-box;
362 overflow: hidden;
363 -webkit-line-clamp: 2;
364 -webkit-box-orient: vertical;
365 max-height: 0;
366 margin-top: 0;
367 transition: 0.4s ease; }
368 .resource-card.resource-card-4x3:hover .subtitle {
369 max-height: 30px; }
370 .resource-card.resource-card-4x3 .abstract {
371 display: none; }