Skip to content

Commit 9a27215

Browse files
author
Clemens Vasters
committed
Fix blog post header overlap with !important overrides
1 parent 232343e commit 9a27215

1 file changed

Lines changed: 24 additions & 13 deletions

File tree

assets/css/style.scss

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -190,43 +190,54 @@ body {
190190
/* Blog post page styles */
191191
.blog-post {
192192
position: relative;
193+
overflow: visible;
193194
}
194195

195196
.blog-post article {
196197
display: block;
198+
position: relative;
197199
}
198200

201+
.blog-post article header,
199202
.blog-post .post-header {
200203
margin-bottom: 30px;
201204
padding-bottom: 20px;
202205
border-bottom: 1px solid #e0e0e0;
203-
position: relative;
204-
display: block;
206+
position: relative !important;
207+
display: block !important;
205208
clear: both;
209+
float: none !important;
210+
width: 100% !important;
206211
}
207212

213+
.blog-post h1.post-title,
208214
.blog-post .post-title {
209-
font-size: 2em;
210-
margin: 0 0 10px 0;
211-
padding: 0;
212-
color: #333;
213-
line-height: 1.2;
214-
display: block;
215+
font-size: 2em !important;
216+
margin: 0 0 15px 0 !important;
217+
padding: 0 !important;
218+
color: #333 !important;
219+
line-height: 1.3 !important;
220+
display: block !important;
221+
position: relative !important;
222+
float: none !important;
215223
}
216224

217225
.blog-post .post-meta {
218-
color: #666;
219-
font-size: 14px;
220-
margin: 0;
221-
padding: 0;
222-
display: block;
226+
color: #666 !important;
227+
font-size: 14px !important;
228+
margin: 0 0 0 0 !important;
229+
padding: 0 !important;
230+
display: block !important;
223231
clear: both;
232+
position: relative !important;
233+
float: none !important;
224234
}
225235

226236
.blog-post .post-content {
227237
line-height: 1.7;
228238
display: block;
229239
clear: both;
240+
position: relative;
230241
}
231242

232243
.blog-post .post-content h2 {

0 commit comments

Comments
 (0)