-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
190 lines (149 loc) · 3.19 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
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
/* General setup */
* {
box-sizing: border-box;
}
body {
margin: 0 auto;
min-width: 1000px;
max-width: 1400px;
}
/* Layout */
section {
float: left;
width: 50%;
}
aside {
float: left;
width: 30%;
}
nav {
float: left;
width: 20%;
}
footer {
clear: both;
}
header, section, aside, nav, footer {
padding: 20px;
}
/* header and footer */
header, footer {
border-top: 5px solid #a66;
border-bottom: 5px solid #a66;
}
/* WRITE YOUR CODE BELOW HERE */
/* font imports */
/*
Lovato light font obtained from fontspring.com,
originally created by Philatype
See https://www.fontspring.com/fonts/philatype/lovato
Josefin slab bold obtained from fontsquirrel.com,
originally created by Typemade
See https://www.fontsquirrel.com/fonts/josefin-slab
*/
@font-face {
font-family: 'lovatolight';
src: url('fonts/Lovato-Light-webfont.eot');
src: url('fonts/Lovato-Light-webfont.eot?#iefix') format('embedded-opentype'),
url('fonts/Lovato-Light-webfont.woff2') format('woff2'),
url('fonts/Lovato-Light-webfont.woff') format('woff'),
url('fonts/Lovato-Light-webfont.ttf') format('truetype'),
url('fonts/Lovato-Light-webfont.svg#lovatolight') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'josefin_slabbold';
src: url('fonts/josefinslab-bold-webfont.eot');
src: url('fonts/josefinslab-bold-webfont.eot?#iefix') format('embedded-opentype'),
url('fonts/josefinslab-bold-webfont.woff2') format('woff2'),
url('fonts/josefinslab-bold-webfont.woff') format('woff'),
url('fonts/josefinslab-bold-webfont.ttf') format('truetype'),
url('fonts/josefinslab-bold-webfont.svg#josefin_slabbold') format('svg');
font-weight: normal;
font-style: normal;
}
/* typography stuff */
html {
font-family: lovatolight, serif;
font-size: 10px;
}
h1, h2 {
font-family: josefin_slabbold, sans-serif;
letter-spacing: 2px;
}
h1 {
font-size: 5rem;
text-align: center;
}
h2 {
font-size: 3.2rem;
}
section h2 + p {
text-indent: 20px;
}
p, li {
font-size: 1.6rem;
line-height: 1.5;
letter-spacing: 0.5px;
word-spacing: 3px;
}
/* Link styling */
a {
outline: none;
}
a[href*="http"] {
padding-right: 19px;
background: url(external-link-52.png) no-repeat 100% 0;
background-size: 16px 16px;
}
a:link, a:visited {
color: #a66;
}
a:focus, a:hover {
text-decoration: none;
}
a:active {
color: transparent;
text-shadow: 0px 0px 1px #f00,
0px 0px 2px #f00,
0px 0px 3px black,
0px 0px 4px black;
}
/* lists: extra margin top and bottom to make it
always have the same spacing as with paragraphs */
ul, ol {
margin: 1.6rem 0;
}
ul {
list-style-type: square;
}
ol {
list-style-type: lower-latin;
}
/* nav menu */
nav ul {
padding-left: 0;
margin-top: 0.8rem;
}
nav li {
list-style-type: none;
margin-bottom: 2rem;
}
nav li a {
text-decoration: none;
display: inline-block;
width: 100%;
line-height: 3;
text-align: center;
font-size: 2.5rem;
border: 1px solid #a66;
}
nav li a:focus, nav li a:hover {
color: white;
background: #a66;
}
nav li a:active {
color: white;
background: black;
}