From aa28e042ea64495ccff0f652c42d6546f18eac18 Mon Sep 17 00:00:00 2001 From: Daniel Molkentin Date: Fri, 4 Jun 2010 14:40:33 +0200 Subject: [PATCH] Fix help being unusable in split mode by using Qt doc offline style Reviewed-by: Leena Miettinen --- doc/qt-defines.qdocconf | 9 +-- doc/qt-html-templates.qdocconf | 102 ++++++++++++++------------- doc/qtcreator.qdocconf | 1 + doc/templates/style/OfflineStyle.css | 25 +++++-- 4 files changed, 80 insertions(+), 57 deletions(-) diff --git a/doc/qt-defines.qdocconf b/doc/qt-defines.qdocconf index 1470f19c95d..f3239272c78 100644 --- a/doc/qt-defines.qdocconf +++ b/doc/qt-defines.qdocconf @@ -65,7 +65,8 @@ styledirs = $SRCDIR/templates/style scripts.HTML = functions.js \ jquery.js -styles.HTML = style.css \ - style_ie6.css \ - style_ie7.css \ - style_ie8.css +styles.HTML = OfflineStyle.css \ + style.css \ + style_ie6.css \ + style_ie7.css \ + style_ie8.css diff --git a/doc/qt-html-templates.qdocconf b/doc/qt-html-templates.qdocconf index 9d385d86ee9..7cab396b83c 100644 --- a/doc/qt-html-templates.qdocconf +++ b/doc/qt-html-templates.qdocconf @@ -1,8 +1,19 @@ -HTML.stylesheets = style/style.css +HTML.stylesheets = style/style.css \ + style/OfflineStyle.css \ + style/style_ie7.css \ + style/style_ie8.css \ + style/style_ie6.css + HTML.postheader = "
\n" \ + "
\n" \ "
\n" \ " Home
\n" \ " Qt Creator Documentation\n" \ + "
\n" \ + "
\n" \ + " \n" \ + "
\n" \ + "
\n" \ "
\n" \ "
\n" \ "
\n" \ @@ -31,55 +43,49 @@ HTML.postheader = "
\n" \ "
\n" \ " Search index:
\n" \ "
\n" \ - "
\n" \ + " \n" \ "
\n" \ - " \n" \ + " \n" \ "
\n" \ "
\n" \ "
\n" \ "
\n" \ - "

\n" \ + "

\n" \ " API Lookup

\n" \ - "
\n" \ - " \n" \ - "
\n" \ - "
\n" \ + "
\n" \ + " \n" \ "
\n" \ "
\n" \ "
\n" \ - "

\n" \ - " API Topics

\n" \ - "
\n" \ - " \n" \ - "
\n" \ - "
\n" \ + "

\n" \ + " Qt Topics

\n" \ + "
\n" \ + " \n" \ "
\n" \ "
\n" \ "
\n" \ - "

\n" \ - " API Examples

\n" \ - "
\n" \ - " \n" \ - "
\n" \ - "
\n" \ + "

\n" \ + " Examples

\n" \ + "
\n" \ + " \n" \ "
\n" \ "
\n" \ "
\n" \ @@ -98,20 +104,21 @@ HTML.postpostheader = " \n" \ "
  • A
  • \n" \ "
  • A
  • \n" \ "
  • \n" \ - " \"\"\"Print
  • \n" \ + " Print\n" \ " \n" \ "
    \n" \ "
    \n" \ "
    \n" -HTML.footer = "
    \n" \ - "
    \n" \ +HTML.footer = " \n" \ + "
    \n" \ " [+] Documentation Feedback
    \n" \ "
    \n" \ "
    \n" \ "
    \n" \ " \n" \ "
    \n" \ + "
    \n" \ "
    \n" \ "

    \n" \ " © 2008-2010 Nokia Corporation and/or its\n" \ @@ -122,13 +129,10 @@ HTML.footer = "

    \n" \ " href=\"http://qt.nokia.com/about/privacy-policy\">Privacy Policy

    \n" \ "
    \n" \ "
    \n" \ - "
    \n" \ - " X\n" \ - "
    \n" \ - "
    \n" \ - " \n" \ - " \n" \ + "
    X
    \n" \ + " \n" \ + "

    \n" \ + "

    \n" \ "
    \n" \ "
    \n" \ "
    \n" \ diff --git a/doc/qtcreator.qdocconf b/doc/qtcreator.qdocconf index 7f438ce6c8d..d3fbac5232d 100644 --- a/doc/qtcreator.qdocconf +++ b/doc/qtcreator.qdocconf @@ -31,6 +31,7 @@ qhp.QtCreator.extraFiles = \ style/style_ie6.css \ style/style_ie7.css \ style/style_ie8.css \ + style/OfflineStyle.css \ images/qt-logo.png \ images/qtcreator-screenshots.png \ scripts/functions.js \ diff --git a/doc/templates/style/OfflineStyle.css b/doc/templates/style/OfflineStyle.css index ddd580af531..51ea3541b1e 100644 --- a/doc/templates/style/OfflineStyle.css +++ b/doc/templates/style/OfflineStyle.css @@ -338,9 +338,26 @@ .wrap .content li { padding-left: 12px; - background: url(../images/bullet_sq.png) no-repeat 0 5px; - font: normal 400 10pt/1 Verdana; - margin-bottom: 10px; + background: url(../images/bullet_sq.png) no-repeat 0 5px; + font: inherit; + /* color: #44a51c;*/ + margin-bottom: 10px; + } + + .wrap .content ol li { + background:none; + font: inherit; + margin-bottom:10px; + padding-left: 0px; + } + + .wrap .content ol li { + list-style-type:decimal; + } + + .wrap .content .descr ol li { + margin-left: 45px; + } .offline .wrap .content @@ -737,7 +754,7 @@ #narrowmenu li ul { width: auto; padding: 5px; - margin-top:-15px; + margin-top:-15px; } .sf-menu li:hover ul, .sf-menu li.sfHover ul {