summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-08-19 00:18:04 +0900
committerGitHub <noreply@github.com>2019-08-19 00:18:04 +0900
commit0df7ab0d22d742320135e89b20457e37c6fc8455 (patch)
tree4a66f9446c4f9565cd686712f78e9932803c4f7e
parent4ab751c80712261526fa0d24d5711a7400f2e95c (diff)
parent9dd768863c613e00d1f9c33ed1d1fbbdc663cbf9 (diff)
downloadsphinx-git-0df7ab0d22d742320135e89b20457e37c6fc8455.tar.gz
Merge pull request #6625 from jakobandersen/6604_field_list_rendering
Fix field lists after switch to HTML5 writer
-rw-r--r--sphinx/themes/basic/static/basic.css_t11
-rw-r--r--sphinx/themes/bizstyle/static/bizstyle.css_t5
-rw-r--r--sphinx/themes/classic/static/classic.css_t2
3 files changed, 7 insertions, 11 deletions
diff --git a/sphinx/themes/basic/static/basic.css_t b/sphinx/themes/basic/static/basic.css_t
index 91fd35755..1c278e88b 100644
--- a/sphinx/themes/basic/static/basic.css_t
+++ b/sphinx/themes/basic/static/basic.css_t
@@ -520,14 +520,15 @@ dl.citation > dd:after {
}
dl.field-list {
- display: flex;
- flex-wrap: wrap;
+ display: grid;
+ grid-template-columns: fit-content(30%) auto;
}
dl.field-list > dt {
- flex-basis: 20%;
font-weight: bold;
word-break: break-word;
+ padding-left: 0.5em;
+ padding-right: 5px;
}
dl.field-list > dt:after {
@@ -535,8 +536,8 @@ dl.field-list > dt:after {
}
dl.field-list > dd {
- flex-basis: 70%;
- padding-left: 1em;
+ padding-left: 0.5em;
+ margin-top: 0em;
margin-left: 0em;
margin-bottom: 0em;
}
diff --git a/sphinx/themes/bizstyle/static/bizstyle.css_t b/sphinx/themes/bizstyle/static/bizstyle.css_t
index f2b400688..b1ae49689 100644
--- a/sphinx/themes/bizstyle/static/bizstyle.css_t
+++ b/sphinx/themes/bizstyle/static/bizstyle.css_t
@@ -412,15 +412,10 @@ p.versionchanged span.versionmodified {
dl.field-list > dt {
color: white;
- padding-left: 0.5em;
- padding-right: 5px;
background-color: #82A0BE;
}
dl.field-list > dd {
- padding-left: 0.5em;
- margin-top: 0em;
- margin-left: 0em;
background-color: #f7f7f7;
}
diff --git a/sphinx/themes/classic/static/classic.css_t b/sphinx/themes/classic/static/classic.css_t
index a062d6d14..84a4dd0ec 100644
--- a/sphinx/themes/classic/static/classic.css_t
+++ b/sphinx/themes/classic/static/classic.css_t
@@ -292,7 +292,7 @@ code {
font-size: 0.95em;
}
-th {
+th, dl.field-list > dt {
background-color: #ede;
}