-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlabPdf.css
More file actions
209 lines (177 loc) · 3.63 KB
/
Copy pathlabPdf.css
File metadata and controls
209 lines (177 loc) · 3.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
/* ### Specialised version of the Trafford Data Lab website styles specifically for output as PDF (extending the labBase styles) ### */
/* New styles not present in labWebsite.css */
@page
{
size: A4 portrait;
}
.pageBreak
{
page-break-after: always;
}
.hideOnPDF
{
display: none; /* to remove the view as PDF link */
}
/* Styles from labWebsite.css with modifications */
.header
{
background-color: white;
width: 100%;
text-align: left;
border-bottom: 1px solid #757575;
}
.navbar
{
float: right;
margin: 15px 0 0 0;
}
.menuItem
{
display: block;
float: left;
font-size: 16px;
margin-bottom: 15px;
}
.menuItem a
{
border-bottom: 1px solid white; /* required so that we can simulate a link underline in the a:hover without the header wobbling by 1px */
padding: 0 12px;
margin: 0;
color: #757575;
text-decoration: none;
}
.menuItem a:hover
{
border-bottom: 1px solid #fc6721;
}
.main
{
color: #212121;
margin: auto;
margin-top: 30px;
margin-bottom: 30px;
padding: 0 20px 2em 12px;
}
.main p
{
line-height: 1.8em;
}
.main li
{
line-height: 2em;
}
.footer
{
color: #212121;
width: 100%;
height: 5em;
margin: 0;
padding: 0;
border-bottom: 1px solid #f0f0f0;
}
.leftFooter
{
display: inline-block;
white-space: nowrap;
}
.rightFooter
{
background-color: white;
height: 100%;
display: inline-block;
float: right;
}
.noBulletPoints, .noBulletPoints * *
{
list-style-type: none; /* remove the list-item bullet from the top level and all sub-level list items */
}
.traffordDataLabLogo
{
margin: 9px 12px 0 12px;
padding: 0;
}
.logoTrafford
{
height: 5em;
}
.logoMedia
{
font-size: 2em;
padding: 0px 0px 0px 12px;
margin: 0;
}
.linkMedia
{
color: #212121;
padding: 0px 10px 0px 0px;
}
.license
{
font-size: 0.7em;
padding: 10px 0px 0px 12px;
margin-top: 50px;
}
/* end notes for references/credits etc. */
.endNotes
{
border-top: 2px dotted #f0f0f0;
font-size: 0.8em;
margin-top: 30px;
}
.endNotes div p /* these are for the references to indent any lines following the first */
{
padding-left: 2em;
text-indent: -2em;
}
/* data tables */
.dataTable
{
width: 100%;
border-collapse: collapse;
text-align: right;
font-size: 0.9em;
}
.dataTable th
{
font-family: 'Roboto', sans-serif;
color: #757575;
font-size: 1.1em;
text-align: right; /* IE fix - ignores the declaration set on the main table class so have to repeat here */
}
.dataTable td
{
border-bottom: 1px dotted #e0e0e0;
}
.dataTable, .dataTable th, .dataTable tbody tr:last-of-type
{
border-bottom: 2px solid #212121;
}
.dataTable th:nth-child(1), .dataTable td:nth-child(1)
{
text-align: left; /* the first column is left-aligned, the others are right-aligned (set in the main .dataTable class) */
}
/* visualisations and/or text content layouts */
.singleColumn
{
width: 600px;
margin: auto;
}
.doubleColumn div, .doubleColumnImgTxt div, .doubleColumnTxtImg div
{
width: 50%;
float: left;
}
.doubleColumn div:nth-child(1) p, .doubleColumnTxtImg div:nth-child(1) p
{
margin-right: 30px; /* to provide space between any text content and the right column when displayed in 2-column format */
}
.doubleColumn div:nth-child(2) p, .doubleColumnImgTxt div:nth-child(2) p
{
margin-left: 30px; /* to provide space between any text content and the left column when displayed in 2-column format */
}
.doubleColumn::after, .doubleColumnImgTxt::after, .doubleColumnTxtImg::after
{
content: "";
display: block;
clear: both;
}