forked from DeepakDSA/Community-Forum-App
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnews.css
119 lines (99 loc) · 1.6 KB
/
news.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
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background: linear-gradient(135deg, #f0f4f8, #dfe9f3);
color: #333;
}
header {
background-color: #333;
color: #f5f5f5;
padding: 20px;
text-align: center;
}
header h1 {
margin: 0;
font-size: 2em;
}
header p {
margin: 10px 0 0;
}
main {
display: flex;
flex-direction: row;
padding: 20px;
}
.news-feed {
flex: 3;
}
.news-feed article {
background-color: #2a2a2a;
margin-bottom: 20px;
padding: 20px;
border-radius: 8px;
}
.news-feed h2 {
margin: 0;
font-size: 1.5em;
}
.news-feed a {
color: #1e90ff;
text-decoration: none;
}
.news-feed .date {
font-size: 0.9em;
color: #aaa;
}
.news-feed .summary {
margin: 10px 0;
color: #f5f5f5;
}
.news-feed .read-more {
color: #1e90ff;
text-decoration: none;
}
aside {
flex: 1;
margin-left: 20px;
}
aside h3 {
margin-top: 0;
}
aside ul {
list-style-type: none;
padding: 0;
}
aside ul li {
margin-bottom: 10px;
}
aside form {
margin-top: 20px;
}
aside form input[type="email"] {
width: calc(100% - 110px);
padding: 10px;
margin-right: 10px;
border: 1px solid #333;
border-radius: 4px;
}
aside form button {
padding: 10px 20px;
border: none;
background-color: #1e90ff;
color: #fff;
border-radius: 4px;
cursor: pointer;
}
footer {
background-color: #333;
color: #f5f5f5;
text-align: center;
padding: 20px;
position: fixed;
width: 100%;
bottom: 0;
}
footer a {
color: #1e90ff;
text-decoration: none;
}