-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblog.css
More file actions
147 lines (129 loc) · 2.2 KB
/
Copy pathblog.css
File metadata and controls
147 lines (129 loc) · 2.2 KB
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #f0deb6;
font-family: Arial, Helvetica, sans-serif;
}
/* Navbar */
.foo {
height: 60px;
background-color: #566b30;
display: flex;
align-items: center;
padding: 0 90px;
position: sticky;
top: 0;
}
.foo div {
color: white;
margin-right: 20px;
cursor: pointer;
}
.foo button {
margin-left: auto;
padding: 10px 15px;
background-color: #f5ebd2;
border: none;
border-radius: 5px;
cursor: pointer;
font-weight: bold;
}
/* Heading */
#space {
margin: 40px;
font-size: 28px;
}
/* Blog Layout */
.blog-container {
display: flex;
flex-wrap: wrap;
gap: 30px;
padding: 40px;
}
/* Blog Card */
.blog-card {
width: 300px;
background-color: #f5ebd2;
border-radius: 10px;
padding: 15px;
box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.blog-card img {
width: 100%;
height: 180px;
object-fit: cover;
border-radius: 8px;
}
.blog-card h2 {
margin: 10px 0;
}
.blog-card p {
font-size: 14px;
}
.like-btn {
margin-top: 10px;
padding: 6px 12px;
border: none;
background-color: #566b30;
color: white;
border-radius: 5px;
cursor: pointer;
}
/* Modal */
.modal {
display: none;
position: fixed;
inset: 0;
background-color: rgba(0,0,0,0.6);
justify-content: center;
align-items: center;
}
.modal-content {
background-color: #fff;
width: 400px;
padding: 20px;
border-radius: 10px;
}
.modal-content input,
.modal-content textarea {
width: 100%;
margin: 10px 0;
padding: 8px;
}
textarea {
height: 120px;
}
/* Tools */
.tools button, .tools select {
margin-right: 10px;
}
/* Buttons */
.save {
background-color: #566b30;
color: white;
padding: 8px;
border: none;
border-radius: 5px;
}
.close {
background-color: gray;
color: white;
padding: 8px;
border: none;
border-radius: 5px;
margin-left: 10px;
}
/* Search bar */
#searchInput {
margin-left: auto;
margin-right: 15px;
padding: 7px 12px;
border-radius: 6px;
border: none;
outline: none;
width: 400px;
font-size: 14px;
}