|
8 | 8 |
|
9 | 9 | <xsl:template name="style"><xsl:param name="lang"/> |
10 | 10 |
|
11 | | - <style type="text/css"><xsl:value-of select=" normalize-space(' |
12 | | - body { background: white; |
13 | | - color: black; |
14 | | - font-family: sans-serif; |
15 | | - line-height: 1.4em; |
16 | | - text-align: center; |
17 | | - margin: 0; |
18 | | - padding: 0; } |
19 | | - #banner { background: black; |
20 | | - color: #F2F2F2; |
21 | | - line-height: 1.2em; |
22 | | - padding: .3em 0; |
23 | | - box-shadow: 0 5px 10px black; } |
24 | | - #banner a { color: #00B140; } |
25 | | - #main { text-align: left; |
26 | | - margin: 0 auto; |
27 | | - min-width: 32em; |
28 | | - max-width: 64em; } |
29 | | - #menu { float: right; |
30 | | - width: 11em; |
31 | | - padding: 0 .5em 1em .5em; |
32 | | - border-left: 2px solid #DDD; } |
33 | | - #content { margin-right: 13.5em; |
34 | | - padding: 0 .2em 0 1.5em; } |
35 | | - h1 { display: block; |
36 | | - font-size: 3em; |
37 | | - text-align: left; |
38 | | - height: .7em; |
39 | | - margin: 0; |
40 | | - margin-bottom: .5em; } |
41 | | - h1 img { width: 100%; } |
42 | | - h2 { text-align: center; } |
43 | | - p { text-align: justify; } |
44 | | - table.news p { margin-top: 0; } |
45 | | - table.news td { vertical-align: baseline; } |
46 | | - table.news .date { text-align: right; |
47 | | - padding-right: 0.5em; |
48 | | - white-space: nowrap; } |
49 | | - table.donors td { vertical-align: baseline; } |
50 | | - table.donors li { text-align: left; } |
51 | | - div.directive { background: #F2F2F2; |
52 | | - line-height: 1em; |
53 | | - margin: 1em 0 1em -1em; |
54 | | - padding: .7em .7em .7em 1em; |
55 | | - border-top: 2px solid #DDD; } |
56 | | - div.directive th { padding-left: 0; |
57 | | - padding-right: .5em; |
58 | | - vertical-align: baseline; |
59 | | - text-align: left; |
60 | | - font-weight: normal; } |
61 | | - div.directive td { vertical-align: baseline; } |
62 | | - div.directive pre { padding: 0; |
63 | | - margin: 0; } |
64 | | - div.directive p { margin: .5em 0 0 .1em; |
65 | | - font-size: .8em; } |
66 | | - a.notrans { color: gray; |
67 | | - text-decoration:none; } |
68 | | - span.initial { font-size: 200%; |
69 | | - float: left; |
70 | | - padding-right: 10pt;} |
71 | | - ul, ol { margin: .5em 0 1em 1em; |
72 | | - padding: 0 .5em; } |
73 | | - ol { list-style-position: inside; } |
74 | | - li { text-align: justify; |
75 | | - padding: .5em 0 0 1px; } |
76 | | - .compact li { padding-top: 0; } |
77 | | - dl { margin: .5em 0 1em 0; } |
78 | | - dt { margin: .5em 0; } |
79 | | - .compact dt { margin-bottom: .2em; } |
80 | | - dd { margin-left: 1.5em; |
81 | | - padding-left: 1px; |
82 | | - text-align: justify; } |
83 | | - td.list { background: #F2F2F2; } |
84 | | - blockquote { margin: 1em 0 1em 1em; |
85 | | - padding: .5em; } |
86 | | - li blockquote, dd blockquote |
87 | | - { margin: .7em 0; } |
88 | | - blockquote.note { border: 1px dotted #999; |
89 | | - line-height: 1.2em; |
90 | | - text-align: justify; } |
91 | | - blockquote.example { |
92 | | - line-height: 1em; |
93 | | - border-left: 1px solid #BBB; } |
94 | | - blockquote.example pre { |
95 | | - padding: 0; |
96 | | - margin: 0; } |
97 | | - sup { font-size: 50%; } |
98 | | - .video { position: relative; |
99 | | - padding-bottom: 56.25%; |
100 | | - overflow: hidden; } |
101 | | - .video iframe, |
102 | | - .video object, |
103 | | - .video embed { position: absolute; |
104 | | - top:0; |
105 | | - left:0; |
106 | | - width:100%; |
107 | | - height:100%; } |
108 | | - ') "/> |
| 11 | + <meta name="viewport" content="width=device-width,initial-scale=1"></meta> |
109 | 12 |
|
110 | | - <xsl:if test="$lang = 'he'"> |
111 | | - <xsl:value-of select=" normalize-space(' |
112 | | - pre { text-align: left; |
113 | | - direction: ltr; } |
114 | | - code { direction: ltr; |
115 | | - unicode-bidi: embed; } |
116 | | - .ltr { direction: ltr; |
117 | | - unicode-bidi: embed; } |
118 | | - ') "/> |
119 | | - </xsl:if> |
| 13 | + <link> |
| 14 | + <xsl:attribute name="rel"> |
| 15 | + <xsl:text>stylesheet</xsl:text> |
| 16 | + </xsl:attribute> |
| 17 | + <xsl:attribute name="href"> |
| 18 | + <xsl:choose><xsl:when test="substring-after($DIRNAME, '/')"> |
| 19 | + <xsl:value-of select=" concat($ROOT, '/css/style_', $lang, '.css') "/> |
| 20 | + </xsl:when><xsl:otherwise> |
| 21 | + <xsl:value-of select=" substring-after(concat('/css/style_', $lang, '.css'), '/') "/> |
| 22 | + </xsl:otherwise></xsl:choose> |
| 23 | + </xsl:attribute> |
| 24 | + <xsl:apply-templates/> |
| 25 | + </link> |
120 | 26 |
|
121 | | - <xsl:if test="$lang = 'cn'"> |
122 | | - <xsl:value-of select=" normalize-space(' |
123 | | - p { text-align: left; } |
124 | | - li { text-align: left; } |
125 | | - dd { text-align: left; } |
126 | | - blockquote.note { text-align: left; } |
127 | | - ') "/> |
128 | | - </xsl:if> |
129 | | - |
130 | | - </style> |
131 | 27 | </xsl:template> |
132 | 28 |
|
133 | 29 | </xsl:stylesheet> |
0 commit comments