diff options
author | silverwind <me@silverwind.io> | 2023-07-21 05:11:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-21 03:11:42 +0000 |
commit | d021c88d297ca030a1207fc6a5adbea4341eb48c (patch) | |
tree | 56de3a9c3932f8061a1b9fbb705fc4941001654c /web_src | |
parent | f3d293d2bbe0b2eab047bdd403046069cffbc0c4 (diff) | |
download | gitea-d021c88d297ca030a1207fc6a5adbea4341eb48c.tar.gz gitea-d021c88d297ca030a1207fc6a5adbea4341eb48c.zip |
Reduce margins on admin pages (#26026)
Reduce margins around admin boxes and reduce sidebar size from 275px to
240px. This is the same 16px margin we use on issue pages.
Before and After:
<img width="1270" alt="Screenshot 2023-07-21 at 00 28 11"
src="https://github.com/go-gitea/gitea/assets/115237/f9b0dcb0-8f7e-49b4-b130-54bf31c142fd">
<img width="1271" alt="Screenshot 2023-07-21 at 00 30 51"
src="https://github.com/go-gitea/gitea/assets/115237/ddd75d59-9ab9-4061-8989-852e89727560">
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/css/admin.css | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/web_src/css/admin.css b/web_src/css/admin.css index f4848bef4a..8c9d1e201c 100644 --- a/web_src/css/admin.css +++ b/web_src/css/admin.css @@ -1,3 +1,25 @@ +.admin-container { + display: flex !important; + gap: 16px; +} + +.admin-nav { + width: 240px; +} + +.admin-main { + flex: 1; +} + +@media (max-width: 767.98px) { + .admin-container { + flex-direction: column; + } + .admin-nav { + width: auto; + } +} + .admin.hooks .list > .item:not(:first-child) { border-top: 1px solid var(--color-secondary); padding: 0.25rem 1rem; |