-
Notifications
You must be signed in to change notification settings - Fork 0
/
Style.css
142 lines (119 loc) · 2.18 KB
/
Style.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
141
142
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
:root {
--primary-text-color: #183b56;
--secondary-text-color: #577592;
--accent-color: #2294ed;
--accent-color-dark: #1d69a3;
}
.wrapper {
width: 100vw;
height: 100vh;
display: flex;
flex-direction: column;
overflow-x: hidden;
}
nav {
background-color: #f3faff;
display: flex;
justify-content: center;
align-items: center;
}
.container-nav {
width: 80%;
display: flex;
justify-content: space-between;
align-items: center;
margin: 10px;
}
.site-logo {
height: 50px;
}
.site-logo img {
height: 100%;
}
.topics {
display: flex;
justify-content: space-between;
align-items: center;
gap: 25px;
}
ul {
list-style: none;
}
.search-box {
height: 35px;
padding: 5px;
border-radius: 4px;
/* border: none; */
}
.search-button {
height: 35px;
padding: 8px;
background-color: #2294ed;
color: white;
border: none;
border-radius: 4px;
}
.search-box:hover {
border: 2px solid rgb(99, 137, 214);
}
.search-button:hover {
cursor: pointer;
background-color: var(--accent-color-dark);
/* border: 2px solid rgb(99, 137, 214); */
}
.topic-items:hover {
cursor: pointer;
}
.topic-items:active {
color: red;
}
main {
margin-top: 40px;
display: flex;
justify-content: center;
align-items: center;
}
.container-main {
width: 80%;
display: flex;
gap: 25px;
flex-wrap: wrap;
justify-content: center;
/* align-items: center; */
}
.card {
width: 360px;
min-height: 400px;
box-shadow: 0 0 4px #d4ecff;
border-radius: 4px;
cursor: pointer;
background-color: #fff;
overflow: hidden;
transition: all 0.3s ease;
}
.card:hover {
box-shadow: 1px 1px 8px #d4ecff;
background-color: #f9fdff;
transform: translateY(-2px);
}
.card-header img {
width: 100%;
/* height: 180px; */
object-fit: cover;
}
.card-content {
padding: 12px;
}
.news-source {
margin-block: 10px;
}
.card a {
all: unset;
}