From fd67204cf209f0fc28f50c13bcd0cf6bc07d65ad Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 23 Feb 2017 07:16:56 +1000 Subject: [PATCH] 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
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

smaller than the title Signed-off-by: Peter Hutterer --- doc/Makefile.am | 3 ++- doc/libinput.doxygen.in | 3 ++- doc/style/libinputdoxygen.css | 47 +++++++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+), 2 deletions(-) create mode 100644 doc/style/libinputdoxygen.css diff --git a/doc/Makefile.am b/doc/Makefile.am index de4f4a15..50fab04e 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -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 diff --git a/doc/libinput.doxygen.in b/doc/libinput.doxygen.in index a358b98f..300d2f7e 100644 --- a/doc/libinput.doxygen.in +++ b/doc/libinput.doxygen.in @@ -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 diff --git a/doc/style/libinputdoxygen.css b/doc/style/libinputdoxygen.css new file mode 100644 index 00000000..b1e8bd73 --- /dev/null +++ b/doc/style/libinputdoxygen.css @@ -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; +}