-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle_old.css
More file actions
executable file
·437 lines (384 loc) · 10.3 KB
/
style_old.css
File metadata and controls
executable file
·437 lines (384 loc) · 10.3 KB
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
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
/*
Template Name: Daladevelop: Episode IV - A New Hope
Author: Daladevelop
*/
/*
We begin with the layout for small screens (phones etc.) and
then add media queries for less small screens.
First breaking point is above 480px (iPhone in landscape and I
assume most Android phones as well),
The height (and some width) is done with em. 1 basic em is
16px. iPhone in portrait (480px height) will get 30 lines.
Using 1.5 em line-height means 20 lines of text will be
visible.
*/
/* First, reset everything */
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
/* End of reset. Now start making things pretty */
/*
Basic colors (derived from the logo
Dark (instead of black) : rgb (66, 74, 71)
Light (instead of white) : rgb (249, 248, 247)
(Use ordinary black and white where appropriate)
*/
body {
/* Sizes */
width: 100%;
font-size: 16px;
line-height: 1.3em;
text-align: justify;
/* Colors */
background: rgb(249, 248, 247);
}
/* Some basic typography */
h1, h2, h3, h4, h5, h6 {
font-weight: bold;
font-family: 'Lekton';
text-align: left;
}
h1 {
font-size: 4em;
line-height: 2em;
}
h2 {
font-size: 3em;
margin: 0.8em 0 0.8em 0;
}
h3 {
font-size: 1.5em;
margin-bottom: 0.5em;
}
body {
font-family: "Times New Roman";
}
nav[role=navigation] a {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: bold;
}
strong,b{
font-weight: bold;
}
i,cite{
font-style: italic;
}
/* End of typography */
/*
*/
header[role=banner] {
/* Sizes */
height: 10em;
padding: 3em 1em 3em 1em;
/* Colors */
background-color: rgb(66, 74, 71);
background-image: url('pix/logo-vertical.png');
background-position: 50% 50%;
background-repeat: no-repeat;
background-size: 95%;
color: rgb(249, 248, 247);
-webkit-box-shadow: 0px 0px 4px rgba(0,0,0,0.8), 2px 2px 8px rgba(0,0,0,0.6);
-moz-box-shadow: 0px 0px 4px rgba(0,0,0,0.8), 2px 2px 8px rgba(0,0,0,0.6);
box-shadow: 0px 0px 4px rgba(0,0,0,0.8), 2px 2px 8px rgba(0,0,0,0.6);
}
header[role=banner] h1, header[role=banner] span { /* The logo text */
display: block;
font-size: 2em;
margin-top: 4.75em;
text-align: center;
font-weight: bold;
}
header[role=banner] h1 a, header[role=banner] span a {
display: block;
opacity: 0;
}
/*
The articles will have some padding to the left
and right but on these small screens they will
be full-width
10px padding at 16px per em = 0,625em
Also, it gets a maximum width that has a comfortable
line-length.
*/
article[role=article] {
padding: 0.625em;
max-width: 768px;
margin: 0 auto;
font-size: 1.2em;
line-height: 1.4em;
-moz-hyphens: auto;
-webkit-hyphens: auto;
hyphens: auto;
}
/*
In its basic apperance, the <aside> will have the
same positioning as the articles
*/
body > section > aside {
padding: 2em;
margin-top: 45px;
background-color: #fff;
box-shadow: 0px 0px 7px #cecece;
line-height: 1.5em;
}
body > section > aside p, body > section > aside ul, body > section > aside h3 {
display: block;
position: relative;
padding: 0;
max-width: 768px;
margin: 0 auto;
color: rgb(0,0,0);
text-align: left;
}
body > section > aside a img {
display: none;
}
body > section > aside a {
color: rgb(0,0,0);
text-decoration: none;
}
body > section > aside li {
margin-top: 5px;
}
body > section > aside h3{margin: 0 0 1em 0; }
body > section > aside li:nth-child(even) {background-color:#efefef; padding: 5px;}
body > section > aside li cite:before {content: " av "}
body > section > aside li cite{font-style: italic; ;}
/* Main navigation */
nav[role=navigation] {
/*
This takes the blue color from
the logo as background color
with a little bit of a gradient.
(The commented stuff is the orange color
instead.)
*/
/*background: rgb(253,178,0);
background: -moz-linear-gradient(top, rgba(253,178,0,1) 0%, rgba(255,29,0,1) 15%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(253,178,0,1)), color-stop(15%,rgba(255,29,0,1)));
background: -webkit-linear-gradient(top, rgba(253,178,0,1) 0%,rgba(255,29,0,1) 15%);
background: -o-linear-gradient(top, rgba(253,178,0,1) 0%,rgba(255,29,0,1) 15%);
background: -ms-linear-gradient(top, rgba(253,178,0,1) 0%,rgba(255,29,0,1) 15%);
background: linear-gradient(top, rgba(253,178,0,1) 0%,rgba(255,29,0,1) 15%);
*/
background: rgb(53,101,255);
background: -moz-linear-gradient(top, rgba(53,101,255,1) 0%, rgba(48,42,255,1) 15%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(53,101,255,1)), color-stop(15%,rgba(48,42,255,1)));
background: -webkit-linear-gradient(top, rgba(53,101,255,1) 0%,rgba(48,42,255,1) 15%);
background: -o-linear-gradient(top, rgba(53,101,255,1) 0%,rgba(48,42,255,1) 15%);
background: -ms-linear-gradient(top, rgba(53,101,255,1) 0%,rgba(48,42,255,1) 15%);
background: linear-gradient(top, rgba(53,101,255,1) 0%,rgba(48,42,255,1) 15%);
background-color: #333;
width: 240px;
padding: 10px 0;
position: relative;
margin: 1em auto;
border-radius: 5px;
-webkit-box-shadow: 0px 0px 4px rgba(0,0,0,0.8), 2px 2px 4px rgba(0,0,0,0.6), -4px -4px 5px rgba(0,0,0,0.2);
-moz-box-shadow: 0px 0px 4px rgba(0,0,0,0.8), 2px 2px 4px rgba(0,0,0,0.6), -4px -4px 5px rgba(0,0,0,0.2);
box-shadow: 0px 0px 4px rgba(0,0,0,0.8), 2px 2px 4px rgba(0,0,0,0.6), -4px -4px 5px rgba(0,0,0,0.2);
}
nav[role=navigation] a {
display: block;
padding: 0 10px;
color: rgb(249,248,247);
text-decoration: none;
line-height: 1.25em;
}
nav[role=navigation] a:hover {
background: rgba(255,255,255,0.2);
text-decoration: underline;
}
/* End of main navigation */
/* Footer */
footer {
background: rgb(255,29,0);
background: -moz-linear-gradient(top, rgba(255,29,0,1) 85%, rgba(253,178,0,1) 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(85%,rgba(255,29,0,1)), color-stop(100%,rgba(253,178,0,1)));
background: -webkit-linear-gradient(top, rgba(255,29,0,1) 85%,rgba(253,178,0,1) 100%);
background: -o-linear-gradient(top, rgba(255,29,0,1) 85%,rgba(253,178,0,1) 100%);
background: -ms-linear-gradient(top, rgba(255,29,0,1) 85%,rgba(253,178,0,1) 100%);
background: linear-gradient(top, rgba(255,29,0,1) 85%,rgba(253,178,0,1) 100%);
-webkit-box-shadow: 0px 0px 4px rgba(0,0,0,0.8), 2px 2px 8px rgba(0,0,0,0.6), -4px -4px 10px rgba(0,0,0,0.2);
-moz-box-shadow: 0px 0px 4px rgba(0,0,0,0.8), 2px 2px 8px rgba(0,0,0,0.6), -4px -4px 10px rgba(0,0,0,0.2);
box-shadow: 0px 0px 4px rgba(0,0,0,0.8), 2px 2px 8px rgba(0,0,0,0.6), -4px -4px 10px rgba(0,0,0,0.2);
/*
The footer should have a smaller font, 10px.
With a basic em of 16px that means 0,625em.
*/
font-size: 0.625em;
line-height: 1.5em;
height: 2em;
}
footer p {
max-width: 768px;
position: relative;
padding: 1em;
margin: 0 auto;
}
/* Time for media queries */
@media all and (min-width: 481px) {
/*
Put the header and navigation together.
*/
header[role=banner] {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
nav[role=navigation] {
margin: 0 0 1em 0;
border-radius: 0px;
width: 100%;
padding: 0;
text-align: center;
}
/*
Line up the menu items next to each other
*/
nav[role=navigation] ul {
display: -webkit-box;
display: -moz-box;
display: box;
max-width: 768px;
margin: 0 auto;
}
nav[role=navigation] ul li {
-webkit-box-orient: horizontal;
-webkit-box-flex: 1;
-moz-box-orient: horizontal;
-moz-box-flex: 1;
box-orient: horizontal;
box-flex: 1;
}
nav[role=navigation] ul li a {
text-align: center;
padding: 10px;
}
/*
If the browser doesn't support Flexbox
*/
.no-flexbox nav[role=navigation] ul {
display: block;
max-width: 1000px;
width: 1000px;
height: 2em;
text-align: center;
position: relative;
margin: 0 auto;
}
.no-flexbox nav[role=navigation] ul li {
width: 200px;
float: left;
height: 2em;
}
.no-flexbox nav[role=navigation] ul li a {
line-height: 2em;
}
/*
Navigation fixed
*/
/*
Change to a different logo
*/
header[role=banner] {
background-position: 16px 16px;
height: 8em;
background-image: url('pix/logo-horizontal.png');
background-position: 50% 2em;
background-repeat: no-repeat;
background-size: auto;
color: rgb(249, 248, 247);
}
header[role=banner] h1, header[role=banner] span { /* The logo text */
/*margin-top: 1em;
margin-left: 6em;
text-align: center;
font-weight: bold;
height: 105px;
width: 308px;
background-image: url('pix/daladevelop-vertical-white.png');
background-repeat: none;
background-position: 0px 0px;
background-size: 308px 105px;*/
}
/*
Logo fixed
*/
footer {
position: fixed;
bottom: 0px;
width: 100%;
}
}
/*
For displays that is at least 960px wide, use the 960.gs Grid and
position the <aside> to the side of the main content
*/
@media all and (min-width: 960px) {
nav[role=navigation] ul {
width: 980px;
max-width: none;
}
section {
width: 1000px;
margin: 0 auto;
position: relative;
}
section p{margin-bottom: 0.8em; }
article[role=article] {
width: 620px;
margin: 0;
}
body > section > aside {
width: 300px;
margin: 8.5em 0 0 0;
position: absolute;
right: -30px;
top: 35px;
}
}