@import "shares";

$text-color: #444;
$text-size: .8em;
$count-indent: .3em;
$count-border-color: #efefef;
$count-border-radius: $count-indent;
$transition: color 200ms ease-in-out;

@for $i from 0 to length($share-names) {
    $social: nth($share-names, $i + 1);
    $color: nth($share-colors, $i + 1);

    .jssocials-share-#{$social} .jssocials-share-link {
        color: $color;

        .jssocials-share-label {
            color: $color;
        }

        &:hover, &:focus, &:active {
            color: darken($color, 10%);

            .jssocials-share-label {
                color: darken($color, 10%);
            }
        }
    }
}

.jssocials-share-link {
    transition: $transition;

    &.jssocials-share-link-count {
        .jssocials-share-count {
            font-size: .5em;
        }
    }
}

.jssocials-share-label {
    font-size: $text-size;
    color: $text-color;
    transition: $transition;
}

.jssocials-share-count-box {
    margin-left: $count-indent;
    border: 1px solid $count-border-color;
    border-radius: $count-border-radius;

    .jssocials-share-count {
        font-size: $text-size;
        color: $text-color;
    }
}
