view xsls/style.xsls @ 15:2f7420346aee

Initial emphasizing support. Using it for "Q:" and "A:" letter in FAQ.
author Igor Sysoev <igor@sysoev.ru>
date Thu, 25 Aug 2011 19:34:06 +0000
parents 61e04fc01027
children 1fc034261cf4
line wrap: on
line source

X:stylesheet {

X:template style (lang) {

    <style>!{ normalize-space('
        html             {-webkit-text-size-adjust:none}
        body             { font-family:  Georgia, serif; }
        p                { text-align:   justify; }
        p                { text-indent:  20pt; }
        p.noindent       { text-indent:  0pt; }
        span.initial     { font-size:    200%; float: left; padding-right: 5pt;}
        li               { text-align:   justify; }
        td.list          { background:   #EEEEEE; }
        blockquote.note  { text-align:   justify; }
        blockquote.note  { background:   #EEEEEE; border: none; }
        blockquote.note  { padding:      10pt 10pt 10pt 10pt; }
        ') }

    X:if "$lang = 'he'" {
        !{ normalize-space('
        pre              { text-align:   left; direction: ltr; }
        code             { direction:    ltr; unicode-bidi: embed;}
        .ltr             { direction:    ltr; unicode-bidi: embed;}
        ') }
    }

    </style>
}

}