Skip to content

Commit 78f6ae0

Browse files
authored
Merge pull request #31623 from sftim/20220204_tweak_blog_outdated_warning
Recolor warning about old blog articles
2 parents 1592f3a + fbc529c commit 78f6ae0

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

assets/scss/_custom.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,11 @@ body {
402402
color: #000;
403403
}
404404

405+
.deprecation-warning.outdated-blog, .pageinfo.deprecation-warning.outdated-blog {
406+
background-color: $blue;
407+
color: $white;
408+
}
409+
405410
body.td-home .deprecation-warning, body.td-blog .deprecation-warning, body.td-documentation .deprecation-warning {
406411
border-radius: 3px;
407412
}

layouts/partials/deprecation-warning.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ <h3>
1010
</div>
1111
</section>
1212
{{ else if and (eq .Section "blog") .Date (.Date.Before (now.AddDate -1 0 0)) -}}
13-
<section id="deprecation-warning" class="outdated-blog">
14-
<div class="content deprecation-warning pageinfo">
13+
<section id="deprecation-warning">
14+
<div class="content deprecation-warning pageinfo outdated-blog">
1515
<h3>{{ T "outdated_blog__title" }}</h3>
1616
<p>{{ T "outdated_blog__message" }}</p>
1717
</div>

0 commit comments

Comments
 (0)