Skip to content

Commit 3adcda2

Browse files
author
christopheschwyzer
committed
adjust partner-list styles
1 parent d5e6a96 commit 3adcda2

File tree

3 files changed

+74
-32
lines changed

3 files changed

+74
-32
lines changed

css/main.css

Lines changed: 34 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ body {
6666
a {
6767
text-decoration: none;
6868
color: #2c87ad;
69-
-webkit-transition: 200ms;
70-
-moz-transition: 200ms;
71-
-o-transition: 200ms;
72-
transition: 200ms;
69+
-webkit-transition: 150ms ease-in;
70+
-moz-transition: 150ms ease-in;
71+
-o-transition: 150ms ease-in;
72+
transition: 150ms ease-in;
7373
}
7474
a:hover {
7575
text-decoration: underline;
@@ -353,16 +353,6 @@ strong {
353353
#footer .social-link.github:hover {
354354
background-color: #404041;
355355
}
356-
.badge-link,
357-
.list-item-link {
358-
display: block;
359-
width: 100%;
360-
background-color: rgba(26, 26, 26, 0.08);
361-
}
362-
.badge-link:hover,
363-
.list-item-link:hover {
364-
background-color: rgba(26, 26, 26, 0.05);
365-
}
366356
.badge .columns {
367357
display: -webkit-box;
368358
display: -moz-box;
@@ -410,6 +400,11 @@ strong {
410400
-ms-flex-pack: space-between;
411401
justify-content: space-between;
412402
}
403+
.badge .badge-link {
404+
display: block;
405+
width: 100%;
406+
background-color: rgba(26, 26, 26, 0.08);
407+
}
413408
@media (min-width: 700px) {
414409
.badge .badge-link {
415410
padding: 4px;
@@ -421,6 +416,7 @@ strong {
421416
}
422417
.badge .badge-link:hover {
423418
border-color: rgba(26, 26, 26, 0.2);
419+
background-color: rgba(26, 26, 26, 0.05);
424420
}
425421
.partner-list {
426422
list-style: none;
@@ -429,13 +425,34 @@ strong {
429425
.partner-list .list-item {
430426
display: block;
431427
float: left;
428+
margin: 0;
432429
}
433430
.partner-list .list-item-link {
434-
padding: 4px;
431+
display: block;
432+
height: 100px;
433+
margin: 3px;
434+
border: 1px solid rgba(0, 0, 0, 0.07);
435+
background: white;
436+
}
437+
.partner-list .list-item-link:hover {
438+
background-color: rgba(26, 26, 26, 0.05);
435439
}
436440
.partner-list .list-item-link img {
437-
max-width: 200px;
438-
height: auto;
441+
display: block;
442+
max-width: 100%;
443+
max-height: 100%;
444+
padding: 3px;
445+
}
446+
.partner-list .list-item-link.empty {
447+
width: 100px;
448+
line-height: 100px;
449+
border-style: dashed;
450+
text-align: center;
451+
font-weight: bold;
452+
font-size: 1.2rem;
453+
text-decoration: none;
454+
border-color: rgba(0, 0, 0, 0.2);
455+
color: #737374;
439456
}
440457
.meetup-list {
441458
list-style: none;

css/main.less

Lines changed: 33 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ body {
116116
a {
117117
text-decoration: none;
118118
color: @link;
119-
.transition(200ms);
119+
.transition(150ms ease-in);
120120

121121
&:hover {
122122
text-decoration: underline;
@@ -397,16 +397,6 @@ strong {
397397
}
398398
}
399399

400-
.badge-link, .list-item-link {
401-
display: block;
402-
width: 100%; // FF bug?
403-
background-color: hsla(0, 0%, 10%, .08);
404-
405-
&:hover {
406-
background-color: hsla(0, 0%, 10%, .05);
407-
}
408-
}
409-
410400
.badge {
411401
.columns {
412402
.display(flex);
@@ -427,6 +417,10 @@ strong {
427417
}
428418

429419
.badge-link {
420+
display: block;
421+
width: 100%; // FF bug?
422+
background-color: hsla(0, 0%, 10%, .08);
423+
430424
@media (min-width: @breakpointMedium) {
431425
padding: 4px;
432426
border: 3px dashed transparent;
@@ -438,25 +432,50 @@ strong {
438432

439433
&:hover {
440434
border-color: hsla(0, 0%, 10%, .2);
435+
background-color: hsla(0, 0%, 10%, .05);
441436
}
442437
}
443438
}
444439

445440
.partner-list {
441+
@maxHeight: 100px;
446442
list-style: none;
447443
padding: 0;
448444

449445
.list-item {
450446
display: block;
451447
float: left;
448+
margin: 0;
452449
}
453450

454451
.list-item-link {
455-
padding: 4px;
452+
display: block;
453+
height: @maxHeight;
454+
margin: 3px;
455+
border: 1px solid hsla(0, 0%, 0%, .07);
456+
background: white;
457+
458+
&:hover {
459+
background-color: hsla(0, 0%, 10%, .05);
460+
}
456461

457462
img {
458-
max-width: 200px;
459-
height: auto;
463+
display: block;
464+
max-width: 100%;
465+
max-height: 100%;
466+
padding: 3px;
467+
}
468+
469+
&.empty {
470+
width: @maxHeight;
471+
line-height: @maxHeight;
472+
border-style: dashed;
473+
text-align: center;
474+
font-weight: bold;
475+
font-size: 1.2rem;
476+
text-decoration: none;
477+
border-color: hsla(0, 0%, 0%, .2);
478+
color: @colorFgShy;
460479
}
461480
}
462481
}

index.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,15 @@ <h2>Who is in</h2>
4141
</a>
4242
</li>
4343
{% endfor %}
44+
45+
<li class="list-item">
46+
<a class="list-item-link empty" href="https://github.com/MadeInBasel/madeinbasel.github.io">
47+
<span>You?!</span>
48+
</a>
49+
</li>
4450
</ul>
4551
<div class="centered">
46-
<p>Have you placed your badge already and want to get represented here? Great, send us your logo via email and we'll place it here. If you feel bold, you can also add your logo directly via Github Pull-Request.</p>
52+
<p>Have you placed your badge already, and want to get represented here? Great, send us your logo via email and we'll place it here. If you feel bold, you can also add your logo directly via Github Pull-Request.</p>
4753
<a class="button" href="https://github.com/MadeInBasel/madeinbasel.github.io">Use Github</a>
4854
<span class="divider-horizontal"></span>
4955
<a href="mailto:[email protected]" class="button">Use Email</a>

0 commit comments

Comments
 (0)