[library-web] [skin] custom css file for doxygen/gtkmm documentation
- From: Frederic Peters <fpeters src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [library-web] [skin] custom css file for doxygen/gtkmm documentation
- Date: Tue, 25 Aug 2009 13:28:19 +0000 (UTC)
commit fe7242d04b1f828ec5bd78fc0bc18a85b0f39f3a
Author: Frédéric Péters <fpeters 0d be>
Date: Tue Aug 25 15:10:59 2009 +0200
[skin] custom css file for doxygen/gtkmm documentation
data/skin/doxygen.css | 448 +++++++++++++++++++++++++++++++++++++++++++++++
data/skin/shade.png | Bin 0 -> 284 bytes
data/xslt/html2html.xsl | 5 +-
3 files changed, 452 insertions(+), 1 deletions(-)
---
diff --git a/data/skin/doxygen.css b/data/skin/doxygen.css
new file mode 100644
index 0000000..6be488b
--- /dev/null
+++ b/data/skin/doxygen.css
@@ -0,0 +1,448 @@
+div.gtkmm h1.lgotitle {
+ background: #fee;
+ border: 1px solid #faa;
+ margin: 0;
+ padding: 0.4ex;
+ font-size: 130%;
+ text-align: center;
+}
+
+div.gtkmm h1 {
+ font-size: 150%;
+}
+
+div.gtkmm h2 {
+ font-size: 120%;
+}
+
+div.gtkmm h3 {
+ font-size: 100%;
+}
+
+div.gtkmm div.navigation div.tabs ul {
+ padding: 0;
+}
+
+div.gtkmm div.navigation div.tabs li {
+ display: inline;
+ padding: 2px 5px;
+ background: #d8dbd5 url(shade.png) top left repeat-x;
+ border: 1px solid #888a85;
+}
+
+div.gtkmm div.navigation div.tabs li.current {
+ border: 2px solid #686a65;
+ padding: 1px 4px;
+}
+
+div.gtkmm div.navigation div.tabs li.current a {
+}
+
+caption {
+ font-weight: bold;
+}
+
+div.qindex, div.navtab{
+ background-color: #e8eef2;
+ border: 1px solid #84b0c7;
+ text-align: center;
+ margin: 2px;
+ padding: 2px;
+}
+
+div.qindex, div.navpath {
+ width: 100%;
+ line-height: 140%;
+}
+
+div.navtab {
+ margin-right: 15px;
+}
+
+/* @group Link Styling */
+
+a {
+ color: #153788;
+ font-weight: normal;
+ text-decoration: none;
+}
+
+.contents a:visited {
+ color: #1b77c5;
+}
+
+a:hover {
+ text-decoration: underline;
+}
+
+a.qindex {
+ font-weight: bold;
+}
+
+a.qindexHL {
+ font-weight: bold;
+ background-color: #6666cc;
+ color: #ffffff;
+ border: 1px double #9295C2;
+}
+
+.contents a.qindexHL:visited {
+ color: #ffffff;
+}
+
+a.el {
+ font-weight: bold;
+}
+
+a.elRef {
+}
+
+a.code {
+}
+
+a.codeRef {
+}
+
+/* @end */
+
+dl.el {
+ margin-left: -1cm;
+}
+
+.fragment {
+ font-family: monospace, fixed;
+ font-size: 105%;
+}
+
+pre.fragment {
+ border: 1px solid #aaaaff;
+ background-color: #eeeeff;
+ padding: 0.5em;
+ margin: 4px 8px 4px 2px;
+}
+
+div.ah {
+ background-color: black;
+ font-weight: bold;
+ color: #ffffff;
+ margin-bottom: 3px;
+ margin-top: 3px
+}
+
+div.groupHeader {
+ margin-left: 16px;
+ margin-top: 12px;
+ margin-bottom: 6px;
+ font-weight: bold;
+}
+
+div.groupText {
+ margin-left: 16px;
+ font-style: italic;
+}
+
+td.indexkey {
+ background-color: #e8eef2;
+ font-weight: bold;
+ border: 1px solid #CCCCCC;
+ margin: 2px 0px 2px 0;
+ padding: 2px 10px;
+}
+
+td.indexvalue {
+ background-color: #e8eef2;
+ border: 1px solid #CCCCCC;
+ padding: 2px 10px;
+ margin: 2px 0px;
+}
+
+tr.memlist {
+ background-color: #f0f0f0;
+}
+
+p.formulaDsp {
+ text-align: center;
+}
+
+img.formulaDsp {
+
+}
+
+img.formulaInl {
+ vertical-align: middle;
+}
+
+/* @group Code Colorization */
+
+span.keyword {
+ color: #008000
+}
+
+span.keywordtype {
+ color: #604020
+}
+
+span.keywordflow {
+ color: #e08000
+}
+
+span.comment {
+ color: #800000
+}
+
+span.preprocessor {
+ color: #806020
+}
+
+span.stringliteral {
+ color: #002080
+}
+
+span.charliteral {
+ color: #008080
+}
+
+span.vhdldigit {
+ color: #ff00ff
+}
+
+span.vhdlchar {
+ color: #000000
+}
+
+span.vhdlkeyword {
+ color: #700070
+}
+
+span.vhdllogic {
+ color: #ff0000
+}
+
+/* @end */
+
+.search {
+ color: #003399;
+ font-weight: bold;
+}
+
+form.search {
+ margin-bottom: 0px;
+ margin-top: 0px;
+}
+
+input.search {
+ font-size: 75%;
+ color: #000080;
+ font-weight: normal;
+ background-color: #e8eef2;
+}
+
+td.tiny {
+ font-size: 75%;
+}
+
+.dirtab {
+ padding: 4px;
+ border-collapse: collapse;
+ border: 1px solid #84b0c7;
+}
+
+th.dirtab {
+ background: #e8eef2;
+ font-weight: bold;
+}
+
+hr {
+ height: 0;
+ border: none;
+ border-top: 1px solid #666;
+}
+
+/* @group Member Descriptions */
+
+.mdescLeft, .mdescRight,
+.memItemLeft, .memItemRight,
+.memTemplItemLeft, .memTemplItemRight, .memTemplParams {
+ background-color: #FAFAFA;
+ border: none;
+ margin: 4px;
+ padding: 1px 0 0 8px;
+}
+
+.mdescLeft, .mdescRight {
+ padding: 0px 8px 4px 8px;
+ color: #555;
+}
+
+.memItemLeft, .memItemRight, .memTemplParams {
+ border-top: 1px solid #ccc;
+}
+
+.memTemplParams {
+ color: #606060;
+}
+
+/* @end */
+
+/* @group Member Details */
+
+/* Styles for detailed member documentation */
+
+.memtemplate {
+ font-size: 80%;
+ color: #606060;
+ font-weight: normal;
+ margin-left: 3px;
+}
+
+.memnav {
+ background-color: #e8eef2;
+ border: 1px solid #84b0c7;
+ text-align: center;
+ margin: 2px;
+ margin-right: 15px;
+ padding: 2px;
+}
+
+.memitem {
+ padding: 0;
+}
+
+.memname {
+ white-space: nowrap;
+ font-weight: bold;
+}
+
+.memproto, .memdoc {
+ border: 1px solid #84b0c7;
+}
+
+.memproto {
+ padding: 0;
+ background-color: #d5e1e8;
+ font-weight: bold;
+ -webkit-border-top-left-radius: 8px;
+ -webkit-border-top-right-radius: 8px;
+ -moz-border-radius-topleft: 8px;
+ -moz-border-radius-topright: 8px;
+}
+
+.memdoc {
+ padding: 2px 5px;
+ background-color: #eef3f5;
+ border-top-width: 0;
+ -webkit-border-bottom-left-radius: 8px;
+ -webkit-border-bottom-right-radius: 8px;
+ -moz-border-radius-bottomleft: 8px;
+ -moz-border-radius-bottomright: 8px;
+}
+
+.paramkey {
+ text-align: right;
+}
+
+.paramtype {
+ white-space: nowrap;
+}
+
+.paramname {
+ color: #602020;
+ white-space: nowrap;
+}
+.paramname em {
+ font-style: normal;
+}
+
+/* @end */
+
+/* @group Directory (tree) */
+
+/* for the tree view */
+
+.ftvtree {
+ font-family: sans-serif;
+ margin: 0.5em;
+}
+
+/* these are for tree view when used as main index */
+
+.directory {
+ font-size: 9pt;
+ font-weight: bold;
+}
+
+.directory h3 {
+ margin: 0px;
+ margin-top: 1em;
+ font-size: 11pt;
+}
+
+/*
+The following two styles can be used to replace the root node title
+with an image of your choice. Simply uncomment the next two styles,
+specify the name of your image and be sure to set 'height' to the
+proper pixel height of your image.
+*/
+
+/*
+.directory h3.swap {
+ height: 61px;
+ background-repeat: no-repeat;
+ background-image: url("yourimage.gif");
+}
+.directory h3.swap span {
+ display: none;
+}
+*/
+
+.directory > h3 {
+ margin-top: 0;
+}
+
+.directory p {
+ margin: 0px;
+ white-space: nowrap;
+}
+
+.directory div {
+ display: none;
+ margin: 0px;
+}
+
+.directory img {
+ vertical-align: -30%;
+}
+
+/* these are for tree view when not used as main index */
+
+.directory-alt {
+ font-size: 100%;
+ font-weight: bold;
+}
+
+.directory-alt h3 {
+ margin: 0px;
+ margin-top: 1em;
+ font-size: 11pt;
+}
+
+.directory-alt > h3 {
+ margin-top: 0;
+}
+
+.directory-alt p {
+ margin: 0px;
+ white-space: nowrap;
+}
+
+.directory-alt div {
+ display: none;
+ margin: 0px;
+}
+
+.directory-alt img {
+ vertical-align: -30%;
+}
+
+/* @end */
+
diff --git a/data/skin/shade.png b/data/skin/shade.png
new file mode 100644
index 0000000..7972f54
Binary files /dev/null and b/data/skin/shade.png differ
diff --git a/data/xslt/html2html.xsl b/data/xslt/html2html.xsl
index 257636f..c2a89bb 100644
--- a/data/xslt/html2html.xsl
+++ b/data/xslt/html2html.xsl
@@ -55,6 +55,7 @@ along with libgo; if not, write to the Free Software Foundation, Inc.,
</xsl:copy>
</xsl:template>
+ <!--
<xsl:template match="@href" mode="gtkmm">
<xsl:attribute name="href">
<xsl:choose>
@@ -70,6 +71,7 @@ along with libgo; if not, write to the Free Software Foundation, Inc.,
</xsl:choose>
</xsl:attribute>
</xsl:template>
+ -->
<!-- gtk-doc: fix links between gtk-doc references -->
<xsl:template match="node()|@*" mode="gtk-doc">
@@ -187,7 +189,7 @@ along with libgo; if not, write to the Free Software Foundation, Inc.,
<head>
<meta content="text/html; charset=utf-8" />
<xsl:if test="$libgo.h2hmode = 'gtkmm'">
- <xsl:apply-templates select="html:head/html:link[ rel = 'stylesheet']"/>
+ <link rel="stylesheet" href="/skin/doxygen.css" type="text/css" />
</xsl:if>
<xsl:call-template name="libgo.head"/>
<xsl:if test="$libgo.extracss">
@@ -207,6 +209,7 @@ along with libgo; if not, write to the Free Software Foundation, Inc.,
</xsl:if>
<xsl:choose>
<xsl:when test="$libgo.h2hmode = 'gtkmm'">
+ <h1 class="lgotitle"><xsl:value-of select="//html:title" /></h1>
<xsl:apply-templates select="//html:div[ id='content']" mode="gtkmm"/>
</xsl:when>
<xsl:when test="$libgo.h2hmode = 'content-id'">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]