mirror of
https://github.com/moparisthebest/xeps
synced 2025-01-30 23:10:10 -05:00
Show the ToC on the left margin if enough space is available
This commit is contained in:
parent
39199b23d8
commit
48e6477b98
2
xep.xsl
2
xep.xsl
@ -228,7 +228,9 @@ OR OTHER DEALINGS IN THE SOFTWARE.
|
|||||||
<!-- COUNCIL NOTE -->
|
<!-- COUNCIL NOTE -->
|
||||||
<xsl:apply-templates select='/xep/header/councilnote'/>
|
<xsl:apply-templates select='/xep/header/councilnote'/>
|
||||||
<!-- TABLE OF CONTENTS -->
|
<!-- TABLE OF CONTENTS -->
|
||||||
|
<nav id="toc">
|
||||||
<xsl:call-template name='processTOC' />
|
<xsl:call-template name='processTOC' />
|
||||||
|
</nav>
|
||||||
<!-- END FRONT MATTER -->
|
<!-- END FRONT MATTER -->
|
||||||
<!-- BEGIN XEP CONTENTS -->
|
<!-- BEGIN XEP CONTENTS -->
|
||||||
<xsl:apply-templates select='/xep/section1'/>
|
<xsl:apply-templates select='/xep/section1'/>
|
||||||
|
36
xmpp.v2.css
36
xmpp.v2.css
@ -661,3 +661,39 @@
|
|||||||
counter-increment: item;
|
counter-increment: item;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and ( min-width: 75em ) {
|
||||||
|
body {
|
||||||
|
margin-right: 0;
|
||||||
|
margin-left: auto;
|
||||||
|
max-width: 60em;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav#toc {
|
||||||
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
width: 15em;
|
||||||
|
width: calc((100vw - 60em) - 2em);
|
||||||
|
padding: 0.5em;
|
||||||
|
overflow-y: scroll;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav#toc > h2 {
|
||||||
|
font-size: 128.57143%;
|
||||||
|
line-height: 1.16667;
|
||||||
|
margin: 0 0 1.16667em 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and ( min-width: 90em ) {
|
||||||
|
body {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav#toc {
|
||||||
|
width: calc((100vw - 60em) / 2 - 2em);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user