Added 'Share' button, fixed 'Buy/avoid' buttons, added img template, removed old img
[fsf-giving-guide.git] / stylesheet.css
1 /*Typography*/
2
3 @font-face {
4 font-family: 'Signika Regular';
5 src: local('Signika Regular'), url('fonts/Signika-Regular.ttf') format('truetype');
6 }
7
8 @font-face {
9 font-family: 'Signika Light';
10 src: local('Signika Light'), url('fonts/Signika-Light.ttf') format('truetype');
11 }
12
13 @font-face {
14 font-family: 'Signika Bold';
15 src: local('Signika Bold'), url('fonts/Signika-Bold.ttf') format('truetype');
16 }
17
18 @font-face {
19 font-family: 'Open Sans';
20 src: local('Open Sans'), url('fonts/OpenSans-Regular.ttf') format('truetype');
21 }
22
23 @font-face {
24 font-family: 'Open Sans Bold';
25 src: local('Open Sans Bold'), url('fonts/OpenSans-Bold.ttf') format('truetype');
26 }
27
28 /*Style common HTML tags*/
29
30 html {
31 font-family: 'Open Sans', 'DejaVu Sans', Arial, sans-serif;
32 font-size: 14px;
33 line-height: 1.4;
34 color: #363636;
35 background-color: #fffefb;
36 width: 100%;
37 }
38
39 /* Type something: */
40
41 a { color: #1F8A70; border-bottom: 1px solid #dbd145; text-decoration: none; }
42
43 p { line-height: 1.4; margin-bottom: 1.5em; font-size: 1em; }
44
45 i { font-style: italic; }
46 b { font-style: oblique; }
47
48 li {list-style-type: circle; padding: 0.4em 0.2em; line-height: 1.4; }
49 /* ul {margin: 1em 2em 0em 4em;} */
50
51 br {margin-bottom: 20em; margin-top: 20em;}
52
53 h1 { font-size: 2.20em; font-family: 'Signika Light'; color: #2CAF8F; margin-bottom: 0.5em; margin-top: 1em; }
54 h2 { font-size: 1.75em; font-family: 'Signika Light'; color: #2CAF8F; margin-bottom: 0.5em; margin-top: 2em; }
55 h3 { font-size: 1.625em; font-family: 'Signika Bold'; color: #484848; margin-bottom: 0.5em; margin-top: 2em; }
56 h4 { font-size: 1.375em; font-family: 'Signika Light'; color: #4d4d4d; margin-bottom: 0.5em; margin-top: 2em; }
57 h5 { font-size: 1.25em; font-family: 'Signika Light'; color: #4d4d4d; margin-bottom: 0.5em; margin-top: 2em; }
58 h6 { font-size: 1.125em; font-family: 'Signika Light'; color: #4d4d4d; margin-bottom: 0.5em; margin-top: 2em; }
59
60 /*Site-specific*/
61
62 /* Header */
63
64 .header {
65 /* background-image: url("images/banner.png"); */
66 /* background-color: #2CAF8F; */
67 /* background-repeat: no-repeat; */
68 /* height: 710px; */
69 /* background-size: 550px; */
70 /* background-position: 5% 30%; */
71 }
72
73 /* Navbar */
74
75 .header_wrapper {
76 background-color: #2CAF8F;
77 height: 450px;
78 }
79
80 .header a {
81 border-bottom: 0;
82 }
83
84 .navbar_wrapper {
85 max-width: 1300px;
86 min-width: 1110px;
87 margin: auto;
88 text-align: center;
89 }
90
91 .logo_wrapper {
92 padding: 1.3em;
93 float: left;
94 }
95
96 .join_wrapper {
97 padding: 1.2em;
98 float: right;
99 display: inline-block;
100 }
101
102 .logo, .join {
103 max-width: 200px;
104 min-width: 200px;
105 }
106
107 .share_wrapper {
108 }
109
110 .share {
111 text-align: center;
112 }
113
114 .share a{
115 background-color: #FFE859;
116 border-bottom: 0;
117 padding: .6em 2em;
118 font-family: 'Signika Bold';
119 font-size: 1.4em;
120 color: #2CAF8F;
121 border-radius: 50em;
122 }
123
124 .share a:hover {
125 background-color: #FDDE56;
126 }
127
128 .navbar {
129 width: 537px;
130 padding: 1em;
131 height: 2.55556em;
132 display: inline-block;
133 /* float: left; */
134 }
135
136 .navbar li {
137 font-family: 'Signika Regular';
138 font-size: 1em;
139 background-color: white;
140 list-style-type: none;
141 border-right: 1px #9BD2BF solid;
142 padding: 0 30px 0 30px;
143 line-height: 2.6;
144 float: left;
145 }
146
147 .navbar li:first-child {
148 border-radius: 100px 0 0 100px;
149 }
150
151 .navbar li:last-child {
152 border-right: 0;
153 border-radius: 0 100px 100px 0;
154 }
155
156 .navbar li:hover {
157 background-color: #FFDD55;
158 }
159
160 .navbar li a {
161 display: block;
162 text-decoration: none;
163 }
164
165 .navbar li a:hover {
166 color: #4B423B;
167 }
168
169 .intro {
170 margin: auto;
171 max-width: 1300px;
172 min-width: 1170px;
173 }
174
175 .intro_wrapper {
176 /* width: 40%; */
177 max-width: 500px;
178 min-width: 500px;
179 float: right;
180 color: white !important;
181 /* padding-right: 3em; */
182 }
183
184 .intro_wrapper h2 {
185 color: #FFDD55;
186 }
187
188 .intro_img img{
189 width: 40%;
190 max-width: 500px;
191 float: left;
192 padding: 2em;
193 padding-left: 3em;
194
195 }
196
197 /* Comparisons */
198
199 .wrapper,
200 .section_wrapper,
201 .buy_avoid,
202 .recommended {
203 max-width: 750px;
204 min-width: 750px;
205 margin: auto;
206 }
207
208 .main_title {
209 width: 100%;
210 text-align: left;
211 border-bottom: 1px solid lightgray;
212 margin-top: 3em;
213 margin-bottom: 2em;
214 display: inline-block;
215 }
216
217 .buy a {
218 border-bottom: none;
219 }
220
221 .product_img {
222 margin: auto;
223 /* width: 168px; */
224 height: 168px;
225 }
226
227 .product {
228 margin: auto;
229 display: block;
230 /* margin-bottom: 8em; */
231 /* max-width: 168px; */
232 max-height: 168px;
233 }
234
235 .good,
236 .bad {
237 display: none; /* FIXME: This is temporary until I fix the sizes*/
238 position: relative;
239 top: 175px;
240 left: 84px;
241 width: 60px;
242 }
243
244 .free, .proprietary {
245 text-align: center;
246 }
247
248 .free li,
249 .proprietary li {
250 text-align: left;
251 }
252
253 .buy img,
254 .avoid img {
255 max-width: 151px;
256 height: 42px;
257 }
258
259 .buy_avoid_wrapper {
260 margin-top: 2em;
261 min-width: 100%;
262 max-width: 100%;
263 display: inline-block;
264 }
265
266 .buy {
267 text-align: center;
268 margin: auto;
269 width: 45.555555%;
270 float: left;
271
272 }
273
274 .avoid {
275 text-align: center;
276 margin: auto;
277 width: 45.555555%;
278 float: right;
279 }
280
281 .free {
282 float: left;
283 width: 45.555555%;
284 }
285
286 .proprietary {
287 float: right;
288 width: 45.555555%;
289 }
290
291 /* Recommended Section */
292
293 .topic_title {
294 border-bottom: 1px solid #2CAF8F;
295 width: 100%;
296 text-align: left;
297 margin-top: 3em;
298 display: inline-block;
299 }
300
301 .recommend_wrapper {
302 padding-top: 1em;
303 margin: auto;
304 width: 750px;
305 }
306
307 .recommended_product {
308 text-align: center;
309 width: 29%;
310 margin: 1em;
311 display: inline-block
312 }
313
314 .recommended_product_img {
315 width: 120px;
316 }
317
318 .recommend_wrapper .buy {
319 float: none;
320 text-align: center;
321 width: 100%;
322 }