From 62eea6eee1a99b799259ccdbe1a4d1314524a32e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Thu, 4 Apr 2019 18:13:33 +0200 Subject: [PATCH] Evil trickery to show XMPP logo and XEP number in ToC --- xep.xsl | 9 ++++++++- xmpp.v2.css | 26 +++++++++++++++++++++++++- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/xep.xsl b/xep.xsl index 874a797b..33d948da 100644 --- a/xep.xsl +++ b/xep.xsl @@ -135,6 +135,13 @@ OR OTHER DEALINGS IN THE SOFTWARE. XEP-<xsl:value-of select='/xep/header/number'/>:<xsl:text> </xsl:text><xsl:value-of select='/xep/header/title' /> + @@ -442,7 +449,7 @@ OR OTHER DEALINGS IN THE SOFTWARE. -

Table of Contents

+

Table of Contents

diff --git a/xmpp.v2.css b/xmpp.v2.css index 58a21041..d510e4b5 100644 --- a/xmpp.v2.css +++ b/xmpp.v2.css @@ -1410,12 +1410,36 @@ overflow-y: scroll; } - nav#toc > h2 { + nav#toc > a > h2 { font-size: 128.57143%; line-height: 1.16667; margin: 0 0 1.16667em 0; } + nav#toc > a { + font-size: inherit; + display: block; + } + + nav#toc > a:hover, + nav#toc > a:focus { + background-color: transparent; + } + + nav#toc h2:before { + display: block; + font-size: 150%; + background-color: rgba(19, 181, 234, 1.0); + margin: -0.333333em; + margin-bottom: 1em; + padding: 0.3333333em; + padding-left: 2.1666667em; + background-image: url('https://xmpp.org/theme/images/xmpp-logo.svg'); + background-repeat: no-repeat; + background-size: 1.5em; + background-position: 0.33333333em 0.33333333em; + } + nav#toc ol, nav#toc li { margin-left: 0;