From 4f92309ffaa9858c84960a7f9fef002f2781d313 Mon Sep 17 00:00:00 2001 From: Julian Friedman Date: Tue, 24 Aug 2021 21:23:25 +0100 Subject: [PATCH] Update version warning banner for new release (#4153) * Update version warning banner for new release We've been live for a full release now with the new site. Time to take the warnings about being new off! Also fixed up the colours and text for the warning shown on old docs version, and added an emoji because emojis are cool. * Drop border --- docs/stylesheets/extra.css | 4 ++++ overrides/main.html | 7 ++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index 88edcbaf0..71a328d2b 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -70,6 +70,10 @@ } .md-announce { background: #fff5b5; + background: repeating-linear-gradient(-50deg, #ffe8b5, #ffe8b5 80px, #fff5b5 80px, #fff5b5 160px); +} +.md-announce .versionwarning h1 { + font-weight: bold; } .md-announce .versionwarning p { color: black; diff --git a/overrides/main.html b/overrides/main.html index 10e3d317e..72b413f9d 100644 --- a/overrides/main.html +++ b/overrides/main.html @@ -7,15 +7,12 @@ {% block announce %} {% if config.extra.version_warning %}
-

You are viewing documentation for Knative version: {{ config.extra.knative_version }}

+

⚠ You are viewing an archived snapshot of the documentation for Knative version: {{ config.extra.knative_version }}

- Knative {{ config.extra.knative_version }} documentation is no longer actively maintained. The version you are currently viewing is a static snapshot. For up-to-date documentation, see the latest version. + Knative {{ config.extra.knative_version }} documentation is no longer actively maintained. The documentation you are currently viewing is a static snapshot. For up-to-date documentation, see the latest version.

{% endif %} -
-

👋 Welcome to the new Knative.dev! Pardon our progress, if you find any issues with this site, please submit them here!

-
{% endblock %} {% block scripts %}