Skip to content

Commit

Permalink
release: fixes
Browse files Browse the repository at this point in the history
### Improvements
- Update dependencies
- Updated icon for X (former Twitter)
  • Loading branch information
preda-bogdan authored Mar 26, 2024
2 parents 99e942a + d018f75 commit 1653ca0
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 10 deletions.
8 changes: 4 additions & 4 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion obfx_modules/social-sharing/css/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
}

#obfx-dash .socicon-twitter {
color: #1da1f2;
color: #fff;
}

#obfx-dash .socicon-pinterest {
Expand Down
8 changes: 7 additions & 1 deletion obfx_modules/social-sharing/css/public.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@
text-align: center;
}

.obfx-sharing .socicon-twitter:before {
min-width: 20px;
min-height: 20px;
transform: translateY(4px);
}

.obfx-sharing span {
display: none;
position: absolute;
Expand Down Expand Up @@ -105,7 +111,7 @@

.obfx-sharing-inline a.btn-twitter,
.obfx-sharing a.twitter {
background-color: #1da1f2;
background-color: #fff;
}

.obfx-sharing-inline a.btn-pinterest,
Expand Down
Binary file modified obfx_modules/social-sharing/css/vendor/socicon/fonts/Socicon.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
9 changes: 6 additions & 3 deletions obfx_modules/social-sharing/css/vendor/socicon/socicon.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@font-face {
font-family: "Socicon";
src: url("fonts/Socicon.eot?xvgs9q");
src: url("fonts/Socicon.eot?xvgs9q#iefix") format("embedded-opentype"), url("fonts/Socicon.woff2?xvgs9q") format("woff2"), url("fonts/Socicon.ttf?xvgs9q") format("truetype"), url("fonts/Socicon.woff?xvgs9q") format("woff"), url("fonts/Socicon.svg?xvgs9q#Socicon") format("svg");
src: url('fonts/Socicon.woff2?2y44c5') format('woff2'), url('fonts/Socicon.woff?2y44c5') format('woff'), url('fonts/Socicon.ttf?2y44c5') format('truetype');
font-weight: normal;
font-style: normal;
}
Expand Down Expand Up @@ -643,7 +642,11 @@
}

.socicon-twitter:before {
content: "\e08d";
content: "";
background-image: url(twitter-x.svg);
min-width: 13px;
min-height: 13px;
display: inline-block;
}

.socicon-uber:before {
Expand Down
6 changes: 6 additions & 0 deletions obfx_modules/social-sharing/css/vendor/socicon/twitter-x.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion obfx_modules/social-sharing/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private function define_networks() {
),
'twitter' => array(
'link' => 'https://twitter.com/intent/tweet?url=' . $post_link . '&text=' . $post_title . '&hashtags=' . $post_categories,
'nicename' => 'Twitter',
'nicename' => 'X',
'icon' => 'twitter',
),
'pinterest' => array(
Expand Down

0 comments on commit 1653ca0

Please sign in to comment.