Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-24 02:36:10 +01:00
forgejo/web_src/css
0ko 503953fb9b Unify vertical and horizontal paddings in markup file view (#3944)
Use the same padding horizontally and vertically, so the views like readme look a bit nicer. Just slightly adjusted two values, nothing really test-able here.

## Motivation

I came to the conclusion that they should be the same myself, later I checked GitHub and it turned out to also use the same paddings. I would like to notice that the padding here (2em = 32px) is the same as GitHub uses too.
I find this as a logical UI change because the paddings are usually same on both axis across the UI (like on PR sidebar).

Also updated paddings for when the files are shown in profile, but copied the `1.5em` that GitHub uses. This, once again, makes sense, because the overview markdown isn't the primary content, or as primary as the readme on the repo is, taking the full usable width.

## Preview

https://codeberg.org/attachments/55f6685c-1978-410a-a17b-9fac91f0642e
---
https://codeberg.org/attachments/d9016a1c-13cf-4ea6-a8e4-2619d93f3560

## Note

`.non-diff-file-content .plain-text` is left untouched with `1em 2em`, because the plaintext seems to add it's own margins, so it would make it look worse.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3944
Reviewed-by: Otto <otto@codeberg.org>
Reviewed-by: Beowulf <beowulf@noreply.codeberg.org>
2024-05-31 03:38:45 +00:00
..
chroma [Port] gitea#30014: Various code view improvements 2024-03-28 16:43:14 +01:00
codemirror Remove EasyMDE focus outline on text (#25328) 2023-06-18 04:10:07 +00:00
editor Clean up diff header css and reduce global textarea min-height (#29232) 2024-02-19 22:58:33 +01:00
features Replace imgage diff png background pattern with gradient (#3870) 2024-05-24 17:33:13 +00:00
markup Use CSS inset shorthand (#30939) 2024-05-13 17:00:21 +02:00
modules Change --border-radius-circle to --border-radius-full (gitea#30936) 2024-05-27 13:15:20 +02:00
repo Merge pull request '[gitea] week 2024-22 cherry pick (gitea/main -> forgejo)' (#3917) from earl-warren/wcp/2024-22 into forgejo 2024-05-28 10:50:48 +00:00
shared Forbid deprecated break-word in CSS (#30934) 2024-05-12 20:03:10 +02:00
standalone Add toasts to UI (#25449) 2023-06-27 02:45:24 +00:00
themes Replace imgage diff png background pattern with gradient (#3870) 2024-05-24 17:33:13 +00:00
actions.css Fix various overflows on actions view (#30344) 2024-04-21 11:53:50 +02:00
admin.css User details page (#26713) 2023-08-31 11:21:18 +02:00
base.css Merge pull request '[gitea] week 2024-22 cherry pick (gitea/main -> forgejo)' (#3917) from earl-warren/wcp/2024-22 into forgejo 2024-05-28 10:50:48 +00:00
dashboard.css Pulse page improvements (#30149) 2024-04-21 11:08:33 +02:00
explore.css [Port] gitea#29982 Introduce .secondary-nav and handle .page-content spacing universally 2024-03-28 16:43:09 +01:00
font_i18n.css Fix @font-face overrides (#24855) 2023-05-24 01:48:51 +00:00
form.css Fix colour contrast issues 2024-04-30 01:48:30 +02:00
helpers.css Merge pull request '[gitea] week 2024-20 cherry pick (gitea-github/main -> forgejo)' (#3729) from earl-warren/wcp/2024-20 into forgejo 2024-05-14 12:23:10 +00:00
home.css [BRANDING] Add Forgejo light, dark, and auto themes 2024-02-05 16:02:13 +01:00
index.css Remove fomantic list module (#30281) 2024-04-07 15:40:31 +02:00
install.css Fix some UI problems (install) (#30854) 2024-05-15 20:12:14 +02:00
org.css Remove fomantic checkbox module (#30162) 2024-04-07 11:05:37 +02:00
repo.css Unify vertical and horizontal paddings in markup file view (#3944) 2024-05-31 03:38:45 +00:00
review.css Fix: The interface is broken when modifying code comments under mobile devices (#30125) 2024-03-30 07:17:31 +01:00
user.css Unify vertical and horizontal paddings in markup file view (#3944) 2024-05-31 03:38:45 +00:00