GitLab: bigger diff code font
Increases the font size and line spacing in diffs and file previews so code is easier to read.
Code to copy
/* Make diff and code blocks larger and easier to read */
.diff-file .code,
.diff-file .line,
.blob-content code,
.file-content.code pre {
font-size: 14px !important;
line-height: 1.55 !important;
}
How to use this example
- Copy the code with the button above.
- Install JustZix (2 minutes) and open the extension on the target page.
- Add a new rule matching that page.
- Paste the code into the rule's CSS panel and save — the effect appears instantly.
Rate this example
No ratings yet — be the first.