Skip to content

Commit

Permalink
feat(ui): update the twitter icon (#1221)
Browse files Browse the repository at this point in the history
  • Loading branch information
cotes2020 committed Sep 10, 2023
1 parent 4237d07 commit aff7566
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 30 deletions.
2 changes: 1 addition & 1 deletion _data/contact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
icon: "fab fa-github"

- type: twitter
icon: "fab fa-twitter"
icon: "fa-brands fa-x-twitter"

- type: email
icon: "fas fa-envelope"
Expand Down
2 changes: 1 addition & 1 deletion _data/share.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

platforms:
- type: Twitter
icon: "fab fa-twitter"
icon: "fa-brands fa-square-x-twitter"
link: "https://twitter.com/intent/tweet?text=TITLE&url=URL"

- type: Facebook
Expand Down
2 changes: 1 addition & 1 deletion _includes/post-sharing.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- Post sharing snippet -->

<div class="share-wrapper">
<div class="share-wrapper d-flex align-items-center">
<span class="share-label text-muted me-1">{{ site.data.locales[include.lang].post.share }}</span>
<span class="share-icons">
{% capture title %}{{ page.title }} - {{ site.title }}{% endcapture %}
Expand Down
50 changes: 23 additions & 27 deletions _sass/layout/post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,13 @@ h1 + .post-meta {
.share-icons {
font-size: 1.2rem;

> *:hover {
i {
@extend %btn-share-hovor;
> * {
margin-left: 0.25rem;

&:hover {
i {
@extend %btn-share-hovor;
}
}
}

Expand All @@ -116,36 +120,28 @@ h1 + .post-meta {
@extend %cursor-pointer;
}

a {
&:not(:last-child) {
margin-right: 0.25rem;
}

&:hover {
text-decoration: none;
}
a :hover {
text-decoration: none;
}

.fab {
&.fa-twitter {
@include btn-sharing-color(rgba(29, 161, 242, 1));
}
.fa-square-x-twitter {
@include btn-sharing-color(black);
}

&.fa-facebook-square {
@include btn-sharing-color(rgb(66, 95, 156));
}
.fa-facebook-square {
@include btn-sharing-color(rgb(66, 95, 156));
}

&.fa-telegram {
@include btn-sharing-color(rgb(39, 159, 217));
}
.fa-telegram {
@include btn-sharing-color(rgb(39, 159, 217));
}

&.fa-linkedin {
@include btn-sharing-color(rgb(0, 119, 181));
}
.fa-linkedin {
@include btn-sharing-color(rgb(0, 119, 181));
}

&.fa-weibo {
@include btn-sharing-color(rgb(229, 20, 43));
}
.fa-weibo {
@include btn-sharing-color(rgb(229, 20, 43));
}
} /* .share-icons */

Expand Down

0 comments on commit aff7566

Please sign in to comment.