7b42594b4e8cf8c84bac0ad7c69540675bbf0e5b
[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 /* Product */
287
288
289 @media screen and (max-width: 767px) {
290 .page-node-type-product .product {
291 max-width: 382px;
292 margin: 0 auto;
293 }
294 }
295
296 @media screen and (min-width: 768px) and (max-width: 991px) {
297 .page-node-type-product .product {
298 width: 700px;
299 margin: 0 auto;
300 }
301 }
302
303 @media screen and (min-width: 992px) {
304 .page-node-type-product .product {
305 width: 800px;
306 margin: 0 auto;
307 }
308 }
309
310 .page-node-type-product .product .field--name-field-image {
311 padding: 10px;
312
313 display: flex;
314 align-items: center;
315
316 border: 1px solid #888;
317 border-radius: 10px;
318 }
319
320 .page-node-type-product .product .field--name-field-extra-images {
321 padding: 5px;
322
323 display: flex;
324 align-items: center;
325
326 border: 1px solid #888;
327 border-radius: 10px;
328 }
329
330 .page-node-type-product .product .field--name-field-extra-images .field--item {
331 display: inline-block;
332 margin: auto;
333 padding: 5px;
334 }
335
336 .page-node-type-product .product .field--name-field-categories, .page-node-type-product .product .field--name-field-vendor {
337 margin: 10px 10px 20px 0px;
338 padding: 10px;
339 border: 1px solid #888;
340 border-radius: 10px;
341 }
342
343 @media screen and (max-width: 767px) {
344 .page-node-type-product .product .field--name-field-extra-images {
345 margin: 10px auto 0px auto;
346 }
347
348 .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 {
349 margin-bottom: 20px;
350 }
351
352 .page-node-type-product .product .field--name-field-categories, .page-node-type-product .product .field--name-field-vendor {
353 float: left;
354 }
355
356 .page-node-type-product .product .field--name-body {
357 clear: both;
358 }
359 }
360
361
362 @media screen and (min-width: 768px) {
363 .page-node-type-product .product .field--name-field-image {
364 width: 382px;
365 float: left;
366 }
367
368 .page-node-type-product .product .field--name-field-extra-images {
369 float: left;
370 clear: left;
371
372 width: 382px;
373 margin-top: 10px;
374 }
375
376 .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 {
377 margin-left: 400px;
378 margin-bottom: 20px;
379 }
380
381 .page-node-type-product .product .field--name-field-categories {
382 float: left;
383 clear: left;
384 }
385
386 .page-node-type-product .product .field--name-field-vendor {
387 float: left;
388 }
389
390 }
391
392
393 /* Footer */
394
395
396 .footer {
397 background: #333;
398 color: #FFF;
399 }
400
401 /* full page width for footer */
402 .footer {
403 width: 100%;
404 }
405
406 .footer a { color: #edd400; }
407
408 .footer a:hover { color: #FFF; }
409
410 .footer h4 { font-weight: bold; }
411
412 .footer .copyright { font-size: 0.9em; text-align: center; width: 80%; margin-top: 1em; border-top: 1px solid #111; padding: 1em; }
413
414 #fsf-logo-footer { margin-bottom: 10px; }
415
416 @media print { #fsf-logo-footer { filter: invert(100%) } }
417