4be86c62274d99ed2c00e9ed521caedfca650031
[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 /* Lato font */
7
8 @font-face {
9 font-family: "Lato";
10 url("../fonts/Lato-Regular.ttf") format('truetype');
11 font-weight: 400;
12 font-style: normal;
13 }
14
15 @font-face {
16 font-family: "Lato";
17 url('../fonts/Lato-RegularItalic.ttf') format('truetype');
18 font-weight: 400;
19 font-style: italic;
20 }
21
22 @font-face {
23 font-family: "Lato";
24 url('../fonts/Lato-Bold.ttf') format('truetype');
25 font-weight: 700;
26 font-style: normal;
27 }
28
29
30 /* Universal */
31
32 body {
33 font-family: "Lato", Helvetica, Arial, sans-serif;
34 margin: 0;
35 min-width: 320px;
36 }
37
38 a { transition: 0.3s; }
39
40 section { position: relative; }
41
42 /* etcetera */
43
44 .region-content { min-height: 300px; }
45
46 h2.block-title {
47 background: #000;
48 color: #FFF;
49 padding: 0.5em;
50 }
51
52 .feed-icons a {
53 background: url('../images/rss.svg') top left no-repeat;
54 background-size: contain;
55 height: 20px;
56 overflow: hidden;
57 display: block;
58 text-indent: 25px;
59 font-size: 1em;
60 width: fit-content;
61 margin: auto;
62 margin-top: 1em;
63 }
64
65 .view-display-id-news_page .feed-icons a {
66 margin-top: -30px;
67 }
68
69 .more-link {
70 border: 1px solid #ddd;
71 border-radius: .5em;
72 padding: .5em;
73 text-align: center;
74 width: 50%;
75 margin: 0 auto;
76 font-weight: bold;
77 }
78
79 .more-link:hover { border: 1px solid #000; }
80
81 .block-views {
82 margin-top: 20px;
83 }
84
85 /* Navbar */
86
87 .navbar-default {
88 background: #000;
89 color: #FFF;
90 border: none;
91 border-radius: 0px;
92 box-sizing: content-box;
93 align-items: center;
94 min-height: 100px;
95 }
96
97 .navbar-header,
98 #navbar-collapse {
99 max-width: 1150px;
100 padding: 0;
101 margin: 0 auto;
102 border: none;
103 overflow: hidden;
104 }
105
106 .navbar-default .navbar-toggle { display: none; }
107
108 .navbar-header {
109 position: absolute;
110 top: 5px;
111 }
112
113 .navbar-brand { display: none; }
114
115 #block-ryf-main-menu .navbar-nav { margin-left: 180px; }
116
117 .navbar-default .navbar-nav > li > a:focus {
118 outline: none;
119 }
120
121 .navbar-default .navbar-nav > li > a,
122 .navbar-default .navbar-nav > li > a:link,
123 .navbar-default .navbar-nav > li > a:visited {
124 color: #FFF;
125 background: #000;
126 border-bottom: 2px solid transparent;
127 padding-bottom: 10px;
128 margin-bottom: 5px;
129 }
130
131 .navbar-default .navbar-nav > li.active > a:hover,
132 .navbar-default .navbar-nav > li > a:hover {
133 color: #337AB7;
134 background: #000;
135 border-bottom: 2px solid #337AB7;
136 padding-bottom: 5px;
137 margin-bottom: 10px;
138 }
139
140 .navbar-default .navbar-nav > li > a.is-active {
141 border-bottom: 2px solid #FFF;
142 background: #000;
143 padding-bottom: 5px;
144 margin-bottom: 10px;
145 }
146
147 .page-header {
148 border-bottom: 2px solid #000;
149 font-size: 2em;
150 }
151
152 .region-header .search-block-form {
153 width: 300px;
154 float: right;
155 }
156
157 nav .search-block-form {
158 position: absolute;
159 width: 300px;
160 right: 10%;
161 top: 30px;
162 }
163
164 /*
165 * @media screen and (min-width: 520px) and (max-width: 599px) {
166 * .logo img { margin-left: 50px; }
167 * #block-ryf-main-menu .navbar-nav { margin-left: 230px; }
168 * }
169 *
170 * @media screen and (min-width: 600px) and (max-width: 767px) {
171 * .logo img { margin-left: 100px; }
172 * #block-ryf-main-menu .navbar-nav { margin-left: 280px; }
173 * }
174 *
175 * @media screen and (max-width: 767px) {
176 * .logo img { height: 150px; margin-top: 25px; }
177 * .navbar-default { min-height: 230px; margin-bottom: 30px; }
178 * #block-ryf-main-menu .navbar-nav { max-width: 130px; }
179 * }
180 *
181 */
182
183 @media screen and (min-width: 768px) {
184
185 .navbar-default {
186 margin-bottom: 100px;
187 }
188 .navbar-nav {
189 margin-top: 40px;
190 }
191 .region-header .breadcrumb {
192 position: absolute;
193 top: -70px;
194 left: 200px;
195 background: none;
196 }
197 .region-navigation-collapsible .search-block-form {
198 float: right;
199 padding-top: 30px;
200 width: 210px;
201 }
202 }
203
204
205 /* Selectors */
206
207
208 @media screen and (min-width: 768px) {
209 .form-inline .form-item .select-wrapper {
210 display: block;
211 }
212 .form-inline .form-actions {
213 margin-top: 21px;
214 }
215 }
216
217
218 /* RYF List */
219
220
221 .ryf-list-row {
222 padding: 0;
223 margin: 0 auto;
224 overflow: auto;
225 }
226
227 .ryf-list {
228 float: left;
229 margin: 0;
230 padding: 0.5em;
231 position: relative;
232 list-style: none;
233 }
234
235 .ryf-list article {
236 border: 1px solid #ececec;
237 border-radius: 5px;
238 padding: 1em;
239 box-shadow: 2px 2px 5px #ddd;
240 transition: 0.3s;
241 }
242
243 .ryf-list article:hover {
244 box-shadow: 0px 0px 5px #aaa;
245 }
246
247 .ryf-list .field--type-image {
248 width: 150px;
249 height: 150px;
250 background: #fff;
251 border-radius: 10px;
252 display: flex;
253 align-items: center;
254 }
255
256 .ryf-list .field--name-field-image {
257 margin: 0 auto 10px auto;
258 }
259
260 .ryf-list img {
261 max-width: 150px;
262 max-height: 150px;
263 object-fit: contain;
264 overflow: hidden;
265 }
266
267 .ryf-list img:hover {
268 border-radius: 0;
269 }
270
271 .ryf-list h2 {
272 text-align: left;
273 font-size: 1.5em;
274 font-weight: 500;
275 line-height: 1.2em;
276 margin: 0;
277 padding: 0;
278 padding-bottom: 1em;
279 }
280
281 .ryf-list a {
282 color: #337AB7;
283 text-decoration: none;
284 }
285
286 .ryf-list a:hover {
287 color: #000;
288 }
289
290 .ryf-list .node-readmore,
291 .ryf-list .tags,
292 .ryf-list .supplier {
293 width: 100%;
294 float: left;
295 font-size: 0.9em;
296 border-top: 1px solid #ccc4c4;
297 margin-top: 5px;
298 padding-top: 5px;
299 color: #afadad;
300 }
301
302 .ryf-list .node-readmore {
303 text-align: right;
304 }
305
306 @media screen and (min-width: 450px) and (max-width: 659px) {
307 .ryf-list-row {
308 max-width: 600px;
309 }
310 .ryf-list {
311 max-width: 300px;
312 float: none;
313 margin: 0 auto;
314 }
315 }
316 @media screen and (min-width: 660px) and (max-width: 767px) {
317 .ryf-list-row {
318 max-width: 600px;
319 }
320 .ryf-list-row {
321 margin: 0 auto;
322 max-width: 660px;
323 }
324 .ryf-list {
325 max-width: 300px;
326 float: left;
327 }
328 .auto-clear .col-xs-12:nth-child(odd){clear:left;}
329 }
330
331
332 /* Vendors list */
333
334
335 .vendors-list-row {
336 padding: 10px;
337 margin: 0 auto;
338 overflow: auto;
339 }
340
341 @media screen and (max-width: 767px) {
342 .vendors-list-row {
343 margin: 0px auto;
344 }
345
346 .vendors-list {
347 margin-bottom: 40px;
348 list-style: none;
349
350 overflow: auto;
351 }
352
353 .vendors-list .views-field-field-icon {
354 width: 220px;
355
356 margin: 0px auto 20px auto;
357 }
358
359 .vendors-list .views-field-field-icon img {
360 margin: 0 auto;
361 }
362
363 .vendors-list .views-field-name,
364 .vendors-list .views-field-description__value {
365 max-width: 300px;
366 margin: 0 auto 10px auto;
367 }
368
369 .vendors-list .views-field-name {
370 font-weight: bold;
371 font-size: 18px;
372 text-align: center;
373 }
374
375 }
376
377 @media screen and (min-width: 768px) {
378 .vendors-list-row {
379 width: 600px;
380 margin: 0px auto;
381 }
382
383 .vendors-list {
384 list-style: none;
385 clear: left;
386
387 overflow: auto;
388 }
389
390 .vendors-list .views-field-field-icon {
391 width: 220px;
392 height: 220px;
393
394 margin-bottom: 40px;
395
396 float: left;
397 }
398
399 .vendors-list .views-field-field-icon img {
400 margin: 0 auto;
401 }
402
403 .vendors-list .views-field-name,
404 .vendors-list .views-field-description__value {
405 margin-left: 300px;
406 }
407
408 .vendors-list .views-field-name {
409 margin-bottom: 10px;
410 font-weight: bold;
411 font-size: 18px;
412 }
413 }
414
415
416 /* Sidebars */
417
418
419 @media screen and (max-width: 767px) {
420 .path-products #block-views-block-categories-categories-block { display: none; }
421 }
422
423
424 /* Vendor and Category taxonomy term pages */
425
426
427 .view-taxonomy-term .view-header .field--name-field-icon img {
428 margin: 0 auto;
429 }
430
431 .view-filters {
432 clear: left;
433 }
434
435 .view-taxonomy-term .view-header .field--name-field-vendor-support-link,
436 .view-taxonomy-term .view-header .field--name-field-vendor-support-email {
437 margin-top: 15px;
438 }
439
440 @media screen and (max-width: 559px) {
441 .view-taxonomy-term.view-display-id-taxonomy_term_vendor .view-header {
442 margin: 0 auto 40px auto;
443
444 overflow: auto;
445 }
446
447 .view-taxonomy-term .view-header .field--name-field-icon {
448 margin: 0 auto 20px auto;
449 width: 220px;
450 }
451
452 .view-taxonomy-term .view-header .field--name-description,
453 .view-taxonomy-term .view-header .field--name-field-vendor-support-link,
454 .view-taxonomy-term .view-header .field--name-field-vendor-support-email {
455 max-width: 360px;
456 margin: 15px auto 0 auto;
457 padding: 0 10px;
458 }
459
460 }
461
462 @media screen and (min-width: 560px) {
463 .view-taxonomy-term.view-display-id-taxonomy_term_vendor .view-header {
464 margin: 0 0 40px 0;
465
466 overflow: auto;
467 }
468
469 .view-taxonomy-term .view-header .field--name-field-icon {
470 width: 220px;
471
472 float: left;
473 }
474
475 .view-taxonomy-term .view-header .field--name-description,
476 .view-taxonomy-term .view-header .field--name-field-vendor-support-link,
477 .view-taxonomy-term .view-header .field--name-field-vendor-support-email {
478 margin-left: 260px;
479 }
480
481 }
482
483 @media screen and (min-width: 768px) {
484 .view-taxonomy-term .view-header {
485 max-width: 700px;
486 }
487 }
488
489
490 /* Product */
491
492
493 @media screen and (max-width: 767px) {
494 .page-node-type-product .product {
495 max-width: 382px;
496 margin: 0 auto;
497 }
498 }
499
500 @media screen and (min-width: 768px) and (max-width: 991px) {
501 .page-node-type-product .product {
502 width: 700px;
503 margin: 0 auto;
504 }
505 }
506
507 @media screen and (min-width: 992px) {
508 .page-node-type-product .product {
509 width: 800px;
510 margin: 0 auto;
511 }
512 }
513
514 .page-node-type-product .product .field--name-field-image {
515 padding: 10px;
516
517 border: 1px solid #888;
518 border-radius: 10px;
519 }
520
521 .page-node-type-product .product .field--name-field-image img {
522 margin: 0 auto;
523 }
524
525 .page-node-type-product .product .field--name-field-extra-images {
526 padding: 5px;
527
528 display: flex;
529 align-items: center;
530
531 border: 1px solid #888;
532 border-radius: 10px;
533 }
534
535 .page-node-type-product .product .field--name-field-extra-images .field--item {
536 display: inline-block;
537 margin: auto;
538 padding: 5px;
539 }
540
541 .page-node-type-product .product .field--name-field-categories,
542 .page-node-type-product .product .field--name-field-vendor {
543 margin: 10px 10px 20px 0px;
544 padding: 10px;
545 border: 1px solid #888;
546 border-radius: 10px;
547 }
548
549 .page-node-type-product .product .field--name-field-categories .field--item {
550 display: list-item;
551 list-style: circle;
552 margin-left: 15px;
553 }
554
555 /* product page colors */
556 .page-node-type-product .product .field--name-field-image {
557 background-color: #fff;
558 border-color: #aaa;
559 }
560 .page-node-type-product .product .field--name-field-extra-images {
561 background-color: #f3f3f3;
562 border-color: #aaa;
563 }
564 .page-node-type-product .product .field--name-field-categories {
565 background-color: #def;
566 border-color: #8ad;
567 }
568 .page-node-type-product .product .field--name-field-vendor {
569 background-color: #dfe;
570 border-color: #8da;
571 }
572
573 @media screen and (max-width: 767px) {
574 .page-node-type-product .product .field--name-field-extra-images {
575 margin: 10px auto 0px auto;
576 }
577
578 .page-node-type-product .product .field--name-body,
579 .page-node-type-product .product .field--name-field-vendor-product-link,
580 .page-node-type-product .product .field--name-field-certification-details,
581 .page-node-type-product .product .field--name-field-certification-date,
582 .page-node-type-product .product .field--name-field-source-code-links {
583 margin-bottom: 20px;
584 }
585
586 .page-node-type-product .product .field--name-field-categories,
587 .page-node-type-product .product .field--name-field-vendor {
588 margin-bottom: 0px;
589 float: left;
590 }
591
592 .page-node-type-product .product .field--name-body {
593 padding-top: 20px;
594 clear: both;
595 }
596 }
597
598
599 @media screen and (min-width: 768px) {
600 .page-node-type-product .product .field--name-field-image {
601 width: 382px;
602 float: left;
603 }
604
605 .page-node-type-product .product .field--name-field-extra-images {
606 float: left;
607 clear: left;
608
609 width: 382px;
610 margin-top: 10px;
611 }
612
613 .page-node-type-product .product .field--name-body,
614 .page-node-type-product .product .field--name-field-vendor-product-link,
615 .page-node-type-product .product .field--name-field-certification-details,
616 .page-node-type-product .product .field--name-field-certification-date,
617 .page-node-type-product .product .field--name-field-source-code-links {
618 margin-left: 400px;
619 margin-bottom: 20px;
620 }
621
622 .page-node-type-product .product .field--name-field-categories {
623 float: left;
624 clear: left;
625 }
626
627 .page-node-type-product .product .field--name-field-vendor {
628 float: left;
629 }
630
631 }
632
633
634 /* News and Product Announcements */
635
636
637 .page-node-type-product-announcement .page-header,
638 .page-node-type-product-announcement .tabs--primary,
639 .page-node-type-product-announcement .region-content,
640 .page-node-type-general-news-item .page-header,
641 .page-node-type-general-news-item .tabs--primary,
642 .page-node-type-general-news-item .region-content,
643 .page-node-type-page .page-header,
644 .page-node-type-page .tabs--primary,
645 .page-node-type-page .region-content,
646 .path-news .page-header,
647 .path-news .tabs--primary,
648 .path-news .region-content {
649 max-width: 800px;
650 margin: 0 auto;
651 }
652
653 /* don't apply above max-width rule to main page */
654 .path-frontpage .page-header,
655 .path-frontpage .tabs--primary,
656 .path-frontpage .region-content {
657 max-width: 2000px; /* high number beyond the max */
658 }
659
660 .page-node-type-page .page-header {
661 margin-bottom: 20px;
662 }
663
664 .path-news h2,
665 .block-views-blocknews-news-block article h2 {
666 font-size: 25px;
667 }
668
669 .page-node-type-product-announcement .author,
670 .page-node-type-general-news-item .author {
671 margin: 10px 0 20px 0;
672 font-style: oblique;
673 }
674
675 .page-node-type-product-announcement .field--name-body,
676 .page-node-type-general-news-item .field--name-body {
677 margin-bottom: 20px;
678 }
679
680 .page-node-type-product-announcement .field--name-field-external-news-link,
681 .page-node-type-general-news-item .field--name-field-external-news-link {
682 margin-bottom: 20px;
683 }
684
685 .page-node-type-product-announcement .field--name-field-vendor-page,
686 .page-node-type-product-announcement .field--name-field-announced-products {
687 margin-bottom: 20px;
688 }
689
690
691 /* Search Results */
692
693
694 @media screen and (max-width: 600px) {
695 .path-search .region-content > ol {
696 width: 300px;
697 }
698 }
699 @media screen and (min-width: 601px) and (max-width 1000px) {
700 .path-search .region-content > ol {
701 width: 560px;
702 }
703 }
704 @media screen and (min-width: 1001px) {
705 .path-search .region-content > ol {
706 width: 900px;
707 }
708 }
709
710 .path-search .region-content > ol {
711 margin: 0 auto;
712 padding-left: 0;
713 overflow: auto;
714 }
715
716 .path-search .region-content > ol li {
717 width: 280px;
718 height: 280px;
719 margin: 0px auto;
720 padding: 10px;
721
722 float: left;
723
724 list-style: none;
725 overflow: hidden;
726 }
727
728 .path-search .region-content > ol li h3 {
729 text-align: center;
730 }
731
732 .path-search .region-content > ol li .search-image {
733 width: 100px;
734 height: 100px;
735
736 margin: 0 auto;
737
738 display: flex;
739 align-items: center;
740 }
741
742 .path-search .region-content > ol li img {
743 }
744
745
746 /* Footer */
747
748
749 .footer {
750 background: #333;
751 color: #FFF;
752 }
753
754 /* full page width for footer */
755 .footer {
756 width: 100%;
757 }
758
759 .footer a { color: #337AB7; }
760
761 .footer a:hover { color: #FFF; }
762
763 .footer h4 { font-weight: bold; }
764
765 .footer .copyright { font-size: 0.9em; text-align: center; width: 80%; margin-top: 1em; border-top: 1px solid #111; padding: 1em; }
766
767 #fsf-logo-footer { margin-bottom: 10px; }
768
769 @media print { #fsf-logo-footer { filter: invert(100%) } }
770