diff --git a/templates/mark1/assets/css/style.css b/templates/mark1/assets/css/style.css index a7717efd..7717c0dd 100644 --- a/templates/mark1/assets/css/style.css +++ b/templates/mark1/assets/css/style.css @@ -278,6 +278,15 @@ article.docs span.notice { /* inline notice */ vertical-align: middle; } +article.docs .notice p { + display: none; +} + +article.docs[lang="de"] .notice p[lang="de"], +article.docs[lang="en"] .notice p[lang="en"] { /* notice matching article language */ + display: block; +} + article.docs li a + span.notice { /* table of contents notice */ display: inline-block; transform: scaleX(0); @@ -295,13 +304,13 @@ article.docs .notice.draft { background-color: lightyellow; } -article.docs .notice > :first-child:before { +article.docs .notice > *:before { display: inline; margin-right: .5em; content: "♻"; } -article.docs .notice.draft > :first-child:before { +article.docs .notice.draft > *:before { content: "⚠"; } diff --git a/templates/mark1/partials/notice.html b/templates/mark1/partials/notice.html index 63bbdda4..7f247193 100644 --- a/templates/mark1/partials/notice.html +++ b/templates/mark1/partials/notice.html @@ -1,6 +1,12 @@ {% if document.state contains "obsolete" %} -

This article is for an older version of {{ document.project }}. See all versions.

+
+

This article is for an older version of {{ document.project }}. All versions.

+

Dieser Artikel ist für eine ältere Version von {{ document.project }}. Alle Versionen.

+
{% endif %} {% if document.state contains "draft" %} -

This article is a draft and may contain incomplete or incorrect information.

+
+

This article is a draft and may contain incomplete or incorrect information.

+

Dieser Artikel ist ein Entwurf und enthält möglicherweise unvollständige oder falsche Information.

+
{% endif %}