diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-03-09 21:09:57 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-03-09 21:09:57 +0000 |
commit | 0a120a58212291d4b88f2a81c5e353414fd1ba40 (patch) | |
tree | 108051978b781d42cddf6abb839ba8b9c76bb58b | |
parent | Remove couch session config (diff) | |
download | gentoobrowse-1.0.1.tar.bz2 gentoobrowse-1.0.1.tar.xz gentoobrowse-1.0.1.zip |
Some fixes recommended by Googlegentoobrowse-1.0.1
-rw-r--r-- | gentoobrowse/css/general.css | 2 | ||||
-rw-r--r-- | gentoobrowse/xslt/base.xslt | 20 | ||||
-rw-r--r-- | gentoobrowse/xslt/use.xslt | 9 |
3 files changed, 27 insertions, 4 deletions
diff --git a/gentoobrowse/css/general.css b/gentoobrowse/css/general.css index e15e534..ac64f9b 100644 --- a/gentoobrowse/css/general.css +++ b/gentoobrowse/css/general.css @@ -245,7 +245,7 @@ only screen and ( -o-min-device-pixel-ratio: 2/1) { border-bottom: 1px solid #ddd; } .subhead h1 { - font-size: 60px; + font-size: 50px; } .subhead p { margin-bottom: 20px; diff --git a/gentoobrowse/xslt/base.xslt b/gentoobrowse/xslt/base.xslt index b3f394d..3267f67 100644 --- a/gentoobrowse/xslt/base.xslt +++ b/gentoobrowse/xslt/base.xslt @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:str="http://exslt.org/strings" xmlns:project2="http://project2.randomdan.homeip.net" exclude-result-prefixes="project2" > <xsl:output encoding="utf-8" method="html" media-type="text/html" indent="yes" /> @@ -8,13 +9,13 @@ <html lang="en"> <head> <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="shortcut icon" href="/img/glogo-small.png" type="image/png" /> <link rel="start" href="/" /> <link rel="search" href="/search" /> <link href="/css/bootstrap.min.css" rel="stylesheet" media="screen" /> <link href="/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen" /> <link href="/css/general.css" rel="stylesheet" media="screen" /> - <script src="/js/googletracking.js" /> <xsl:call-template name="head" /> </head> <body data-spy="scroll" data-target=".bs-docs-sidebar"> @@ -72,6 +73,7 @@ <xsl:value-of select="name" /> </a> </li> + <wbr/> <li class="muted">·</li> </xsl:for-each> </ul> @@ -109,9 +111,10 @@ </div> </form> - <script src="http://code.jquery.com/jquery-latest.js"></script> + <script src="http://code.jquery.com/jquery-latest.min.js"></script> <script src="/js/bootstrap.min.js"></script> <script src="/js/js.js"></script> + <script src="/js/googletracking.js" /> </body> </html> </xsl:template> @@ -149,4 +152,17 @@ </xsl:if> </p> </xsl:template> + + <xsl:template match="text()" name="split"> + <xsl:param name="pText"/> + <xsl:param name="pBy"/> + <xsl:for-each select="str:tokenize($pText, $pBy)"> + <xsl:if test="position() > 1"> + <xsl:value-of select="$pBy"/> + <wbr/> + </xsl:if> + <xsl:value-of select="."/> + </xsl:for-each> + </xsl:template> + </xsl:stylesheet> diff --git a/gentoobrowse/xslt/use.xslt b/gentoobrowse/xslt/use.xslt index 3ad72fa..4fecc13 100644 --- a/gentoobrowse/xslt/use.xslt +++ b/gentoobrowse/xslt/use.xslt @@ -12,7 +12,14 @@ </xsl:template> <xsl:template name="header"> - <h1>Packages with the <xsl:value-of select="/gentoo/project2:uriElems/uriElem[2]" /> USE flag</h1> + <h1> + Packages with the + <xsl:call-template name="split"> + <xsl:with-param name="pText" select="/gentoo/project2:uriElems/uriElem[2]" /> + <xsl:with-param name="pBy" select="'_'" /> + </xsl:call-template> + USE flag + </h1> <xsl:if test="/gentoo/global/use"> <p class="lead">Global definition: <xsl:value-of select="/gentoo/global/use/description" />.</p> </xsl:if> |