Skip to content

Commit e701551

Browse files
committed
docs: social medial icons animation
1 parent 60352ea commit e701551

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

docs/assets/css/custom.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,11 @@
3232
.hextra-nav-container a[title="Support us"]:hover {
3333
transform: scale(1.3, 1.3);
3434
}
35+
36+
.hextra-footer .social-media {
37+
transition: ease-in-out 0.2s;
38+
}
39+
40+
.hextra-footer .social-media :hover{
41+
transform: translateY(-2px);
42+
}

docs/layouts/_partials/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
{{- range .Site.Params.footer.links -}}
3737
{{- $external := strings.HasPrefix .url "http" -}}
38-
<a title="{{ .title }}" href="{{ .url }}" {{ if $external }}target="_blank"{{ end }} class="hx:text-sm hx:contrast-more:text-gray-700 hx:contrast-more:dark:text-gray-100 hx:relative -hx:ml-2 hx:whitespace-nowrap hx:p-1 hx:md:inline-block hx:text-gray-600 hx:hover:text-gray-800 hx:dark:text-gray-400 hx:dark:hover:text-gray-200">
38+
<a title="{{ .title }}" href="{{ .url }}" {{ if $external }}target="_blank"{{ end }} class="social-media hx:text-sm hx:contrast-more:text-gray-700 hx:contrast-more:dark:text-gray-100 hx:relative -hx:ml-2 hx:whitespace-nowrap hx:p-1 hx:md:inline-block hx:text-gray-600 hx:hover:text-gray-800 hx:dark:text-gray-400 hx:dark:hover:text-gray-200">
3939
<span class="hx:text-center">
4040
{{- partial "utils/icon.html" (dict "name" .icon "attributes" "height=20") -}}
4141
</span>

0 commit comments

Comments
 (0)