Skip to content

Commit bfef31a

Browse files
Fixed position of sponsor logos inside the anchors and added nice hover effect.
Went back to all includes in _config.yml.
1 parent 5c58b03 commit bfef31a

File tree

4 files changed

+23
-11
lines changed

4 files changed

+23
-11
lines changed

_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ sass:
1414
sass_dir: _sass
1515
kramdown:
1616
input: GFM
17-
#include: ["_test.html", "_static", "pandas/guide/_static", "_pages"]
18-
include: ["_pages"]
17+
include: ["_test.html", "_static", "pandas/guide/_static", "_pages"]
18+
#include: ["_pages"]
1919
exclude:
2020
- Gemfile
2121
- Gemfile.lock

_config_dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ sass:
1414
sass_dir: _sass
1515
kramdown:
1616
input: GFM
17-
#include: ["_test.html", "_static", "pandas/guide/_static", "_pages"]
18-
include: ["_pages"]
17+
include: ["_test.html", "_static", "pandas/guide/_static", "_pages"]
18+
#include: ["_pages"]
1919
exclude:
2020
- Gemfile
2121
- Gemfile.lock

_includes/footer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
<p class="section-content footer__text">Our Sponsors</p>
1111
<hr class="footer__divider">
1212
<div class="row">
13-
<div class="col-lg-6">
13+
<div class="footer__sponsor-col col-lg-6">
1414
<a class="footer__sponsor-link" href="https://www.python.org/psf/">
1515
<img class="footer__img" src="{{ site.baseurl }}/static/images/sponsors/python_software_foundation.png">
1616
</a>
1717
<a class="footer__sponsor-link" href="https://www.linkedin.com/in/hamishpitkeathly/">
1818
<img class="footer__img" src="{{ site.baseurl }}/static/images/sponsors/harvey_nash.png">
1919
</a>
2020
</div>
21-
<div class="col-lg-6">
21+
<div class="footer__sponsor-col col-lg-6">
2222
<a class="footer__sponsor-link" href="https://www.touchsurgery.com/jobs.html">
2323
<img class="footer__img" src="{{ site.baseurl }}/static/images/sponsors/touch_surgery.png">
2424
</a>

_sass/style.scss

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,11 @@
455455
text-align: center;
456456
}
457457

458+
.footer__sponsor-col {
459+
text-align: center;
460+
}
461+
462+
458463
.footer__icon {
459464
font-size: 2em;
460465
margin: 1em;
@@ -473,21 +478,28 @@
473478
}
474479

475480
.footer__sponsor-link {
481+
position: relative;
476482
background: #041729;
477483
border-radius: 5px;
478484
border: #7fa0c2 1px solid;
479485
text-align: center;
480-
display: block;
486+
display: inline-block;
487+
line-height: 102px;
488+
vertical-align: middle;
481489
margin-top: 10%;
482490
width: 278px;
483491
height: 102px;
484492
}
485493

486494
.footer__img {
487-
position: relative;
488-
top: 50%;
489-
transform: translateY(-50%);
490-
495+
filter: gray;
496+
-webkit-filter: grayscale(1);
497+
transition: filter, .8s ease-in-out;
498+
&:hover {
499+
filter: none;
500+
-webkit-filter: grayscale(0);
501+
-webkit-transform: scale(1.05);
502+
}
491503
}
492504

493505
.footer__link {

0 commit comments

Comments
 (0)