Skip to content

Commit 77e5e5d

Browse files
Merge pull request #257 from sophie-h/sophie-h/sponsors
Fix sponsors design
2 parents d04eeab + 0dc15a2 commit 77e5e5d

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

_sass/_layout.scss

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -473,21 +473,27 @@ p.center {
473473

474474
ul.sponsors {
475475
text-align: center;
476-
margin: 0;
476+
margin: 2em 1em 3em;
477+
display: grid;
478+
justify-content: center;
479+
grid-template-columns: repeat(auto-fill, 10em);
480+
column-gap: 1.5em;
481+
row-gap: 3em;
477482

478483
li {
479-
display: inline-block;
480-
margin: 1em;
484+
display: block;
481485
font-family: $headings-font-family;
482486

483487
a {
484488
@extend .box-design;
485-
max-width: 10em;
486489
text-align: center;
487490
text-decoration: none;
488491
vertical-align: top;
489-
min-height: 8em;
490492
font-weight: bold;
493+
position: relative;
494+
display: block;
495+
height: 100%;
496+
padding-bottom: 1.6em;
491497

492498
> div {
493499
padding: 1em;
@@ -498,13 +504,20 @@ ul.sponsors {
498504
border-radius: 50%;
499505
width: 5em;
500506
margin: 1em auto 0;
501-
border: 3px solid white;
507+
filter: drop-shadow(0 1.3px 1.6px rgba(0,0,0,.55))
508+
drop-shadow(0 6.4px 11.2px rgba(0,0,0,.34));
502509
}
503510

504511
.metal {
505512
border-radius: inherit;
506513
border-top-left-radius: 0;
507514
border-top-right-radius: 0;
515+
516+
position: absolute;
517+
bottom: 0;
518+
left: 0;
519+
right: 0;
520+
height: 1.3em;
508521
}
509522

510523
.gold {

0 commit comments

Comments
 (0)