diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-06-27 17:14:45 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-27 09:14:45 +0000 |
commit | 6dbcf6fbc5c3c9b7f0ee396b489f0e804d39972c (patch) | |
tree | 11e8787cd8fee90d3103364e8f402a9c874a0563 /web_src/css | |
parent | 1069472c0cd6bd0b6c3b0b1c6c8b9b149aff9ead (diff) | |
download | gitea-6dbcf6fbc5c3c9b7f0ee396b489f0e804d39972c.tar.gz gitea-6dbcf6fbc5c3c9b7f0ee396b489f0e804d39972c.zip |
Fix admin-dl-horizontal (#25512)
![image](https://github.com/go-gitea/gitea/assets/2114189/fb731e07-da30-4470-8200-73b5ca8b78f1)
![image](https://github.com/go-gitea/gitea/assets/2114189/85930b6f-5df7-437f-863f-423f3b81dd26)
---------
Co-authored-by: HesterG <hestergong@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'web_src/css')
-rw-r--r-- | web_src/css/admin.css | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/web_src/css/admin.css b/web_src/css/admin.css index 0a2a88f143..58e0527350 100644 --- a/web_src/css/admin.css +++ b/web_src/css/admin.css @@ -15,32 +15,27 @@ flex-wrap: wrap; } -.admin dl.admin-dl-horizontal dd { - margin-left: auto; - width: calc(100% - 245px); -} - -@media (max-width: 767.98px) { - .admin dl.admin-dl-horizontal dd { - width: calc(100% - 185px); - } -} - -/* divider needs explicit width to become visible here */ +/* divider needs explicit width because the parent container is "display: flex" */ .admin dl.admin-dl-horizontal .ui.divider { width: 100%; } +.admin dl.admin-dl-horizontal dt, +.admin dl.admin-dl-horizontal dd { + line-height: 1; + padding: 5px 0; +} + .admin dl.admin-dl-horizontal dt { + width: 300px; + max-width: calc(100% - 100px - 1em); font-weight: var(--font-weight-semibold); - width: 220px; - margin-right: 5px; } -@media (max-width: 767.98px) { - .admin dl.admin-dl-horizontal dt { - width: 160px; - } +.admin dl.admin-dl-horizontal dd { + margin-left: auto; + width: calc(100% - 300px - 1em); + min-width: 100px; } .admin code, |