Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit 05fc089

Browse files
committed
Make ol.linenums use display:inline-block
Without this, the ol.linenums section won't expand to fill its <pre> parent if we set the parent to overflow:scroll. This change fixes that bug.
1 parent b5fa4d1 commit 05fc089

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

styles/desert.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pre .atv { color: #ffa0a0 } /* attribute value - pink */
1414
pre .dec { color: #98fb98 } /* decimal - lightgreen */
1515

1616
/* Specify class=linenums on a pre to get line numbering */
17-
ol.linenums { margin-top: 0; margin-bottom: 0; color: #AEAEAE } /* IE indents via margin-left */
17+
ol.linenums { margin-top: 0; margin-bottom: 0; color: #AEAEAE; display: inline-block; } /* IE indents via margin-left */
1818
li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8 { list-style-type: none }
1919
/* Alternate shading for lines */
2020
li.L1,li.L3,li.L5,li.L7,li.L9 { }

styles/doxy.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pre.prettyprint a, code.prettyprint a {
4141
text-decoration:none;
4242
}
4343
/* Specify class=linenums on a pre to get line numbering; line numbers themselves are the same color as punctuation */
44-
ol.linenums { margin-top: 0; margin-bottom: 0; color: #8B8970; } /* IE indents via margin-left */
44+
ol.linenums { margin-top: 0; margin-bottom: 0; color: #8B8970; display: inline-block; } /* IE indents via margin-left */
4545
li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8 { list-style-type: none }
4646
/* Alternate shading for lines */
4747
li.L1,li.L3,li.L5,li.L7,li.L9 { }

styles/sons-of-obsidian.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ ol.linenums
5757
{
5858
margin-top: 0;
5959
margin-bottom: 0;
60+
display: inline-block;
6061
}
6162
.prettyprint {
6263
background: #000;

styles/sunburst.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pre.prettyprint {
2727

2828

2929
/* Specify class=linenums on a pre to get line numbering */
30-
ol.linenums { margin-top: 0; margin-bottom: 0; color: #AEAEAE; } /* IE indents via margin-left */
30+
ol.linenums { margin-top: 0; margin-bottom: 0; color: #AEAEAE; display: inline-block; } /* IE indents via margin-left */
3131
li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8 { list-style-type: none }
3232
/* Alternate shading for lines */
3333
li.L1,li.L3,li.L5,li.L7,li.L9 { }

0 commit comments

Comments
 (0)