From 9c8955ffd9df1a38a617bcbdf011c7b890ea23d1 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Wed, 27 Mar 2013 18:24:08 -0400 Subject: [PATCH] Move the CSS for the TOC to its own InsetLayout. --- lib/layouts/stdinsets.inc | 42 +++++++++++++++++++++++++++++++++++++++ lib/layouts/stdtitle.inc | 41 -------------------------------------- 2 files changed, 42 insertions(+), 41 deletions(-) diff --git a/lib/layouts/stdinsets.inc b/lib/layouts/stdinsets.inc index c556fdd094..5938cc6ee3 100644 --- a/lib/layouts/stdinsets.inc +++ b/lib/layouts/stdinsets.inc @@ -180,6 +180,48 @@ InsetLayout IPADeco ForcePlain true End +InsetLayout TOC + HTMLStyle + div.toc { + margin: 2em 0em; + border-style: solid; + border-width: 2px 0px; + padding: 1em 0em; + } + div.tochead { font-size: x-large; font-weight: bold; } + div.lyxtoc-0 { + margin: 2em 0em 0em 0em; + font-size: xx-large; + font-weight: bold; + } + div.lyxtoc-1 { + margin: 1em 0em 0em 0em; + font-size: x-large; + font-weight: bold; + } + div.lyxtoc-2 { + margin: 0em 0em 0em 1em; + font-size: large; + font-weight: normal; + } + div.lyxtoc-3 { margin: 0em 0em 0em 0.5em; font-size: medium; } + div.lyxtoc-4 { margin: 0em 0em 0em 0.5em; } + div.lyxtoc-5 { margin: 0em 0em 0em 0.5em; } + div.lyxtoc-6 { margin: 0em 0em 0em 0.5em; } + a.tocentry { + text-decoration: none; + color: black; + } + a.tocentry:visited { color: black; } + a.tocarrow { + font-weight: bold; + text-decoration: none; + color: #909090; + } + a.tocarrow:visited { color: #C0C0C0; } + EndHTMLStyle +End + InsetLayout TOC:Listings # We need the [[List of Listings]] context, since "Listings" is also # the name of the inset and translated differently. diff --git a/lib/layouts/stdtitle.inc b/lib/layouts/stdtitle.inc index 807ba48983..e712f9703a 100644 --- a/lib/layouts/stdtitle.inc +++ b/lib/layouts/stdtitle.inc @@ -10,47 +10,6 @@ Format 45 -# CSS for the TOC -AddToHTMLStyles -div.toc { - margin: 2em 0em; - border-style: solid; - border-width: 2px 0px; - padding: 1em 0em; -} -div.tochead { font-size: x-large; font-weight: bold; } -div.lyxtoc-0 { - margin: 2em 0em 0em 0em; - font-size: xx-large; - font-weight: bold; -} -div.lyxtoc-1 { - margin: 1em 0em 0em 0em; - font-size: x-large; - font-weight: bold; -} -div.lyxtoc-2 { - margin: 0em 0em 0em 1em; - font-size: large; - font-weight: normal; -} -div.lyxtoc-3 { margin: 0em 0em 0em 0.5em; font-size: medium; } -div.lyxtoc-4 { margin: 0em 0em 0em 0.5em; } -div.lyxtoc-5 { margin: 0em 0em 0em 0.5em; } -div.lyxtoc-6 { margin: 0em 0em 0em 0.5em; } -a.tocentry { - text-decoration: none; - color: black; -} -a.tocentry:visited { color: black; } -a.tocarrow { - font-weight: bold; - text-decoration: none; - color: #909090; -} -a.tocarrow:visited { color: #C0C0C0; } -EndStyles - Style Title Margin Static -- 2.39.2