Skip to content

Commit 2d0cbc1

Browse files
committed
Fix table captions
Glitch reported by @malarky. Removed special display/position handling.
1 parent 7ca88e1 commit 2d0cbc1

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/css/table.css

+6-8
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,14 @@ table.tableblock tbody td.tableblock p.tableblock {
7979
}
8080

8181
table.tableblock .title {
82-
display: inline-block;
82+
/* display: table-caption;
83+
compresses caption on e.g.
84+
https://docs.couchbase.com/server/current/backup-restore/enterprise-backup-restore.html
85+
into single cell at width < 768px.
86+
*/
8387
width: 100%;
8488
padding: 10px 0 0;
85-
margin-bottom: 10px;
89+
margin: 10px 0;
8690
}
8791

8892
.doc .admonitionblock td.icon {
@@ -131,12 +135,6 @@ table.table-tutorial tr td:last-child {
131135
position: relative;
132136
}
133137

134-
table.tableblock caption.title {
135-
position: absolute;
136-
left: 0;
137-
top: -30px;
138-
}
139-
140138
table.tableblock.caption-table,
141139
div.ulist + table.tableblock,
142140
table.tableblock + table.tableblock {

0 commit comments

Comments
 (0)