-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
346 lines (285 loc) · 6.17 KB
/
styles.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
*:focus { outline: none; }
/* Basic styling
============================================================= */
html,
body {
background-color: #fff;
color: #555;
font-family: 'Lato', 'Arial', sans-serif;
font-size: 20px;
font-weight: 300;
/* Renders text clean */
text-rendering: optimizeLegibility;
}
.row {
max-width: 1140px; /* fixed width for all rows */
margin: 0 auto; /* center content*/
}
section { padding: 80px 0px; }
h1 {
margin-bottom: 5px;
color: #fff;
font-size: 230%;
letter-spacing: 1px;
}
h2 {
font-size: 140%;
margin-bottom: 15px;
word-spacing: 3px;
letter-spacing: 1px;
font-weight: 300;
color: #fff;
}
h3 {
font-size: 160%;
word-spacing: 2px;
text-align: center;
margin-bottom: 30px;/* Note: h2 and h2:after have same 30px value for margins for symmetry*/
letter-spacing: 1px;
font-weight: 300;
}
/* Line divide (yellow)
==================================*/
h3:after {
display: block;
height: 2px;
background-color: #3498db;
content: ""; /* Must have when using :after pseudo-class */
width: 100px;
margin: 0 auto; /* Center content */
margin-top: 30px;
}
/* Copy
===================================*/
.long-copy {
line-height: 1.5;
width: 70%;
margin-left: 15%; /* centers content using remainder 30% evenly */
margin-right: 15%;
text-align: center; /* Adjusts it nicely in the center*/
margin-bottom: 30px;
}
.box { padding: 1%; }
.box p {
font-size: 0.9em;
line-height: 1.45;
}
/* Links
===================================*/
a:link,
a:visited {
color: #e67e22;
text-decoration: none;
border-bottom: 1px solid #3498db;
padding-bottom: 1px;
transition: border-bottom 0.2s, color 0.2s
}
a:hover,
a:active {
color: #555;
border-bottom: 1px solid transparent;
}
/* Icons
===================================*/
.icon-big {
font-size: 3.5em;
display: block;
color: #3498db;
margin-bottom: 10px;
margin-right: 25px;
text-align: center;
}
/* Button Normal State
====================================*/
.btn:link,
.btn:visited,
input[type="submit"] {
display: inline-block;
padding: 10px 30px;
font-size: inherit;
font-weight: 300;
text-decoration: none;
border-radius: 200px;
border: 2px solid #3498db;
/* Transition the background, color, border by 0.2s*/
transition: background-color 0.2s, border 0.2s, color 0.2s;
}
.button-full:link,
.button-full:visited,
input[type="submit"] {
background-color: #2487c9;
color: #fff;
margin-right: 15px;
}
.button-ghost:link,
.button-ghost:visited { color: #2487c9; }
/* Button Hover state, and clicked state
========================================*/
.btn:hover,
.btn:active,
input[type="submit"]:hover,
input[type="submit"]:active { background-color: #1f74ac; }
.button-full:hover,
.button-full:active,
input[type="submit"]:hover,
input[type="submit"]:active { border: 2px solid #1f74ac; }
.button-ghost:hover,
.button-ghost:active {
color: #fff;
border: 2px solid #2487c9;
}
/* Header styles
==========================================*/
header {
background-image: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), url(img/hero.jpg);
background-size: cover;
background-position: center;
height: 100vh; /* 100% of the viewport's height */
}
.hero-text-box {
position: absolute; /* We want to vertically & horizontally center content */
width: 1140px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
/* Logo & Navigation section
================================*/
.logo{
height:100px;
width: auto;
float: left;
margin-top: 30px;
}
.main-nav {
float: right;
list-style: none;
margin-top: 80px;
}
.main-nav li {
display: inline-block;
margin-left: 40px;
}
.main-nav li a:link,
.main-nav li a:visited {
padding: 8px 0;
color: white;
text-decoration: none;
text-transform: uppercase;
font-size: 100%;
border-bottom: 2px solid transparent; /* We want border exist before hover, but not yet visible.*/
transition: border-bottom 0.2s;
}
.main-nav li a:hover,
.main-nav li a:active {
border-bottom: 2px solid #3498db; /* Visible on hover */
}
/* Sticky Navigation
=============================== */
.sticky {
position: fixed;
top: 0;
left: 0;
width: 100%;
background-color: rgba(255, 255, 255, 0.98);
box-shadow: 0 1px 2px #efefef;
z-index: 10;
transition: all 0.5s ease;
}
.sticky .main-nav {
margin-top: 18px;
}
.sticky .main-nav li a:link,
.sticky .main-nav li a:visited {
padding: 16px 0;
color: #555;
}
.sticky .logo {
display: none;
}
.sticky .logo-black {
display: block;
}
/* How it works section
====================================*/
.section-application {
background-color: #f4f4f4;
}
.steps-box:first-child {
text-align: right; /* Works for inline-block elements */
padding-right: 3%; /* layout will be fluid */
margin-top: 30px;
}
.steps-box:last-child {
padding-left: 3%;
margin-top: 70px;
}
.app-screen { width: 40%; }
.works-step { margin-bottom: 50px; }
.works-step:last-of-type{ /* Gives step 3 more margin bottom unlike sibling elements with 50px */
margin-bottom: 80px;
}
.works-step div {
color: #3498db;
border: 2px solid #3498db;
display: inline-block; /* will not enforce line break */
border-radius: 50%;
height: 55px;
width: 55px;
text-align: center;
padding: 5px;
float: left; /* We used clearfix on meals section to fix issue of clearing floats */
font-size: 1.5em;
margin-right: 25px;
}
.button-app:link,
.button-app:visited { border: 0; }
.button-app img {
height: 50px;
width: auto;
margin-right: 15px;
}
/* Form section
===========================================*/
.section-form {
width: 90%;
margin: 0 auto;
}
input[placeholder],
input[type="submit"], /* had to repeat this style for some reason, works now */
textarea[placeholder],
select
{
font-family: inherit;
font-size: 0.9em;
font-weight: 300;
}
input[type="text"],
input[type="email"],
select,
textarea {
width: 100%;
padding: 7px;
border-radius: 3px;
border: 1px solid #ccc;
}
textarea { height: 100px; }
input[type="checkbox"] { margin: 10px 5px 10px 0; }
.form-box {
position: absolute;
width: 50%;
top: 0;
right: 0;
background-color: rgba(255, 255, 255, 0.8);
z-index: 2;
height: 530px;
padding: 40px 20px 0 30px;
}
.form-box h2 {
font-size: 1.6em;
}