diff options
author | Mariano Guerra <[email protected]> | 2016-10-21 13:40:58 +0100 |
---|---|---|
committer | Mariano Guerra <[email protected]> | 2017-03-13 11:51:52 +0100 |
commit | 45bda44b08d01c0835b7402b752b9c7b07a4b77c (patch) | |
tree | 7809bf53619203fffd1a01e7d8e4292263cd6da0 | |
parent | 058b082c1c4797f2211b03358d8bb5e657fcded9 (diff) | |
download | otp-45bda44b08d01c0835b7402b752b9c7b07a4b77c.tar.gz otp-45bda44b08d01c0835b7402b752b9c7b07a4b77c.tar.bz2 otp-45bda44b08d01c0835b7402b752b9c7b07a4b77c.zip |
center erlang logo on left panel
-rw-r--r-- | lib/erl_docgen/priv/css/otp_doc.css | 5 | ||||
-rw-r--r-- | lib/erl_docgen/priv/xsl/db_html.xsl | 8 | ||||
-rw-r--r-- | system/doc/top/templates/index.html.src | 8 |
3 files changed, 15 insertions, 6 deletions
diff --git a/lib/erl_docgen/priv/css/otp_doc.css b/lib/erl_docgen/priv/css/otp_doc.css index aec2207ecd..6f0019fb32 100644 --- a/lib/erl_docgen/priv/css/otp_doc.css +++ b/lib/erl_docgen/priv/css/otp_doc.css @@ -145,3 +145,8 @@ pre { font-family: mono, Courier, monospace; font-weight: normal } .REFTYPES { margin-left: 8mm } footer { } + +.erlang-logo-wrapper{ + text-align: center; + margin-bottom: 1em; +} diff --git a/lib/erl_docgen/priv/xsl/db_html.xsl b/lib/erl_docgen/priv/xsl/db_html.xsl index edab8e1c7e..beb52c69c1 100644 --- a/lib/erl_docgen/priv/xsl/db_html.xsl +++ b/lib/erl_docgen/priv/xsl/db_html.xsl @@ -799,10 +799,14 @@ <xsl:template name="menu_top"> <xsl:choose> <xsl:when test="string-length($logo) > 0"> - <img alt="Erlang logo" src="{$topdocdir}/{$logo}"/> + <div class="erlang-logo-wrapper"> + <img alt="Erlang Logo" src="{$topdocdir}/{$logo}" class="erlang-logo"/> + </div> </xsl:when> <xsl:otherwise> - <img alt="Erlang logo" src="{$topdocdir}/erlang-logo.png"/> + <div class="erlang-logo-wrapper"> + <img alt="Erlang Logo" src="{$topdocdir}/erlang-logo.png" class="erlang-logo"/> + </div> </xsl:otherwise> </xsl:choose> <br/> diff --git a/system/doc/top/templates/index.html.src b/system/doc/top/templates/index.html.src index d2a6736d34..967c33719d 100644 --- a/system/doc/top/templates/index.html.src +++ b/system/doc/top/templates/index.html.src @@ -29,14 +29,14 @@ limitations under the License. </script> </head> -<body bgcolor=white text="#000000" link="#0000ff" vlink="#ff00ff" - alink="#ff0000"> +<body> <div id="container"> <div id="leftnav"> <div class="innertube"> -<img alt="Erlang logo" src="erlang-logo.png"/ > -<p/> + <div class="erlang-logo-wrapper"> + <img alt="Erlang Logo" src="erlang-logo.png" class="erlang-logo"/ > + </div> <small><a href="applications.html">Applications</a><br> <a href="man_index.html">Modules</a></small> <p/> |