android.moparisthebest.org/sass/partials/_sharing.scss

79 lines
1.9 KiB
SCSS
Raw Normal View History

2012-06-05 13:40:39 -04:00
@import "icon/*.png";/**/
@include all-icon-sprites($dimensions: true);
@mixin social-button-bg($icon: false, $color: #333, $img: false) {
2012-06-05 01:08:10 -04:00
color: $color;
&:visited, &:hover, &:visited:hover { color: $color; }
2012-06-05 13:40:39 -04:00
@if $img {
padding-left: image-width($img) + 6px;
&:before {
background: image-url($img) no-repeat center center;
width: image-width($img);
height: image-height($img);
position: absolute; left: 3px;
top: 3px;
}
} @else if $icon {
padding-left: icon-sprite-width($icon) + 6px;
&:before {
vertical-align: middle;
@extend .icon-#{$icon};
position: absolute; left: 3px;
top: 3px;
}
2012-06-05 01:08:10 -04:00
}
}
2012-06-05 13:40:39 -04:00
@mixin icon-bg($icon, $align: middle) {
display: inline-block;
vertical-align: $align;
@extend .icon-#{$icon};
}
2012-06-05 01:08:10 -04:00
.simple-social-button {
2012-06-05 13:40:39 -04:00
position: relative;
overflow: hidden;
font-family: "Lucida Grande", Helvetica, Arial, sans;
2012-06-05 01:08:10 -04:00
display: inline-block;
border: 1px solid #ccc;
2012-06-05 13:40:39 -04:00
padding: .2em .5em; line-height: 1.45em;
font-size: 11px;
font-weight: bold;
text-decoration: none;
text-shadow: #fff 0 1px;
@include border-radius(.3em);
2012-06-05 01:08:10 -04:00
background-color: #e5e5e5;
@include background-image(linear-gradient(#fff, #ddd));
&:hover {
@include background-image(linear-gradient(#f5f5f5, #ccc));
border-color: #b5b5b5;
background-color: #ddd;
}
2012-06-05 13:40:39 -04:00
&:before {
content: "";
display: inline-block;
}
2012-06-05 01:08:10 -04:00
}
2011-07-19 22:28:48 -04:00
.sharing {
p.meta + & {
padding: { top: 1em; left: 0; }
background: $img-border top left repeat-x;
}
}
2012-01-08 20:56:48 -05:00
#fb-root { display: none; }
2012-06-05 01:08:10 -04:00
.googleplus-share {
@extend .simple-social-button;
2012-06-05 13:40:39 -04:00
@include social-button-bg('googleplus', #db583b);
2012-06-05 01:08:10 -04:00
}
.facebook-share {
@extend .simple-social-button;
2012-06-05 13:40:39 -04:00
@include social-button-bg('facebook', #4e5a9b);
2012-06-05 01:08:10 -04:00
}
.twitter-share, .sidebar a.twitter-follow-button {
@extend .simple-social-button;
2012-06-05 13:40:39 -04:00
@include social-button-bg('twitter');
2012-06-05 01:08:10 -04:00
}