Skip to content

Commit dbee9b1

Browse files
committed
update slack animation
1 parent c520650 commit dbee9b1

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

layouts/partials/header.html

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ <h4>{{ .title }}</h4>
195195
{{ end }}
196196
</select>
197197
</div>
198-
<a href="{{ "slack" | absURL }}" class="btn btn-primary d-flex align-items-center" target="_blank">
198+
<a href="{{ "slack" | absURL }}" class="btn btn-outline-primary d-flex align-items-center" target="_blank" style="background-color: white;">
199199
<img src="/images/slack.png" class="slack-icon-pulse" alt="Slack" style="width: 16px; height: 16px; margin-right: 8px;">{{ T "join_slack" }}
200200
</a>
201201
</div>
@@ -217,16 +217,32 @@ <h4>{{ .title }}</h4>
217217

218218
@keyframes pulse {
219219
0% { transform: scale(1); }
220-
50% { transform: scale(1.2); }
220+
50% { transform: scale(1.5); }
221221
100% { transform: scale(1); }
222222
}
223223

224224
.slack-icon-pulse {
225225
display: inline-block;
226-
animation: pulse 2s infinite ease-in-out;
226+
animation: pulse 1.5s infinite ease-in-out;
227227
vertical-align: middle;
228228
}
229229

230+
.btn-outline-primary {
231+
box-shadow: none !important;
232+
}
233+
234+
.btn-outline-primary:hover,
235+
.btn-outline-primary:active,
236+
.btn-outline-primary:focus {
237+
box-shadow: none !important;
238+
outline: none !important;
239+
border: 0 !important;
240+
}
241+
242+
.btn-outline-primary:hover .slack-icon-pulse {
243+
animation: pulse 0.8s infinite ease-in-out;
244+
}
245+
230246
.language-selector {
231247
display: inline-block;
232248
margin-right: 10px;

0 commit comments

Comments
 (0)