-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
112 lines (96 loc) · 1.77 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
*{
padding: 0;
margin: 0;
box-sizing: border-box;
}
body{
position: relative;
}
/* Global CSS */
.obj-width{
max-width: 1200px;
margin: auto;
}
nav{
background-color: #2d4c50;
box-shadow: 0 7px 10px rgba(0, 0, 0, 0.3);
}
.navbar{
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.3rem 0;
}
.navbar .logo{
color: #fff;
text-decoration: none;
letter-spacing: 2px;
font-size: 2.2rem;
}
#search-input{
max-width: 400px;
padding: 10px 20px;
border: none;
border-radius: 5px;
font-size: 18px;
color: #333;
}
#search-button{
padding: 10px 20px;
background-color: #138065;
color: #fff;
border: none;
font-size: 18px;
cursor: pointer;
border-radius: 5px;
margin-left: 10px;
}
#bolg-container{
padding: 3rem 0;
display: flex;
justify-content: flex-start;
align-items: flex-start;
flex-wrap: wrap;
}
.blog-card{
width: 280px;
border: 1px solid #2d4c50;
border-radius: 10px;
cursor: pointer;
padding: 1rem;
margin: 10px;
}
.blog-card:hover{
box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1);
}
.blog-card img{
width: 100%;
height: 280px;
object-fit: cover;
border-radius: 5px;
margin-bottom: 1rem;
}
.blog-card h2{
color: #141414;
font-size: 1.7rem;
font-weight: 500;
}
.blog-card p{
font-size: 1.2rem;
padding-top: 0.7rem;
}
@media(max-width: 500px){
nav{
padding: 0 20px;
}
.navbar .logo{
font-size: 1.8rem;
}
#search-input{
width: 150px;
padding: 10px 10px;
}
.blog-card{
width: 100%;
}
}