Skip to content

Commit df3ddd4

Browse files
committed
Added css
1 parent 9abafea commit df3ddd4

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

static/css/index.css

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
* {
2+
margin: 0;
3+
padding: 0;
4+
}
5+
6+
body {
7+
color: #333;
8+
background: #f1f1f1;
9+
font-family: Helvetica, Arial, sans-serif;
10+
}
11+
12+
main {
13+
box-sizing: border-box;
14+
padding: 0.5em;
15+
margin: 0 auto;
16+
width: 100%;
17+
max-width: 640px;
18+
}
19+
20+
main > h1 {
21+
font-size: 20px;
22+
margin: 0.5em 0;
23+
}
24+
25+
article {
26+
font-size: 14px;
27+
padding: 0.5em;
28+
background: #fff;
29+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
30+
}
31+
32+
article + article {
33+
margin-top: 0.5em;
34+
}
35+
36+
article > h1 {
37+
font-size: 18px;
38+
}
39+
40+
article > h1 > a {
41+
color: inherit;
42+
text-decoration: none;
43+
}
44+
45+
article > .added {
46+
margin-top: 0.25em;
47+
color: #777;
48+
}
49+
50+
article > .body {
51+
margin-top: 0.5em;
52+
line-height: 1.3em;
53+
}

templates/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<html>
22
<head>
33
<title>Latest News</title>
4+
<link rel="stylesheet" type="text/css" href="/static/css/index.css">
45
</head>
56
<body>
67
<main>

0 commit comments

Comments
 (0)