Skip to content

Commit a3c6d0e

Browse files
committed
1 parent 665a5ce commit a3c6d0e

File tree

2 files changed

+175
-50
lines changed

2 files changed

+175
-50
lines changed

conferences/2024/assets/main.css

Lines changed: 156 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,18 @@
1717
/* This is the same color as the CWL website menu background. */
1818
--medium-gray: rgb(244, 244, 244);
1919
--light-gray-color: #FAFAFA;
20+
--black-color: #333333;
2021
--font-family: 'Roboto',sans-serif;
22+
--font-size: 16px;
2123
}
2224

2325
body {
2426
display: flex;
2527
min-height: 100vh;
2628
flex-direction: column;
2729
font-family: var(--font-family);
30+
font-size: calc(var(--font-size) + 0.390625vw);
31+
color: var(--black-color);
2832
}
2933

3034
/*
@@ -67,13 +71,13 @@ header div:nth-child(1) img {
6771
/* Middle column and children elements. */
6872

6973
header div:nth-child(2) {
70-
width: 50%;
74+
width: 100%;
7175
}
7276

7377
header div:nth-child(2) h1 {
7478
text-align: center;
7579
font-weight: bold;
76-
font-size: 6vw;
80+
font-size: 8vw;
7781
font-family: 'Roboto Slab',serif;
7882
color: var(--warm-red-font-color);
7983
text-shadow: var(--gray-color) 1px 1px 3px;
@@ -101,34 +105,6 @@ header div:nth-child(2) span:nth-child(3) {
101105

102106
header div:nth-child(3) {
103107
width: 25%;
104-
background-color: var(--warm-red-font-color);
105-
align-self: end;
106-
overflow: hidden;
107-
position: relative;
108-
}
109-
110-
header div:nth-child(3):before {
111-
content: "";
112-
position: absolute;
113-
top: 0;
114-
left: 0;
115-
border-width: 0 0 16px 16px;
116-
border-style: solid;
117-
border-color: var(--light-gray-color) var(--cold-red-font-color) var(--cold-red-font-color) var(--light-gray-color);
118-
background: var(--cold-red-font-color);
119-
-webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);
120-
-moz-box-shadow: 0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);
121-
box-shadow: 0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);
122-
/* Firefox 3.0 damage limitation */
123-
display: block; width: 0;
124-
}
125-
126-
header div:nth-child(3) > span {
127-
margin: 0 auto;
128-
padding: 0.25rem 0;
129-
display: inline-block;
130-
color: white;
131-
font-size: 2vw;
132108
}
133109

134110
/*
@@ -164,11 +140,12 @@ nav > ol > li > a {
164140
display: block;
165141
}
166142

167-
nav > ol > li > a.current {
143+
nav > ol > li > a:hover {
168144
color: var(--warm-red-font-color);
169145
}
170146

171-
nav > ol > li > a:hover {
147+
/* TBD: This cannot be done via CSS-only; only with JavaScript. */
148+
nav > ol > li > a.current {
172149
color: var(--warm-red-font-color);
173150
}
174151

@@ -185,33 +162,34 @@ main {
185162
}
186163

187164
main > article {
188-
max-width: 80%;
189-
margin: 0 auto;
190165
flex: 1;
191166
}
192167

193168
main > article > section {
194-
margin: 4rem 0;
169+
margin: 2rem auto;
170+
width: 90%;
171+
max-width: 90%;
172+
overflow: hidden;
195173
}
196174

197175
main > article > section > h1,
198176
main > article > section > h2,
199177
main > article > section > h3,
200178
main > article > section > h4 {
201179
color: var(--warm-red-font-color);
202-
margin: 1rem 0;
180+
margin: 0 0 1.5rem 0;
203181
}
204182

205183
main > article > section > h2 {
206-
font-size: 3vw;
184+
font-size: clamp(1.75rem, 3vw, 3rem);
207185
}
208186

209187
main > article > section > h3 {
210-
font-size: 2.5vw;
188+
font-size: clamp(1.5rem, 2.5vw, 2.5rem);
211189
}
212190

213191
main > article > section > h4 {
214-
font-size: 2vw;
192+
font-size: clamp(1.25rem, 2vw, 2rem);
215193
}
216194

217195
main > article > section > h1 > a,
@@ -232,7 +210,7 @@ main > article > section > h4 > a:hover:after{
232210
}
233211

234212
main > article > section > p {
235-
line-height: 1.5rem;
213+
line-height: 1.5;
236214
margin: 0.5rem 0;
237215
text-align: justify;
238216
}
@@ -290,10 +268,20 @@ footer ol, footer ul {
290268

291269
footer ol > li, footer ul > li {
292270
display: inline list-item;
293-
list-style: circle;
271+
list-style: none;
294272
margin: 0.75rem 0;
295273
}
296274

275+
footer ol > li::after, footer ul > li::after {
276+
content: '/';
277+
margin-left: 0.5rem;
278+
}
279+
280+
footer ol > li:last-child::after, footer ul > li:last-child::after {
281+
content: '';
282+
margin-left: 0;
283+
}
284+
297285
footer a, footer a:active, footer a:visited {
298286
color: gray;
299287
}
@@ -323,3 +311,130 @@ strong {
323311
flex-direction: column;
324312
flex: 1;
325313
}
314+
315+
/* The banner text. */
316+
317+
.banner-text {
318+
background-color: var(--warm-red-font-color);
319+
align-self: end;
320+
overflow: hidden;
321+
position: relative;
322+
}
323+
324+
.banner-text:before {
325+
content: "";
326+
position: absolute;
327+
top: 0;
328+
left: 0;
329+
border-width: 0 0 16px 16px;
330+
border-style: solid;
331+
border-color: var(--light-gray-color) var(--cold-red-font-color) var(--cold-red-font-color) var(--light-gray-color);
332+
background: var(--cold-red-font-color);
333+
-webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);
334+
-moz-box-shadow: 0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);
335+
box-shadow: 0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);
336+
/* Firefox 3.0 damage limitation */
337+
display: block; width: 0;
338+
}
339+
340+
.banner-text > * {
341+
margin: 0 auto;
342+
padding: 0.25rem 0;
343+
display: inline-block;
344+
color: white;
345+
font-size: 1.5rem;
346+
}
347+
348+
/* Hide the second banner. This is displayed only on smaller viewports. */
349+
350+
main > article .banner-text {
351+
display: none;
352+
}
353+
354+
/*
355+
For smaller viewports, like mobile.
356+
*/
357+
358+
@media only screen and (max-width: 768px) {
359+
360+
header {
361+
border: none;
362+
}
363+
364+
header div:nth-child(1) {
365+
width: 50%;
366+
}
367+
368+
header div:nth-child(2) {
369+
width: 100%;
370+
text-align: right;
371+
align-items: end;
372+
margin-right: 1rem;
373+
}
374+
375+
header div:nth-child(2) h1 {
376+
color: var(--warm-red-font-color);
377+
}
378+
379+
/* Hide the first banner. This is displayed only on wider viewports. */
380+
header div.banner-text {
381+
display: none;
382+
}
383+
384+
/* Instead of a burger menu (hard to make it accessible, correctly, we use a horizontal-to-vertical menu approach.
385+
Ref: https://www.accede-web.com/en/guidelines/rich-interface-components/hamburger-menu/.
386+
*/
387+
nav > ol {
388+
max-width: 100%;
389+
display: block;
390+
}
391+
392+
nav > ol > li + li:not(:first-child) {
393+
border-top: 1px solid var(--gray-color);
394+
}
395+
396+
nav > ol > li:hover {
397+
background-color: var(--light-gray-color);
398+
}
399+
400+
nav > ol > li > a {
401+
max-width: 90%;
402+
margin: 0 auto;
403+
padding: 1rem 0;
404+
background-color: transparent;
405+
}
406+
407+
main > article .banner-text {
408+
display: block;
409+
margin: 0;
410+
padding: 1rem 0;
411+
}
412+
413+
main > article .banner-text > * {
414+
display: block;
415+
font-size: 1.5rem;
416+
width: 90%;
417+
margin: 0 auto;
418+
}
419+
420+
main > article .banner-text:before {
421+
display: none;
422+
}
423+
424+
footer > * {
425+
max-width: 100%;
426+
margin: 0 1rem;
427+
text-align: left;
428+
}
429+
430+
footer ol > li, footer ul > li {
431+
display: list-item;
432+
list-style: circle;
433+
margin: 0.75rem 1rem;
434+
}
435+
436+
footer ol > li::after, footer ul > li::after {
437+
content: none;
438+
margin: 0;
439+
}
440+
}

conferences/2024/index.html

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
<link rel="stylesheet" type="text/css" media="all" href="assets/main.css"/>
99
<meta name="resource-type" content="document">
1010
<meta name="distribution" content="global">
11-
<meta name="KeyWords" content="Conference">
11+
<meta name="KeyWords" content="CWL, Common Workflow Language, Conference">
12+
<meta name="viewport" content="width=device-width, initial-scale=1">
1213
<title>CWLCon 2024</title>
1314
</head>
1415

@@ -19,7 +20,7 @@
1920
<a href="https://www.commonwl.org/">
2021
<img
2122
src="assets/cwl_logo.png"
22-
alt="Conference Template Banner"
23+
alt="CWL Logo"
2324
/>
2425
</a>
2526
</div>
@@ -28,7 +29,7 @@ <h1 role="doc-subtitle">
2829
<a href="">CWLCon 2024</a>
2930
</h1>
3031
</div>
31-
<div>
32+
<div class="banner-text">
3233
<span>Week of May 13th, 2024</span>
3334
<span>Amsterdam, NL & online!</span>
3435
</div>
@@ -59,6 +60,13 @@ <h1 role="doc-subtitle">
5960

6061
<main>
6162
<article>
63+
<div class="banner-text">
64+
<p>
65+
<span>Week of May 13th, 2024</span>
66+
<span>Amsterdam, NL & online!</span>
67+
</p>
68+
</div>
69+
6270
<section id="home">
6371
<h2><a href="#home">CWLCon 2024</a></h2>
6472

@@ -196,16 +204,18 @@ <h2><a href="#sponsors">Sponsors</a></h2>
196204
<div class="row">
197205
<div class="column">
198206
<div>
199-
<span><strong>Previous Conference Links:</strong></span>
200-
<a href="https://cwl.discourse.group/t/schedule-of-confirmed-talks/753">CWLCon2023</a> /
201-
<a href="https://cwl.discourse.group/t/2022-cwl-conference-feb-28-mar-4-2022/519">CWLCon2022</a> /
202-
<a href="https://pad.sfconservancy.org/p/CWLcon2021">CWLCon2021</a>
203-
207+
<span><strong>Previous Conference Links</strong></span>
208+
<ul>
209+
<li><a href="https://cwl.discourse.group/t/schedule-of-confirmed-talks/753">CWLCon2023</a></li>
210+
<li><a href="https://cwl.discourse.group/t/2022-cwl-conference-feb-28-mar-4-2022/519">CWLCon2022</a></li>
211+
<li><a href="https://pad.sfconservancy.org/p/CWLcon2021">CWLCon2021</a></li>
212+
</ul>
204213
</div>
205214
</div>
206215
</div>
207216

208-
<p>Copyright &copy; 2023-2024 <a href="https://www.commonwl.org/">Common Workflow Language</a> &mdash; <a href="#code-of-conduct">Code of Conduct</a></p>
217+
<p><a href="https://www.commonwl.org/">Common Workflow Language</a> &mdash; <a href="#code-of-conduct">Code of Conduct</a></p>
218+
<p>Copyright &copy; 2023-2024</p>
209219
</div>
210220
</footer>
211221

0 commit comments

Comments
 (0)