This commit is contained in:
parent
e016ece421
commit
1a5dedf9de
1 changed files with 12 additions and 8 deletions
|
|
@ -27,22 +27,26 @@ img {
|
||||||
/* Inline code */
|
/* Inline code */
|
||||||
code {
|
code {
|
||||||
background-color: #293137;
|
background-color: #293137;
|
||||||
border-radius: 16px;
|
border-radius: 8px; /* slightly smaller radius */
|
||||||
padding: 1px 30px;
|
padding: 2px 6px; /* much smaller padding */
|
||||||
line-height: 2em;
|
line-height: 1.4em; /* reasonable line height */
|
||||||
color: #65f85a;
|
color: #65f85a;
|
||||||
font-family: monospace, "Courier New", Courier !important;
|
font-family: monospace !important; /* force monospace */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Pre background and alignment */
|
/* Pre background and alignment */
|
||||||
pre.sourceCode, pre.sourceCode * {
|
pre.sourceCode {
|
||||||
background-color: #293137; /* full block background */
|
background-color: #293137;
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
padding: 12px 16px;
|
padding: 12px 16px;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
line-height: 1.35em; /* tight but readable */
|
line-height: 1.35em; /* keep tight but readable */
|
||||||
font-family: monospace, "Courier New", Courier !important;
|
font-family: monospace !important; /* force monospace */
|
||||||
color: #65f85a;
|
color: #65f85a;
|
||||||
|
white-space: pre; /* prevent text wrap issues */
|
||||||
|
}
|
||||||
|
pre.sourceCode * {
|
||||||
|
font-family: monospace !important; /* enforce monospace inside spans */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Reset span backgrounds so lines don’t stack weirdly */
|
/* Reset span backgrounds so lines don’t stack weirdly */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue