Skip to content

Commit 2b39467

Browse files
committed
Make page headers match ISO's example document.
1 parent dd1b6ad commit 2b39467

File tree

4 files changed

+17
-30
lines changed

4 files changed

+17
-30
lines changed

base.css

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,23 @@ limitations under the License.
1515

1616
@page {
1717
margin: 10%;
18-
@top-left { content: "© ISO/IEC"; font-size: 10pt; }
19-
@top-right { content: string(docnum); font-weight: bold; font-size: 10pt; }
20-
@bottom-left { content: string(current-section, last); font-size: 10pt; }
18+
}
19+
@page :left {
20+
@top-left { content: string(docname); font-weight: bold; font-size: 10pt; }
21+
@top-right { content: normal; }
22+
@bottom-left { content: counter(page); font-size: 10pt; }
23+
@bottom-right { content: "© ISO/IEC " string(pubyear) " — All rights reserved";
24+
font-size: 10pt; }
25+
}
26+
@page :right {
27+
@top-left { content: normal; }
28+
@top-right { content: string(docname); font-weight: bold; font-size: 10pt; }
29+
@bottom-left { content: "© ISO/IEC " string(pubyear) " — All rights reserved";
30+
font-size: 10pt; }
2131
@bottom-right { content: counter(page); font-size: 10pt; }
2232
}
2333
@page :first {
24-
/* @top-left is defined by base.js. */
34+
@top-left { content: normal; }
2535
@top-right { content: normal; }
2636
@bottom-left { content: normal; }
2737
@bottom-right { content: normal; }
@@ -49,6 +59,8 @@ body { margin: 0; }
4959
}
5060

5161
cxx-docnum { string-set: docnum content(); }
62+
* /deep/ .docname { string-set: docname content(); }
63+
* /deep/ .pubyear { string-set: pubyear content(); }
5264

5365
cxx-clause { page-break-before: always; }
5466
@media screen {

base.js

Lines changed: 0 additions & 24 deletions
This file was deleted.

framework.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,3 @@
4141
<link rel="import" href="codeblock.html"/>
4242
<link rel="import" href="grammar.html"/>
4343
<link rel="import" href="weak-break.html"/>
44-
<script src="base.js"></script>

titlepage.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ <h1>Working Draft, {{title}}</h1>
102102
</template>
103103
</template>
104104
<template if="{{stage == 'ts'}}">
105-
<strong>ISO/IEC <content select="cxx-project-number"></content>:{{pubyear}}</strong><br/>
105+
<strong class="docname">ISO/IEC <content select="cxx-project-number"></content>:<span class="pubyear">{{pubyear}}</span></strong><br/>
106106
</template>
107107
ISO/IEC JTC1 SC22 WG21<br/>
108108
Secretariat: ANSI

0 commit comments

Comments
 (0)