From 8f70d01a74b0cbffa402ef63c0e20a9ebfb27c7b Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Sat, 13 May 2023 11:10:29 +0800 Subject: [PATCH 1/2] fix --- templates/devtest/gitea-ui.tmpl | 33 +++++++++++++++++++ templates/repo/branch/list.tmpl | 20 +++++------ templates/repo/home.tmpl | 2 +- .../applications_oauth2_edit_form.tmpl | 2 +- web_src/css/base.css | 16 ++------- web_src/css/user.css | 4 --- 6 files changed, 48 insertions(+), 29 deletions(-) diff --git a/templates/devtest/gitea-ui.tmpl b/templates/devtest/gitea-ui.tmpl index 2fe478a07d8a0..c00d12217db92 100644 --- a/templates/devtest/gitea-ui.tmpl +++ b/templates/devtest/gitea-ui.tmpl @@ -1,5 +1,38 @@ {{template "base/head" .}}
+
+

Button

+
+ Style: + + + + +
+
+ State: + +
+
+
+ + + + + +
+
This is a button
+
+ +

Tooltip

diff --git a/templates/repo/branch/list.tmpl b/templates/repo/branch/list.tmpl index 199d4489a9e09..9388258921032 100644 --- a/templates/repo/branch/list.tmpl +++ b/templates/repo/branch/list.tmpl @@ -27,7 +27,7 @@ {{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted)}} - {{else}} - {{end}} diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index e7a76cdaf56ce..7c084b06867ee 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -30,7 +30,7 @@
{{range .Topics}}{{.Name}}{{end}} - {{if and .Permission.IsAdmin (not .Repository.IsArchived)}}{{end}} + {{if and .Permission.IsAdmin (not .Repository.IsArchived)}}{{end}}
{{end}} {{if and .Permission.IsAdmin (not .Repository.IsArchived)}} diff --git a/templates/user/settings/applications_oauth2_edit_form.tmpl b/templates/user/settings/applications_oauth2_edit_form.tmpl index 1a8336b150651..8a9579c5c51d1 100644 --- a/templates/user/settings/applications_oauth2_edit_form.tmpl +++ b/templates/user/settings/applications_oauth2_edit_form.tmpl @@ -27,7 +27,7 @@
{{.CsrfTokenHtml}} {{.locale.Tr "settings.oauth2_regenerate_secret_hint"}} - +
diff --git a/web_src/css/base.css b/web_src/css/base.css index 507d92b011460..a2b138cd94a45 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -2238,10 +2238,13 @@ a.ui.active.label:hover { border-left: none; } +/* a ghost button can be used as inline text, it doesn't have obvious styles */ .ui.button.button-ghost { background: transparent; border: none; color: inherit; + margin: 0; + padding: 0; } .ui.button.button-ghost:hover { @@ -2341,19 +2344,6 @@ a.ui.active.label:hover { border-color: var(--color-secondary-dark-3) !important; } -.ui.tertiary.button { - color: var(--color-text-light); - border: none; -} - -.ui.tertiary.button:hover { - color: var(--color-text); -} - -.ui.tertiary.button:focus { - color: var(--color-text-dark); -} - .ui.primary.label, .ui.primary.labels .label, .ui.ui.ui.primary.label { diff --git a/web_src/css/user.css b/web_src/css/user.css index 0a8b49b0387de..6588d7a0eac15 100644 --- a/web_src/css/user.css +++ b/web_src/css/user.css @@ -124,10 +124,6 @@ object-fit: contain; } -.user.notification table button { - padding: 3px 3px 3px 5px; -} - #notification_div .tab.segment { overflow-x: auto; } From 6b2dc6ecf931aa6761d1a882d19a21e37c89a255 Mon Sep 17 00:00:00 2001 From: silverwind Date: Sat, 13 May 2023 20:47:08 +0200 Subject: [PATCH 2/2] remove ui --- web_src/css/base.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web_src/css/base.css b/web_src/css/base.css index a2b138cd94a45..753dc7846e918 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -2239,7 +2239,7 @@ a.ui.active.label:hover { } /* a ghost button can be used as inline text, it doesn't have obvious styles */ -.ui.button.button-ghost { +.button.button-ghost { background: transparent; border: none; color: inherit; @@ -2247,7 +2247,7 @@ a.ui.active.label:hover { padding: 0; } -.ui.button.button-ghost:hover { +.button.button-ghost:hover { color: var(--color-primary); }