-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
126 lines (101 loc) · 2.6 KB
/
main.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
* {
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-family: Arial, Helvetica, sans-serif;
font-weight: bold;
margin-left: 16px;
}
header li a {
color: #f5f6fa;
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: 8px;
}
.articles article a {
background-color: blue;
color: white;
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: #f8f59f;
}
#technology .articles article a {
background-color: #6541b9;
}
#technology {
background-color: hsl(259, 56%, 74%);
}
#technology .articles article a {
background-color: #641a3f;
}
#entertainment .articles article a {
background-color: #dd90e6;
}
#entertainment {
background-color: hsl(184, 45%, 86%);
}
#entertainment .articles article a {
background-color: #ecbdd5;
}