haiku/docs/interface_guidelines/docbook-css/tables.css
Augustin Cavalier 7d6915b4d0 Interface Guidelines: migrate to docs/, use DocBookCSS.
DocBookCSS is a mostly-pure-CSS2 implementation of the DocBook standard.
Unlike DocBookXSL which relies on transforming the XML, it utilizes the
XML-styling features of modern web browsers to display the DocBook.

Its appearance still is a long way from the Haiku Book and Userguide, but
it looks (mostly) the same as the old DocBookXSL so we can stop using that.
Eventually we just need to make DocBookCSS use our styling.
2015-02-12 17:08:04 -05:00

60 lines
847 B
CSS

/*
* tables.css
*
* Copyright (c) 2004 David Holroyd, and contributors
* See the file 'COPYING' for terms of use
*
* Part of the Docbook-CSS stylesheet
* http://www.badgers-in-foil.co.uk/projects/docbook-css/
*
*/
tgroup {
display: table;
}
row {
display: table-row;
}
thead {
display: table-header-group;
}
tbody {
display: table-row-group;
}
entry, entrytbl {
display: table-cell;
}
entry[valign=top] {
vertical-align: top;
}
entry[valign=bottom] {
vertical-align: bottom;
}
/*
* CSS can't generate the indended formatting for segmented lists, so we turn
* them into tables instead.
*
* TODO: seems to break formatting when nested in a table entry
*/
segmentedlist {
display: table;
}
seglistitem {
display: table-row;
}
seg, segtitle {
display: table-cell;
}
segmentedlist>title {
display: table-caption;
}