diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-09-28 12:04:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-28 04:04:32 +0000 |
commit | 7ea2a910cebaf51cfd13c0941029c404e408ae54 (patch) | |
tree | b6beb735c8ca09a4c7c68ff42ed76146cb295897 /web_src/css | |
parent | 15fa0383fb5dd9ad1702dbc34ba7100c0cdbcc8c (diff) | |
download | gitea-7ea2a910cebaf51cfd13c0941029c404e408ae54.tar.gz gitea-7ea2a910cebaf51cfd13c0941029c404e408ae54.zip |
Improve branch list UI (#27319)
1. Put the `"octicon-shield-lock"` into the flex container, then it
doesn't need a separate flex box
2. Remove some unnecessary `gt-df` helpers
3. Make `btn` button has the same flex behavior as `ui button`
![image](https://github.com/go-gitea/gitea/assets/2114189/60ce75f7-7fac-4157-9c42-91c7dee9300e)
![image](https://github.com/go-gitea/gitea/assets/2114189/ea606baf-6f52-41e1-b964-c4840d3b1529)
Diffstat (limited to 'web_src/css')
-rw-r--r-- | web_src/css/base.css | 1 | ||||
-rw-r--r-- | web_src/css/modules/button.css | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/web_src/css/base.css b/web_src/css/base.css index 5efb0bfae5..1a4e9d16a1 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -2242,6 +2242,7 @@ table th[data-sortt-desc] .svg { right: 2em; } +.btn, .ui.ui.button, .ui.ui.dropdown, .ui.ui.label, diff --git a/web_src/css/modules/button.css b/web_src/css/modules/button.css index f292231319..0d30249c9c 100644 --- a/web_src/css/modules/button.css +++ b/web_src/css/modules/button.css @@ -30,7 +30,7 @@ color: var(--color-red); } -/* btn is a plain button without any opinionated styling */ +/* btn is a plain button without any opinionated styling, it only uses flex for vertical alignment like ".ui.button" in base.css */ .btn { background: transparent; |