7018a398468d9d5b876c2c9fbec5c0fe35009f15
[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 /* Selectors */
90
91 @media screen and (min-width: 768px) {
92 .form-inline .form-item .select-wrapper {
93 display: block;
94 }
95 .form-inline .form-actions {
96 margin-top: 21px;
97 }
98 }
99
100 /* RYF List */
101
102 .ryf-list {
103 float: left;
104 margin: 0;
105 padding: 0.5em;
106 position:relative;
107 list-style: none;
108 }
109
110 .ryf-list article {
111 border: 1px solid #ececec;
112 border-radius: 5px;
113 padding: 1em;
114 box-shadow: 2px 2px 5px #ddd;
115 transition: 0.3s;
116 }
117
118 .ryf-list article:hover {
119 box-shadow: 0px 0px 5px #aaa;
120 }
121
122 .ryf-list .field--type-image {
123 width: 100%;
124 height: 150px;
125 background: #fff;
126 border-radius: 10px;
127 display: flex;
128 justify-content: center;
129 }
130
131 .ryf-list img {
132 max-width: 150px;
133 overflow: hidden;
134 }
135
136 .ryf-list img:hover {
137 border-radius: 0;
138 }
139
140 .ryf-list h2 {
141 text-align: left;
142 font-size: 1.5em;
143 font-weight: 500;
144 line-height: 1.2em;
145 margin: 0;
146 padding: 0;
147 padding-bottom: 1em;
148 }
149
150 .ryf-list a {
151 color: #118991;
152 text-decoration: none;
153 }
154
155 .ryf-list a:hover {
156 color: #000;
157 }
158
159 .ryf-list .node-readmore,
160 .ryf-list .tags,
161 .ryf-list .supplier {
162 width: 100%;
163 float: left;
164 font-size: 0.9em;
165 border-top: 1px solid #ccc4c4;
166 margin-top: 5px;
167 padding-top: 5px;
168 color: #afadad;
169 }
170
171 .ryf-list .node-readmore {
172 text-align: right;
173 }
174
175
176 /* Vendors list */
177
178 @media screen and (max-width: 767px) {
179 .vendors-list-row {
180 margin: 0px auto;
181 }
182
183 .vendors-list {
184 margin-bottom: 40px;
185 list-style: none;
186 }
187
188 .vendors-list .views-field-field-icon {
189 width: 220px;
190
191 margin: 0px auto 20px auto;
192 }
193
194 .vendors-list .views-field-field-icon img {
195 margin: 0 auto;
196 }
197
198 .vendors-list .views-field-name, .vendors-list .views-field-description__value {
199 max-width: 300px;
200 margin: 0 auto 10px auto;
201 }
202
203 .vendors-list .views-field-name {
204 font-weight: bold;
205 font-size: 18px;
206 text-align: center;
207 }
208
209 }
210
211 @media screen and (min-width: 768px) {
212 .vendors-list-row {
213 width: 600px;
214 margin: 0px auto;
215 }
216
217 .vendors-list {
218 list-style: none;
219 clear: left;
220 }
221
222 .vendors-list .views-field-field-icon {
223 width: 220px;
224 height: 220px;
225
226 margin-bottom: 40px;
227
228 float: left;
229 }
230
231 .vendors-list .views-field-field-icon img {
232 margin: 0 auto;
233 }
234
235 .vendors-list .views-field-name, .vendors-list .views-field-description__value {
236 margin-left: 300px;
237 }
238
239 .vendors-list .views-field-name {
240 margin-bottom: 10px;
241 font-weight: bold;
242 font-size: 18px;
243 }
244 }
245
246
247 /* Sidebars */
248
249
250 @media screen and (max-width: 767px) {
251 .path-products #block-views-block-categories-categories-block { display: none; }
252 }
253
254
255 /* Product */
256
257 @media screen and (max-width: 767px) {
258 .page-node-type-product .product {
259 max-width: 382px;
260 margin: 0 auto;
261 }
262 }
263
264 @media screen and (min-width: 768px) and (max-width: 991px) {
265 .page-node-type-product .product {
266 width: 700px;
267 margin: 0 auto;
268 }
269 }
270
271 @media screen and (min-width: 992px) {
272 .page-node-type-product .product {
273 width: 800px;
274 margin: 0 auto;
275 }
276 }
277
278 .page-node-type-product .product .field--name-field-image {
279 padding: 10px;
280
281 display: flex;
282 align-items: center;
283
284 border: 1px solid #888;
285 border-radius: 10px;
286 }
287
288 .page-node-type-product .product .field--name-field-extra-images {
289 padding: 5px;
290
291 display: flex;
292 align-items: center;
293
294 border: 1px solid #888;
295 border-radius: 10px;
296 }
297
298 .page-node-type-product .product .field--name-field-extra-images .field--item {
299 display: inline-block;
300 margin: auto;
301 padding: 5px;
302 }
303
304 .page-node-type-product .product .field--name-field-categories, .page-node-type-product .product .field--name-field-vendor {
305 margin: 10px 10px 20px 0px;
306 padding: 10px;
307 border: 1px solid #888;
308 border-radius: 10px;
309 }
310
311 @media screen and (max-width: 767px) {
312 .page-node-type-product .product .field--name-field-extra-images {
313 margin: 10px auto 0px auto;
314 }
315
316 .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 {
317 margin-bottom: 20px;
318 }
319
320 .page-node-type-product .product .field--name-field-categories, .page-node-type-product .product .field--name-field-vendor {
321 float: left;
322 }
323
324 .page-node-type-product .product .field--name-body {
325 clear: both;
326 }
327 }
328
329
330 @media screen and (min-width: 768px) {
331 .page-node-type-product .product .field--name-field-image {
332 width: 382px;
333 float: left;
334 }
335
336 .page-node-type-product .product .field--name-field-extra-images {
337 float: left;
338 clear: left;
339
340 width: 382px;
341 margin-top: 10px;
342 }
343
344 .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 {
345 margin-left: 400px;
346 margin-bottom: 20px;
347 }
348
349 .page-node-type-product .product .field--name-field-categories {
350 float: left;
351 clear: left;
352 }
353
354 .page-node-type-product .product .field--name-field-vendor {
355 float: left;
356 }
357
358 }
359
360
361 /* Footer */
362
363 .footer {
364 background: #333;
365 color: #FFF;
366 }
367
368 /* full page width for footer */
369 .footer {
370 width: 100%;
371 }
372
373 .footer a { color: #edd400; }
374
375 .footer a:hover { color: #FFF; }
376
377 .footer h4 { font-weight: bold; }
378
379 .footer .copyright { font-size: 0.9em; text-align: center; width: 80%; margin-top: 1em; border-top: 1px solid #111; padding: 1em; }
380
381 #fsf-logo-footer { margin-bottom: 10px; }
382
383 @media print { #fsf-logo-footer { filter: invert(100%) } }
384