Skip to content

Instantly share code, notes, and snippets.

@jbenner-radham
Created November 9, 2018 22:17
Show Gist options
  • Save jbenner-radham/81743b008a4fce9c96fe773a9d30ef63 to your computer and use it in GitHub Desktop.
Save jbenner-radham/81743b008a4fce9c96fe773a9d30ef63 to your computer and use it in GitHub Desktop.
Playing around with more copy/paste friendly shell `<code/>` styling.
doctype
html
body
// See: https://codepen.io/jbenner/pen/XyKqbK
h2 Usage
code(data-lang='sh') readme-md --help
:root {
align-items: center;
display: flex;
flex-direction: column;
justify-content: center;
min-height: 100vh;
}
code[data-lang="sh"] {
align-content: center;
background-color: #1b1b1b;
border-radius: .25rem;
color: white;
display: inherit;
width: 55vw;
padding: .5rem;
&::before {
color: lightgray;
content: '$';
margin-right: .5rem;
}
}
h2 {
margin-bottom: 1rem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment