7b89ed70a2ca3d437e88ba8879e06b7afcc6df63
[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 @media screen and (min-width: 450px) and (max-width: 659px) {
190 .ryf-list-row ul {
191 max-width: 600px;
192 }
193 .ryf-list {
194 max-width: 300px;
195 float: none;
196 margin: 0 auto;
197 }
198 }
199 @media screen and (min-width: 660px) and (max-width: 767px) {
200 .ryf-list-row ul {
201 max-width: 600px;
202 }
203 .ryf-list-row {
204 margin: 0 auto;
205 max-width: 660px;
206 }
207 .ryf-list {
208 max-width: 300px;
209 float: left;
210 }
211 }
212
213
214 /* Vendors list */
215
216
217 @media screen and (max-width: 767px) {
218 .vendors-list-row {
219 margin: 0px auto;
220 }
221
222 .vendors-list {
223 margin-bottom: 40px;
224 list-style: none;
225
226 overflow: auto;
227 }
228
229 .vendors-list .views-field-field-icon {
230 width: 220px;
231
232 margin: 0px auto 20px auto;
233 }
234
235 .vendors-list .views-field-field-icon img {
236 margin: 0 auto;
237 }
238
239 .vendors-list .views-field-name, .vendors-list .views-field-description__value {
240 max-width: 300px;
241 margin: 0 auto 10px auto;
242 }
243
244 .vendors-list .views-field-name {
245 font-weight: bold;
246 font-size: 18px;
247 text-align: center;
248 }
249
250 }
251
252 @media screen and (min-width: 768px) {
253 .vendors-list-row {
254 width: 600px;
255 margin: 0px auto;
256 }
257
258 .vendors-list {
259 list-style: none;
260 clear: left;
261
262 overflow: auto;
263 }
264
265 .vendors-list .views-field-field-icon {
266 width: 220px;
267 height: 220px;
268
269 margin-bottom: 40px;
270
271 float: left;
272 }
273
274 .vendors-list .views-field-field-icon img {
275 margin: 0 auto;
276 }
277
278 .vendors-list .views-field-name, .vendors-list .views-field-description__value {
279 margin-left: 300px;
280 }
281
282 .vendors-list .views-field-name {
283 margin-bottom: 10px;
284 font-weight: bold;
285 font-size: 18px;
286 }
287 }
288
289
290 /* Sidebars */
291
292
293 @media screen and (max-width: 767px) {
294 .path-products #block-views-block-categories-categories-block { display: none; }
295 }
296
297
298 /* Vendor and Category taxonomy term pages */
299
300
301 .view-taxonomy-term .view-header .field--name-field-icon img {
302 margin: 0 auto;
303 }
304
305 .view-filters {
306 clear: left;
307 }
308
309 .feed-icons {
310 clear: both;
311 }
312
313 @media screen and (max-width: 559px) {
314 .view-taxonomy-term .view-header {
315 margin: 0 auto 40px auto;
316
317 overflow: auto;
318 }
319
320 .view-taxonomy-term .view-header .field--name-field-icon {
321 margin: 0 auto 20px auto;
322 width: 220px;
323 }
324
325 .view-taxonomy-term .view-header .field--name-description {
326 max-width: 360px;
327 margin: 0 auto;
328 padding: 0 10px;
329 }
330
331 }
332
333 @media screen and (min-width: 560px) {
334 .view-taxonomy-term .view-header {
335 margin: 0 0 40px 0;
336
337 overflow: auto;
338 }
339
340 .view-taxonomy-term .view-header .field--name-field-icon {
341 width: 220px;
342
343 float: left;
344 }
345
346 .view-taxonomy-term .view-header .field--name-description {
347 margin-left: 260px;
348 }
349
350 }
351
352 @media screen and (min-width: 768px) {
353 .view-taxonomy-term .view-header {
354 width: 700px;
355 }
356 }
357
358
359 /* Product */
360
361
362 @media screen and (max-width: 767px) {
363 .page-node-type-product .product {
364 max-width: 382px;
365 margin: 0 auto;
366 }
367 }
368
369 @media screen and (min-width: 768px) and (max-width: 991px) {
370 .page-node-type-product .product {
371 width: 700px;
372 margin: 0 auto;
373 }
374 }
375
376 @media screen and (min-width: 992px) {
377 .page-node-type-product .product {
378 width: 800px;
379 margin: 0 auto;
380 }
381 }
382
383 .page-node-type-product .product .field--name-field-image {
384 padding: 10px;
385
386 display: flex;
387 align-items: center;
388
389 border: 1px solid #888;
390 border-radius: 10px;
391 }
392
393 .page-node-type-product .product .field--name-field-extra-images {
394 padding: 5px;
395
396 display: flex;
397 align-items: center;
398
399 border: 1px solid #888;
400 border-radius: 10px;
401 }
402
403 .page-node-type-product .product .field--name-field-extra-images .field--item {
404 display: inline-block;
405 margin: auto;
406 padding: 5px;
407 }
408
409 .page-node-type-product .product .field--name-field-categories, .page-node-type-product .product .field--name-field-vendor {
410 margin: 10px 10px 20px 0px;
411 padding: 10px;
412 border: 1px solid #888;
413 border-radius: 10px;
414 }
415
416 @media screen and (max-width: 767px) {
417 .page-node-type-product .product .field--name-field-extra-images {
418 margin: 10px auto 0px auto;
419 }
420
421 .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 {
422 margin-bottom: 20px;
423 }
424
425 .page-node-type-product .product .field--name-field-categories, .page-node-type-product .product .field--name-field-vendor {
426 float: left;
427 }
428
429 .page-node-type-product .product .field--name-body {
430 clear: both;
431 }
432 }
433
434
435 @media screen and (min-width: 768px) {
436 .page-node-type-product .product .field--name-field-image {
437 width: 382px;
438 float: left;
439 }
440
441 .page-node-type-product .product .field--name-field-extra-images {
442 float: left;
443 clear: left;
444
445 width: 382px;
446 margin-top: 10px;
447 }
448
449 .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 {
450 margin-left: 400px;
451 margin-bottom: 20px;
452 }
453
454 .page-node-type-product .product .field--name-field-categories {
455 float: left;
456 clear: left;
457 }
458
459 .page-node-type-product .product .field--name-field-vendor {
460 float: left;
461 }
462
463 }
464
465
466 /* Footer */
467
468
469 .footer {
470 background: #333;
471 color: #FFF;
472 }
473
474 /* full page width for footer */
475 .footer {
476 width: 100%;
477 }
478
479 .footer a { color: #edd400; }
480
481 .footer a:hover { color: #FFF; }
482
483 .footer h4 { font-weight: bold; }
484
485 .footer .copyright { font-size: 0.9em; text-align: center; width: 80%; margin-top: 1em; border-top: 1px solid #111; padding: 1em; }
486
487 #fsf-logo-footer { margin-bottom: 10px; }
488
489 @media print { #fsf-logo-footer { filter: invert(100%) } }
490