Skip to content

Commit

Permalink
Add padding to Sharedaddy buttons on mobile (#5888)
Browse files Browse the repository at this point in the history
  • Loading branch information
stoyan0v authored and dereksmart committed Feb 16, 2017
1 parent 5a21bef commit 007b10c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/sharedaddy/sharing.css
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ body.highlander-dark h3.sd-title:before {
margin: 0 5px 5px 0;
padding: 0;
}
/* Add more pading on touch devices */
.jp-sharing-input-touch .sd-content ul li { padding-left: 10px; }

/* Text + icon & Official */
.sd-social-icon-text .sd-content ul li a span,
Expand Down
2 changes: 2 additions & 0 deletions modules/sharedaddy/sharing.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ var updateLinkedInCount = function( data ) {
} );
$more_sharing_buttons.data( 'timer', false );
} );
} else {
$( document.body ).addClass( 'jp-sharing-input-touch' );
}

$( document ).click(function() {
Expand Down

0 comments on commit 007b10c

Please sign in to comment.