-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.css
More file actions
114 lines (92 loc) · 1.59 KB
/
Copy pathmain.css
File metadata and controls
114 lines (92 loc) · 1.59 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
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body > header {
background-color: #2f3640;
padding: 16px 0;
color: #f5f6fa;
}
header .container {
display: flex;
align-items: center;
justify-content: space-between;
}
header li {
display: inline;
font-weight: bold;
margin-left: 16px;
}
header li a {
color: #f5f6fa;
font-family: Arial, Helvetica, sans-serif;
text-decoration: none;
}
.container {
width: 1366px;
margin: 0 auto;
}
.articles {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.articles article img {
/* height: 180px; */
width: 100%;
}
.articles article {
width: 30%;
}
section {
padding: 16px 0;
}
section h2,
.articles article {
margin-bottom: 16px;
}
.articles article h3 {
margin-top: 8px;
margin-bottom: 0px;
}
.articles article a {
background-color: blue;
color: #fff;
padding: 8px;
display: inline-block;
text-decoration: none;
font-weight: bold;
margin-top: 8px;
}
.articles article a:hover {
text-decoration: underline;
}
.articles article p,
.articles article a {
font-family: Arial, Helvetica, sans-serif;
}
.articles article h3 {
font-size: 24px;
}
section h2 {
font-size: 32px;
}
#sports {
background-color: rgba(0, 255, 0, 0.1);
}
#sports .articles article a {
background-color: #009432;
}
#economy {
background-color: rgba(255, 0, 0, 0.1);
}
#economy .articles article a {
background-color: #940000;
}
#topo img {
height: 30px;
position: fixed;
bottom: 3%;
right: 3%;
}