Merge pull request #6625 from jakobandersen/6604_field_list_rendering

Fix field lists after switch to HTML5 writer
This commit is contained in:
Takeshi KOMIYA
2019-08-19 00:18:04 +09:00
committed by GitHub
3 changed files with 7 additions and 11 deletions

View File

@@ -520,14 +520,15 @@ dl.citation > dd:after {
} }
dl.field-list { dl.field-list {
display: flex; display: grid;
flex-wrap: wrap; grid-template-columns: fit-content(30%) auto;
} }
dl.field-list > dt { dl.field-list > dt {
flex-basis: 20%;
font-weight: bold; font-weight: bold;
word-break: break-word; word-break: break-word;
padding-left: 0.5em;
padding-right: 5px;
} }
dl.field-list > dt:after { dl.field-list > dt:after {
@@ -535,8 +536,8 @@ dl.field-list > dt:after {
} }
dl.field-list > dd { dl.field-list > dd {
flex-basis: 70%; padding-left: 0.5em;
padding-left: 1em; margin-top: 0em;
margin-left: 0em; margin-left: 0em;
margin-bottom: 0em; margin-bottom: 0em;
} }

View File

@@ -412,15 +412,10 @@ p.versionchanged span.versionmodified {
dl.field-list > dt { dl.field-list > dt {
color: white; color: white;
padding-left: 0.5em;
padding-right: 5px;
background-color: #82A0BE; background-color: #82A0BE;
} }
dl.field-list > dd { dl.field-list > dd {
padding-left: 0.5em;
margin-top: 0em;
margin-left: 0em;
background-color: #f7f7f7; background-color: #f7f7f7;
} }

View File

@@ -292,7 +292,7 @@ code {
font-size: 0.95em; font-size: 0.95em;
} }
th { th, dl.field-list > dt {
background-color: #ede; background-color: #ede;
} }