-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog-page.css
154 lines (130 loc) · 2.51 KB
/
blog-page.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
154
/* Basic Styles */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
.blog-body {
font-family: Arial, sans-serif;
color: #333;
line-height: 1.6;
padding: 20px;
}
.head-blog{
font-family: display;
color: black;
font-size: 50px;
}
.blog-container {
max-width: 1200px;
margin: auto;
background-color: #fff;
border-radius: 8px;
padding: 20px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
/* Header Styles */
.header {
text-align: center;
margin-bottom: 30px;
}
.header h1 {
margin-bottom: 10px;
}
.header p {
font-size: 1.2rem;
color: #555;
}
/* Search Bar Styles */
.search-bar {
display: flex;
justify-content: center;
gap: 10px;
margin-bottom: 30px;
}
.search-bar input[type="text"],
.search-bar select {
padding: 10px;
font-size: 1rem;
border: 1px solid #ddd;
border-radius: 4px;
width: 50%;
transition: border-color 0.3s ease;
}
.search-bar input[type="text"]:focus,
.search-bar select:focus {
border-color: #1e3a6e;
}
/* Blog Post Styles */
.blog-posts {
display: flex;
flex-direction: column;
gap: 20px;
}
/* Main Post Styles */
.main-post {
background-color: #f9f9f9;
border-radius: 8px;
padding: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.main-post:hover {
transform: translateY(-5px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}
.main-post img {
width: 100%;
height: auto;
border-radius: 8px;
margin-bottom: 15px;
}
.main-post h2 {
font-size: 1.8rem;
color: #333;
margin-bottom: 10px;
}
.main-post p {
font-size: 1rem;
color: #666;
}
/* Grid for Smaller Posts */
.post-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
}
/* Smaller Post Styles */
.post {
background-color: #f9f9f9;
border-radius: 8px;
padding: 15px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post:hover {
transform: translateY(-5px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}
.post img {
width: 100%;
height: auto;
border-radius: 8px;
margin-bottom: 10px;
}
.post h2 {
font-size: 1.4rem;
color: #333;
margin-bottom: 8px;
}
.post p {
font-size: 0.95rem;
color: #666;
}
/* Responsive Adjustments */
@media (max-width: 768px) {
.search-bar input[type="text"],
.search-bar select {
width: 100%;
}
}