diff --git a/assets/scss/_custom.scss b/assets/scss/_custom.scss index ec961ec07b..9c93598a0c 100644 --- a/assets/scss/_custom.scss +++ b/assets/scss/_custom.scss @@ -1183,38 +1183,27 @@ body.cid-community #cncf-code-of-conduct h2:after { } } -#caseStudies body > #deprecation-warning, body.cid-casestudies > #deprecation-warning, body.cid-community > #deprecation-warning { - display: inline-block; - vertical-align: top; - position: relative; - background-color: $primary; - color: #fff; +body.cid-casestudies, body.cid-community, body.cid-partners { + section#deprecation-warning { padding: 0; margin: 0; width: 100%; + + border-top: solid 1em $primary; + border-bottom: solid 1em $primary; + + // Center the pageinfo + padding-left: calc(max(1rem, (100vw - 60rem) / 2)); + padding-right: calc(max(1rem, (100vw - 60rem) / 2)); + } + /* Ensure color overrides */ + section#deprecation-warning, section#deprecation-warning > .pageinfo.deprecation-warning { + background-color: $primary; + color: #fff; + } } -#caseStudies body > #deprecation-warning, body.cid-casestudies > #deprecation-warning { - padding-top: 32px; -} + body.cid-partners { - > #deprecation-warning { - padding: 0; - margin-right: 0; - margin-left: 0; - margin-top: 0; - width: 100vw; - > .content { - width: 100%; - max-width: initial; - margin-right: 0; - margin-left: 0; - margin-top: 0; - padding-left: 5vw; - padding-right: 5vw; - padding-top: 2rem; - padding-bottom: 2rem; - } - } /* SECTIONS */ .section { clear: both; diff --git a/data/i18n/en/en.toml b/data/i18n/en/en.toml index b4be07e893..1dbb113910 100644 --- a/data/i18n/en/en.toml +++ b/data/i18n/en/en.toml @@ -450,6 +450,9 @@ other = "Options" [outdated_blog__message] 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." +[page_deprecated] +other = "(stale page)" + [patch_release] other = "Patch Release" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 4a82539d10..9fb881d2f9 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -25,15 +25,15 @@ {{ block "post-hero" . }} - {{ block "deprecated" . }} - {{ if or .IsHome ( eq .Params.cid "partners" ) ( eq .Params.cid "community" ) }} - {{ partial "deprecation-warning.html" . }} - {{ end }} - {{ end }} {{ end }} {{ end }}
{{ T "layouts_docs_glossary_description" }}