Skip to content

Instantly share code, notes, and snippets.

@kenng
Last active April 2, 2018 08:48
Show Gist options
  • Save kenng/78cbb0098eff2d43bf4d579fada98808 to your computer and use it in GitHub Desktop.
Save kenng/78cbb0098eff2d43bf4d579fada98808 to your computer and use it in GitHub Desktop.
unselected code snippet
<div id="app">
<pre>
<li class="line" prefix="127.0.0.1:6379>">exit</li>
</pre>
</div>
<style>
#app {
padding: 15px;
}
li {
list-style: disc outside none;
}
pre .line::before {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
content: attr(prefix);
text-align: right;
display: inline-block;
margin-right: 10px;
margin-left: 5px;
}
.line {
padding: 0 !important;
list-style-type: none !important;
white-space: pre;
margin: 0 0 0 -5px !important;
line-height: 1.5 !important;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment