Skip to content

Commit

Permalink
Remove duplication between PDTS and DTS HTML.
Browse files Browse the repository at this point in the history
  • Loading branch information
jyasskin committed Jan 12, 2015
1 parent 8044bdb commit 1e29b3d
Showing 1 changed file with 27 additions and 84 deletions.
111 changes: 27 additions & 84 deletions titlepage.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,34 +46,19 @@
:host-context(body.cxx-draft) h1 { position: absolute; top: 40%; text-align: center; }
:host-context(body.cxx-draft) p.warning { position: absolute; bottom: 5%; }

:host-context(body.cxx-pdts) .header { position: absolute; right: 0; top: 0; text-align: right; }
:host-context(body.cxx-pdts) .header ::content cxx-docnum { font-size: 150%; }
:host-context(body.cxx-pdts) .header cxx-docnum { font-size: 150%; }
:host-context(body.cxx-pdts) hgroup { position: absolute; top: 30%; }
:host-context(body.cxx-pdts) hgroup * { margin: 0; }
:host-context(body.cxx-pdts) hgroup h1 { font-size: 150%; font-weight: bold; }
:host-context(body.cxx-pdts) hgroup h2 { font-size: 100%; font-weight: normal; }
:host-context(body.cxx-pdts) .footer { position: absolute; left: 0; bottom: 5%; }
:host-context(body.cxx-pdts) figure { border: #111 solid 1px; padding: 10px; margin-left: auto; margin-right: auto; }
:host-context(body.cxx-pdts) figcaption { text-align: center; font-weight: bold; }
:host-context(body.cxx-pdts) .warning { position: absolute; bottom: 20%; }
:host-context(body.cxx-pdts) .copyright address { font-style: normal; margin-left: 2em; }
:host-context(body.cxx-pdts) .copyright address a { color: inherit; text-decoration: inherit; }

/* this dts stuff just replicates the pdts stuff above*/
:host-context(body.cxx-dts) .header { position: absolute; right: 0; top: 0; text-align: right; }
:host-context(body.cxx-dts) .header ::content cxx-docnum { font-size: 150%; }
:host-context(body.cxx-dts) .header cxx-docnum { font-size: 150%; }
:host-context(body.cxx-dts) hgroup { position: absolute; top: 30%; }
:host-context(body.cxx-dts) hgroup * { margin: 0; }
:host-context(body.cxx-dts) hgroup h1 { font-size: 150%; font-weight: bold; }
:host-context(body.cxx-dts) hgroup h2 { font-size: 100%; font-weight: normal; }
:host-context(body.cxx-dts) .footer { position: absolute; left: 0; bottom: 5%; }
:host-context(body.cxx-dts) figure { border: #111 solid 1px; padding: 10px; margin-left: auto; margin-right: auto; }
:host-context(body.cxx-dts) figcaption { text-align: center; font-weight: bold; }
:host-context(body.cxx-dts) .warning { position: absolute; bottom: 20%; }
:host-context(body.cxx-dts) .copyright address { font-style: normal; margin-left: 2em; }
:host-context(body.cxx-dts) .copyright address a { color: inherit; text-decoration: inherit; }
:host-context(body.cxx-pdts, body.cxx-dts) .header { position: absolute; right: 0; top: 0; text-align: right; }
:host-context(body.cxx-pdts, body.cxx-dts) .header ::content cxx-docnum { font-size: 150%; }
:host-context(body.cxx-pdts, body.cxx-dts) .header cxx-docnum { font-size: 150%; }
:host-context(body.cxx-pdts, body.cxx-dts) hgroup { position: absolute; top: 30%; }
:host-context(body.cxx-pdts, body.cxx-dts) hgroup * { margin: 0; }
:host-context(body.cxx-pdts, body.cxx-dts) hgroup h1 { font-size: 150%; font-weight: bold; }
:host-context(body.cxx-pdts, body.cxx-dts) hgroup h2 { font-size: 100%; font-weight: normal; }
:host-context(body.cxx-pdts, body.cxx-dts) .footer { position: absolute; left: 0; bottom: 5%; }
:host-context(body.cxx-pdts, body.cxx-dts) figure { border: #111 solid 1px; padding: 10px; margin-left: auto; margin-right: auto; }
:host-context(body.cxx-pdts, body.cxx-dts) figcaption { text-align: center; font-weight: bold; }
:host-context(body.cxx-pdts, body.cxx-dts) .warning { position: absolute; bottom: 20%; }
:host-context(body.cxx-pdts, body.cxx-dts) .copyright address { font-style: normal; margin-left: 2em; }
:host-context(body.cxx-pdts, body.cxx-dts) .copyright address a { color: inherit; text-decoration: inherit; }

th { text-align: left; vertical-align: top; }
</style>
Expand Down Expand Up @@ -103,65 +88,17 @@ <h1>Working Draft, {{title}}</h1>
</div>
</template>

<template if="{{stage == 'pdts'}}">
<template if="{{stage == 'pdts' || stage == 'dts'}}">
<div class="page">
<div class="header">
<strong>ISO/IEC JTC1 SC22 WG21 <content select="cxx-docnum"/></content></strong><br/>
Date: <content select="time[pubdate]"></content><br/>
ISO/IEC PDTS <content select="cxx-project-number"></content><br/>
ISO/IEC JTC1 SC22<br/>
Secretariat: ANSI
</div>
<hgroup>
<h1>Programming Languages — {{title}}</h1>
<template if="{{title_fr}}">
<h2>Langages de programmation — {{title_fr}}</h2>
<template if="{{stage == 'pdts'}}">
ISO/IEC PDTS <content select="cxx-project-number"></content><br/>
</template>
<template if="{{stage == 'dts'}}">
ISO/IEC DTS <content select="cxx-project-number"></content><br/>
</template>
</hgroup>
<figure class="warning">
<figcaption>Warning</figcaption>
<p>This document is not an ISO International Standard. It is distributed for review and comment. It is
subject to change without notice and may not be referred to as an International Standard.
</p>
<p>Recipients of this draft are invited to submit, with their comments, notification of any relevant
patent rights of which they are aware and to provide supporting documentation.</p>
</figure>
<div class="footer">
Document type: Proposed Draft Technical Specification<br/>
Document stage: (30) Committee<br/>
Document language: E
</div>
</div>
<div class="page">
<figure class="copyright">
<figcaption>Copyright notice</figcaption>
<p>This ISO document is a working draft or committee draft and is copyright-protected by ISO. While
the reproduction of working drafts or committee drafts in any form for use by participants in the
ISO standards development process is permitted without prior permission from ISO, neither this
document nor any extract from it may be reproduced, stored or transmitted in any form for any
other purpose without prior written permission from ISO.</p>
<p>Requests for permission to reproduce this document for the purpose of selling it should be
addressed as shown below or to ISO’s member body in the country of the requester:</p>
<address>
ISO copyright officer<br>
Case postale 56, CH-1211 Geneva 20<br>
Tel. + 41 22 749 01 11<br>
Fax + 41 22 749 09 47<br>
E-mail <a href="mailto:[email protected]">[email protected]</a><br>
Web <a href="http://www.iso.org">www.iso.org</a>
</address>
<p>Reproduction may be subject to royalty payments or a licensing agreement.</p>
<p>Violators may be prosecuted.</p>
</figure>
</div>
</template>

<template if="{{stage == 'dts'}}">
<div class="page">
<div class="header">
<strong>ISO/IEC JTC1 SC22 WG21 <content select="cxx-docnum"/></content></strong><br/>
Date: <content select="time[pubdate]"></content><br/>
ISO/IEC DTS <content select="cxx-project-number"></content><br/>
ISO/IEC JTC1 SC22<br/>
Secretariat: ANSI
</div>
Expand All @@ -180,8 +117,14 @@ <h2>Langages de programmation — {{title_fr}}</h2>
patent rights of which they are aware and to provide supporting documentation.</p>
</figure>
<div class="footer">
Document type: Draft Technical Specification<br/>
Document stage: (40) Enquiry<br/>
<template if="{{stage == 'pdts'}}">
Document type: Proposed Draft Technical Specification<br/>
Document stage: (30) Committee<br/>
</template>
<template if="{{stage == 'dts'}}">
Document type: Draft Technical Specification<br/>
Document stage: (40) Enquiry<br/>
</template>
Document language: E
</div>
</div>
Expand Down

0 comments on commit 1e29b3d

Please sign in to comment.