Skip to content

Instantly share code, notes, and snippets.

@wegorich
Created February 16, 2014 12:34
Show Gist options
  • Save wegorich/9033570 to your computer and use it in GitHub Desktop.
Save wegorich/9033570 to your computer and use it in GitHub Desktop.
Adding castom add this buttons to your site
#app/views/shared/_addthis.haml
.addthis_toolbox.addthis_default_style
-# %a.addthis_button_vk
-# %i.icon-vkontakte
-# %a.addthis_button_facebook
-# %i.icon-facebook-sign
-# %a.addthis_button_google_plusone_share
-# %i.icon-google_oauth2-sign
-# %a.addthis_button_twitter
-# %i.icon-twitter-sign
-# %a.addthis_button_livejournal
-# %i.icon-pencil-squared
-# %a.addthis_button_email
-# %i.icon-mail-alt
-#
-#
-#-# %a.addthis_button_preferred_1
-#-# %a.addthis_button_preferred_2
-#-# %a.addthis_button_preferred_3
%a.addthis_button_expanded.btn.btn-regular.no-title
%i.icon-share-1
Поделиться
-#%a.addthis_counter.addthis_bubble_style
%script{type:'text/javascript'}
var addthis_config = {"data_track_addressbar": false, "ui_language": "ru"};
%script{type:'text/javascript', src:'//s7.addthis.com/js/300/addthis_widget.js#pubid=#{YUOR_SITE_ID}'}
#app/assets/stylesheets/controls
.addthis_toolbox
a
@include inline-block
box-shadow: none
vertical-align: top
transition: none
color: $black
height: $main-padding +$main-margin/2
width: $main-padding +$main-margin/2
text-align: center
margin-left: $main-margin-small/2
&:hover
@include transition(color .5s ease-in-out)
box-shadow: none
color: $btn-red
&:first-child
margin-left: 0
background: $black
border-radius: $main-margin/2
&:hover
@include transition(background .5s ease-in-out)
background: $btn-red
i
font-size: 1.2em
color: white
&:before
vertical-align: middle
text-shadow: none
line-height: 1em
i
&:before
vertical-align: top
text-shadow: none
line-height: $main-padding + $main-margin-small
margin: 0
font-size: $layout-margin - $border-width
.addthis_32x32_style .addthis_counter.addthis_bubble_style
width: 62px!important
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment