-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
153 lines (131 loc) · 2.57 KB
/
index.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
143
144
145
146
147
148
149
150
151
152
153
*{
margin: 0px;
padding: 0px;
box-sizing: border-box;
}
.header{
width: 100%;
background-color: #beb3b3;
padding: 0px 50px;
}
.header_container{
width: 100%;
height: 80px;
/* background-color: red; */
display: flex;
justify-content: space-between;
}
.logo{
width: 10%;
height: 80px;
background-color:#8b4b7d;
font-size: 20px;
font-family: segoe UI;
font-weight: bold;
display: flex;
justify-content: center;
align-items: center;
border-radius: 80%;
}
.search_ops{
width: 50%;
height: 80px;
/* background-color: lightgreen; */
padding: 0px 30px;
display: flex;
justify-content: center;
align-items: center;
column-gap: 2%;
}
.inp{
width: 35%;
height: 40px;
font-size: 17px;
border-radius: 10px;
border: 1px solid lightgray;
text-indent: 10px;
outline: none;
transition: .4s;
}
.inp:focus {
box-shadow: 0 0 8px lightblue;
}
.btn{
padding: 12px 30px;
text-transform: uppercase;
font-weight: bold;
border-radius: 10px;
background-color: #1c83d5;
color: white;
border: none;
cursor: pointer;
transition: .4s;
}
.btn:hover{
background-color: #116ab1;
}
/* css for news section */
.news{
width: 100%;
padding: 50px;
display: flex;
flex-wrap: wrap;
column-gap: 2%;
row-gap:25px;
background-color: #837b9d;
}
.news_card{
width: 49%;
background-color: rgba(31, 36, 70, 0.678);
display: flex;
box-shadow: 0 0 5px #090909;
border-radius: 10px;
overflow: hidden;
padding: 20px;
}
.news_img{
height: 300px;
width: 40%;
/*background-color: yellow;*/
/* overflow: hidden; */
}
.news_img > img {
height: 90%;
width:100%;
border-radius: 90%;
padding-bottom: 10%;
margin-top: 20%;
border-color: rgb(91, 103, 99);
border-width: 10px;
}
.news_details{
width:60%;
background-color: rgb(46, 74, 128);
padding: 20px;
font-family: segoe UI;
display: flex;
flex-direction: column;
row-gap: 15px;
align-items: flex-start;
}
.author{
color: rgb(238, 232, 232);
font-style: italic;
}
.content{
color: #dbcbcb;
}
.loading-spinner {
display: inline-block;
border: 4px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top: 4px solid #3498db;
width: 30px;
height: 30px;
animation: spin 1s linear infinite;
margin: 20px auto; /* Adjust the margin as needed */
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}