﻿/* x-editable.css
 */

x-editable {
    display: inline-block;
    margin: 0;
    padding: 0 1.3em 0 .3em;
    cursor: auto;
    color: #333;
}

x-editable[activated] {
    background-image: url("./images/edit-icon.png");
    background-color: #fff;
    background-repeat: no-repeat;
    background-size: 1em .8em;
    background-position: right center;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
    text-decoration: none;
}

x-editable[editing],
x-editable[locked] {
    background-color: transparent;
    border-color: transparent;
    background-image: none;
    cursor: auto;
    border-top: 1px solid transparent;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    border-bottom: 1px solid transparent;
    padding: 0 1.3em 0 0;
}

x-editable[disabled] {
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    background-color: #eee;
    color: #777;
}

@media (max-width: 767px) {
    x-editable {
        margin: 0;
    }
}

x-editable[save-completed] {
  -webkit-transition: background-color 1400ms ease-in;
  -moz-transition: background-color 1400ms ease-in;
  -o-transition: background-color 1400ms ease-in;
  -ms-transition: background-color 1400ms ease-in;
  transition: background-color 1400ms ease-in;  
}

x-editable[saving] {
    background: #fff url(../../../images/select2-spinner.gif) no-repeat 100%;
    background-position: 0 0;
    height: 30px;
    width: 100%;
    display: block;
}

x-editable[empty][locked] {
    display: none;
}

x-editable[empty]:not([activated]):not([show-empty-on-deactivated]) {
    display: none;
}


/************************************ 
    Popover
 ************************************/
x-editable .popover {
    border-color: #e1ddca;
    padding: 0;
}

x-editable div.popover-content.alert.alert-warning {
    border: none;
}

x-editable[popover-warning-visible] .popover.bottom .arrow:after {
    border-bottom-color: #fcf8e3;
}