From a61da6510db935ef4f7e2247e501c3eb65f8d984 Mon Sep 17 00:00:00 2001 From: Jordan Liggitt Date: Sat, 26 Feb 2022 22:43:27 -0500 Subject: [PATCH] Soften language about older articles --- assets/scss/_custom.scss | 7 +++++-- data/i18n/en/en.toml | 5 +---- layouts/partials/deprecation-warning.html | 1 - 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/assets/scss/_custom.scss b/assets/scss/_custom.scss index 7d8597d20c..d46bac0924 100644 --- a/assets/scss/_custom.scss +++ b/assets/scss/_custom.scss @@ -401,8 +401,8 @@ body { } .deprecation-warning, .pageinfo.deprecation-warning { - padding: 20px; - margin: 20px 0; + padding: clamp(10px, 2vmin, 20px); + margin: clamp(10px, 1vh, 20px) 0; background-color: #faf5b6; color: #000; } @@ -416,6 +416,9 @@ body.td-home .deprecation-warning, body.td-blog .deprecation-warning, body.td-do border-radius: 3px; } +.deprecation-warning p:only-child { + margin-bottom: 0; +} .td-documentation .td-content > .highlight { max-width: initial; diff --git a/data/i18n/en/en.toml b/data/i18n/en/en.toml index 30f804cb5c..a4b0125e67 100644 --- a/data/i18n/en/en.toml +++ b/data/i18n/en/en.toml @@ -206,10 +206,7 @@ other = "Objectives" other = "Options" [outdated_blog__message] -other = "The Kubernetes project considers this article to be outdated because it is more than one year old. Check that the information in the page has not become incorrect since its publication." - -[outdated_blog__title] -other = "Outdated article" +other = "This article is more than one year old. Older articles may contain outdated content. Check that the information in the page has not become incorrect since its publication." [post_create_issue] other = "Create an issue" diff --git a/layouts/partials/deprecation-warning.html b/layouts/partials/deprecation-warning.html index 449501e582..5baf5d12aa 100644 --- a/layouts/partials/deprecation-warning.html +++ b/layouts/partials/deprecation-warning.html @@ -12,7 +12,6 @@ {{ else if and (eq .Section "blog") .Date (.Date.Before (now.AddDate -1 0 0)) -}}
-

{{ T "outdated_blog__title" }}

{{ T "outdated_blog__message" }}