Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be helpful if the CSS rendering of the code tag could be changed, to:
- slightly reduce the text size - from current 0.923em to something between 0.88em and 0.9em -- so that slightly more text fits on an unwrapped line without it becoming apparently smaller than the main body text.
- make the 'code' div horizontally scrollable, rather than wrapping, as the current state results in very confusing listings.
I hope these would be considered good; perhaps there's a better way?
Comments
Comment #1
rivimeyComment #2
drummComment #3
drumm#2927344-30: Specifically warn about end dates for PHP support for old versions is the first example I found with both inline and block code.
Down to .85em looks okay to me. That comes out to 11px, vs. 12 we have now.
And the
pre.codeblock
padding could be reduced slightly topadding: 0.25em 0.5em;
#2480515: Code blocks should show 80 characters without wrapping has a bunch of discussion about more-complicated solutions. I think this issue stands well on its own as an incremental improvement.
Comment #7
drumm