Skip to content

Commit

Permalink
doc: move sponsorship logos into bottom of content
Browse files Browse the repository at this point in the history
Signed-off-by: Outsider <outsideris@gmail.com>
  • Loading branch information
outsideris committed Feb 4, 2022
1 parent 47ce564 commit bddc02e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 21 deletions.
17 changes: 10 additions & 7 deletions docs/_includes/default.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@

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

<div class="sponsorship">
<a href="https://matomo.org/" rel="external noopener" title="Mocha is sponsored by Matomo">
<img src="images/matomo-logo.png?trim" loading="lazy" width="100" alt="Matomo logo">
</a>
<a href="https://wallabyjs.com" rel="external noopener" title="Mocha is sponsored by Wallaby" id="wallaby-logo">
<img src="https://wallabyjs.com/assets/img/logoWithText.svg" loading="lazy" width="140" alt="Wallaby logo">
</a>
</div>

<footer>
<div id="copyright-notice">
<a rel="home" href="https://mochajs.org/">mochajs.org</a> is licensed
Expand Down Expand Up @@ -67,16 +76,10 @@
</p>
</div>

<div class="sponsorship">
<div class="openjsf-logo">
<a title="Mocha is an OpenJS Foundation Project" href="https://openjsf.org" rel="external noopener" >
<img src="/images/openjsf-logo.svg" loading="lazy" width="120" alt="OpenJS Foundation Logo">
</a>
<a href="https://matomo.org/" rel="external noopener" title="Mocha is sponsored by Matomo">
<img src="images/matomo-logo.png?trim" loading="lazy" width="80" alt="Matomo logo">
</a>
<a href="https://wallabyjs.com" rel="external noopener" title="Mocha is sponsored by Wallaby" id="wallaby-logo">
<img src="https://wallabyjs.com/assets/img/logoWithText.svg" loading="lazy" width="120" alt="Wallaby logo">
</a>
</div>

<div id="external-links">
Expand Down
23 changes: 9 additions & 14 deletions docs/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ header {
}

#content {
padding-bottom: 60px;
padding-bottom: 30px;
}

#_header h1 {
Expand Down Expand Up @@ -284,6 +284,10 @@ footer {
content: ' | ';
}

.openjsf-logo {
margin-bottom: 10px;
}

#external-links .netlify-badge {
position: absolute;
right: 0;
Expand All @@ -293,23 +297,14 @@ footer {
.sponsorship {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 30px;
}

.sponsorship a {
display: inline-block;
margin-right: 10px;
margin-bottom: 0;
}

@media all and (max-width: 400px) {
.sponsorship {
display: block;
}

.sponsorship a {
display: block;
margin-bottom: 10px;
}
margin-right: 15px;
margin-left: 15px;
}

.dl-inline dt,
Expand Down

0 comments on commit bddc02e

Please sign in to comment.