-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
80 lines (65 loc) · 1.11 KB
/
style.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
* {
box-sizing: border-box;
}
body {
font-size: 1em;
font-family: sans-serif;
margin: 0;
line-height: 1.5em;
}
main, header, footer {
max-width: 1200px;
margin: auto;
overflow: auto;
}
header {
padding: 1.5em 1em;
border-bottom: 4px double grey;
}
footer {
border-top: 4px double grey;
padding: 1.5em 1em;
text-align: center;
}
.left {
float: left;
width: 22%;
padding: 1.5em 1em;
}
.content {
float: right;
width: 78%;
padding: 1.5em 1em;
text-align: justify;
}
h1 {
font-weight: normal;
font-size: 2.5em;
margin: 0;
}
h2 {
font-weight: normal;
}
p {
margin: 0.75em 0em;
}
.portrait {
border: 1px solid grey;
width: 100%;
}
/* Mobile view: when the screen is less than 1200px wide, make the columns stack on top of each other */
@media screen and (max-width: 1200px) {
footer, header, main, .left {
width: 100%;
text-align: center;
}
.content {
width: 100%;
}
h1, h2 {
text-align: center;
}
.portrait {
width: 40%;
}
}