updated search bar displacement css code
[ryf-theme.git] / css / style.css
CommitLineData
1e7a45c4
VSB
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
658e30ec 6body { margin: 0; min-width: 320px; }
1e7a45c4 7
b4ed810a
VSB
8a { transition: 0.3s; }
9
1e7a45c4
VSB
10.navbar-default {
11 background: #000;
12 color: #FFF;
13 border: none;
14 border-radius: 0px;
15 box-sizing: content-box;
1e7a45c4
VSB
16 align-items: center;
17 margin-bottom: 100px;
18 min-height: 100px;
19}
20
21.navbar-header, #navbar-collapse {
1e7a45c4
VSB
22 width: 95%;
23 max-width: 1150px;
24 padding: 0;
25 margin: 0 auto;
bfc9c2d3
VSB
26 border: none;
27 overflow: hidden;
1e7a45c4
VSB
28}
29
67263bd5 30.navbar-default .navbar-toggle { display: none; }
bfc9c2d3 31
1e7a45c4
VSB
32.navbar-header {
33 position: absolute;
34 top: 5px;
35}
36
67263bd5 37.navbar-brand { display: none; }
ccc0e97e
VSB
38
39#block-ryf-main-menu .navbar-nav { margin-left: 180px; }
40
0af85f8e 41.navbar-default .navbar-nav > .active > a,
b4ed810a 42.navbar-default .navbar-nav > .active > a:hover,
0af85f8e 43.navbar-default .navbar-nav > li > a {
b4ed810a 44 color: #FFF;
0af85f8e 45 background: #000;
b4ed810a 46 border-bottom: 2px solid transparent;
0af85f8e
AE
47 padding-bottom: 10px;
48 margin-bottom: 5px;
b4ed810a
VSB
49}
50
b4ed810a 51.navbar-default .navbar-nav > .active > a,
0af85f8e
AE
52.navbar-default .navbar-nav > .active > a:hover,
53.navbar-default .navbar-nav > li > a:hover {
b4ed810a
VSB
54 color: #edd400;
55 border-bottom: 2px solid #edd400;
56 padding-bottom: 5px;
0af85f8e 57 margin-bottom: 10px;
b4ed810a
VSB
58}
59
cafdcde8 60.page-header {
357e6db1 61 border-bottom: 2px solid #000;
cafdcde8
VSB
62 font-size: 2em;
63}
64
2cbded31
VSB
65.region-header .search-block-form {
66 width: 300px;
67 float: right;
68}
69
2f113c95
AE
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}
aa4eefa7 74
2f113c95
AE
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; }
5b51720f 84 .search-block-form { margin-top: -50px; }
e78bc9ba
AE
85 /* note that the following will not work if the breadcrumb is missing on a
86 * page, such as the main page */
87 .breadcrumb { margin-top: 50px; }
2f113c95
AE
88}
89
81342c63
AE
90@media screen and (min-width: 768px) {
91 .navbar-nav { margin-top: 40px; }
5b51720f 92 .search-block-form { margin-top: -80px; }
81342c63
AE
93}
94
cd0efca0
AE
95/* Selectors */
96
97@media screen and (min-width: 768px) {
98 .form-inline .form-item .select-wrapper {
99 display: block;
100 }
101 .form-inline .form-actions {
102 margin-top: 21px;
103 }
104}
105
16670121 106/* RYF List */
b4ed810a 107
16670121
VSB
108.ryf-list {
109 float: left;
110 margin: 0;
111 padding: 0.5em;
112 position:relative;
113 list-style: none;
114}
b4ed810a 115
16670121
VSB
116.ryf-list article {
117 border: 1px solid #ececec;
118 border-radius: 5px;
119 padding: 1em;
120 box-shadow: 2px 2px 5px #ddd;
121 transition: 0.3s;
122}
1e7a45c4 123
16670121
VSB
124.ryf-list article:hover {
125 box-shadow: 0px 0px 5px #aaa;
b4ed810a 126}
1e7a45c4 127
16670121
VSB
128.ryf-list .field--type-image {
129 width: 100%;
130 background: #fff;
131 border-radius: 10px;
132 display: flex;
133 justify-content: center;
1e7a45c4 134}
b4ed810a 135
16670121
VSB
136.ryf-list img {
137 max-width: 150px;
b4ed810a 138 min-height: 150px;
16670121
VSB
139 overflow: hidden;
140}
141
142.ryf-list img:hover {
143 border-radius: 0;
ccc0e97e 144}
b4ed810a 145
ccc0e97e 146.ryf-list h2 {
b4ed810a
VSB
147 text-align: left;
148 font-size: 1.5em;
149 font-weight: 500;
150 line-height: 1.2em;
16670121
VSB
151 margin: 0;
152 padding: 0;
153 padding-bottom: 1em;
b4ed810a
VSB
154}
155
156.ryf-list a {
157 color: #118991;
158 text-decoration: none;
159}
160
161.ryf-list a:hover {
162 color: #000;
163}
1e7a45c4 164
ccc0e97e
VSB
165.ryf-list .node-readmore,
166.ryf-list .tags,
167.ryf-list .supplier {
b4ed810a
VSB
168 width: 100%;
169 float: left;
170 font-size: 0.9em;
171 border-top: 1px solid #ccc4c4;
172 margin-top: 5px;
173 padding-top: 5px;
174 color: #afadad;
175}
16670121
VSB
176
177.ryf-list .node-readmore {
178 text-align: right;
179}
180
181
f39cdbbc
AE
182/* Sidebars */
183
184
185@media screen and (max-width: 767px) {
186 .path-products #block-views-block-categories-categories-block { display: none; }
187}
188
189
16670121
VSB
190/* Footer */
191
192.footer {
193 background: #333;
194 color: #FFF;
195}
196
06d8ab9f 197/* full page width for footer */
c900f9d4 198.footer {
c900f9d4
AE
199 width: 100%;
200}
201
16670121
VSB
202.footer a { color: #edd400; }
203
204.footer a:hover { color: #FFF; }
205
206.footer h4 { font-weight: bold; }
207
208.footer .copyright { font-size: 0.9em; text-align: center; width: 80%; margin-top: 1em; border-top: 1px solid #111; padding: 1em; }
209
0bd91ac3
AE
210#fsf-logo-footer { margin-bottom: 10px; }
211
18f8d3b1
AE
212@media print { #fsf-logo-footer { filter: invert(100%) } }
213