-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
127 lines (127 loc) · 2.57 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
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
*{
padding:0;
margin:0;
box-sizing: border-box;
}
:root{
--primary-text-color: #183b56;
--secondary-text-color: #577592;
--accent-color: #2294ed;
--accent-color-dark: #1d69a3;
}
body{
font-family: "Poppins","sans-serif";
color:var(--primary-text-color);
}
p{
font-family: "Roboto", sans-serif;
color: var(--secondary-text-color);
line-height: 1.4rem;
}
a{
text-decoration: none;
}
ul{
list-style: none;
}
.flex{
display:flex;
align-items: center;
}
.container{
max-width: 1100px;
margin-inline: auto;
overflow: hidden;
}
nav{
background-color:#f3faff ;
box-shadow: 0 0 4px #bbd0e2;
position: fixed;
top: 0;
z-index:99;
left: 0;
right: 0;
}
.main-nav{
justify-content: space-between;
padding: 8px 0;
}
.company-logo img{
width: 60px;
}
.nav-links ul{
gap: 16px;
}
.hover-link{
cursor:pointer;
}
.hover-link:hover{
color:var(--secondary-text-color);
}
.hover-link:active{
color: red;
}
.nav-item.active{
color: var(--accent-color);
}
.search-bar{
height: 32px;
gap:8px;
}
.news-input{
width:200px;
height:100%;
padding-block: 12px;
border-radius: 4px;
border: 2px solid #bbd0e2;
font-family: "Roboto", sans-serif;
}
.search-button{
background-color:var(--accent-color);
color: white;
padding: 8px 24px;
border:none;
border-radius: 4px;
cursor: pointer;
font-family: "Roboto", sans-serif;
}
.search-button:hover{
background-color:var(--accent-color-dark) ;
}
main{
padding-block: 20px;
margin-top: 90px;
}
#cards-container{
justify-content: space-between;
flex-wrap: wrap;
row-gap: 20px;
align-items: start;
}
.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: 12px;
}