Mercurial > hg > nginx-site
changeset 802:8af7fe0794b0
Improved appearance of Chinese documentation.
Added the "lang" attibute and made the text left aligned.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 28 Dec 2012 13:17:39 +0000 |
parents | b95a6d779c89 |
children | 6c3349baa1d3 |
files | xsls/article.xsls xsls/style.xsls |
diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/xsls/article.xsls Thu Dec 27 17:16:39 2012 +0000 +++ b/xsls/article.xsls Fri Dec 28 13:17:39 2012 +0000 @@ -41,6 +41,8 @@ X:if "@lang = 'he'" { X:attribute "dir" { X:text{rtl} } } + X:if "@lang = 'cn'" { X:attribute "lang" { X:text{zh-CN} } } + <head> <title> !{@name} </title>
--- a/xsls/style.xsls Thu Dec 27 17:16:39 2012 +0000 +++ b/xsls/style.xsls Fri Dec 28 13:17:39 2012 +0000 @@ -65,6 +65,15 @@ ') } } + X:if "$lang = 'cn'" { + !{ normalize-space(' + p { text-align: left; } + li { text-align: left; } + dd { text-align: left; } + blockquote.note { text-align: left; } + ') } + } + </style> }