Skip to content

Commit 1587f81

Browse files
authored
Merge pull request #1008 from creativecommons/fix-legalcode-print-style
fixes #836 - improve print style on legalcode
2 parents beb0ea5 + 86f003d commit 1587f81

1 file changed

Lines changed: 40 additions & 5 deletions

File tree

docroot/includes/legalcode-print.css

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,38 @@
11
@media print {
22

33
body {
4-
font: 10pt/12pt Arial,"Trebuchet MS",Verdana,sans-serif;
4+
padding: 2rem;
5+
font: 11pt/12pt Arial,"Trebuchet MS",Verdana,sans-serif;
6+
line-height: 18pt;
57
}
6-
78
.screen-only {
89
display: none !important;
910
}
10-
11+
/*HIDE ELEMENTS*/
12+
#header-below,
13+
#language-selector-block,
1114
.site-header-wrapper,
1215
#menu-toggle,
1316
#deed-foot,
17+
#colophon,
1418
.site-footer .cc-footer-links {
1519
display: none;
1620
}
1721

1822
h1, h2, h3 { line-height: 1.1; }
1923

2024
#deed-head { text-align: center; }
21-
25+
#deed-head h1 {
26+
margin-bottom: .5rem;
27+
padding-bottom: .5rem;
28+
}
29+
.cc-collapsible a {
30+
display: none;
31+
}
32+
#cc-logo {
33+
padding: 1rem;
34+
background-color: #8C8C8C;
35+
}
2236
#cc-logo img {
2337
display: inline-block;
2438
height: 50px;
@@ -56,6 +70,27 @@
5670

5771
#deed-main { clear: both; }
5872

73+
74+
/* This stanza should be maintained in parallel with legalcode.css
75+
*
76+
* Please read:
77+
* - https://www.w3schools.com/tags/att_ol_type.asp
78+
* - https://stackoverflow.com/questions/27104096/css-selector-type-var-not-selecting-lower-alpha-versus-upper-alpha
79+
*
80+
* The solution below is not-ideal.
81+
*/
82+
#deed-main ol[type="a"] { list-style-type: lower-alpha; }
83+
/* not case-sensitive :(
84+
* #deed-main ol[type="A"] { list-style-type: upper-alpha; }
85+
*/
86+
#deed-main ol[type="a"] ol[type="a"] { list-style-type: upper-alpha; }
87+
#deed-main ol[type="i"] { list-style-type: lower-roman; }
88+
/* not case-sensitive :(
89+
* #deed-main ol[type="I"] { list-style-type: upper-roman; }
90+
*/
91+
#deed-main ol[type="i"] ol[type="i"] { list-style-type: upper-roman; }
92+
93+
5994
ol li,
6095
ul li {
6196
list-style-image: none;
@@ -66,4 +101,4 @@
66101
body:not(.lang-en) .site-footer .cc-footer-links {
67102
display: none !important;
68103
}
69-
}
104+
}

0 commit comments

Comments
 (0)