Skip to content

Commit 1e29b3d

Browse files
committed
Remove duplication between PDTS and DTS HTML.
1 parent 8044bdb commit 1e29b3d

File tree

1 file changed

+27
-84
lines changed

1 file changed

+27
-84
lines changed

titlepage.html

Lines changed: 27 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -46,34 +46,19 @@
4646
:host-context(body.cxx-draft) h1 { position: absolute; top: 40%; text-align: center; }
4747
:host-context(body.cxx-draft) p.warning { position: absolute; bottom: 5%; }
4848

49-
:host-context(body.cxx-pdts) .header { position: absolute; right: 0; top: 0; text-align: right; }
50-
:host-context(body.cxx-pdts) .header ::content cxx-docnum { font-size: 150%; }
51-
:host-context(body.cxx-pdts) .header cxx-docnum { font-size: 150%; }
52-
:host-context(body.cxx-pdts) hgroup { position: absolute; top: 30%; }
53-
:host-context(body.cxx-pdts) hgroup * { margin: 0; }
54-
:host-context(body.cxx-pdts) hgroup h1 { font-size: 150%; font-weight: bold; }
55-
:host-context(body.cxx-pdts) hgroup h2 { font-size: 100%; font-weight: normal; }
56-
:host-context(body.cxx-pdts) .footer { position: absolute; left: 0; bottom: 5%; }
57-
:host-context(body.cxx-pdts) figure { border: #111 solid 1px; padding: 10px; margin-left: auto; margin-right: auto; }
58-
:host-context(body.cxx-pdts) figcaption { text-align: center; font-weight: bold; }
59-
:host-context(body.cxx-pdts) .warning { position: absolute; bottom: 20%; }
60-
:host-context(body.cxx-pdts) .copyright address { font-style: normal; margin-left: 2em; }
61-
:host-context(body.cxx-pdts) .copyright address a { color: inherit; text-decoration: inherit; }
62-
63-
/* this dts stuff just replicates the pdts stuff above*/
64-
:host-context(body.cxx-dts) .header { position: absolute; right: 0; top: 0; text-align: right; }
65-
:host-context(body.cxx-dts) .header ::content cxx-docnum { font-size: 150%; }
66-
:host-context(body.cxx-dts) .header cxx-docnum { font-size: 150%; }
67-
:host-context(body.cxx-dts) hgroup { position: absolute; top: 30%; }
68-
:host-context(body.cxx-dts) hgroup * { margin: 0; }
69-
:host-context(body.cxx-dts) hgroup h1 { font-size: 150%; font-weight: bold; }
70-
:host-context(body.cxx-dts) hgroup h2 { font-size: 100%; font-weight: normal; }
71-
:host-context(body.cxx-dts) .footer { position: absolute; left: 0; bottom: 5%; }
72-
:host-context(body.cxx-dts) figure { border: #111 solid 1px; padding: 10px; margin-left: auto; margin-right: auto; }
73-
:host-context(body.cxx-dts) figcaption { text-align: center; font-weight: bold; }
74-
:host-context(body.cxx-dts) .warning { position: absolute; bottom: 20%; }
75-
:host-context(body.cxx-dts) .copyright address { font-style: normal; margin-left: 2em; }
76-
:host-context(body.cxx-dts) .copyright address a { color: inherit; text-decoration: inherit; }
49+
:host-context(body.cxx-pdts, body.cxx-dts) .header { position: absolute; right: 0; top: 0; text-align: right; }
50+
:host-context(body.cxx-pdts, body.cxx-dts) .header ::content cxx-docnum { font-size: 150%; }
51+
:host-context(body.cxx-pdts, body.cxx-dts) .header cxx-docnum { font-size: 150%; }
52+
:host-context(body.cxx-pdts, body.cxx-dts) hgroup { position: absolute; top: 30%; }
53+
:host-context(body.cxx-pdts, body.cxx-dts) hgroup * { margin: 0; }
54+
:host-context(body.cxx-pdts, body.cxx-dts) hgroup h1 { font-size: 150%; font-weight: bold; }
55+
:host-context(body.cxx-pdts, body.cxx-dts) hgroup h2 { font-size: 100%; font-weight: normal; }
56+
:host-context(body.cxx-pdts, body.cxx-dts) .footer { position: absolute; left: 0; bottom: 5%; }
57+
:host-context(body.cxx-pdts, body.cxx-dts) figure { border: #111 solid 1px; padding: 10px; margin-left: auto; margin-right: auto; }
58+
:host-context(body.cxx-pdts, body.cxx-dts) figcaption { text-align: center; font-weight: bold; }
59+
:host-context(body.cxx-pdts, body.cxx-dts) .warning { position: absolute; bottom: 20%; }
60+
:host-context(body.cxx-pdts, body.cxx-dts) .copyright address { font-style: normal; margin-left: 2em; }
61+
:host-context(body.cxx-pdts, body.cxx-dts) .copyright address a { color: inherit; text-decoration: inherit; }
7762

7863
th { text-align: left; vertical-align: top; }
7964
</style>
@@ -103,65 +88,17 @@ <h1>Working Draft, {{title}}</h1>
10388
</div>
10489
</template>
10590

106-
<template if="{{stage == 'pdts'}}">
91+
<template if="{{stage == 'pdts' || stage == 'dts'}}">
10792
<div class="page">
10893
<div class="header">
10994
<strong>ISO/IEC JTC1 SC22 WG21 <content select="cxx-docnum"/></content></strong><br/>
11095
Date: <content select="time[pubdate]"></content><br/>
111-
ISO/IEC PDTS <content select="cxx-project-number"></content><br/>
112-
ISO/IEC JTC1 SC22<br/>
113-
Secretariat: ANSI
114-
</div>
115-
<hgroup>
116-
<h1>Programming Languages — {{title}}</h1>
117-
<template if="{{title_fr}}">
118-
<h2>Langages de programmation — {{title_fr}}</h2>
96+
<template if="{{stage == 'pdts'}}">
97+
ISO/IEC PDTS <content select="cxx-project-number"></content><br/>
98+
</template>
99+
<template if="{{stage == 'dts'}}">
100+
ISO/IEC DTS <content select="cxx-project-number"></content><br/>
119101
</template>
120-
</hgroup>
121-
<figure class="warning">
122-
<figcaption>Warning</figcaption>
123-
<p>This document is not an ISO International Standard. It is distributed for review and comment. It is
124-
subject to change without notice and may not be referred to as an International Standard.
125-
</p>
126-
<p>Recipients of this draft are invited to submit, with their comments, notification of any relevant
127-
patent rights of which they are aware and to provide supporting documentation.</p>
128-
</figure>
129-
<div class="footer">
130-
Document type: Proposed Draft Technical Specification<br/>
131-
Document stage: (30) Committee<br/>
132-
Document language: E
133-
</div>
134-
</div>
135-
<div class="page">
136-
<figure class="copyright">
137-
<figcaption>Copyright notice</figcaption>
138-
<p>This ISO document is a working draft or committee draft and is copyright-protected by ISO. While
139-
the reproduction of working drafts or committee drafts in any form for use by participants in the
140-
ISO standards development process is permitted without prior permission from ISO, neither this
141-
document nor any extract from it may be reproduced, stored or transmitted in any form for any
142-
other purpose without prior written permission from ISO.</p>
143-
<p>Requests for permission to reproduce this document for the purpose of selling it should be
144-
addressed as shown below or to ISO’s member body in the country of the requester:</p>
145-
<address>
146-
ISO copyright officer<br>
147-
Case postale 56, CH-1211 Geneva 20<br>
148-
Tel. + 41 22 749 01 11<br>
149-
Fax + 41 22 749 09 47<br>
150-
E-mail <a href="mailto:copyright@iso.org">copyright@iso.org</a><br>
151-
Web <a href="http://www.iso.org">www.iso.org</a>
152-
</address>
153-
<p>Reproduction may be subject to royalty payments or a licensing agreement.</p>
154-
<p>Violators may be prosecuted.</p>
155-
</figure>
156-
</div>
157-
</template>
158-
159-
<template if="{{stage == 'dts'}}">
160-
<div class="page">
161-
<div class="header">
162-
<strong>ISO/IEC JTC1 SC22 WG21 <content select="cxx-docnum"/></content></strong><br/>
163-
Date: <content select="time[pubdate]"></content><br/>
164-
ISO/IEC DTS <content select="cxx-project-number"></content><br/>
165102
ISO/IEC JTC1 SC22<br/>
166103
Secretariat: ANSI
167104
</div>
@@ -180,8 +117,14 @@ <h2>Langages de programmation — {{title_fr}}</h2>
180117
patent rights of which they are aware and to provide supporting documentation.</p>
181118
</figure>
182119
<div class="footer">
183-
Document type: Draft Technical Specification<br/>
184-
Document stage: (40) Enquiry<br/>
120+
<template if="{{stage == 'pdts'}}">
121+
Document type: Proposed Draft Technical Specification<br/>
122+
Document stage: (30) Committee<br/>
123+
</template>
124+
<template if="{{stage == 'dts'}}">
125+
Document type: Draft Technical Specification<br/>
126+
Document stage: (40) Enquiry<br/>
127+
</template>
185128
Document language: E
186129
</div>
187130
</div>

0 commit comments

Comments
 (0)