578b6890bffaf6ffa245a1bdf15a2011b7a971b8
[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 .view-taxonomy-term .view-header .field--name-field-icon img {
290 margin: 0 auto;
291 }
292
293 .view-filters {
294 clear: left;
295 }
296
297 .feed-icons {
298 clear: both;
299 }
300
301 @media screen and (max-width: 559px) {
302 .view-taxonomy-term .view-header {
303 margin: 0 auto 40px auto;
304
305 overflow: auto;
306 }
307
308 .view-taxonomy-term .view-header .field--name-field-icon {
309 margin: 0 auto 20px auto;
310 width: 220px;
311 }
312
313 .view-taxonomy-term .view-header .field--name-description {
314 max-width: 360px;
315 margin: 0 auto;
316 padding: 0 10px;
317 }
318
319 }
320
321 @media screen and (min-width: 560px) {
322 .view-taxonomy-term .view-header {
323 margin: 0 0 40px 0;
324
325 overflow: auto;
326 }
327
328 .view-taxonomy-term .view-header .field--name-field-icon {
329 width: 220px;
330
331 float: left;
332 }
333
334 .view-taxonomy-term .view-header .field--name-description {
335 margin-left: 260px;
336 }
337
338 }
339
340 @media screen and (min-width: 768px) {
341 .view-taxonomy-term .view-header {
342 width: 700px;
343 }
344 }
345
346
347 /* Product */
348
349
350 @media screen and (max-width: 767px) {
351 .page-node-type-product .product {
352 max-width: 382px;
353 margin: 0 auto;
354 }
355 }
356
357 @media screen and (min-width: 768px) and (max-width: 991px) {
358 .page-node-type-product .product {
359 width: 700px;
360 margin: 0 auto;
361 }
362 }
363
364 @media screen and (min-width: 992px) {
365 .page-node-type-product .product {
366 width: 800px;
367 margin: 0 auto;
368 }
369 }
370
371 .page-node-type-product .product .field--name-field-image {
372 padding: 10px;
373
374 display: flex;
375 align-items: center;
376
377 border: 1px solid #888;
378 border-radius: 10px;
379 }
380
381 .page-node-type-product .product .field--name-field-extra-images {
382 padding: 5px;
383
384 display: flex;
385 align-items: center;
386
387 border: 1px solid #888;
388 border-radius: 10px;
389 }
390
391 .page-node-type-product .product .field--name-field-extra-images .field--item {
392 display: inline-block;
393 margin: auto;
394 padding: 5px;
395 }
396
397 .page-node-type-product .product .field--name-field-categories, .page-node-type-product .product .field--name-field-vendor {
398 margin: 10px 10px 20px 0px;
399 padding: 10px;
400 border: 1px solid #888;
401 border-radius: 10px;
402 }
403
404 @media screen and (max-width: 767px) {
405 .page-node-type-product .product .field--name-field-extra-images {
406 margin: 10px auto 0px auto;
407 }
408
409 .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 {
410 margin-bottom: 20px;
411 }
412
413 .page-node-type-product .product .field--name-field-categories, .page-node-type-product .product .field--name-field-vendor {
414 float: left;
415 }
416
417 .page-node-type-product .product .field--name-body {
418 clear: both;
419 }
420 }
421
422
423 @media screen and (min-width: 768px) {
424 .page-node-type-product .product .field--name-field-image {
425 width: 382px;
426 float: left;
427 }
428
429 .page-node-type-product .product .field--name-field-extra-images {
430 float: left;
431 clear: left;
432
433 width: 382px;
434 margin-top: 10px;
435 }
436
437 .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 {
438 margin-left: 400px;
439 margin-bottom: 20px;
440 }
441
442 .page-node-type-product .product .field--name-field-categories {
443 float: left;
444 clear: left;
445 }
446
447 .page-node-type-product .product .field--name-field-vendor {
448 float: left;
449 }
450
451 }
452
453
454 /* Footer */
455
456
457 .footer {
458 background: #333;
459 color: #FFF;
460 }
461
462 /* full page width for footer */
463 .footer {
464 width: 100%;
465 }
466
467 .footer a { color: #edd400; }
468
469 .footer a:hover { color: #FFF; }
470
471 .footer h4 { font-weight: bold; }
472
473 .footer .copyright { font-size: 0.9em; text-align: center; width: 80%; margin-top: 1em; border-top: 1px solid #111; padding: 1em; }
474
475 #fsf-logo-footer { margin-bottom: 10px; }
476
477 @media print { #fsf-logo-footer { filter: invert(100%) } }
478