-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathposter.css
259 lines (215 loc) · 5.98 KB
/
poster.css
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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
/* Download fonts. @import must come before any rules in the document */
@import url(https://fonts.googleapis.com/css?family=Roboto:400,700|Monda:400,700);
/* Page setup */
/* reveal.js:536 sets it as @page{size:'+ pageWidth +'px '+ pageHeight +'px; margin: 0;} */
@page {
size: 841mm 1189mm; /* A0 paper for now */
margin: 0;
}
html {
margin: 0;
width: 841mm;
height: 1189mm;
}
@media screen {
html {
zoom: 0.33;
margin: auto;
}
}
body {
margin: 0;
height: inherit;
-webkit-print-color-adjust: exact; /* Enable background printing in Chrome: http://stackoverflow.com/questions/3893986/css-media-print-issues-with-background-color */
}
/* Font-sizes. These could also be set proportionally to the base html size */
html {
font-family: 'Roboto', sans-serif;
font-size: 1cm;
line-height: 1.375; /* Use proportional line spacing so everything is self-consistent */
}
h1, h2:not(.author) {
font-family: 'Monda', sans-serif;
}
h1, h2 {
font-size: 1.5cm;
}
.author {
font-size: 1.4cm;
font-weight: normal;
}
.title {
font-size: 2.5cm;
line-height: 1.15;
margin-bottom: 0;
color: #400040;
}
caption {
font-size: 0.6em;
font-size: inherit;
}
/* Poster title/header */
.reveal .slides > section:first-child {
text-align: center;
background: lightgray;
background: linear-gradient(to right, lightgray, white);
opacity: 0.9; /* but also assigns the alpha to content */
width: 100%;
box-sizing: border-box;
padding: 0 1%;
box-shadow: 0 10px black;
}
.reveal .slides > section:first-child ol.affiliations {
font-size: 0.75em;
margin-top: 0.5em;
list-style-type: none;
counter-reset: institution-counter;
}
.reveal .slides > section:first-child ol.affiliations li:before {
content: counter(institution-counter);
counter-increment: institution-counter;
/* Superscripting copied from .cite at bottom */
vertical-align: baseline;
position: relative;
top: -0.4em;
right: -0.25em;
font-size: 0.8em;
}
.reveal .slides > section:first-child ol.affiliations li:after {
/* Get glyph information from https://css-tricks.com/snippets/html/glyphs/ */
content: "\2022";
padding: 0 0.3em 0 0.5em; /* Not sure why the li formatting is inconsistent */
}
.reveal .slides > section:first-child ol.affiliations li:nth-child(3n+3):after, .reveal .slides > section:first-child ol.affiliations li:last-child:after {
content: none;
padding: 0;
} /* I had six affiliations in my original poster. Added the last-child rule for the demo */
.reveal .slides > section:first-child ol.affiliations li {
display: inline-block;
}
.presenter {
font-weight: bold;
}
.warning {
color: red;
}
/* Set up slide layout */
.reveal .slides .titleslide {
display: none;
}
.reveal .slides {
display: flex;
flex-direction: column;
background-color: #395831;
background: url("Resources/rotated-circuit-board.svg");
background-repeat: no-repeat;
background-size: cover;
height: inherit;
/* padding: 1cm; */ /* Can set overall document "margins" here */
}
.reveal {
/* Should probably check how reveal.js handles the div's autoshrinking. Maybe just set the smallest one? */
height: inherit;
}
.reveal .slides > section:not(:first-child) {
display: flex;
/* flex-flow: column wrap; */
flex-flow: row wrap; /* Need to figure out multi-column later, but my poster used rows */
justify-content: space-between;
flex: 1 1 auto;
padding: 0 1cm; /* Simply adjust left-right document margins for the main content */
}
.reveal .slides .slide h2 {
width: 100%;
height: 2em;
line-height: calc(2em - 1cm); /* Subtract off padding from border-box */
vertical-align: middle;
color: white;
background: linear-gradient(to left, #800080, #400040);
border-radius: 1cm;
padding: 0.5cm 1cm;
box-sizing: border-box;
margin: -1em auto 0 auto;
}
.reveal .slides section .level2 {
border-radius: 1cm;
padding: 0 1cm;
box-sizing: border-box;
margin: 0.75cm; /* This is actually what controls the spacing between ontent. By default, the flex 1 1 auto is actually stretching everything to the max, but it still looks nice.*/
margin-top: 2cm;
/* Chrome is not handling the background opacity correctly when printing: https://bugs.chromium.org/p/chromium/issues/detail?id=226137 */
/* background-color: rgba(255, 255, 255, 0.9); */
background-color: rgb(224, 222, 222);
border: 0.2cm solid purple;
box-shadow: 5px 5px 5px black;
display: flex;
flex-flow: row wrap;
justify-content: space-between; /* space between columns */
align-content: flex-start;
}
p, pre {
flex: 45%;
padding: 0 0.3em;
box-sizing: border-box;
}
pre {
min-width: 0; /* Fixes a flexbox incompatibility for pre, per recommendation from http://stackoverflow.com/questions/32035406/how-to-limit-pre-tag-width-inside-flex-container */
font-size: 60%; /* This will likely need to be adjusted */
}
.reveal .slides .col-1 ~ .level2 {
width: 98%;
}
.reveal .slides .col-2 ~ .level2 {
width: 48%;
/* Long-term: should make the intercolumn spacing customizable, too, maybe with CSS variables? */
/* Might also consider doing this with flex:1, or similar code, to allow uneven rows, etc. */
}
.reveal .slides .col-3 ~ .level2 {
width: 31%;
}
img {
width: 100%; /* Make it fit inside the 2-column, etc, flexbox */
height: auto;
background-color: white; /* Eliminate transparency for consistency among all images */
border: 0.1cm solid black; /* Address the lack of transparency with borders */
}
/* special QR code handling */
[alt="QR code"] {
width: 5cm;
float: left;
margin-right: 1.5cm;
border: none;
}
.qr {
box-sizing: border-box;
flex: 0 0 92%;
margin: auto auto 0 auto; /* Offset for emphasis */
}
/* General formatting */
a {
text-decoration: none;
color: inherit;
font-family: monospace;
}
a::before {
content: "<"
}
a::after {
content: ">"
}
/* Adapted from Chris Coyier: https://css-tricks.com/snippets/css/prevent-superscripts-and-subscripts-from-affecting-line-height/ */
sup, sub, .cite {
vertical-align: baseline;
position: relative;
top: -0.4em;
font-size: 0.8em;
}
sub {
top: 0.4em;
}
.references p {
margin: 0;
}
.references {
margin: 1em 0;
}