Skip to content

Commit b785947

Browse files
committed
Fix display of labels in a [horizontal] list
The introduction of the entry for `compdb-targets` in the `[horizontal]` labeled list in doc/manual.asciidoc revealed some display issues in the left column: First, the web browser would insert a line break in the middle of the label `compdb-targets`, so that it looked like this: compdb- targets We fix this by applying the `white-space: nowrap` attribute to the left column. After this is fixed, we see practically no space between the end of the longest label and the beginning of the text in the second column; we fix this with the `padding-right` attribute. Finally, we align all labels to the right side of the column so that there is a consistent amount of horizontal space between the end of each label and the beginning of the text in the second column.
1 parent 4e4ec4c commit b785947

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

doc/style.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,16 @@ div.chapter {
5353
p {
5454
margin-top: 0;
5555
}
56+
57+
/* The following applies to the left column of a [horizontal] labeled list: */
58+
table.horizontal > tbody > tr > td:nth-child(1) {
59+
60+
/* prevent the insertion of a line-break in the middle of a label: */
61+
white-space: nowrap;
62+
63+
/* insert a little horizontal padding between the two columns: */
64+
padding-right: 1.5em;
65+
66+
/* right-justify labels: */
67+
text-align: end;
68+
}

0 commit comments

Comments
 (0)