From b2de034278560f0fec9fc0919f1b75fa005de25c Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 26 Nov 2020 20:33:28 +0100 Subject: [PATCH] CSS navbar and color tweaks (#13609) * CSS and color tweaks - Unify navbar-style menus - Fix admin bar overlapping menu bar - Fixes file edit comment box - Fix double border on review box - Fix review timeline icons * Many fixes to new-menu and navbar layout enhancements * misc settings fixes * navbar tweak * fix pr tabs * branch tag and arc color tweaks --- templates/admin/navbar.tmpl | 68 ++++---- templates/repo/editor/commit_form.tmpl | 6 +- .../repo/issue/view_content/comments.tmpl | 8 +- templates/repo/settings/navbar.tmpl | 50 +++--- templates/user/auth/link_account.tmpl | 40 ++--- templates/user/auth/signin_navbar.tmpl | 32 ++-- templates/user/auth/signup_openid_navbar.tmpl | 16 +- templates/user/profile.tmpl | 2 +- templates/user/settings/navbar.tmpl | 44 ++--- web_src/less/_admin.less | 5 - web_src/less/_base.less | 157 ++++++++++++------ web_src/less/_dashboard.less | 6 +- web_src/less/_explore.less | 5 +- web_src/less/_organization.less | 2 - web_src/less/_repository.less | 27 +-- web_src/less/_review.less | 4 + web_src/less/_user.less | 4 - web_src/less/themes/theme-arc-green.less | 82 +-------- 18 files changed, 267 insertions(+), 291 deletions(-) diff --git a/templates/admin/navbar.tmpl b/templates/admin/navbar.tmpl index 6d81d7557f6..8c895b8c273 100644 --- a/templates/admin/navbar.tmpl +++ b/templates/admin/navbar.tmpl @@ -1,35 +1,37 @@ diff --git a/templates/repo/editor/commit_form.tmpl b/templates/repo/editor/commit_form.tmpl index 0bfb11ad2ac..ff94d018215 100644 --- a/templates/repo/editor/commit_form.tmpl +++ b/templates/repo/editor/commit_form.tmpl @@ -2,9 +2,11 @@

{{- if .CanCommitToBranch.WillSign}} - {{.i18n.Tr "repo.editor.commit_signed_changes"}} + {{svg "octicon-lock" 24}} + {{.i18n.Tr "repo.editor.commit_signed_changes"}} {{- else}} - {{.i18n.Tr "repo.editor.commit_changes"}} + {{svg "octicon-unlock" 24}} + {{.i18n.Tr "repo.editor.commit_changes"}} {{- end}}

diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl index 77b02f67a56..d1e380ebf0f 100644 --- a/templates/repo/issue/view_content/comments.tmpl +++ b/templates/repo/issue/view_content/comments.tmpl @@ -403,10 +403,10 @@ {{end}} - {{svg (printf "octicon-%s" .Review.Type.Icon)}} + {{svg (printf "octicon-%s" .Review.Type.Icon)}} {{if .OriginalAuthor }} {{ .OriginalAuthor }} {{if $.Repository.OriginalURL}}({{$.i18n.Tr "repo.migrated_from" $.Repository.OriginalURL $.Repository.GetOriginalURLHostname | Safe }}){{end}} diff --git a/templates/repo/settings/navbar.tmpl b/templates/repo/settings/navbar.tmpl index abd6e285dc3..1944bd12e2d 100644 --- a/templates/repo/settings/navbar.tmpl +++ b/templates/repo/settings/navbar.tmpl @@ -1,29 +1,31 @@ diff --git a/templates/user/auth/link_account.tmpl b/templates/user/auth/link_account.tmpl index b7fa998a0d7..8e1509b8ce2 100644 --- a/templates/user/auth/link_account.tmpl +++ b/templates/user/auth/link_account.tmpl @@ -2,27 +2,29 @@