/*!
 * Jodit Editor (https://xdsoft.net/jodit/)
 * License GNU General Public License version 2 or later;
 * Copyright 2013-2019 Valeriy Chupurnov https://xdsoft.net
 */

.jodit_btn {
    border: 1px solid;
    border-radius: 0;

    background-color: #f5f5f5;
    background-image: linear-gradient(to bottom, #fff, #e6e6e6);
    border-color: #ccc;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
    color: #333;

    background-repeat: repeat-x;
    outline: 0;
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    touch-action: manipulation;
    cursor: pointer;
    user-select: none;
    &:hover {
        background-color: #e6e6e6;
        background-position: 0 -15px;
        text-decoration: none;
    }
    .jodit_button_variant
        (@name, @background_color, @background_gradient_from_color, @background_gradient_to_color, @background_hover_color, @color: #ffffff) {
        &.jodit_btn_@{name} {
            text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
            background-color: @background_color;
            background-image: linear-gradient(
                to bottom,
                @background_gradient_from_color,
                @background_gradient_to_color
            );
            border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1)
                rgba(0, 0, 0, 0.25);
            color: @color;
            svg {
                fill: @color;
            }
            &:hover {
                background-color: @background_hover_color;
            }
        }
    }

    .jodit_button_variant(success, #5bb75b, #62c462, #51a351, #51a351);
    .jodit_button_variant(danger, #da4f49, #ee5f5b, #bd362f, #bd362f);
    .jodit_button_variant(inverse, #363636, #444444, #222222, #222222);

    &:active,
    &.active {
        background-image: none;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15),
            0 1px 2px rgba(0, 0, 0, 0.05);
    }
}
