Skip to content

Commit 2ebf2af

Browse files
authored
Merge pull request #239 from eecs485staff/enhanced-code-blocks
[Enhanced Code Blocks] Use full width in no-line-numbers variant
2 parents 972c53e + 5fa869e commit 2ebf2af

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

_sass/spec/base.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,14 +767,14 @@ div.primer-spec-callout {
767767
}
768768

769769
td.primer-spec-code-block-line-number {
770+
width: 1%;
770771
cursor: pointer;
771772
-webkit-user-select: none;
772773
-moz-user-select: none;
773774
-ms-user-select: none;
774775
user-select: none;
775776

776777
&.primer-spec-code-block-line-numbers-shown {
777-
width: 1%;
778778
min-width: 50px;
779779
color: var(--code-block-line-number-color);
780780
text-align: right;

demo/enhanced-code-blocks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ The water was warm. There was plenty to eat.
511511
The turtles had everything turtles might need.
512512
And they were all happy. Quite happy indeed.
513513
```
514-
{: data-variant="no-line-numbers" }
514+
{: data-variant="no-line-numbers" data-highlight="2" }
515515
<!-- prettier-ignore-end -->
516516

517517
<!-- prettier-ignore-start -->
@@ -527,7 +527,7 @@ The water was warm. There was plenty to eat.
527527
The turtles had everything turtles might need.
528528
And they were all happy. Quite happy indeed.
529529
```
530-
{: data-variant="no-line-numbers" }
530+
{: data-variant="no-line-numbers" data-highlight="2" }
531531
````
532532
{: data-highlight="9" data-title="markdown" }
533533
</details>

0 commit comments

Comments
 (0)