From 86276bca7ade3ed9d160907680395a8503dee8bb Mon Sep 17 00:00:00 2001 From: Burak Ozdemir Date: Fri, 3 Feb 2017 21:01:22 +0300 Subject: [PATCH] Fixes issue #11, dont repaint buttons on scroll, v1.7.0 --- bower.json | 2 +- dist/jquery.floating-social-share.min.css | 2 +- package.json | 2 +- src/jquery.floating-social-share.css | 6 ++++++ 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/bower.json b/bower.json index 3e1e53a..0d6b9de 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "jquery-floating-social-share", - "version": "1.6.2", + "version": "1.7.0", "homepage": "http://github.com/ozdemirburak/jquery-floating-social-share", "authors": [ "Burak Ozdemir " diff --git a/dist/jquery.floating-social-share.min.css b/dist/jquery.floating-social-share.min.css index 146bb4a..1125497 100644 --- a/dist/jquery.floating-social-share.min.css +++ b/dist/jquery.floating-social-share.min.css @@ -1 +1 @@ -#floatingSocialShare{position:relative}#floatingSocialShare *,#floatingSocialShare :after,#floatingSocialShare :before{-webkit-box-sizing:content-box!important;-moz-box-sizing:content-box!important;box-sizing:content-box!important}#floatingSocialShare a{position:relative;width:45px;height:30px;line-height:20px;padding:8px 0;display:list-item;list-style-type:none;text-align:center;color:#fff}#floatingSocialShare a:focus,#floatingSocialShare a:hover{color:#fff;width:52px;opacity:.8;transition-duration:.3s;transition-property:right;transition-timing-function:ease-out}#floatingSocialShare a,#floatingSocialShare a:active,#floatingSocialShare a:focus,#floatingSocialShare a:hover,#floatingSocialShare a:visited{outline:0!important}#floatingSocialShare i{line-height:inherit;font-size:24px;text-align:center}#floatingSocialShare .content-left,#floatingSocialShare .content-right,#floatingSocialShare .top-left,#floatingSocialShare .top-right{position:fixed;top:25%}#floatingSocialShare .top-left{left:0}#floatingSocialShare .top-right{right:0}#floatingSocialShare .content-left,#floatingSocialShare .content-right{margin:0}#floatingSocialShare .facebook{background-color:#3b5998}#floatingSocialShare .twitter{background-color:#00aced}#floatingSocialShare .google-plus{background-color:#dd4b39}#floatingSocialShare .linkedin{background-color:#007bb6}#floatingSocialShare .envelope{background-color:#726C6C}#floatingSocialShare .pinterest{background-color:#c92228}#floatingSocialShare .stumbleupon{background-color:#eb4924}#floatingSocialShare .reddit{background-color:#a9bacb}#floatingSocialShare .tumblr{background-color:#36465d}#floatingSocialShare .vk{background-color:#6383a8}#floatingSocialShare .odnoklassniki{background-color:#f6900b}#floatingSocialShare .shareCount{position:absolute;bottom:0;right:0;left:0;margin:auto;color:#fff;font-size:10px}#floatingSocialShare .margin-top-5{margin-top:5px}@media only screen and (min-device-width:0px) and (max-width:961px){#floatingSocialShare{margin-top:50px}#floatingSocialShare .content-left,#floatingSocialShare .content-right,#floatingSocialShare .top-left,#floatingSocialShare .top-right{top:auto;bottom:0;margin:0;right:0;left:0;width:100%;z-index:999}#floatingSocialShare a{position:relative;float:left;display:list-item;list-style-type:none}#floatingSocialShare a:focus,#floatingSocialShare a:hover{-moz-transition-property:none;-webkit-transition-property:none;-o-transition-property:none;transition-property:none}} \ No newline at end of file +#floatingSocialShare{position:relative}#floatingSocialShare *,#floatingSocialShare :after,#floatingSocialShare :before{-webkit-box-sizing:content-box!important;-moz-box-sizing:content-box!important;box-sizing:content-box!important}#floatingSocialShare a{position:relative;width:45px;height:30px;line-height:20px;padding:8px 0;display:list-item;list-style-type:none;text-align:center;color:#fff}#floatingSocialShare a:focus,#floatingSocialShare a:hover{color:#fff;width:52px;opacity:.8;transition-duration:.3s;transition-property:right;transition-timing-function:ease-out}#floatingSocialShare a,#floatingSocialShare a:active,#floatingSocialShare a:focus,#floatingSocialShare a:hover,#floatingSocialShare a:visited{outline:0!important}#floatingSocialShare i{line-height:inherit;font-size:24px;text-align:center}#floatingSocialShare .content-left,#floatingSocialShare .content-right,#floatingSocialShare .top-left,#floatingSocialShare .top-right{position:fixed;top:25%;transform:translateZ(0);-webkit-transform:translateZ(0)}#floatingSocialShare .top-left{left:0}#floatingSocialShare .top-right{right:0;direction:rtl}#floatingSocialShare .content-left,#floatingSocialShare .content-right{margin:0}#floatingSocialShare .facebook{background-color:#3b5998}#floatingSocialShare .twitter{background-color:#00aced}#floatingSocialShare .google-plus{background-color:#dd4b39}#floatingSocialShare .linkedin{background-color:#007bb6}#floatingSocialShare .envelope{background-color:#726C6C}#floatingSocialShare .pinterest{background-color:#c92228}#floatingSocialShare .stumbleupon{background-color:#eb4924}#floatingSocialShare .reddit{background-color:#a9bacb}#floatingSocialShare .tumblr{background-color:#36465d}#floatingSocialShare .vk{background-color:#6383a8}#floatingSocialShare .odnoklassniki{background-color:#f6900b}#floatingSocialShare .shareCount{position:absolute;bottom:0;right:0;left:0;margin:auto;color:#fff;font-size:10px}#floatingSocialShare .margin-top-5{margin-top:5px}@media only screen and (min-device-width:0px) and (max-width:961px){#floatingSocialShare{margin-top:50px}#floatingSocialShare .content-left,#floatingSocialShare .content-right,#floatingSocialShare .top-left,#floatingSocialShare .top-right{top:auto;bottom:0;margin:0;right:0;left:0;width:100%;z-index:999}#floatingSocialShare a{position:relative;float:left;display:list-item;list-style-type:none}#floatingSocialShare a:focus,#floatingSocialShare a:hover{-moz-transition-property:none;-webkit-transition-property:none;-o-transition-property:none;transition-property:none}} \ No newline at end of file diff --git a/package.json b/package.json index 8e10cec..01327e8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jquery-floating-social-share", - "version": "1.6.2", + "version": "1.7.0", "description": "social media share buttons with counters", "main": "dist/jquery-floating-social-share.min.js", "repository": { diff --git a/src/jquery.floating-social-share.css b/src/jquery.floating-social-share.css index 14c9aba..eff9d32 100644 --- a/src/jquery.floating-social-share.css +++ b/src/jquery.floating-social-share.css @@ -44,6 +44,8 @@ #floatingSocialShare .top-left, #floatingSocialShare .top-right, #floatingSocialShare .content-left, #floatingSocialShare .content-right { position: fixed; top: 25%; + transform: translateZ(0); + -webkit-transform: translateZ(0); } #floatingSocialShare .top-left { @@ -58,6 +60,10 @@ margin: 0; } +#floatingSocialShare .top-right { + direction: rtl; +} + #floatingSocialShare .facebook { background-color: #3b5998; }