Merge "Fix the summary table border not rendering"

This commit is contained in:
Zuul 2019-04-15 17:35:34 +00:00 committed by Gerrit Code Review
commit 596d5a47f7
3 changed files with 18 additions and 9 deletions

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fixed the summary table border not rendering and improved the table
font sizing.

View File

@ -1,8 +1,12 @@
.sp_feature_required {
font-weight: bold;
}
.sp_feature_cells {
border: solid 1px black;
text-align: center;
}
.sp_impl_complete {
color: rgb(0, 120, 0);
font-weight: normal;
@ -24,7 +28,7 @@
}
.sp_impl_summary {
font-size: 2em;
font-size: medium;
}
.sp_cli {

View File

@ -250,7 +250,7 @@ class Directive(rst.Directive):
"""
summary_title = nodes.subtitle(text="Summary")
summary = nodes.table()
summary = nodes.table(classes=["sp_feature_cells"])
cols = len(matrix.drivers.keys())
# Add two columns for the Feature and Status columns.
@ -271,10 +271,10 @@ class Directive(rst.Directive):
# This sets up all the column headers - two fixed
# columns for feature name & status
header = nodes.row()
blank = nodes.entry()
blank = nodes.entry(classes=["sp_feature_cells"])
blank.append(nodes.emphasis(text="Feature"))
header.append(blank)
blank = nodes.entry()
blank = nodes.entry(classes=["sp_feature_cells"])
blank.append(nodes.emphasis(text="Status"))
header.append(blank)
summary_head.append(header)
@ -284,7 +284,7 @@ class Directive(rst.Directive):
key=lambda x: matrix.drivers[x].title)
for key in impls:
driver = matrix.drivers[key]
implcol = nodes.entry()
implcol = nodes.entry(classes=["sp_feature_cells"])
header.append(implcol)
if driver.link:
uri = driver.link
@ -305,7 +305,7 @@ class Directive(rst.Directive):
feature_id = re.sub(KEY_PATTERN, "_", feature.key)
# first the fixed columns for title/status
key_col = nodes.entry()
key_col = nodes.entry(classes=["sp_feature_cells"])
item.append(key_col)
key_ref = nodes.reference(refid=feature_id)
key_txt = nodes.inline()
@ -313,7 +313,7 @@ class Directive(rst.Directive):
key_txt.append(key_ref)
key_ref.append(nodes.strong(text=feature.title))
status_col = nodes.entry()
status_col = nodes.entry(classes=["sp_feature_cells"])
item.append(status_col)
status_col.append(nodes.inline(
text=feature.status,
@ -322,7 +322,7 @@ class Directive(rst.Directive):
# and then one column for each backend driver
for key in impls:
impl = feature.implementations[key]
impl_col = nodes.entry()
impl_col = nodes.entry(classes=["sp_feature_cells"])
item.append(impl_col)
key_id = re.sub(KEY_PATTERN, "_",