mirror of https://github.com/docker/docs.git
highlighting: make comments, prompt and command-output non-selectable
Prevent selecting comments, command-output and command-prompt in shell examples that use the "console" lexer/highlighter to allow easier copying. See https://github.com/rouge-ruby/rouge/issues/1023 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
2a84b75739
commit
a987f04d05
|
@ -17,6 +17,20 @@
|
|||
.highlight .gi { color: #00aa00 } /* Generic.Inserted */
|
||||
.highlight .go { color: #888888 } /* Generic.Output */
|
||||
.highlight .gp { color: #555555 } /* Generic.Prompt */
|
||||
|
||||
// Prevent selecting comments, command-output and command-prompt in shell
|
||||
// examples that use the "console" lexer/highlighter to allow easier copying.
|
||||
// See https://github.com/rouge-ruby/rouge/issues/1023
|
||||
.highlight .c,
|
||||
.highlight .go,
|
||||
.highlight .gp
|
||||
{
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none
|
||||
}
|
||||
|
||||
.highlight .gs {} /* Generic.Strong */
|
||||
.highlight .gu { color: #800080 } /* Generic.Subheading */
|
||||
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
|
||||
|
|
Loading…
Reference in New Issue