Gimp-Forum.net
New style for inline code - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: Other topics (https://www.gimp-forum.net/Forum-Other-topics)
+--- Forum: Gimp-Forum.net (https://www.gimp-forum.net/Forum-Gimp-Forum-net)
+--- Thread: New style for inline code (/Thread-New-style-for-inline-code)



New style for inline code - Ofnuts - 06-30-2022

Changed the style for inline code (which until now was shown with a small border) which you can enter by bracketing your text with backticks.  The border didn't do much good for readability, so I removed it, and found other ways (technically: font-family:Monospace; font-weight: bold; filter: contrast(50%);). Tell me how it looks (especially people using the dark theme).

Since this is applied at presentation time (the text is kept with backticks in the database), this change applies to all existing posts.


RE: New style for inline code - rich2005 - 06-30-2022

Quote:Tell me how it looks

Much the same as your post, tried it here:
https://www.gimp-forum.net/Thread-Batch-processing-detecting-various-colours-to-crop-to-edge-of-scanned-document-JPG?pid=30053#pid30053

How much does this depend on the browser setup / default fonts ....looks a bit spaced out here.

Looks ok in forum Carbon theme a little like a bold font but not overwhelming.


RE: New style for inline code - Ofnuts - 06-30-2022

(06-30-2022, 03:23 PM)rich2005 Wrote:
Quote:Tell me how it looks

Much the same as your post, tried it here:
https://www.gimp-forum.net/Thread-Batch-processing-detecting-various-colours-to-crop-to-edge-of-scanned-document-JPG?pid=30053#pid30053

How much does this depend on the browser setup / default fonts ....looks a bit spaced out here.

Looks ok in forum Carbon theme a little like a bold font but not overwhelming.

Added a font-stretch: condensed;, so if the monospace font in your browser has a condensed version (for instance Arial->Arial narrow or Noto Sans -> Noto Sans Condensed) it is used:


[attachment=8228]