/**
 * Command palette for Craft.
 *
 * @author    a&m impact
 * @copyright Copyright (c) 2017 a&m impact
 * @link      http://www.am-impact.nl
 */

.palette {
    display: none;
    background: #ffffff;
    border-radius: 0;
    margin: 0 auto;
    left: 0;
    right: 0;
    top: 20%;
    position: fixed;
    width: 600px;
    z-index: 1337;
    -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.03), 0 5px 25px -5px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.03), 0 5px 25px -5px rgba(0, 0, 0, 0.25);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.03), 0 5px 25px -5px rgba(0, 0, 0, 0.25);
}

.palette__tabs {
    padding: 12px 15px 10px;
    color: #29323d;
    cursor: default;
    font-size: 15px;
    background-image: -webkit-linear-gradient(#f7f7f8, #f4f5f6);
    background-image: -moz-linear-gradient(#f7f7f8, #f4f5f6);
    background-image: -ms-linear-gradient(#f7f7f8, #f4f5f6);
    background-image: -o-linear-gradient(#f7f7f8, #f4f5f6);
    background-image: linear-gradient(#f7f7f8, #f4f5f6);
}

.palette__container {
    padding: 15px;
}

.palette__search {
    position: relative;
}


/**
 * Input
 */
.palette__search input[type=text] {
    width: 100%;
    border: 0;
    background: rgba(238, 238, 238, 0.72);
    padding: 8px 46px 10px 10px;
    border-radius: 0;
    font-size: 28px;
    line-height: 1;
}

.palette__search input[type=text]:focus {
    box-shadow: none;
}


/**
 * Loaders
 */
.palette__loader,
.palette__loader:after {
    border-radius: 50%;
    width: 22px;
    height: 22px;
}
.palette__loader {
    position: absolute;
    top: 12px;
    right: 10px;
    border-top: 3px solid rgba(218,90,71, 0.2);
    border-right: 3px solid rgba(218,90,71, 0.2);
    border-bottom: 3px solid rgba(218,90,71, 0.2);
    border-left: 3px solid #da5a47;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: load8 1.1s infinite linear;
    animation: load8 1.1s infinite linear;
}
@-webkit-keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}


/**
 * Commands
 */
.palette__commands ul {
    max-height: 400px;
    margin-top: 15px;
    overflow: auto;
}
.palette__commands li {
    display: flex;
    border-top: 1px dotted rgba(115, 127, 140, 0.15);
    font-size: 18px;
    padding: 10px 10px;
}

.palette__command__content {
    flex: 1;
}

.palette__commands li:hover {
    background: #f5f6f6;
    cursor: pointer;
}

.palette__commands li.focus {
    background: rgba(239, 240, 241, 0.43);
}

.palette__commands .go:hover:after {
    color: inherit;
}
.palette__commands li.focus .go:after {
    color: inherit;
}

.palette__command__name {
    color: rgba(0, 0, 0, 0.82);
    display: block;
    font-size: 100%;
}

.palette__commands li.focus .palette__command__name {
    color: rgba(0, 0, 0, 0.90);
}

.palette__command__info {
    color: #b9bfc6;
    display: block;
    font-size: 80%;
    margin-top: 5px;
}

.palette__command__shortcut {
    flex: 0 0 35px;
    padding: 0 0 0 5px;
}

.palette__commands li.focus .palette__command__shortcut {
    color: rgba(0, 0, 0, 0.90);
}

.palette__command__icon {
    flex: 0 0 33px;
    padding: 0 5px 4px 0;
    font-size: 28px;
    text-align: center;
    color: rgba(0, 0, 0, 0.82);
}

.palette__commands li.focus .palette__command__icon {
    color: rgba(0, 0, 0, 0.90);
}

.palette__command__icon svg {
    width: 33px;
    max-height: 33px;
}

.palette__command__icon svg path {
    fill: rgba(0, 0, 0, 0.82);
}

.palette__commands li.focus .palette__command__icon svg path {
    fill: rgba(0, 0, 0, 0.90);;
}


/**
 * Notices
 */

.palette__notice {
    font-weight: bold;
    padding-right: 10px;
}
