Created
November 9, 2018 22:17
-
-
Save jbenner-radham/81743b008a4fce9c96fe773a9d30ef63 to your computer and use it in GitHub Desktop.
Playing around with more copy/paste friendly shell `<code/>` styling.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doctype | |
html | |
body | |
// See: https://codepen.io/jbenner/pen/XyKqbK | |
h2 Usage | |
code(data-lang='sh') readme-md --help |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: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