diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2021-09-09 03:38:15 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-09 03:38:15 -0600 |
| commit | f8b0ea6a96bdca66f8897e6175e3e18f8edbf3ab (patch) | |
| tree | 8d21f0fbe102076fecccb06ebe56024933cd87eb | |
| parent | 3d39ce2690644914f5fbff8bfa744a2f75cab90d (diff) | |
resolves #4137 set width of line number column on source block to 0.01% (PR #4158)
| -rw-r--r-- | CHANGELOG.adoc | 1 | ||||
| -rw-r--r-- | data/stylesheets/asciidoctor-default.css | 1 | ||||
| -rw-r--r-- | src/stylesheets/asciidoctor.css | 4 |
3 files changed, 6 insertions, 0 deletions
diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 7b2fc59d..7a37c996 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -39,6 +39,7 @@ Improvements:: * Layout lines of a source block with table-based line numbering as rows in the table when using Rouge as source highlighter (#4130) * Remove duplicate selectors in default stylesheet; enable stylelint rule to check for them * Use CSS class instead of inline style to apply page break behavior (#4051) + * Set width of line number table column of source block to 0.01% to restrict width and force table to span available width (#4137) // tag::compact[] == 2.0.16 (2021-08-03) - @mojavelinux diff --git a/data/stylesheets/asciidoctor-default.css b/data/stylesheets/asciidoctor-default.css index 067bff1b..8d2a916b 100644 --- a/data/stylesheets/asciidoctor-default.css +++ b/data/stylesheets/asciidoctor-default.css @@ -211,6 +211,7 @@ pre.prettyprint li:not(:first-child) code[data-lang]::before{display:none} table.linenotable{border-collapse:separate;border:0;margin-bottom:0;background:none} table.linenotable td[class]{color:inherit;vertical-align:top;padding:0;line-height:inherit;white-space:normal} table.linenotable td.code{padding-left:.75em} +table.linenotable td.linenos{width:.01%} table.linenotable td.linenos,pre.pygments .linenos,pre.rouge .linenos{border-right:1px solid;opacity:.35;padding-right:.5em;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none} pre.pygments span.linenos,pre.rouge span.linenos{display:inline-block;margin-right:.75em} .quoteblock{margin:0 1em 1.25em 1.5em;display:table} diff --git a/src/stylesheets/asciidoctor.css b/src/stylesheets/asciidoctor.css index 875fd714..49ce365b 100644 --- a/src/stylesheets/asciidoctor.css +++ b/src/stylesheets/asciidoctor.css @@ -1328,6 +1328,10 @@ table.linenotable td.code { padding-left: 0.75em; } +table.linenotable td.linenos { + width: 0.01%; +} + table.linenotable td.linenos, pre.pygments .linenos, pre.rouge .linenos { |
