// editor-opacity-picker
.editor-opacity-picker{
    display: inline-block;
    vertical-align: top;
    position: relative;

    > label{
        display: inline-block;
        cursor: pointer;
        line-height: 28px;
        padding: 0 5px 0 16px;
        vertical-align: top;
        .icon(opacity);
        background-position: 2px 7px;
        background-repeat: no-repeat;

        &:after{
            .icon(arrow-down);

            content: "";
            margin: 10px 0 0 5px;
            height: 8px;
            width: 8px;
            vertical-align: top;
        }
    }

    > label > input{
        background: #FFF;
        border: 1px solid rgba(0, 0, 0, 0);
        border-radius: 2px;
        margin-left: 5px;
        padding: 0 3px;
        height: 28px;
        width: 3.2em;
        outline: 0;
        vertical-align: top;

        &[readonly] {
            cursor: inherit;
        }
    }
    &.active > label > input{
        border-color: #D9DADE;
    }

    .editor-popup{
        margin: 18px 0 0 1.5em;
        width: 172px;
    }

    &.inline{
        display: block;

        > label{
            display: block;
            cursor: default;
            padding: 0;

            input{
                float: right;

                &:focus{
                    border-color: #AAA;
                }
            }

            &:after{
                display: none;
            }
        }

        .editor-popup{
            background: none;
            border: 0;
            box-shadow: none;
            margin: 0;
            padding: 5px 0 0;
            width: auto;
            position: static;

            &:before{
                display: none;
            }
        }
    }
}

.toolbar-north {
    .editor-opacity-picker{
        .editor-popup{
            top: inherit;
            margin-bottom: 18px;
            bottom: 100%;

            &:before{
                box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
                margin-top: 5px;
                bottom: 0;
            }
        }
    }
}