View | Details | Raw Unified | Return to bug 55383
Collapse All | Expand All

(-)webapps/docs/images/docs-stylesheet-ie-fix.css (-22 lines)
Lines 1-22 Link Here
1
@charset "utf-8";
2
/*
3
* Copyright 2002-2013 The Apache Software Foundation
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
*     http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*/
17
18
/* This is a CSS hack for old IEs (IE ≤ 9). */
19
20
#header > div {
21
  background-color: #F8F3E4;
22
}
(-)webapps/docs/images/docs-stylesheet.css (+3 lines)
Lines 65-70 Link Here
65
#header > div {
65
#header > div {
66
  padding-left: 15px;
66
  padding-left: 15px;
67
  padding-right: 15px;
67
  padding-right: 15px;
68
69
  /* Work-around for old browsers: */
70
  background-color: #F8F3E4;
68
  background: linear-gradient(to bottom, #ffffff -10%, #F8F3E4 100%);
71
  background: linear-gradient(to bottom, #ffffff -10%, #F8F3E4 100%);
69
  position: relative;
72
  position: relative;
70
}
73
}
(-)webapps/docs/tomcat-docs.xsl (-26 / +4 lines)
Lines 72-85 Link Here
72
    <xsl:value-of select="$relative-path"/><xsl:value-of select="$home-stylesheet"/>
72
    <xsl:value-of select="$relative-path"/><xsl:value-of select="$home-stylesheet"/>
73
  </xsl:variable>
73
  </xsl:variable>
74
  <link href="{$css-src}" rel="stylesheet" type="text/css"/>
74
  <link href="{$css-src}" rel="stylesheet" type="text/css"/>
75
76
  <!-- CSS hack for IEs ≤ 9. -->
77
  <xsl:variable name="css-iefix-src"><xsl:value-of select="$relative-path"/>/images/docs-stylesheet-ie-fix.css</xsl:variable>
78
  <xsl:comment><![CDATA[[if IE]><link href="]]><!--
79
    Note: The following <xsl:value-of> will not correctly encode HTML chars as this is a comment.
80
    But as it is a fix for old IEs, it can be removed in future.
81
  --><xsl:value-of select="$css-iefix-src"/><![CDATA[" rel="stylesheet" type="text/css"/><![endif]]]></xsl:comment>
82
83
  <style type="text/css" media="print"><![CDATA[
75
  <style type="text/css" media="print"><![CDATA[
84
    .noPrint { display: none; }
76
    .noPrint { display: none; }
85
    #middle > div > div#mainLeft { display: none; }
77
    #middle > div > div#mainLeft { display: none; }
Lines 152-162 Link Here
152
  <body>
144
  <body>
153
  <div id="wrapper">
145
  <div id="wrapper">
154
  <!-- Header -->
146
  <!-- Header -->
155
  <!-- Workaround for old IEs: use <div id="..."> instead of <header id="...">, otherwise the CSS will not apply.
147
  <header><div id="header">
156
       IE ≥ 10 dropped support for conditional comments in Standards Mode, so there it will use <header>. -->
157
  <xsl:comment><![CDATA[[if IE]><div id="header"><![endif]]]></xsl:comment><xsl:comment><![CDATA[[if !IE]>]]></xsl:comment>
158
  <header id="header">
159
    <xsl:comment><![CDATA[<![endif]]]></xsl:comment>
160
    <div>
148
    <div>
161
      <div>
149
      <div>
162
        <xsl:if test="project/logo">
150
        <xsl:if test="project/logo">
Lines 179-188 Link Here
179
        <div style="clear: left;"/>
167
        <div style="clear: left;"/>
180
      </div>
168
      </div>
181
    </div>
169
    </div>
182
    <!-- Workaround for old IEs, see above. -->
170
  </div></header>
183
    <xsl:comment><![CDATA[[if IE]></div><![endif]]]></xsl:comment><xsl:comment><![CDATA[[if !IE]>]]></xsl:comment>
184
  </header>
185
  <xsl:comment><![CDATA[<![endif]]]></xsl:comment>
186
171
187
  <div id="middle">
172
  <div id="middle">
188
    <div>
173
    <div>
Lines 197-203 Link Here
197
      <div id="mainRight">
182
      <div id="mainRight">
198
        <div id="content">
183
        <div id="content">
199
          <!-- Main Part -->
184
          <!-- Main Part -->
200
          <main>
201
            <h2><xsl:value-of select="properties/title"/></h2>
185
            <h2><xsl:value-of select="properties/title"/></h2>
202
            <xsl:apply-templates select="body/section"/>
186
            <xsl:apply-templates select="body/section"/>
203
187
Lines 226-232 Link Here
226
              </div>
210
              </div>
227
            </xsl:if>
211
            </xsl:if>
228
212
229
          </main>
230
        </div>
213
        </div>
231
      </div>
214
      </div>
232
    </div>
215
    </div>
Lines 233-246 Link Here
233
  </div>
216
  </div>
234
217
235
  <!-- Footer -->
218
  <!-- Footer -->
236
  <!-- Workarounds for old IEs, see above. -->
219
  <footer><div id="footer">
237
  <xsl:comment><![CDATA[[if IE]><div id="footer"><![endif]]]></xsl:comment><xsl:comment><![CDATA[[if !IE]>]]></xsl:comment>
238
  <footer id="footer">
239
    <xsl:comment><![CDATA[<![endif]]]></xsl:comment>
240
    Copyright © 1999-<xsl:value-of select="$year"/>, The Apache Software Foundation
220
    Copyright © 1999-<xsl:value-of select="$year"/>, The Apache Software Foundation
241
    <xsl:comment><![CDATA[[if IE]></div><![endif]]]></xsl:comment><xsl:comment><![CDATA[[if !IE]>]]></xsl:comment>
221
  </div></footer>
242
  </footer>
243
  <xsl:comment><![CDATA[<![endif]]]></xsl:comment>
244
</div>
222
</div>
245
</body>
223
</body>
246
</html>
224
</html>

Return to bug 55383