From 490a71aab273e438dd4a53400ddec06ec7e5ddaa Mon Sep 17 00:00:00 2001 From: hossainemruz Date: Sun, 16 May 2021 23:55:04 +0600 Subject: [PATCH] Fix CSS + Add translations Signed-off-by: hossainemruz --- i18n/bn.toml | 3 +++ i18n/cn.toml | 3 +++ i18n/de.toml | 6 +++--- i18n/en.toml | 6 +++--- i18n/es.toml | 3 +++ i18n/fr.toml | 3 +++ i18n/hi.toml | 3 +++ i18n/id.toml | 3 +++ i18n/it.toml | 3 +++ i18n/jp.toml | 3 +++ i18n/ko.toml | 3 +++ i18n/ru.toml | 3 +++ i18n/vn.toml | 3 +++ layouts/partials/footer.html | 4 +++- static/css/layouts/main.css | 8 ++++++++ static/css/layouts/single.css | 1 - static/css/navigators/sidebar.css | 3 --- 17 files changed, 50 insertions(+), 11 deletions(-) diff --git a/i18n/bn.toml b/i18n/bn.toml index 781852c..17508ec 100644 --- a/i18n/bn.toml +++ b/i18n/bn.toml @@ -106,3 +106,6 @@ other = "সার্টিফিকেট দেখুন" [notes] other = "নোট সমূহ" + +[disclaimer_text] +other = "দায় বিজ্ঞপ্তি" diff --git a/i18n/cn.toml b/i18n/cn.toml index 0ac0858..1a26020 100644 --- a/i18n/cn.toml +++ b/i18n/cn.toml @@ -109,3 +109,6 @@ other = "查看证书" [notes] other = "笔记" + +[disclaimer_text] +other = "责任通知" diff --git a/i18n/de.toml b/i18n/de.toml index b0a6730..dc7677d 100644 --- a/i18n/de.toml +++ b/i18n/de.toml @@ -38,9 +38,6 @@ other = "Wir werden Ihre E-Mail-Adresse nicht an Dritte weitergeben." [submit] other = "Absenden" -[disclaimer_text] -other = "Haftungshinweis" - [hugoAttributionText] other = "Unterstützt von" @@ -112,3 +109,6 @@ other = "Bekijk certificaat" [notes] other = "Opmerkingen" + +[disclaimer_text] +other = "Haftungshinweis" diff --git a/i18n/en.toml b/i18n/en.toml index a4bceee..564b640 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -38,9 +38,6 @@ other = "We'll never share your email with anyone else." [submit] other = "Submit" -[disclaimer_text] -other = "Liability Note" - [hugoAttributionText] other = "Powered by" @@ -112,3 +109,6 @@ other = "View Certificate" [notes] other = "Notes" + +[disclaimer_text] +other = "Liability Notice" diff --git a/i18n/es.toml b/i18n/es.toml index c3ec395..62ed93f 100644 --- a/i18n/es.toml +++ b/i18n/es.toml @@ -109,3 +109,6 @@ other = "Ver Certificado" [notes] other = "Notas" + +[disclaimer_text] +other = "Aviso de responsabilidad" diff --git a/i18n/fr.toml b/i18n/fr.toml index 7e25ca8..97c17cb 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -109,3 +109,6 @@ other = "Afficher le certificat" [notes] other = "Remarques" + +[disclaimer_text] +other = "Avis de responsabilité" diff --git a/i18n/hi.toml b/i18n/hi.toml index eddf166..e5f4ac9 100644 --- a/i18n/hi.toml +++ b/i18n/hi.toml @@ -109,3 +109,6 @@ other = "प्रमाणपत्र देखें" [notes] other = "टिप्पणियाँ" + +[disclaimer_text] +other = "दायित्व सूचना" diff --git a/i18n/id.toml b/i18n/id.toml index f884ed2..ff8b61f 100644 --- a/i18n/id.toml +++ b/i18n/id.toml @@ -109,3 +109,6 @@ other = "Lihat Sertifikat" [notes] other = "Catatan" + +[disclaimer_text] +other = "Pemberitahuan Kewajiban" diff --git a/i18n/it.toml b/i18n/it.toml index 3c88173..882a9d5 100644 --- a/i18n/it.toml +++ b/i18n/it.toml @@ -109,3 +109,6 @@ other = "Féach ar an Teastas" [notes] other = "Appunti" + +[disclaimer_text] +other = "Avviso di responsabilità" diff --git a/i18n/jp.toml b/i18n/jp.toml index bcb3fa3..2a1cdac 100644 --- a/i18n/jp.toml +++ b/i18n/jp.toml @@ -106,3 +106,6 @@ other = "ビューの証明書" [notes] other = "ノート" + +[disclaimer_text] +other = "責任通知" diff --git a/i18n/ko.toml b/i18n/ko.toml index 54a03d6..3f90b2d 100644 --- a/i18n/ko.toml +++ b/i18n/ko.toml @@ -109,3 +109,6 @@ other = "인증서보기" [notes] other = "메모" + +[disclaimer_text] +other = "책임 고지" diff --git a/i18n/ru.toml b/i18n/ru.toml index d20d489..86549ec 100644 --- a/i18n/ru.toml +++ b/i18n/ru.toml @@ -109,3 +109,6 @@ other = "Просмотреть сертификат" [notes] other = "Ноты" + +[disclaimer_text] +other = "Уведомление об ответственности" diff --git a/i18n/vn.toml b/i18n/vn.toml index 3fb385c..4a03d00 100644 --- a/i18n/vn.toml +++ b/i18n/vn.toml @@ -109,3 +109,6 @@ other = "Xem chứng chỉ" [notes] other = "Ghi chú" + +[disclaimer_text] +other = "Thông báo trách nhiệm" diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index bc68728..39f8631 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -112,7 +112,9 @@ {{ if and $disclaimerEnabled $disclaimer}}
-

{{ i18n "disclaimer_text" }}: {{ $disclaimer }}

+
+

{{ i18n "disclaimer_text" }}: {{ $disclaimer }}

+
{{ end }} {{ if $credentialsEnabled }}
diff --git a/static/css/layouts/main.css b/static/css/layouts/main.css index 669d782..7064658 100644 --- a/static/css/layouts/main.css +++ b/static/css/layouts/main.css @@ -339,6 +339,14 @@ mark { background-color: #e5e9f2; } +.footer #disclaimer{ + color: #8392a5 !important; + text-align: justify; +} +.footer #disclaimer>strong{ + color: #c0ccda!important; +} + .footer #theme { color: #c0ccda; } diff --git a/static/css/layouts/single.css b/static/css/layouts/single.css index e5b535a..f10ddf5 100644 --- a/static/css/layouts/single.css +++ b/static/css/layouts/single.css @@ -37,7 +37,6 @@ body { } .toc-holder { - position: -webkit-sticky; position: sticky; top: 4.5rem; overflow-x: hidden; diff --git a/static/css/navigators/sidebar.css b/static/css/navigators/sidebar.css index 9faf7e7..c26a009 100644 --- a/static/css/navigators/sidebar.css +++ b/static/css/navigators/sidebar.css @@ -8,7 +8,6 @@ .sidebar-holder { top: 2.5rem; - position: -webkit-sticky; position: sticky; background-color: #f9fafc; height: 100vh; @@ -192,7 +191,6 @@ a.focused { transition: all ease-out 0.3s; } .sidebar-holder { - position: -webkit-sticky; position: sticky; top: 2.5rem; width: 100%; @@ -222,7 +220,6 @@ a.focused { transition: all ease-out 0.3s; } .sidebar-holder { - position: -webkit-sticky; position: sticky; top: 2.5rem; width: 100%;