CS2613/journal/css/custom.css

27 lines
656 B
CSS
Raw Permalink Normal View History

2022-09-07 09:14:07 -03:00
/* custom.css */
code {
color: black;
}
/* When highlighted code blocks are too wide, they wrap. Resulting in the */
/* line numbers column's rows not lining up with the code rows. Prevent */
/* wrapping. */
pre {
white-space: pre;
width: inherit;
}
article img {
/* Make sure that images within blog articles never take more width
than the article width; `height: auto` ensures the height is also
resized proportionally.
This is useful given that Markdown itself gives you little
control over image resizing, and in particular no way to achieve
this "best fit" behavior.
*/
max-width: 100%;
height: auto;
}