Merge pull request #12718 from thaJeztah/more_specific_select_styles

_scss: only disable text-selection in "console" code blocks
This commit is contained in:
Usha Mandya 2021-04-20 14:25:03 +01:00 committed by GitHub
commit c6e745623c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -21,9 +21,9 @@
// Prevent selecting comments, command-output and command-prompt in shell // Prevent selecting comments, command-output and command-prompt in shell
// examples that use the "console" lexer/highlighter to allow easier copying. // examples that use the "console" lexer/highlighter to allow easier copying.
// See https://github.com/rouge-ruby/rouge/issues/1023 // See https://github.com/rouge-ruby/rouge/issues/1023
.highlight .c, .language-console .highlight .c,
.highlight .go, .language-console .highlight .go,
.highlight .gp .language-console .highlight .gp
{ {
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-select: none; -moz-user-select: none;
@ -34,7 +34,7 @@
// Show a "text" cursor for the prompt. Even though the prompt itself is not // Show a "text" cursor for the prompt. Even though the prompt itself is not
// selectable, make it appear as if it is, so that users don't get confused // selectable, make it appear as if it is, so that users don't get confused
// when they try to select an example for copying. // when they try to select an example for copying.
.highlight .gp { .language-console .highlight .gp {
cursor: text; cursor: text;
} }