Skip to content

Commit 509938d

Browse files
authored
doc: fix to show sponsors in narrow view (#4793)
* doc: move sponsorship logos into footer * doc: move sponsorship logos into bottom of content Signed-off-by: Outsider <outsideris@gmail.com>
1 parent cc51b8f commit 509938d

File tree

2 files changed

+31
-76
lines changed

2 files changed

+31
-76
lines changed

Diff for: docs/_includes/default.liquid

+13-33
Original file line numberDiff line numberDiff line change
@@ -25,38 +25,14 @@
2525

2626
<main id="content">{{ content }}</main>
2727

28-
<aside class="sponsorship">
29-
<a
30-
href="https://matomo.org/"
31-
rel="external noopener"
32-
title="Mocha is sponsored by Matomo"
33-
>
34-
<img src="images/matomo-logo.png?trim" loading="lazy" alt="Matomo logo" />
28+
<div class="sponsorship">
29+
<a href="https://matomo.org/" rel="external noopener" title="Mocha is sponsored by Matomo">
30+
<img src="images/matomo-logo.png?trim" loading="lazy" width="100" alt="Matomo logo">
3531
</a>
36-
<a
37-
title="Mocha is an OpenJS Foundation Project"
38-
href="https://openjsf.org"
39-
rel="external noopener"
40-
>
41-
<img
42-
src="/images/openjsf-logo.svg"
43-
loading="lazy"
44-
width="300"
45-
height="94"
46-
alt="OpenJS Foundation Logo"
47-
/>
32+
<a href="https://wallabyjs.com" rel="external noopener" title="Mocha is sponsored by Wallaby" id="wallaby-logo">
33+
<img src="https://wallabyjs.com/assets/img/logoWithText.svg" loading="lazy" width="140" alt="Wallaby logo">
4834
</a>
49-
<a
50-
href="https://wallabyjs.com"
51-
rel="external noopener"
52-
title="Mocha is sponsored by Wallaby"
53-
>
54-
<figure id="wallaby-logo">
55-
<img src="images/wallaby-logo.png" loading="lazy" alt="Wallaby logo" />
56-
<figcaption>Wallaby</figcaption>
57-
</figure>
58-
</a>
59-
</aside>
35+
</div>
6036

6137
<footer>
6238
<div id="copyright-notice">
@@ -100,6 +76,12 @@
10076
</p>
10177
</div>
10278

79+
<div class="openjsf-logo">
80+
<a title="Mocha is an OpenJS Foundation Project" href="https://openjsf.org" rel="external noopener" >
81+
<img src="/images/openjsf-logo.svg" loading="lazy" width="120" alt="OpenJS Foundation Logo">
82+
</a>
83+
</div>
84+
10385
<div id="external-links">
10486
<ul id="openjsf-links">
10587
<li>
@@ -148,9 +130,7 @@
148130
</ul>
149131
<div class="netlify-badge">
150132
<a href="https://www.netlify.com">
151-
<img
152-
src="https://www.netlify.com/img/global/badges/netlify-color-accent.svg" loading="lazy"
153-
/>
133+
<img src="https://www.netlify.com/img/global/badges/netlify-color-accent.svg" loading="lazy">
154134
</a>
155135
</div>
156136
</div>

Diff for: docs/css/style.css

+18-43
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ header {
4545
}
4646

4747
#content {
48-
padding-bottom: 60px;
48+
padding-bottom: 30px;
4949
}
5050

5151
#_header h1 {
@@ -242,31 +242,6 @@ img.screenshot {
242242
max-width: 100%;
243243
}
244244

245-
.sponsorship a {
246-
display: flex;
247-
justify-content: center;
248-
align-items: center;
249-
}
250-
251-
.sponsorship a img {
252-
display: block;
253-
object-fit: cover;
254-
width: 100%;
255-
height: 100%;
256-
}
257-
258-
.sponsorship {
259-
display: flex;
260-
justify-content: center;
261-
margin-bottom: 60px;
262-
align-items: center;
263-
}
264-
265-
.sponsorship a {
266-
padding: 0 40px;
267-
text-decoration: none;
268-
}
269-
270245
footer {
271246
background-color: #eee;
272247
border-top: 1px solid #ddd;
@@ -309,12 +284,29 @@ footer {
309284
content: ' | ';
310285
}
311286

287+
.openjsf-logo {
288+
margin-bottom: 10px;
289+
}
290+
312291
#external-links .netlify-badge {
313292
position: absolute;
314293
right: 0;
315294
bottom: 0;
316295
}
317296

297+
.sponsorship {
298+
display: flex;
299+
align-items: center;
300+
justify-content: center;
301+
margin-bottom: 30px;
302+
}
303+
304+
.sponsorship a {
305+
display: inline-block;
306+
margin-right: 15px;
307+
margin-left: 15px;
308+
}
309+
318310
.dl-inline dt,
319311
.dl-inline dd {
320312
display: inline;
@@ -335,23 +327,6 @@ blockquote {
335327
padding: 10px;
336328
}
337329

338-
figure#wallaby-logo {
339-
vertical-align: top;
340-
display: inline-block;
341-
text-align: center;
342-
}
343-
figure#wallaby-logo figcaption {
344-
margin-top: 10px;
345-
display: block;
346-
font-family: 'Open Sans', -apple-system, system-ui, 'Segoe UI', Oxygen, Ubuntu,
347-
Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
348-
font-weight: 400;
349-
letter-spacing: 2px;
350-
text-transform: uppercase;
351-
color: #2c2c2c;
352-
-webkit-font-smoothing: antialiased;
353-
}
354-
355330
table {
356331
width: 100%;
357332
}

0 commit comments

Comments
 (0)