From 082ec01eef119aa0379228aff5f134a0378d809c Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Fri, 12 Jun 2009 15:27:29 +0000 Subject: [PATCH] CSS for InsetInfo. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30077 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/HTML/HTML.notes | 8 +++----- lib/layouts/stdinsets.inc | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/development/HTML/HTML.notes b/development/HTML/HTML.notes index 076bf058fd..e9427d5cfc 100644 --- a/development/HTML/HTML.notes +++ b/development/HTML/HTML.notes @@ -11,8 +11,8 @@ Known issues: These insets are basically done, though there are probably issues here and there, and there are even some FIXMEs: - Bibitem, Branch, Collapsable, Footnote, Hyperlink, Label, Line, Note, - Newline, Newpage, Quotes, Space, SpecialChar + Bibitem, Branch, Collapsable, Footnote, Hyperlink, Info, Label, Line, + Marginal, Note, Newline, Newpage, Quotes, Space, SpecialChar These insets do nothing for XHTML: ERT, OptArg, Phantom @@ -45,6 +45,7 @@ These insets do not work and are not yet scheduled to work: InsetIndex and InsetPrintIndex: An "advanced" case. What really would be cool would be to collect all of these and then write the index as a series of links back to the occurrences. But not now. + InsetNomencl and InsetPrintNomencl: Also "advanced". May need to make use here of TocWidget::itemInset, which should then be moved to TocBackend. @@ -61,10 +62,7 @@ These do not yet work and need some attention: InsetInclude: I think we just want to include it, straightforwardly. Probably will base this more on the latex() routine, then. Another possibility, maybe with a flag of some sort, would be to do it as a separate file, to which we link. - InsetInfo: Probably skip it. InsetListings: Probably just output it as
.
-	InsetMarginal: Fine, but will need CSS.
-	InsetNomencl and InsetPrintNomencl: Also "advanced".
 	InsetRef: Presumably, this is an internal link. But what should the text be, and how
 		should we get it? Probably some validation thing again, where labels tell us where 
 		they are. Alternatively, we could parse the aux file.
diff --git a/lib/layouts/stdinsets.inc b/lib/layouts/stdinsets.inc
index a09aa48e8f..438cead752 100644
--- a/lib/layouts/stdinsets.inc
+++ b/lib/layouts/stdinsets.inc
@@ -327,6 +327,11 @@ End
 
 InsetLayout Info
 	Decoration	      conglomerate
+	HTMLTag           span
+	HTMLAttr          class='info'
+	HTMLStyle
+		span.info { font-family: sans-serif; }
+	EndHTMLStyle
 End
 
 InsetLayout Info:menu
@@ -339,6 +344,11 @@ InsetLayout Info:menu
 	Font
 	  Family              sans
 	EndFont
+	HTMLTag           span
+	HTMLAttr          "class='info menu'"
+	HTMLStyle
+		span.menu { font-family: sans-serif; }
+	EndHTMLStyle
 End
 
 InsetLayout Info:shortcut
@@ -351,6 +361,11 @@ InsetLayout Info:shortcut
 	Font
 	  Family              sans
 	EndFont
+	HTMLTag           span
+	HTMLAttr          "class='info shortcut'"
+	HTMLStyle
+		span.shortcut { font-family: sans-serif; }
+	EndHTMLStyle
 End
 
 InsetLayout Info:shortcuts
@@ -363,6 +378,11 @@ InsetLayout Info:shortcuts
 	Font
 	  Family              sans
 	EndFont
+	HTMLTag           span
+	HTMLAttr          "class='info shortcut'"
+	HTMLStyle
+		span.shortcut { font-family: sans-serif; }
+	EndHTMLStyle
 End
 
 InsetLayout Box