changeset 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 22b3cd717e55
children eb3fcac8a407
files xml/en/docs/welcome_nginx_facebook.xml xsls/content.xsls xsls/style.xsls
diffstat 3 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/welcome_nginx_facebook.xml	Thu Aug 25 19:32:00 2011 +0000
+++ b/xml/en/docs/welcome_nginx_facebook.xml	Thu Aug 25 19:34:06 2011 +0000
@@ -8,8 +8,7 @@
 
 <section>
 
-<para>
-<b>Q:</b>
+<para initial="Q:">
 I am trying to open Facebook (Yahoo!, Google, etc.) or some
 other well known web site and instead I am getting a blank web page
 with a message referring to nginx “Welcome to nginx!” or
@@ -27,8 +26,7 @@
 &nbsp;
 </para>
 
-<para>
-<b>A:</b>
+<para initial="A:">
 nginx is among the 3 most popular web servers in the world.
 It is a free open source software which is absolutely legitimate and
 has nothing to do with any kind of threatening or malicious activity per se.
--- a/xsls/content.xsls	Thu Aug 25 19:32:00 2011 +0000
+++ b/xsls/content.xsls	Thu Aug 25 19:34:06 2011 +0000
@@ -18,6 +18,13 @@
 
 X:template = "para[@align]" { <p align="{@align}"> !!; </p> }
 
+X:template = "para[@initial]" {
+    <p class="noindent">
+    <span class="initial"><b> !{@initial} X:text{&#xA0;} </b></span>
+    !!;
+    </p>
+}
+
 
 X:template = "programlisting" { <blockquote><pre> !!; </pre></blockquote> }
 
--- a/xsls/style.xsls	Thu Aug 25 19:32:00 2011 +0000
+++ b/xsls/style.xsls	Thu Aug 25 19:34:06 2011 +0000
@@ -8,6 +8,7 @@
         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; }