don't show categories list on /products for mobile
[ryf-theme.git] / css / style.css
... / ...
CommitLineData
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
6body { margin: 0; min-width: 320px; }
7
8a { 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 width: 95%;
23 max-width: 1150px;
24 padding: 0;
25 margin: 0 auto;
26 border: none;
27 overflow: hidden;
28}
29
30.navbar-default .navbar-toggle { display: none; }
31
32.navbar-header {
33 position: absolute;
34 top: 5px;
35}
36
37.navbar-brand { display: none; }
38
39#block-ryf-main-menu .navbar-nav { margin-left: 180px; }
40
41.navbar-default .navbar-nav > .active > a,
42.navbar-default .navbar-nav > .active > a:hover,
43.navbar-default .navbar-nav > li > a {
44 color: #FFF;
45 background: #000;
46 border-bottom: 2px solid transparent;
47 padding-bottom: 10px;
48 margin-bottom: 5px;
49}
50
51.navbar-default .navbar-nav > .active > a,
52.navbar-default .navbar-nav > .active > a:hover,
53.navbar-default .navbar-nav > li > a:hover {
54 color: #edd400;
55 border-bottom: 2px solid #edd400;
56 padding-bottom: 5px;
57 margin-bottom: 10px;
58}
59
60.page-header {
61 border-bottom: 2px solid #000;
62 font-size: 2em;
63}
64
65.region-header .search-block-form {
66 width: 300px;
67 float: right;
68}
69
70@media screen and (min-width: 520px) and (max-width: 599px) {
71 .logo img { margin-left: 50px; }
72 #block-ryf-main-menu .navbar-nav { margin-left: 230px; }
73}
74
75@media screen and (min-width: 600px) and (max-width: 767px) {
76 .logo img { margin-left: 100px; }
77 #block-ryf-main-menu .navbar-nav { margin-left: 280px; }
78}
79
80@media screen and (max-width: 767px) {
81 .logo img { height: 150px; margin-top: 25px; }
82 .navbar-default { min-height: 230px; margin-bottom: 30px; }
83 #block-ryf-main-menu .navbar-nav { max-width: 130px; }
84 .search-block-form { margin-top: -50px; }
85 .page-header { margin-top: 50px; }
86}
87
88@media screen and (min-width: 768px) {
89 .navbar-nav { margin-top: 40px; }
90 .search-block-form { margin-top: -80px; }
91}
92
93/* Selectors */
94
95@media screen and (min-width: 768px) {
96 .form-inline .form-item .select-wrapper {
97 display: block;
98 }
99 .form-inline .form-actions {
100 margin-top: 21px;
101 }
102}
103
104/* RYF List */
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: 100%;
128 background: #fff;
129 border-radius: 10px;
130 display: flex;
131 justify-content: center;
132}
133
134.ryf-list img {
135 max-width: 150px;
136 min-height: 150px;
137 overflow: hidden;
138}
139
140.ryf-list img:hover {
141 border-radius: 0;
142}
143
144.ryf-list h2 {
145 text-align: left;
146 font-size: 1.5em;
147 font-weight: 500;
148 line-height: 1.2em;
149 margin: 0;
150 padding: 0;
151 padding-bottom: 1em;
152}
153
154.ryf-list a {
155 color: #118991;
156 text-decoration: none;
157}
158
159.ryf-list a:hover {
160 color: #000;
161}
162
163.ryf-list .node-readmore,
164.ryf-list .tags,
165.ryf-list .supplier {
166 width: 100%;
167 float: left;
168 font-size: 0.9em;
169 border-top: 1px solid #ccc4c4;
170 margin-top: 5px;
171 padding-top: 5px;
172 color: #afadad;
173}
174
175.ryf-list .node-readmore {
176 text-align: right;
177}
178
179
180/* Sidebars */
181
182
183@media screen and (max-width: 767px) {
184 .path-products #block-views-block-categories-categories-block { display: none; }
185}
186
187
188/* Footer */
189
190.footer {
191 background: #333;
192 color: #FFF;
193}
194
195/* full page width for footer */
196.footer {
197 position: absolute;
198 left: 0;
199 right: 0;
200 width: 100%;
201}
202
203.footer a { color: #edd400; }
204
205.footer a:hover { color: #FFF; }
206
207.footer h4 { font-weight: bold; }
208
209.footer .copyright { font-size: 0.9em; text-align: center; width: 80%; margin-top: 1em; border-top: 1px solid #111; padding: 1em; }
210
211#fsf-logo-footer { margin-bottom: 10px; }
212