-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.blogs.css
More file actions
190 lines (176 loc) · 3.78 KB
/
Copy pathstyle.blogs.css
File metadata and controls
190 lines (176 loc) · 3.78 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
/* ===== BLOGS PAGE STYLES ===== */
.blogs-container {
max-width: 900px;
margin: 0 auto;
padding: 20px 0;
}
/* Search Bar */
.search-bar {
margin-bottom: 30px;
}
.search-bar input {
width: 100%;
padding: 16px 20px;
background: var(--header-bg);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid var(--border-color);
border-radius: 40px;
color: var(--text-primary);
font-size: 16px;
outline: none;
transition: border 0.3s, box-shadow 0.3s;
}
.search-bar input:focus {
border-color: var(--accent-primary);
box-shadow: 0 0 15px var(--accent-glow);
}
.search-bar input::placeholder {
color: var(--text-secondary);
opacity: 0.7;
}
/* Blog list – stacked cards */
.blogs-list {
display: flex;
flex-direction: column;
gap: 25px;
min-height: 200px;
}
/* Individual blog card */
.blog-card {
background: var(--header-bg);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid var(--border-color);
border-radius: 20px;
padding: 25px;
display: flex;
gap: 25px;
align-items: flex-start;
transition: all 0.3s ease;
text-decoration: none;
color: var(--text-primary);
}
.blog-card:hover {
border-color: var(--accent-primary);
box-shadow: 0 8px 25px var(--accent-primary);
transform: translateY(-3px);
}
/* Blog image placeholder */
.blog-image {
width: 180px;
height: 180px;
flex-shrink: 0;
border-radius: 18px;
background: rgba(128,128,128,0.15);
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.blog-image-placeholder {
font-size: 70px;
opacity: 0.8;
}
/* Blog content (right side) */
.blog-content {
flex: 1;
min-width: 0;
}
.blog-title {
font-size: 22px;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 10px;
}
.blog-hashtags {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 12px;
}
.hashtag {
font-size: 12px;
background: rgba(200,30,30,0.15); /* dark‑theme fallback */
color: var(--accent-primary);
padding: 4px 12px;
border-radius: 20px;
border: 1px solid var(--accent-primary);
letter-spacing: 0.5px;
}
.blog-short {
font-size: 15px;
color: var(--text-secondary);
line-height: 1.6;
}
/* Pagination */
.pagination {
display: flex;
justify-content: center;
gap: 8px;
margin-top: 30px;
flex-wrap: wrap;
}
.page-btn {
background: var(--header-bg);
border: 1px solid var(--border-color);
color: var(--text-secondary);
padding: 8px 16px;
border-radius: 12px;
cursor: pointer;
font-size: 14px;
transition: all 0.2s;
}
.page-btn:hover {
border-color: var(--accent-primary);
color: var(--text-primary);
}
.page-btn.active {
background: var(--accent-primary);
color: #fff;
border-color: var(--accent-primary);
box-shadow: 0 0 10px var(--accent-glow);
}
/* No results */
.no-results {
text-align: center;
color: var(--text-secondary);
padding: 40px;
font-size: 18px;
opacity: 0.7;
}
/* ===== Light‑theme overrides ===== */
[data-theme="light"] .search-bar input {
background: rgba(255,255,255,0.6);
}
[data-theme="light"] .blog-card {
background: rgba(255,255,255,0.6);
}
[data-theme="light"] .page-btn {
background: rgba(255,255,255,0.6);
}
[data-theme="light"] .blog-image {
background: rgba(0,0,0,0.05);
}
[data-theme="light"] .hashtag {
background: rgba(212, 160, 23, 0.15); /* gold tint */
}
/* Active button – dark text on gold background in light mode */
[data-theme="light"] .page-btn.active {
color: var(--text-primary); /* dark text for readability */
}
/* Responsive */
@media (max-width: 700px) {
.blog-card {
flex-direction: column;
align-items: center;
text-align: center;
}
.blog-image {
width: 140px;
height: 140px;
}
.blog-image-placeholder {
font-size: 50px;
}
}