|
1 | | -/* Blog post list - clean style */ |
| 1 | +/* Blog post list */ |
2 | 2 | @utility post-list { |
3 | 3 | list-style: none; |
4 | 4 | padding: 0; |
|
15 | 15 | display: none; |
16 | 16 | } |
17 | 17 |
|
18 | | -/* Blog post card */ |
19 | | -.post-list li a { |
20 | | - text-decoration: none; |
21 | | - transition: all var(--duration-fast) var(--ease-out); |
22 | | - position: relative; |
| 18 | +.blog-entry .meta { |
| 19 | + color: var(--color-gray-light); |
23 | 20 | } |
24 | 21 |
|
25 | 22 | .post-list li a::after { |
|
37 | 34 | width: 100%; |
38 | 35 | } |
39 | 36 |
|
40 | | -/* Blog post title */ |
41 | | -.post-list li a h2 { |
42 | | - color: var(--color-light-text-primary); |
43 | | - margin: 0 0 var(--space-sm) 0; |
44 | | - font-size: var(--text-xl); |
45 | | - font-weight: 700; |
46 | | - transition: color var(--duration-fast) var(--ease-out); |
47 | | -} |
48 | | - |
49 | | -.post-list li a:hover h2 { |
50 | | - color: var(--color-light-link); |
51 | | -} |
52 | | - |
53 | | -/* Blog post meta */ |
54 | | -.post-list li a .meta { |
55 | | - display: flex; |
56 | | - align-items: center; |
57 | | - gap: var(--space-md); |
58 | | - color: var(--color-gray-light); |
59 | | - font-size: var(--text-sm); |
60 | | - font-weight: 500; |
61 | | - margin-bottom: var(--space-md); |
62 | | -} |
63 | | - |
64 | | -.post-list li a .meta time { |
65 | | - display: flex; |
66 | | - align-items: center; |
67 | | - gap: var(--space-xs); |
68 | | -} |
69 | | - |
70 | | -.post-list li a .meta time::before { |
71 | | - content: '📅'; |
72 | | - font-size: var(--text-base); |
73 | | -} |
74 | | - |
75 | | -/* Blog post excerpt */ |
76 | | -.post-list li a .excerpt { |
77 | | - color: var(--color-light-text-secondary); |
78 | | - line-height: var(--leading-relaxed); |
79 | | - font-size: var(--text-base); |
80 | | - margin: 0; |
81 | | -} |
82 | | - |
83 | | -/* Blog entry (single post view) */ |
84 | | -@utility blog-entry { |
85 | | - max-width: var(--container-content); |
86 | | - margin: 0 auto; |
87 | | -} |
88 | | - |
89 | | -.blog-entry header { |
90 | | - margin-bottom: var(--space-3xl); |
91 | | - padding-bottom: var(--space-xl); |
92 | | - border-bottom: 1px solid var(--color-light-border); |
93 | | -} |
94 | | - |
95 | | -.blog-entry header h1 { |
96 | | - margin-top: 0; |
97 | | - margin-bottom: var(--space-md); |
98 | | - font-size: clamp(2rem, 5vw, 3rem); |
99 | | - color: var(--color-light-text-primary); |
100 | | -} |
101 | | - |
102 | | -.blog-entry .meta { |
103 | | - display: flex; |
104 | | - align-items: center; |
105 | | - gap: var(--space-xs); |
106 | | - flex-wrap: wrap; |
107 | | - color: var(--color-gray-light); |
108 | | - font-size: var(--text-base); |
109 | | -} |
110 | | - |
111 | | -.blog-entry .meta time { |
112 | | - display: flex; |
113 | | - align-items: center; |
114 | | - gap: var(--space-sm); |
115 | | - font-weight: 500; |
116 | | -} |
117 | | - |
118 | | -.blog-entry .meta .author { |
119 | | - display: flex; |
120 | | - align-items: center; |
121 | | - gap: var(--space-sm); |
122 | | - font-weight: 500; |
123 | | -} |
124 | | - |
125 | | -.blog-entry .meta .author::before { |
126 | | - content: '✍️'; |
127 | | - font-size: var(--text-lg); |
128 | | -} |
129 | | - |
130 | | -/* Blog content styling */ |
131 | | -.blog-entry .content { |
132 | | - font-size: var(--text-body); |
133 | | - line-height: var(--leading-relaxed); |
134 | | - color: var(--color-light-text-secondary); |
135 | | -} |
136 | | - |
137 | | -.blog-entry .content > *:first-child { |
138 | | - margin-top: 0; |
139 | | -} |
140 | | - |
141 | | -/* Blog tags */ |
142 | | -.blog-tags { |
143 | | - display: flex; |
144 | | - flex-wrap: wrap; |
145 | | - gap: var(--space-sm); |
146 | | - margin: var(--space-2xl) 0; |
147 | | - padding-top: var(--space-xl); |
148 | | - border-top: 1px solid var(--color-light-border); |
149 | | -} |
150 | | - |
151 | | -.blog-tag { |
152 | | - display: inline-flex; |
153 | | - align-items: center; |
154 | | - padding: var(--space-sm) var(--space-lg); |
155 | | - background: var(--color-light-bg-secondary); |
156 | | - color: var(--color-light-link); |
157 | | - border: 1px solid var(--color-light-border); |
158 | | - border-radius: var(--radius-full); |
159 | | - font-size: var(--text-sm); |
160 | | - font-weight: 600; |
161 | | - text-decoration: none; |
162 | | - transition: all var(--duration-fast) var(--ease-out); |
163 | | -} |
164 | | - |
165 | | -.blog-tag::before { |
166 | | - content: '#'; |
167 | | - opacity: 0.5; |
168 | | - margin-right: var(--space-xs); |
169 | | -} |
170 | | - |
171 | | -.blog-tag::after { |
172 | | - display: none; |
173 | | -} |
174 | | - |
175 | 37 | /* Pagination */ |
176 | 38 | @utility pagination { |
177 | 39 | display: flex; |
|
221 | 83 | } |
222 | 84 |
|
223 | 85 | /* Featured post highlight */ |
224 | | -.post-list li.featured a { |
225 | | - border: 2px solid var(--color-light-link); |
226 | | - background: linear-gradient( |
227 | | - 135deg, |
228 | | - rgba(99, 102, 241, 0.05), |
229 | | - transparent |
230 | | - ); |
231 | | -} |
232 | | - |
233 | | -.post-list li.featured a::before { |
234 | | - transform: scaleY(1); |
235 | | -} |
236 | | - |
237 | | -/* Reading time indicator */ |
238 | | -.reading-time { |
239 | | - display: inline-flex; |
240 | | - align-items: center; |
241 | | - gap: var(--space-xs); |
242 | | - padding: var(--space-xs) var(--space-md); |
243 | | - background: var(--color-light-bg-secondary); |
244 | | - border-radius: var(--radius-full); |
245 | | - font-size: var(--text-xs); |
246 | | - font-weight: 600; |
247 | | - color: var(--color-gray-base); |
248 | | -} |
249 | | - |
250 | | -.reading-time::before { |
251 | | - content: '⏱️'; |
252 | | -} |
253 | | - |
254 | | -/* Blog section header */ |
255 | | -.blog-header { |
256 | | - text-align: center; |
257 | | - padding: var(--space-3xl) 0; |
258 | | - margin-bottom: var(--space-2xl); |
259 | | -} |
260 | | - |
261 | | -.blog-header h1 { |
262 | | - font-size: clamp(2.5rem, 6vw, 4rem); |
263 | | - margin-bottom: var(--space-md); |
264 | | - background: linear-gradient(135deg, var(--color-light-link), var(--color-light-text-accent)); |
265 | | - -webkit-background-clip: text; |
266 | | - -webkit-text-fill-color: transparent; |
267 | | - background-clip: text; |
268 | | -} |
269 | | - |
270 | | -.blog-header p { |
271 | | - font-size: var(--text-xl); |
272 | | - color: var(--color-light-text-secondary); |
273 | | - max-width: 600px; |
274 | | - margin: 0 auto; |
275 | | -} |
| 86 | +/*.post-list li.featured a {*/ |
| 87 | +/* border: 2px solid var(--color-light-link);*/ |
| 88 | +/* background: linear-gradient(*/ |
| 89 | +/* 135deg,*/ |
| 90 | +/* rgba(99, 102, 241, 0.05),*/ |
| 91 | +/* transparent*/ |
| 92 | +/* );*/ |
| 93 | +/*}*/ |
| 94 | + |
| 95 | +/*.post-list li.featured a::before {*/ |
| 96 | +/* transform: scaleY(1);*/ |
| 97 | +/*}*/ |
0 commit comments