[gimp-web] themes: fixing code blocks.



commit 916324c655d52f1d3cc2cf2d37bc253ae367ccf0
Author: Jehan <jehan girinstud io>
Date:   Thu Feb 24 23:17:23 2022 +0100

    themes: fixing code blocks.
    
    <pre><code> as well as the triple backticks (```), since it is also
    transformed in <pre><code> block was displaying badly on a single line
    (all newlines ignore). Let's make it display adequately. Newlines are
    relevant in code.

 themes/newgimp/static/css/grid.css | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/themes/newgimp/static/css/grid.css b/themes/newgimp/static/css/grid.css
index b8e62151..c84548ae 100644
--- a/themes/newgimp/static/css/grid.css
+++ b/themes/newgimp/static/css/grid.css
@@ -174,6 +174,11 @@ code {
   white-space: nowrap;
 }
 
+pre code {
+  display: block;
+  white-space: pre-wrap;
+}
+
 /* Lists
    ========================================================================== */
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]