diff options
author | Mariano Guerra <[email protected]> | 2016-10-21 16:42:40 +0100 |
---|---|---|
committer | Mariano Guerra <[email protected]> | 2017-03-13 11:51:52 +0100 |
commit | b234f1de2c8eaba384b30014f01cfc8d58b096bd (patch) | |
tree | 988d41f273adecf5c628b7d33f5ebb2534bcae68 /lib | |
parent | 224a1977ac4efc77078adc8490a396805a3dd270 (diff) | |
download | otp-b234f1de2c8eaba384b30014f01cfc8d58b096bd.tar.gz otp-b234f1de2c8eaba384b30014f01cfc8d58b096bd.tar.bz2 otp-b234f1de2c8eaba384b30014f01cfc8d58b096bd.zip |
improve left panel section info and menu
Diffstat (limited to 'lib')
-rw-r--r-- | lib/erl_docgen/priv/css/otp_doc.css | 13 | ||||
-rw-r--r-- | lib/erl_docgen/priv/xsl/db_html.xsl | 15 |
2 files changed, 20 insertions, 8 deletions
diff --git a/lib/erl_docgen/priv/css/otp_doc.css b/lib/erl_docgen/priv/css/otp_doc.css index 1ff9bcade2..cbeb1037a9 100644 --- a/lib/erl_docgen/priv/css/otp_doc.css +++ b/lib/erl_docgen/priv/css/otp_doc.css @@ -204,3 +204,16 @@ th { background-color: #777; color: #fefefe; } + +.section-title, .section-subtitle, .section-version{ + text-align: center; + margin: 0; +} + +.section-title{ + font-weight: bold; +} + +.section-version{ + font-size: small; +} diff --git a/lib/erl_docgen/priv/xsl/db_html.xsl b/lib/erl_docgen/priv/xsl/db_html.xsl index 529d28e88f..9f49fc31d5 100644 --- a/lib/erl_docgen/priv/xsl/db_html.xsl +++ b/lib/erl_docgen/priv/xsl/db_html.xsl @@ -809,7 +809,7 @@ </div> </xsl:otherwise> </xsl:choose> - <br/> + <ul class="panel-sections"> <xsl:if test="boolean(/book/parts/part)"> <li><a href="users_guide.html">User's Guide</a></li> @@ -845,7 +845,6 @@ </xsl:when> </xsl:choose> </small --> - <br/> <ul class="expand-collapse-items"> <li><a href="javascript:openAllFlips()">Expand All</a></li> @@ -1252,12 +1251,12 @@ <div id="leftnav"> <div class="innertube"> - <xsl:call-template name="menu_top"/> - <p class="section-title"><xsl:value-of select="/book/header/title"/></p> <p class="section-subtitle">User's Guide</p> <p class="section-version">Version <xsl:value-of select="$appver"/></p> + <xsl:call-template name="menu_top"/> + <xsl:call-template name="menu_middle"/> <h3>Chapters</h3> @@ -1411,12 +1410,12 @@ <div id="leftnav"> <div class="innertube"> - <xsl:call-template name="menu_top"/> - <p class="section-title"><xsl:value-of select="/book/header/title"/></p> <p class="section-subtitle">Reference Manual</p> <p class="section-version">Version <xsl:value-of select="$appver"/></p> + <xsl:call-template name="menu_top"/> + <xsl:call-template name="menu_middle"/> <h3>Table of Contents</h3> @@ -2252,12 +2251,12 @@ <div id="leftnav"> <div class="innertube"> - <xsl:call-template name="menu_top"/> - <p class="section-title"><xsl:value-of select="/book/header/title"/></p> <p class="section-subtitle">Release Notes</p> <p class="section-version">Version <xsl:value-of select="$appver"/></p> + <xsl:call-template name="menu_top"/> + <xsl:call-template name="menu_middle"/> <h3>Chapters</h3> |