Skip to content

Commit 04334d9

Browse files
authored
Merge pull request #631 from XAMPPRocky/master
Make the blogs highlight style inline with the website
2 parents e4ca6d7 + d010b0e commit 04334d9

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

src/styles/app.scss

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,19 @@ header h1 {
300300

301301

302302
.highlight {
303-
height: 30px;
303+
height: 12px;
304304
position: relative;
305-
top: -30px;
305+
top: 0;
306306
left: -10px;
307307
width: 120%;
308308
max-width: 90vw;
309+
border-radius: 2px;
309310
}
311+
312+
@media screen and (max-width: 769px) {
313+
.highlight {
314+
border-bottom-left-radius: 0;
315+
border-top-left-radius: 0;
316+
}
317+
}
318+

templates/post.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="w-100 mw-none ph3 mw8-m mw8-l center f3">
44
<header>
55
<h2>{{ post.title }}</h2>
6-
<div class="highlight"></div>
6+
<div class="highlight mt2 mb3"></div>
77
</header>
88

99
<div class="publish-date-author">{{month_name post.month}} {{post.day}}, {{post.year}} &middot; {{post.author}}

0 commit comments

Comments
 (0)