-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.css
140 lines (115 loc) · 1.85 KB
/
App.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
:root {
--primary: #000;
}
* {
box-sizing: border-box;
font-family: 'Roboto Mono', monospace;
}
body {
margin: 0;
max-width: 1440px;
margin: 0 auto;
}
.container {
max-width: 90%;
margin: 1rem auto;
}
#title {
text-align: center;
}
#error,
#loading,
#not__found {
text-align: center;
margin-top: 3rem;
}
/* error */
#error {
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
/* loading */
#loading img {
width: 70px;
margin: 0 auto;
}
/* searchbar */
.searchbar {
margin: 1rem 0;
}
.searchbar .row {
font-size: 1.2rem;
display: flex;
}
.searchbar .row input {
outline: none;
border: none;
font-size: inherit;
padding: 10px;
flex: 1;
border: 1px var(--primary) solid;
background: transparent;
}
.searchbar .row button {
border: none;
outline: none;
background: var(--primary);
color: #fff;
padding: 5px 10px;
font-size: inherit;
cursor: pointer;
}
/* pagination */
.pagination {
list-style: none;
padding: 0;
}
.pagination li {
list-style: none;
display: inline-block;
border: 1px var(--primary) solid;
margin: 2px;
padding: 5px;
min-width: 30px;
min-height: 30px;
text-align: center;
cursor: pointer;
}
.active {
background: var(--primary);
color: #fff;
}
/* news section */
.all__news {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
grid-gap: 10px;
margin: 30px auto;
}
.article {
border: 1px solid var(--primary);
}
.article__body {
padding: 1rem;
word-break: break-word;
}
.article__title a {
color: var(--primary);
}
.article__source {
background-color: var(--primary);
color: #fff;
display: inline-block;
padding: 5px 10px;
margin: 0;
}
@media only screen and (max-width: 650px) {
.container {
max-width: 95%;
}
.searchbar .row {
font-size: 1rem;
}
}