@use 'lg-variables' as *;
@use 'lg-mixins' as *;

.lg-outer {
    &.lg-dropdown-active {
        .lg-dropdown {
            @include transition-delay(0s);
            @include transform(translate3d(0, 0px, 0));
            opacity: 1;
            visibility: visible;
        }
        .lg-share {
            color: #fff;
        }
    }
    .lg-dropdown {
        background-color: #fff;
        border-radius: 2px;
        font-size: 14px;
        list-style-type: none;
        margin: 0;
        padding: 10px 0;
        position: absolute;
        right: 0;
        text-align: left;
        top: 50px;
        opacity: 0;
        visibility: hidden;
        @include transform(translate3d(0, 5px, 0));
        will-change: visibility, opacity, transform;
        @include transitionCustom(
            transform 0.18s linear 0s,
            visibility 0s linear 0.5s,
            opacity 0.18s linear 0s
        );

        &:after {
            content: '';
            display: block;
            height: 0;
            width: 0;
            position: absolute;
            border: 8px solid transparent;
            border-bottom-color: #fff;
            right: 16px;
            top: -16px;
        }
        > li {
            &:last-child {
                margin-bottom: 0px;
            }
            &:hover {
                a {
                    color: #333;
                }
            }
        }
        a {
            color: #333;
            display: block;
            white-space: pre;
            padding: 4px 12px;
            font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial,
                sans-serif;
            font-size: 12px;
            &:hover {
                background-color: rgba(0, 0, 0, 0.07);
            }
        }
        .lg-dropdown-text {
            display: inline-block;
            line-height: 1;
            margin-top: -3px;
            vertical-align: middle;
        }
        .lg-icon {
            color: #333;
            display: inline-block;
            float: none;
            font-size: 20px;
            height: auto;
            line-height: 1;
            margin-right: 8px;
            padding: 0;
            vertical-align: middle;
            width: auto;
        }
    }
    // The button and its dropdown share a wrapper, so the menu hangs
    // under the control that opened it instead of the toolbar's corner.
    .lg-share-outer {
        float: right;
        position: relative;
    }
    .lg-share-facebook {
        .lg-icon {
            color: #3b5998;
        }
    }
    .lg-share-twitter {
        .lg-icon {
            color: #000;
        }
    }
    .lg-share-pinterest {
        .lg-icon {
            color: #cb2027;
        }
    }
}
