Skip to content

Commit

Permalink
fix(html): make so line number not copied (#1717)
Browse files Browse the repository at this point in the history
* Make so line number not copied

* Update samples for failing tests

* Add directive to source CSS
  • Loading branch information
enrh committed Dec 19, 2023
1 parent 8841bdd commit 8dc5d3d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion coverage/htmlfiles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ kbd { border: 1px solid black; border-color: #888 #333 #333 #888; padding: .1em

#source p * { box-sizing: border-box; }

#source p .n { float: left; text-align: right; width: 3.5rem; box-sizing: border-box; margin-left: -3.5rem; padding-right: 1em; color: #999; }
#source p .n { float: left; text-align: right; width: 3.5rem; box-sizing: border-box; margin-left: -3.5rem; padding-right: 1em; color: #999; user-select: none; }

@media (prefers-color-scheme: dark) { #source p .n { color: #777; } }

Expand Down
1 change: 1 addition & 0 deletions coverage/htmlfiles/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ $border-indicator-width: .2em;
margin-left: -$left-gutter;
padding-right: 1em;
color: $light-gray4;
user-select: none;
@include color-dark($dark-gray4);

&.highlight {
Expand Down
2 changes: 1 addition & 1 deletion doc/sample_html/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ kbd { border: 1px solid black; border-color: #888 #333 #333 #888; padding: .1em

#source p * { box-sizing: border-box; }

#source p .n { float: left; text-align: right; width: 3.5rem; box-sizing: border-box; margin-left: -3.5rem; padding-right: 1em; color: #999; }
#source p .n { float: left; text-align: right; width: 3.5rem; box-sizing: border-box; margin-left: -3.5rem; padding-right: 1em; color: #999; user-select: none; }

@media (prefers-color-scheme: dark) { #source p .n { color: #777; } }

Expand Down
2 changes: 1 addition & 1 deletion tests/gold/html/styled/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ kbd { border: 1px solid black; border-color: #888 #333 #333 #888; padding: .1em

#source p * { box-sizing: border-box; }

#source p .n { float: left; text-align: right; width: 3.5rem; box-sizing: border-box; margin-left: -3.5rem; padding-right: 1em; color: #999; }
#source p .n { float: left; text-align: right; width: 3.5rem; box-sizing: border-box; margin-left: -3.5rem; padding-right: 1em; color: #999; user-select: none; }

@media (prefers-color-scheme: dark) { #source p .n { color: #777; } }

Expand Down
2 changes: 1 addition & 1 deletion tests/gold/html/support/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ kbd { border: 1px solid black; border-color: #888 #333 #333 #888; padding: .1em

#source p * { box-sizing: border-box; }

#source p .n { float: left; text-align: right; width: 3.5rem; box-sizing: border-box; margin-left: -3.5rem; padding-right: 1em; color: #999; }
#source p .n { float: left; text-align: right; width: 3.5rem; box-sizing: border-box; margin-left: -3.5rem; padding-right: 1em; color: #999; user-select: none; }

@media (prefers-color-scheme: dark) { #source p .n { color: #777; } }

Expand Down

0 comments on commit 8dc5d3d

Please sign in to comment.