Skip to content

Commit d610527

Browse files
committed
Use inline SVG for Docker whale instead of Font Awesome icon
Font Awesome brand icon color was being overridden by dark themes. Using an inline SVG with explicit fill color ensures the whale is always Docker blue regardless of theme.
1 parent b4f4ad9 commit d610527

1 file changed

Lines changed: 27 additions & 13 deletions

File tree

templates/admin/update_manager/docker_progress.html.twig

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,36 @@
99
.docker-whale-container {
1010
position: relative;
1111
display: inline-block;
12-
width: 80px;
13-
height: 60px;
12+
width: 90px;
13+
height: 70px;
1414
}
1515
.docker-whale {
16-
font-size: 3rem;
17-
color: #0db7ed !important;
16+
width: 64px;
17+
height: 64px;
1818
animation: whale-bob 2s ease-in-out infinite;
1919
display: inline-block;
2020
}
2121
.docker-whale.success {
22-
color: #198754 !important;
2322
animation: whale-arrive 0.6s ease-out forwards;
2423
}
25-
.docker-whale.timeout {
26-
color: #ffc107;
27-
animation: none;
24+
.docker-whale.success .docker-whale-svg {
25+
fill: #198754;
26+
}
27+
.docker-whale.timeout .docker-whale-svg {
28+
fill: #ffc107;
2829
}
30+
.docker-whale.timeout,
2931
.docker-whale.failed {
30-
color: #dc3545;
3132
animation: none;
3233
}
34+
.docker-whale.failed .docker-whale-svg {
35+
fill: #dc3545;
36+
}
37+
.docker-whale-svg {
38+
fill: #0db7ed;
39+
width: 100%;
40+
height: 100%;
41+
}
3342
@keyframes whale-bob {
3443
0%, 100% { transform: translateY(0) rotate(0deg); }
3544
25% { transform: translateY(-8px) rotate(-2deg); }
@@ -59,9 +68,9 @@
5968
white-space: nowrap;
6069
letter-spacing: -2px;
6170
}
62-
.docker-whale.success ~ .whale-waves::before,
63-
.docker-whale.timeout ~ .whale-waves::before,
64-
.docker-whale.failed ~ .whale-waves::before {
71+
.docker-whale.success + .whale-waves::before,
72+
.docker-whale.timeout + .whale-waves::before,
73+
.docker-whale.failed + .whale-waves::before {
6574
animation: none;
6675
}
6776
@keyframes wave-flow {
@@ -101,7 +110,12 @@
101110
<div class="text-center mb-4">
102111
<div class="mb-3">
103112
<div class="docker-whale-container">
104-
<i class="fab fa-docker docker-whale" data-docker-update-progress-target="headerWhale"></i>
113+
<div class="docker-whale" data-docker-update-progress-target="headerWhale">
114+
<svg class="docker-whale-svg" viewBox="0 0 640 512" xmlns="http://www.w3.org/2000/svg">
115+
{# Docker Moby whale logo (Font Awesome docker icon path) #}
116+
<path d="M349.9 236.3h-66.1v-59.4h66.1v59.4zm0-204.3h-66.1v60.7h66.1V32zm78.2 144.8H362v59.4h66.1v-59.4zm-156.3-72.1h-66.1v60.1h66.1v-60.1zm78.1 0h-66.1v60.1h66.1v-60.1zm276.8 100c-14.4-9.7-47.6-13.2-73.1-8.4-3.3-24-16.7-44.9-41.1-63.7l-14-9.3-9.3 14c-18.4 27.8-23.4 73.6-3.7 103.8-8.7 4.7-25.8 11.1-48.4 10.7H2.4c-8.7 50.4 5.8 116.5 44 161.1 34.1 39.9 85.7 60.2 153.6 60.2 118.6 0 213.3-49 257-183.1 16.8.2 52.9 0 71.4-36.6.5-.9 4.8-10.2 15.7-32.6l5.8-11.8-14.4-9.6z"/>
117+
</svg>
118+
</div>
105119
<div class="whale-waves"></div>
106120
</div>
107121
</div>

0 commit comments

Comments
 (0)