added css code for taxonomy term page headers
[ryf-theme.git] / css / style.css
1 /**
2 * If using a CSS pre-processor, tell it to overwrite this file. If not, place
3 * your custom CSS modifications here.
4 */
5
6 body { margin: 0; min-width: 320px; }
7
8 a { transition: 0.3s; }
9
10 .navbar-default {
11 background: #000;
12 color: #FFF;
13 border: none;
14 border-radius: 0px;
15 box-sizing: content-box;
16 align-items: center;
17 margin-bottom: 100px;
18 min-height: 100px;
19 }
20
21 .navbar-header, #navbar-collapse {
22 max-width: 1150px;
23 padding: 0;
24 margin: 0 auto;
25 border: none;
26 overflow: hidden;
27 }
28
29 .navbar-default .navbar-toggle { display: none; }
30
31 .navbar-header {
32 position: absolute;
33 top: 5px;
34 }
35
36 .navbar-brand { display: none; }
37
38 #block-ryf-main-menu .navbar-nav { margin-left: 180px; }
39
40 .navbar-default .navbar-nav > .active > a,
41 .navbar-default .navbar-nav > .active > a:hover,
42 .navbar-default .navbar-nav > li > a {
43 color: #FFF;
44 background: #000;
45 border-bottom: 2px solid transparent;
46 padding-bottom: 10px;
47 margin-bottom: 5px;
48 }
49
50 .navbar-default .navbar-nav > .active > a,
51 .navbar-default .navbar-nav > .active > a:hover,
52 .navbar-default .navbar-nav > li > a:hover {
53 color: #edd400;
54 border-bottom: 2px solid #edd400;
55 padding-bottom: 5px;
56 margin-bottom: 10px;
57 }
58
59 .page-header {
60 border-bottom: 2px solid #000;
61 font-size: 2em;
62 }
63
64 .region-header .search-block-form {
65 width: 300px;
66 float: right;
67 }
68
69 @media screen and (min-width: 520px) and (max-width: 599px) {
70 .logo img { margin-left: 50px; }
71 #block-ryf-main-menu .navbar-nav { margin-left: 230px; }
72 }
73
74 @media screen and (min-width: 600px) and (max-width: 767px) {
75 .logo img { margin-left: 100px; }
76 #block-ryf-main-menu .navbar-nav { margin-left: 280px; }
77 }
78
79 @media screen and (max-width: 767px) {
80 .logo img { height: 150px; margin-top: 25px; }
81 .navbar-default { min-height: 230px; margin-bottom: 30px; }
82 #block-ryf-main-menu .navbar-nav { max-width: 130px; }
83 }
84
85 @media screen and (min-width: 768px) {
86 .navbar-nav { margin-top: 40px; }
87 }
88
89
90 /* Selectors */
91
92
93 @media screen and (min-width: 768px) {
94 .form-inline .form-item .select-wrapper {
95 display: block;
96 }
97 .form-inline .form-actions {
98 margin-top: 21px;
99 }
100 }
101
102
103 /* RYF List */
104
105
106 .ryf-list {
107 float: left;
108 margin: 0;
109 padding: 0.5em;
110 position:relative;
111 list-style: none;
112 }
113
114 .ryf-list article {
115 border: 1px solid #ececec;
116 border-radius: 5px;
117 padding: 1em;
118 box-shadow: 2px 2px 5px #ddd;
119 transition: 0.3s;
120 }
121
122 .ryf-list article:hover {
123 box-shadow: 0px 0px 5px #aaa;
124 }
125
126 .ryf-list .field--type-image {
127 width: 150px;
128 height: 150px;
129 background: #fff;
130 border-radius: 10px;
131 display: flex;
132 align-items: center;
133 }
134
135 .ryf-list .field--name-field-image {
136 margin: 0 auto;
137 }
138
139 .ryf-list img {
140 max-width: 150px;
141 overflow: hidden;
142 }
143
144 .ryf-list img:hover {
145 border-radius: 0;
146 }
147
148 .ryf-list h2 {
149 text-align: left;
150 font-size: 1.5em;
151 font-weight: 500;
152 line-height: 1.2em;
153 margin: 0;
154 padding: 0;
155 padding-bottom: 1em;
156 }
157
158 .ryf-list a {
159 color: #118991;
160 text-decoration: none;
161 }
162
163 .ryf-list a:hover {
164 color: #000;
165 }
166
167 .ryf-list .node-readmore,
168 .ryf-list .tags,
169 .ryf-list .supplier {
170 width: 100%;
171 float: left;
172 font-size: 0.9em;
173 border-top: 1px solid #ccc4c4;
174 margin-top: 5px;
175 padding-top: 5px;
176 color: #afadad;
177 }
178
179 .ryf-list .node-readmore {
180 text-align: right;
181 }
182
183 @media screen and (min-width: 450px) and (max-width: 659px) {
184 .ryf-list {
185 max-width: 300px;
186 float: none;
187 margin: 0 auto;
188 }
189 }
190 @media screen and (min-width: 660px) and (max-width: 767px) {
191 .ryf-list-row {
192 margin: 0 auto;
193 max-width: 660px;
194 }
195 .ryf-list {
196 max-width: 300px;
197 float: left;
198 }
199 }
200
201
202 /* Vendors list */
203
204
205 @media screen and (max-width: 767px) {
206 .vendors-list-row {
207 margin: 0px auto;
208 }
209
210 .vendors-list {
211 margin-bottom: 40px;
212 list-style: none;
213
214 overflow: auto;
215 }
216
217 .vendors-list .views-field-field-icon {
218 width: 220px;
219
220 margin: 0px auto 20px auto;
221 }
222
223 .vendors-list .views-field-field-icon img {
224 margin: 0 auto;
225 }
226
227 .vendors-list .views-field-name, .vendors-list .views-field-description__value {
228 max-width: 300px;
229 margin: 0 auto 10px auto;
230 }
231
232 .vendors-list .views-field-name {
233 font-weight: bold;
234 font-size: 18px;
235 text-align: center;
236 }
237
238 }
239
240 @media screen and (min-width: 768px) {
241 .vendors-list-row {
242 width: 600px;
243 margin: 0px auto;
244 }
245
246 .vendors-list {
247 list-style: none;
248 clear: left;
249
250 overflow: auto;
251 }
252
253 .vendors-list .views-field-field-icon {
254 width: 220px;
255 height: 220px;
256
257 margin-bottom: 40px;
258
259 float: left;
260 }
261
262 .vendors-list .views-field-field-icon img {
263 margin: 0 auto;
264 }
265
266 .vendors-list .views-field-name, .vendors-list .views-field-description__value {
267 margin-left: 300px;
268 }
269
270 .vendors-list .views-field-name {
271 margin-bottom: 10px;
272 font-weight: bold;
273 font-size: 18px;
274 }
275 }
276
277
278 /* Sidebars */
279
280
281 @media screen and (max-width: 767px) {
282 .path-products #block-views-block-categories-categories-block { display: none; }
283 }
284
285
286 /* Vendor and Category taxonomy term pages */
287
288
289 @media screen and (max-width: 559px) {
290 .view-taxonomy-term .view-header {
291 margin: 0 auto 40px auto;
292
293 overflow: auto;
294 }
295
296 .view-taxonomy-term .view-header .field--name-field-icon {
297 margin: 0 auto 20px auto;
298 width: 220px;
299 }
300
301 .view-taxonomy-term .view-header .field--name-field-icon img {
302 margin: 0 auto;
303 }
304
305 .view-taxonomy-term .view-header .field--name-description {
306 max-width: 360px;
307 margin: 0 auto;
308 padding: 0 10px;
309 }
310
311 .feed-icons {
312 clear: both;
313 }
314 }
315
316 @media screen and (min-width: 560px) and (max-width: 767px) {
317 .view-taxonomy-term .view-header {
318 margin: 0 0 40px 0;
319
320 overflow: auto;
321 }
322
323 .view-taxonomy-term .view-header .field--name-field-icon {
324 width: 220px;
325
326 float: left;
327 }
328
329 .view-taxonomy-term .view-header .field--name-field-icon img {
330 margin: 0 auto;
331 }
332
333 .view-taxonomy-term .view-header .field--name-description {
334 margin-left: 260px;
335 }
336
337 .view-filters {
338 clear: left;
339 }
340
341 .feed-icons {
342 clear: both;
343 }
344 }
345
346 @media screen and (min-width: 768px) {
347 .view-taxonomy-term .view-header {
348 width: 700px;
349 margin: 0 0 40px 0;
350
351 overflow: auto;
352 }
353
354 .view-taxonomy-term .view-header .field--name-field-icon {
355 width: 220px;
356
357 float: left;
358 }
359
360 .view-taxonomy-term .view-header .field--name-field-icon img {
361 margin: 0 auto;
362 }
363
364 .view-taxonomy-term .view-header .field--name-description {
365 margin-left: 260px;
366 }
367
368 .view-filters {
369 clear: left;
370 }
371
372 .feed-icons {
373 clear: both;
374 }
375 }
376
377
378 /* Product */
379
380
381 @media screen and (max-width: 767px) {
382 .page-node-type-product .product {
383 max-width: 382px;
384 margin: 0 auto;
385 }
386 }
387
388 @media screen and (min-width: 768px) and (max-width: 991px) {
389 .page-node-type-product .product {
390 width: 700px;
391 margin: 0 auto;
392 }
393 }
394
395 @media screen and (min-width: 992px) {
396 .page-node-type-product .product {
397 width: 800px;
398 margin: 0 auto;
399 }
400 }
401
402 .page-node-type-product .product .field--name-field-image {
403 padding: 10px;
404
405 display: flex;
406 align-items: center;
407
408 border: 1px solid #888;
409 border-radius: 10px;
410 }
411
412 .page-node-type-product .product .field--name-field-extra-images {
413 padding: 5px;
414
415 display: flex;
416 align-items: center;
417
418 border: 1px solid #888;
419 border-radius: 10px;
420 }
421
422 .page-node-type-product .product .field--name-field-extra-images .field--item {
423 display: inline-block;
424 margin: auto;
425 padding: 5px;
426 }
427
428 .page-node-type-product .product .field--name-field-categories, .page-node-type-product .product .field--name-field-vendor {
429 margin: 10px 10px 20px 0px;
430 padding: 10px;
431 border: 1px solid #888;
432 border-radius: 10px;
433 }
434
435 @media screen and (max-width: 767px) {
436 .page-node-type-product .product .field--name-field-extra-images {
437 margin: 10px auto 0px auto;
438 }
439
440 .page-node-type-product .product .field--name-body, .page-node-type-product .product .field--name-field-vendor-product-link, .page-node-type-product .product .field--name-field-certification-details, .page-node-type-product .product .field--name-field-certification-date, .page-node-type-product .product .field--name-field-source-code-links {
441 margin-bottom: 20px;
442 }
443
444 .page-node-type-product .product .field--name-field-categories, .page-node-type-product .product .field--name-field-vendor {
445 float: left;
446 }
447
448 .page-node-type-product .product .field--name-body {
449 clear: both;
450 }
451 }
452
453
454 @media screen and (min-width: 768px) {
455 .page-node-type-product .product .field--name-field-image {
456 width: 382px;
457 float: left;
458 }
459
460 .page-node-type-product .product .field--name-field-extra-images {
461 float: left;
462 clear: left;
463
464 width: 382px;
465 margin-top: 10px;
466 }
467
468 .page-node-type-product .product .field--name-body, .page-node-type-product .product .field--name-field-vendor-product-link, .page-node-type-product .product .field--name-field-certification-details, .page-node-type-product .product .field--name-field-certification-date, .page-node-type-product .product .field--name-field-source-code-links {
469 margin-left: 400px;
470 margin-bottom: 20px;
471 }
472
473 .page-node-type-product .product .field--name-field-categories {
474 float: left;
475 clear: left;
476 }
477
478 .page-node-type-product .product .field--name-field-vendor {
479 float: left;
480 }
481
482 }
483
484
485 /* Footer */
486
487
488 .footer {
489 background: #333;
490 color: #FFF;
491 }
492
493 /* full page width for footer */
494 .footer {
495 width: 100%;
496 }
497
498 .footer a { color: #edd400; }
499
500 .footer a:hover { color: #FFF; }
501
502 .footer h4 { font-weight: bold; }
503
504 .footer .copyright { font-size: 0.9em; text-align: center; width: 80%; margin-top: 1em; border-top: 1px solid #111; padding: 1em; }
505
506 #fsf-logo-footer { margin-bottom: 10px; }
507
508 @media print { #fsf-logo-footer { filter: invert(100%) } }
509