-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
110 lines (102 loc) · 2.01 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
*{
padding :0;
margin:0;
box-sizing:border-box;
font-family:sans-serif;
}
body{
background-color:#f3f3f3;
}
img{
width: 100%;
height: 30vh;
object-fit: cover;
}
.heading-container{
background-color:#cb202d;
color: #ffffff;
font-size: 1.5 em;
font-family: "Ysabeau Office",sans-serif;
padding: 0.8em 0;
position:fixed;
top:0;
width:100%;
text-align:center;
box-shadow:0 10px 50px 0 rgba(2,0,31,0.3);
z-index:1;
}
.heading-container h4{
font-weight: 600;
font-size:25px;
letter-spacing:5px;
}
.options-container{
margin:7em 0 2em 0;
display:flex;
flex-wrap: wrap;
justify-content: center;
gap:1em;
text-align:center;
}
.option{
background-color:#d5d5d5;
border:none;
cursor:pointer;
padding:0.8em 1.5em;
border-radius: 0.5em;
border:none;
text-transform: capitalize;
}
.container{
width: 90%;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(2,1fr);
grid-column-gap:1em;
}
.news-card{
display:grid;
position: relative;
grid-template-rows: auto 1fr;
box-shadow: 0 0 15px rgba(85,85,85,0.2);
margin: 1em 0;
border-radius: 15px;
}
.news-card img{
border-radius: 15px 15px 0 0;
}
.news-content{
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 1em;
font-size: 15px;
}
.news-title{
font-weight:600;
color:#0b0028;
}
.news-description{
color:#6f6f6f;
text-align:justify;
margin: 0.8em 0 1em 0;
}
.view-button{
position: relative;
text-decoration: none;
background-color: #cb202d;
color: #ffffff;
width: 7em;
text-align: center;
padding: 0.3em 0.2em;
border-radius: 5px;
}
.active{
background-color: #cb202d;
color:#ffffff;
}
@media only screen and (max-width:768px) {
.container{
grid-template-columns: repeat(1,1fr);
}
}