Skip to content

Instantly share code, notes, and snippets.

@Etrama
Created June 30, 2024 04:16
Show Gist options
  • Save Etrama/28eb1bd86d368fba4e39fb4d49275ba8 to your computer and use it in GitHub Desktop.
Save Etrama/28eb1bd86d368fba4e39fb4d49275ba8 to your computer and use it in GitHub Desktop.
Some CSS to use in Hugo Papermod to differentiate code blocks and code output blocks. This file needs to be placed in themes\papermod\assets\css\extended\jupyter_cell_output_render.css
/* Style for code blocks with language-python class */
pre > code.language-python.hljs {
display: block;
padding: 10px;
margin: 10px 0;
background-color: rgb(0, 0, 0) !important;
font-size: 14px;
line-height: 1.5;
/* Add the border style here */
border: 1px solid #ece4e4 !important; /* Adjust border style, width, and color */
border-radius: 0; /* Set border-radius to 0 for sharp corners */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment