Skip to content

Commit d7afa6c

Browse files
Reduce padding of code blocks
This style tweak reduces the padding of code blocks to make the code feel less disconnected from the surrounding prose. (Note that, effectively, `em` is character height whereas `ch` is character width.)
1 parent 9cd238e commit d7afa6c

File tree

1 file changed

+2
-2
lines changed
  • lib/rdoc/generator/template/rails/resources/css

1 file changed

+2
-2
lines changed

lib/rdoc/generator/template/rails/resources/css/main.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,8 +518,8 @@ html {
518518

519519
.method__source pre,
520520
.description pre {
521-
padding: 0.5em 1em;
522-
border-radius: 8px;
521+
padding: 0.5ch 1ch;
522+
border-radius: 4px;
523523
overflow-x: auto;
524524
}
525525

0 commit comments

Comments
 (0)