Skip to content

Commit bbd9fde

Browse files
committed
Update logo styling
1 parent 49a6945 commit bbd9fde

4 files changed

Lines changed: 57 additions & 23 deletions

File tree

‎assets/logos/lets-encode-cream.png‎

40.1 KB
Loading

‎assets/logos/lets-encode-nav.png‎

40.2 KB
Loading

‎index.html‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<!-- ====================== TOP BAR ====================== -->
2727
<header class="topbar">
2828
<div class="wrap">
29-
<a class="brand" href="#top" aria-label="Let's Encode! — back to top"><img class="brand-logo" src="assets/logo.svg" alt="" width="188" height="54" title="Let's Encode! Crowd-encoding and validation of music scores"><span class="brand-text" aria-hidden="true">Let's Encode!</span></a>
29+
<a class="brand" href="#top" aria-label="Let's Encode! — back to top"><span class="brand-logo" title="Let's Encode! Crowd-encoding and validation of music scores"><img class="brand-logo-img brand-logo-rest" src="assets/logos/lets-encode-nav.png" alt="" width="1120" height="400"><img class="brand-logo-img brand-logo-hover" src="assets/logo.svg" alt="" width="1391" height="400"></span><span class="brand-text" aria-hidden="true">Let's Encode!</span></a>
3030
<nav class="nav" id="primary-nav" aria-label="Primary">
3131
<a href="#about">About</a>
3232
<a href="#goals">Goals</a>
@@ -45,11 +45,11 @@
4545

4646
<!-- ====================== HERO ====================== -->
4747
<section class="hero" aria-labelledby="hero-heading">
48-
<a class="hero-corner hero-corner-left" href="https://iwk.mdw.ac.at" target="_blank" rel="noopener">
49-
<img src="assets/logos/IWK-logo2018-P281-short.svg" alt="IWK – Department of Music Acoustics – Wiener Klangstil">
48+
<a class="hero-corner hero-corner-left" href="https://iwk.mdw.ac.at" target="_blank" rel="noopener" title="Department of Music Acoustics – Wiener Klangstil">
49+
<img src="assets/logos/IWK-logo2018-P281-short.svg" alt="IWK – Department of Music Acoustics – Wiener Klangstil" title="Department of Music Acoustics – Wiener Klangstil">
5050
</a>
51-
<a class="hero-corner hero-corner-right" href="https://mdw.ac.at" target="_blank" rel="noopener">
52-
<img src="assets/logos/MDW_Logo_englisch281.svg" alt="mdw – University of Music and Performing Arts Vienna">
51+
<a class="hero-corner hero-corner-right" href="https://mdw.ac.at" target="_blank" rel="noopener" title="mdw – University of Music and Performing Arts Vienna">
52+
<img src="assets/logos/MDW_Logo_englisch281.svg" alt="mdw – University of Music and Performing Arts Vienna" title="mdw – University of Music and Performing Arts Vienna">
5353
</a>
5454
<div class="wrap">
5555
<h1 id="hero-heading" class="visually-hidden" style="position:absolute;left:-9999px;">Let's Encode!</h1>
@@ -59,7 +59,7 @@ <h1 id="hero-heading" class="visually-hidden" style="position:absolute;left:-999
5959
Do NOT replace this with <img src="lets-encode-logo.svg"> — that shows the
6060
static logo only. The static logo also renders fine with JS disabled.
6161
-->
62-
<div class="logo" role="img" aria-label="Let's Encode! logo: three cartoon hands interacting with the words, a musical note, and a thumbs-up.">
62+
<div class="logo" role="img" aria-label="Let's Encode! logo: three cartoon hands interacting with the words, a musical note, and a thumbs-up." title="Let's Encode! Crowd-encoding and validation of music scores">
6363
<svg xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" width="141.11163mm" height="40.581127mm" viewBox="0 0 141.11163 40.581127" version="1.1" id="svg1" inkscape:version="1.4 (e7c3feb1, 2024-10-09)" sodipodi:docname="lets-encode.svg">
6464
<sodipodi:namedview id="namedview1" pagecolor="#ffffff" bordercolor="#000000" borderopacity="0.25" inkscape:showpageshadow="2" inkscape:pageopacity="0.0" inkscape:pagecheckerboard="0" inkscape:deskcolor="#d1d1d1" inkscape:document-units="mm" inkscape:zoom="0.82136644" inkscape:cx="118.09589" inkscape:cy="206.97218" inkscape:current-layer="layer1"/>
6565
<defs id="defs1"><style type="text/css"><![CDATA[
@@ -378,18 +378,18 @@ <h2 id="funding-heading" aria-label="Supported by the Austrian Science Fund">Sup
378378

379379
<ul class="logos" style="margin-top:2.5rem;">
380380
<li>
381-
<a href="https://iwk.mdw.ac.at" target="_blank" rel="noopener">
382-
<img src="assets/logos/IWK-logo2018-P281-short.svg" alt="IWK – Department of Music Acoustics – Wiener Klangstil">
381+
<a href="https://iwk.mdw.ac.at" target="_blank" rel="noopener" title="Department of Music Acoustics – Wiener Klangstil">
382+
<img src="assets/logos/IWK-logo2018-P281-short.svg" alt="IWK – Department of Music Acoustics – Wiener Klangstil" title="Department of Music Acoustics – Wiener Klangstil">
383383
</a>
384384
</li>
385385
<li>
386-
<a href="https://mdw.ac.at" target="_blank" rel="noopener">
387-
<img src="assets/logos/MDW_Logo_englisch281.svg" alt="mdw – University of Music and Performing Arts Vienna">
386+
<a href="https://mdw.ac.at" target="_blank" rel="noopener" title="mdw – University of Music and Performing Arts Vienna">
387+
<img src="assets/logos/MDW_Logo_englisch281.svg" alt="mdw – University of Music and Performing Arts Vienna" title="mdw – University of Music and Performing Arts Vienna">
388388
</a>
389389
</li>
390390
<li>
391-
<a href="https://www.fwf.ac.at" target="_blank" rel="noopener">
392-
<img src="assets/logos/FWF_Logo_Zusatz_Dunkelblau_RGB_EN.svg" alt="FWF – Austrian Science Fund">
391+
<a href="https://www.fwf.ac.at" target="_blank" rel="noopener" title="FWF – Austrian Science Fund">
392+
<img src="assets/logos/FWF_Logo_Zusatz_Dunkelblau_RGB_EN.svg" alt="FWF – Austrian Science Fund" title="FWF – Austrian Science Fund">
393393
</a>
394394
</li>
395395
</ul>

‎styles.css‎

Lines changed: 45 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,53 @@ a:hover {
115115
text-decoration: none;
116116
}
117117

118+
/* Logo swap: the monochrome nav artwork (fill-less hands) shows at rest and
119+
cross-fades to the full-colour logo on hover. The COLOUR svg is the reference
120+
— it sits in flow and sets the box (width + rendered height, 120px wide). The
121+
two files are the same artwork but framed differently (the mono png has wider
122+
margins + is ~5% smaller at a given width), so the mono png is overlaid
123+
absolutely and up-scaled/offset until its ink registers onto the colour ink. */
118124
.brand-logo {
119-
height: 35px;
120-
width: auto;
125+
position: relative;
121126
display: block;
127+
width: 120px;
128+
/* match the rendered width of the IWK hero-corner logo */
129+
overflow: hidden;
130+
/* same lift as the hero-corner institutional logos on hover */
131+
transition: transform .15s ease;
132+
}
133+
134+
.brand:hover .brand-logo {
135+
transform: translateY(-2px);
136+
}
137+
138+
.brand-logo-img {
139+
display: block;
140+
transition: opacity .15s ease;
141+
}
142+
143+
/* colour svg — in flow, defines the slot */
144+
.brand-logo-hover {
145+
width: 120px;
146+
height: auto;
147+
opacity: 0;
148+
}
149+
150+
/* mono png — overlay, sized/positioned to match the colour ink */
151+
.brand-logo-rest {
152+
position: absolute;
153+
top: 0;
154+
left: 0;
155+
width: 126px;
156+
height: auto;
157+
}
158+
159+
.brand:hover .brand-logo-rest {
160+
opacity: 0;
161+
}
162+
163+
.brand:hover .brand-logo-hover {
164+
opacity: 1;
122165
}
123166

124167
/* Plaintext wordmark — shown only on mobile (see the max-width: 560px block),
@@ -584,15 +627,6 @@ section.alt {
584627
right: 1.45rem;
585628
}
586629

587-
/* swap the logo image for a plaintext wordmark on mobile */
588-
.brand-logo {
589-
display: none;
590-
}
591-
592-
.brand-text {
593-
display: inline;
594-
}
595-
596630
/* burger button on the right; brand stays on the left */
597631
.nav-toggle {
598632
display: inline-flex;

0 commit comments

Comments
 (0)