Skip to content

Instantly share code, notes, and snippets.

@El-Wumbus
Created December 22, 2021 22:14
Show Gist options
  • Save El-Wumbus/87a2dffbdb68a1c1a73775363584f40c to your computer and use it in GitHub Desktop.
Save El-Wumbus/87a2dffbdb68a1c1a73775363584f40c to your computer and use it in GitHub Desktop.
GitHub-like. Single Line. code blocks in css.
.code {
color: #fff;
background-color: #343d44;
border-radius: 10px;
border: 1px solid #cacaca;
line-height: 1.2em;
font: 12px Monaco, "Courier New", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", monospace;
padding: 10px;
overflow: auto;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
-moz-background-clip: padding;
-webkit-background-clip: padding-box;
background-clip: padding-box;
margin: 0px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment