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.
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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;
|
||||
}
|
||||
Reference in New Issue
Block a user