]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/stdinsets.inc
CSS for InsetInfo.
[lyx.git] / lib / layouts / stdinsets.inc
index d916a326a9cb2d25916b2bc21cb67a1957db4c59..438cead752a68c7725da1d34f3bde42df03d0f90 100644 (file)
@@ -53,7 +53,7 @@
 #                         be comma-separated.
 #End
 
-Format 11
+Format 16
 
 Provides stdinsets 1
 
@@ -76,12 +76,24 @@ InsetLayout Marginal
          Size                Small
        EndFont
        MultiPar              true
+       HTMLTag               span
+       HTMLAttr              class='marginal'
+       HTMLStyle
+               span.marginal {
+                       border: 2px solid black; 
+                       padding: 1ex; 
+                       margin: 1ex; 
+                       background-color: #F0F0F0; 
+                       float:right;
+               }
+       EndHTMLStyle
 End
 
 InsetLayout Foot
        LabelString           foot
        LatexType             command
        LatexName             footnote
+       Counter               footnote
        Font
          Color               foreground
          Size                Small
@@ -98,7 +110,29 @@ InsetLayout Foot
        EndFont
        MultiPar              true
        HTMLTag               span
-       HTMLAttr              class='footnote'
+       HTMLAttr              class='footwrapper'
+       HTMLLabel             "<span class='notenum'>\arabic{footnote}</span>"
+       HTMLInnerTag          span
+       HTMLInnerAttr         class='footnote'
+       HTMLStyle
+               span.notenum { 
+                       vertical-align: super; 
+                       font-size: smaller; 
+               }
+               span.footnote {
+                       display: none;
+                       font-size: medium;
+                       font-weight: normal;
+                       font-style: normal;
+                       font-variant: normal;
+               }
+               span.footwrapper:hover span.footnote { 
+                       display: block; 
+                       border: 1px double black; 
+                       margin: 0em 1em;
+                       padding: 1em;
+               }
+       EndHTMLStyle
 End
 
 InsetLayout Note:Comment
@@ -111,6 +145,7 @@ InsetLayout Note:Comment
          Size                Small
        EndFont
        MultiPar              true
+       HTMLTag               !--
 End
 
 
@@ -136,6 +171,11 @@ InsetLayout Note:Greyedout
          Size                Small
        EndFont
        MultiPar              true
+       HTMLTag               span
+       HTMLAttr              class='notegrey'
+       HTMLStyle
+               span.notegrey { color: gray; }
+       EndHTMLStyle
 End
 
 InsetLayout ERT
@@ -287,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
@@ -299,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
@@ -311,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
@@ -323,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