Skip to content

Commit aff7566

Browse files
authored
feat(ui): update the twitter icon (#1221)
1 parent 4237d07 commit aff7566

File tree

4 files changed

+26
-30
lines changed

4 files changed

+26
-30
lines changed

_data/contact.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
icon: "fab fa-github"
55

66
- type: twitter
7-
icon: "fab fa-twitter"
7+
icon: "fa-brands fa-x-twitter"
88

99
- type: email
1010
icon: "fas fa-envelope"

_data/share.yml

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

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

99
- type: Facebook

_includes/post-sharing.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- Post sharing snippet -->
22

3-
<div class="share-wrapper">
3+
<div class="share-wrapper d-flex align-items-center">
44
<span class="share-label text-muted me-1">{{ site.data.locales[include.lang].post.share }}</span>
55
<span class="share-icons">
66
{% capture title %}{{ page.title }} - {{ site.title }}{% endcapture %}

_sass/layout/post.scss

Lines changed: 23 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,13 @@ h1 + .post-meta {
102102
.share-icons {
103103
font-size: 1.2rem;
104104

105-
> *:hover {
106-
i {
107-
@extend %btn-share-hovor;
105+
> * {
106+
margin-left: 0.25rem;
107+
108+
&:hover {
109+
i {
110+
@extend %btn-share-hovor;
111+
}
108112
}
109113
}
110114

@@ -116,36 +120,28 @@ h1 + .post-meta {
116120
@extend %cursor-pointer;
117121
}
118122

119-
a {
120-
&:not(:last-child) {
121-
margin-right: 0.25rem;
122-
}
123-
124-
&:hover {
125-
text-decoration: none;
126-
}
123+
a :hover {
124+
text-decoration: none;
127125
}
128126

129-
.fab {
130-
&.fa-twitter {
131-
@include btn-sharing-color(rgba(29, 161, 242, 1));
132-
}
127+
.fa-square-x-twitter {
128+
@include btn-sharing-color(black);
129+
}
133130

134-
&.fa-facebook-square {
135-
@include btn-sharing-color(rgb(66, 95, 156));
136-
}
131+
.fa-facebook-square {
132+
@include btn-sharing-color(rgb(66, 95, 156));
133+
}
137134

138-
&.fa-telegram {
139-
@include btn-sharing-color(rgb(39, 159, 217));
140-
}
135+
.fa-telegram {
136+
@include btn-sharing-color(rgb(39, 159, 217));
137+
}
141138

142-
&.fa-linkedin {
143-
@include btn-sharing-color(rgb(0, 119, 181));
144-
}
139+
.fa-linkedin {
140+
@include btn-sharing-color(rgb(0, 119, 181));
141+
}
145142

146-
&.fa-weibo {
147-
@include btn-sharing-color(rgb(229, 20, 43));
148-
}
143+
.fa-weibo {
144+
@include btn-sharing-color(rgb(229, 20, 43));
149145
}
150146
} /* .share-icons */
151147

0 commit comments

Comments
 (0)