36a1f391502ab948ebb3d24e44b4532711c335a9
[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-row ul {
107 padding: 0;
108 margin: 0 auto;
109 overflow: auto;
110 }
111
112 .ryf-list {
113 float: left;
114 margin: 0;
115 padding: 0.5em;
116 position:relative;
117 list-style: none;
118 }
119
120 .ryf-list article {
121 border: 1px solid #ececec;
122 border-radius: 5px;
123 padding: 1em;
124 box-shadow: 2px 2px 5px #ddd;
125 transition: 0.3s;
126 }
127
128 .ryf-list article:hover {
129 box-shadow: 0px 0px 5px #aaa;
130 }
131
132 .ryf-list .field--type-image {
133 width: 150px;
134 height: 150px;
135 background: #fff;
136 border-radius: 10px;
137 display: flex;
138 align-items: center;
139 }
140
141 .ryf-list .field--name-field-image {
142 margin: 0 auto;
143 }
144
145 .ryf-list img {
146 max-width: 150px;
147 overflow: hidden;
148 }
149
150 .ryf-list img:hover {
151 border-radius: 0;
152 }
153
154 .ryf-list h2 {
155 text-align: left;
156 font-size: 1.5em;
157 font-weight: 500;
158 line-height: 1.2em;
159 margin: 0;
160 padding: 0;
161 padding-bottom: 1em;
162 }
163
164 .ryf-list a {
165 color: #118991;
166 text-decoration: none;
167 }
168
169 .ryf-list a:hover {
170 color: #000;
171 }
172
173 .ryf-list .node-readmore,
174 .ryf-list .tags,
175 .ryf-list .supplier {
176 width: 100%;
177 float: left;
178 font-size: 0.9em;
179 border-top: 1px solid #ccc4c4;
180 margin-top: 5px;
181 padding-top: 5px;
182 color: #afadad;
183 }
184
185 .ryf-list .node-readmore {
186 text-align: right;
187 }
188
189 .feed-icons {
190 clear: both;
191 }
192
193 @media screen and (min-width: 450px) and (max-width: 659px) {
194 .ryf-list-row ul {
195 max-width: 600px;
196 }
197 .ryf-list {
198 max-width: 300px;
199 float: none;
200 margin: 0 auto;
201 }
202 }
203 @media screen and (min-width: 660px) and (max-width: 767px) {
204 .ryf-list-row ul {
205 max-width: 600px;
206 }
207 .ryf-list-row {
208 margin: 0 auto;
209 max-width: 660px;
210 }
211 .ryf-list {
212 max-width: 300px;
213 float: left;
214 }
215 }
216
217
218 /* Vendors list */
219
220
221 .vendors-list-row ul {
222 padding: 0;
223 margin: 0 auto;
224 overflow: auto;
225 }
226
227 @media screen and (max-width: 767px) {
228 .vendors-list-row {
229 margin: 0px auto;
230 }
231
232 .vendors-list {
233 margin-bottom: 40px;
234 list-style: none;
235
236 overflow: auto;
237 }
238
239 .vendors-list .views-field-field-icon {
240 width: 220px;
241
242 margin: 0px auto 20px auto;
243 }
244
245 .vendors-list .views-field-field-icon img {
246 margin: 0 auto;
247 }
248
249 .vendors-list .views-field-name, .vendors-list .views-field-description__value {
250 max-width: 300px;
251 margin: 0 auto 10px auto;
252 }
253
254 .vendors-list .views-field-name {
255 font-weight: bold;
256 font-size: 18px;
257 text-align: center;
258 }
259
260 }
261
262 @media screen and (min-width: 768px) {
263 .vendors-list-row {
264 width: 600px;
265 margin: 0px auto;
266 }
267
268 .vendors-list {
269 list-style: none;
270 clear: left;
271
272 overflow: auto;
273 }
274
275 .vendors-list .views-field-field-icon {
276 width: 220px;
277 height: 220px;
278
279 margin-bottom: 40px;
280
281 float: left;
282 }
283
284 .vendors-list .views-field-field-icon img {
285 margin: 0 auto;
286 }
287
288 .vendors-list .views-field-name, .vendors-list .views-field-description__value {
289 margin-left: 300px;
290 }
291
292 .vendors-list .views-field-name {
293 margin-bottom: 10px;
294 font-weight: bold;
295 font-size: 18px;
296 }
297 }
298
299
300 /* Sidebars */
301
302
303 @media screen and (max-width: 767px) {
304 .path-products #block-views-block-categories-categories-block { display: none; }
305 }
306
307
308 /* Vendor and Category taxonomy term pages */
309
310
311 .view-taxonomy-term .view-header .field--name-field-icon img {
312 margin: 0 auto;
313 }
314
315 .view-filters {
316 clear: left;
317 }
318
319 @media screen and (max-width: 559px) {
320 .view-taxonomy-term .view-header {
321 margin: 0 auto 40px auto;
322
323 overflow: auto;
324 }
325
326 .view-taxonomy-term .view-header .field--name-field-icon {
327 margin: 0 auto 20px auto;
328 width: 220px;
329 }
330
331 .view-taxonomy-term .view-header .field--name-description {
332 max-width: 360px;
333 margin: 0 auto;
334 padding: 0 10px;
335 }
336
337 }
338
339 @media screen and (min-width: 560px) {
340 .view-taxonomy-term .view-header {
341 margin: 0 0 40px 0;
342
343 overflow: auto;
344 }
345
346 .view-taxonomy-term .view-header .field--name-field-icon {
347 width: 220px;
348
349 float: left;
350 }
351
352 .view-taxonomy-term .view-header .field--name-description {
353 margin-left: 260px;
354 }
355
356 }
357
358 @media screen and (min-width: 768px) {
359 .view-taxonomy-term .view-header {
360 width: 700px;
361 }
362 }
363
364
365 /* Product */
366
367
368 @media screen and (max-width: 767px) {
369 .page-node-type-product .product {
370 max-width: 382px;
371 margin: 0 auto;
372 }
373 }
374
375 @media screen and (min-width: 768px) and (max-width: 991px) {
376 .page-node-type-product .product {
377 width: 700px;
378 margin: 0 auto;
379 }
380 }
381
382 @media screen and (min-width: 992px) {
383 .page-node-type-product .product {
384 width: 800px;
385 margin: 0 auto;
386 }
387 }
388
389 .page-node-type-product .product .field--name-field-image {
390 padding: 10px;
391
392 display: flex;
393 align-items: center;
394
395 border: 1px solid #888;
396 border-radius: 10px;
397 }
398
399 .page-node-type-product .product .field--name-field-extra-images {
400 padding: 5px;
401
402 display: flex;
403 align-items: center;
404
405 border: 1px solid #888;
406 border-radius: 10px;
407 }
408
409 .page-node-type-product .product .field--name-field-extra-images .field--item {
410 display: inline-block;
411 margin: auto;
412 padding: 5px;
413 }
414
415 .page-node-type-product .product .field--name-field-categories, .page-node-type-product .product .field--name-field-vendor {
416 margin: 10px 10px 20px 0px;
417 padding: 10px;
418 border: 1px solid #888;
419 border-radius: 10px;
420 }
421
422 .page-node-type-product .product .field--name-field-categories .field--item {
423 display: list-item;
424 list-style: circle;
425 margin-left: 15px;
426 }
427
428 /* product page colors */
429 .page-node-type-product .product .field--name-field-image {
430 background-color: #fff;
431 border-color: #aaa;
432 }
433 .page-node-type-product .product .field--name-field-extra-images {
434 background-color: #eee;
435 border-color: #aaa;
436 }
437 .page-node-type-product .product .field--name-field-categories {
438 background-color: #aef;
439 border-color: #0ad;
440 }
441 .page-node-type-product .product .field--name-field-vendor {
442 background-color: #afb;
443 border-color: #1a2;
444 }
445
446 @media screen and (max-width: 767px) {
447 .page-node-type-product .product .field--name-field-extra-images {
448 margin: 10px auto 0px auto;
449 }
450
451 .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 {
452 margin-bottom: 20px;
453 }
454
455 .page-node-type-product .product .field--name-field-categories, .page-node-type-product .product .field--name-field-vendor {
456 float: left;
457 }
458
459 .page-node-type-product .product .field--name-body {
460 clear: both;
461 }
462 }
463
464
465 @media screen and (min-width: 768px) {
466 .page-node-type-product .product .field--name-field-image {
467 width: 382px;
468 float: left;
469 }
470
471 .page-node-type-product .product .field--name-field-extra-images {
472 float: left;
473 clear: left;
474
475 width: 382px;
476 margin-top: 10px;
477 }
478
479 .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 {
480 margin-left: 400px;
481 margin-bottom: 20px;
482 }
483
484 .page-node-type-product .product .field--name-field-categories {
485 float: left;
486 clear: left;
487 }
488
489 .page-node-type-product .product .field--name-field-vendor {
490 float: left;
491 }
492
493 }
494
495
496 /* Footer */
497
498
499 .footer {
500 background: #333;
501 color: #FFF;
502 }
503
504 /* full page width for footer */
505 .footer {
506 width: 100%;
507 }
508
509 .footer a { color: #edd400; }
510
511 .footer a:hover { color: #FFF; }
512
513 .footer h4 { font-weight: bold; }
514
515 .footer .copyright { font-size: 0.9em; text-align: center; width: 80%; margin-top: 1em; border-top: 1px solid #111; padding: 1em; }
516
517 #fsf-logo-footer { margin-bottom: 10px; }
518
519 @media print { #fsf-logo-footer { filter: invert(100%) } }
520