From ee26d1c57866930e88bd9467c91764d0bb4db9dd Mon Sep 17 00:00:00 2001 From: silverwind Date: Sun, 11 Jun 2023 04:13:08 +0200 Subject: [PATCH] Button and color enhancements (#24989) (#25176) Backport #24989. Clean cherry-pick aside from one small conflict with divider. - Various corrections to button styles, especially secondary - Remove focus highlight, it's annoying when it stays on button after press - Clearly define ghost and link buttons with demos in devtest - Remove black, grey and tertiary buttons, they should not be used - Make `arc-green` slightly darker image image --- templates/base/modal_actions_confirm.tmpl | 2 +- templates/devtest/gitea-ui.tmpl | 85 +++- templates/devtest/list.tmpl | 7 + templates/org/settings/labels.tmpl | 2 +- templates/repo/blame.tmpl | 2 +- templates/repo/branch/list.tmpl | 24 +- templates/repo/cite/cite_modal.tmpl | 2 +- templates/repo/commit_statuses.tmpl | 2 +- templates/repo/diff/blob_excerpt.tmpl | 6 +- templates/repo/diff/box.tmpl | 4 +- templates/repo/diff/section_split.tmpl | 10 +- templates/repo/diff/section_unified.tmpl | 2 +- templates/repo/home.tmpl | 4 +- templates/repo/issue/labels.tmpl | 2 +- .../repo/issue/labels/edit_delete_label.tmpl | 2 +- templates/repo/issue/list.tmpl | 2 +- templates/repo/issue/view_content.tmpl | 2 +- templates/repo/issue/view_title.tmpl | 6 +- templates/repo/release/new.tmpl | 2 +- templates/repo/view_file.tmpl | 2 +- templates/shared/issuelist.tmpl | 6 +- .../user/notification/notification_div.tmpl | 6 +- .../applications_oauth2_edit_form.tmpl | 2 +- web_src/css/base.css | 43 +- web_src/css/helpers.css | 11 +- web_src/css/modules/button.css | 433 ++++++++---------- web_src/css/repo.css | 9 +- web_src/css/repo/list-header.css | 10 + web_src/css/shared/issuelist.css | 2 +- web_src/css/themes/theme-arc-green.css | 35 +- web_src/js/components/RepoActionView.vue | 4 +- 31 files changed, 359 insertions(+), 372 deletions(-) diff --git a/templates/base/modal_actions_confirm.tmpl b/templates/base/modal_actions_confirm.tmpl index a39a855b63..6cf3ecbe3e 100644 --- a/templates/base/modal_actions_confirm.tmpl +++ b/templates/base/modal_actions_confirm.tmpl @@ -32,7 +32,7 @@ The ".ok.button" and ".cancel.button" selectors are also used by Fomantic Modal {{else if eq .ModalButtonColors "yellow"}} {{$stylePositive = "yellow"}} {{end}} - + {{end}} diff --git a/templates/devtest/gitea-ui.tmpl b/templates/devtest/gitea-ui.tmpl index c00d12217d..824b7d0db6 100644 --- a/templates/devtest/gitea-ui.tmpl +++ b/templates/devtest/gitea-ui.tmpl @@ -14,24 +14,73 @@
-
- - - - - -
-
This is a button
+ + +
-
@@ -75,7 +124,7 @@