$medium_editor_bgcolor:                     #428bca !default;
$medium_editor_border_color:                #357ebd !default;
$medium_editor_button_size:                 60px !default;
$medium_editor_button_active_text_color:    #fff !default;
$medium_editor_hover_color:                 #3276b1 !default;
$medium_editor_link_color:                  #fff !default;
$medium_editor_border_radius:               4px !default;
$medium_editor_placeholder_color:           #fff !default;

.medium-toolbar-arrow-under:after {
    top: $medium_editor_button_size;
    border-color: $medium_editor_bgcolor transparent transparent transparent;
}

.medium-toolbar-arrow-over:before {
    border-color: transparent transparent $medium_editor_bgcolor transparent;
}

.medium-editor-toolbar {
    border: 1px solid $medium_editor_border_color;
    background-color: $medium_editor_bgcolor;
    border-radius: $medium_editor_border_radius;

    li {
        button {
            min-width: $medium_editor_button_size;
            height: $medium_editor_button_size;
            border: none;
            border-right: 1px solid $medium_editor_border_color;
            background-color: transparent;
            color: $medium_editor_link_color;
            box-sizing: border-box;
            transition: background-color .2s ease-in, color .2s ease-in;
            &:hover {
                background-color: $medium_editor_hover_color;
                color: $medium_editor_button_active_text_color;
            }
        }

        .medium-editor-button-first {
            border-top-left-radius: $medium_editor_border_radius;
            border-bottom-left-radius: $medium_editor_border_radius;
        }

        .medium-editor-button-last {
            border-right: none;
            border-top-right-radius: $medium_editor_border_radius;
            border-bottom-right-radius: $medium_editor_border_radius;
        }

        .medium-editor-button-active {
            background-color: $medium_editor_hover_color;
            color: $medium_editor_button_active_text_color;
        }
    }
}

.medium-editor-toolbar-form {
    background: $medium_editor_bgcolor;
    color: #fff;
    border-radius: $medium_editor_border_radius;

    .medium-editor-toolbar-input {
        height: $medium_editor_button_size;
        background: $medium_editor_bgcolor;
        color: $medium_editor_link_color;

        &::-webkit-input-placeholder {
           color: $medium_editor_placeholder_color;
           color: rgba($medium_editor_placeholder_color, .8);
        }
        &:-moz-placeholder { /* Firefox 18- */
           color: $medium_editor_placeholder_color;
           color: rgba($medium_editor_placeholder_color, .8);
        }
        &::-moz-placeholder {  /* Firefox 19+ */
           color: $medium_editor_placeholder_color;
           color: rgba($medium_editor_placeholder_color, .8);
        }
        &:-ms-input-placeholder {
           color: $medium_editor_placeholder_color;
           color: rgba($medium_editor_placeholder_color, .8);
        }
    }

    a {
        color: $medium_editor_link_color;
    }
}

.medium-editor-toolbar-anchor-preview {
    background: $medium_editor_bgcolor;
    color: $medium_editor_link_color;
    border-radius: $medium_editor_border_radius;
}

.medium-editor-placeholder:after {
    color: $medium_editor_border_color;
}
