Skip to content

Commit be2cf37

Browse files
Fine-tune logo sizing
1 parent 4f8dbff commit be2cf37

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

_includes/scala-days-sponsors.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
{% for sponsor in site.data.scala-days-sponsors.sponsors %}
2424
{% assign sponsor_type = site.data.scala-days-sponsors.sponsorship-types | where: "title", sponsor.type | first %}
2525
{% if sponsor.type == 'Gold' %}
26-
<a href="{{ sponsor.url }}" class="sponsor-logo-link-gold" target="_blank" rel="noopener">
27-
<img src="{{ sponsor.logo }}" alt="{{ sponsor.title }}" class="sponsor-logo-gold-row {{ sponsor_type.css-class }}" />
26+
<a href="{{ sponsor.url }}" class="sponsor-logo-link-gold {{ sponsor_type.css-class }}" target="_blank" rel="noopener">
27+
<img src="{{ sponsor.logo }}" alt="{{ sponsor.title }}" class="sponsor-logo-gold-row" />
2828
</a>
2929
{% endif %}
3030
{% endfor %}

_sass/components/scala-days-sponsors.scss

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
align-items: center;
2929
white-space: nowrap;
3030
width: max-content;
31-
animation: sponsors-scroll 120s linear infinite;
31+
animation: sponsors-scroll 180s linear infinite;
3232
will-change: transform;
3333
}
3434

@@ -113,24 +113,23 @@
113113
align-items: flex-start;
114114
justify-content: center;
115115
gap: 1em 2em;
116-
height: 80px;
117-
max-width: 500px;
116+
// height: 80px;
117+
max-width: 400px;
118118
width: 100%;
119119
}
120120

121121
.sponsor-logo-link-gold {
122122
display: flex;
123123
align-items: center;
124124
justify-content: center;
125-
height: 40px;
125+
height: 25px;
126126
flex: 0 1 calc(33.333% - 2em);
127-
max-width: 160px;
128127
width: 100%;
129128
}
130129

131130
.sponsor-logo-gold-row {
132-
max-height: 40px !important;
133-
height: 40px;
131+
max-height: 25px !important;
132+
height: 25px;
134133
width: auto;
135134
filter: brightness(0) invert(1);
136135
opacity: 0.92;

0 commit comments

Comments
 (0)