doc: add a custom css for local overrides

Easier to track if we leave the original files alone. Actual changes to the
doxygen style:

* indent <dd> blocks
* hide the navigation sub-items. Our current style expands the full navigation
  menu but File-list, etc. is mostly useless and just wastes space.
* force some space below the main bar
* change the header sizes around a bit. Primary goal here: making <h1> smaller
  than the title

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2017-02-23 07:16:56 +10:00
parent 8a79d8a487
commit fd67204cf2
3 changed files with 51 additions and 2 deletions

View file

@ -70,7 +70,8 @@ style_files = \
style/header.html \
style/footer.html \
style/customdoxygen.css \
style/bootstrap.css
style/bootstrap.css \
style/libinputdoxygen.css
if BUILD_DOCS

View file

@ -26,4 +26,5 @@ DOTFILE_DIRS = @top_srcdir@/doc/dot
HTML_HEADER = @top_srcdir@/doc/style/header.html
HTML_FOOTER = @top_srcdir@/doc/style/footer.html
HTML_EXTRA_STYLESHEET = @top_srcdir@/doc/style/bootstrap.css \
@top_srcdir@/doc/style/customdoxygen.css
@top_srcdir@/doc/style/customdoxygen.css \
@top_srcdir@/doc/style/libinputdoxygen.css

View file

@ -0,0 +1,47 @@
dd {
margin-left: 30px;
}
.title {
font-size: 400%;
font-weight: 200;
}
h1 {
font-size: 300%;
}
h2 {
font-size: 200%;
}
.sm-dox li {
float:left;
border-top: 0;
padding-right: 20px;
}
.sm li, .sm a {
position: relative;
}
.sm, .sm ul, .sm li {
list-style: none;
display: block;
line-height: normal;
direction: ltr;
text-align: left;
}
.sm, .sm *, .sm *::before, .sm *::after {
box-sizing: border-box;
}
#main-nav {
padding: 30px;
}
/* Main menu sub-items like file-list, etc */
#main-menu li ul {
display: none;
}