@import "ExtensionIcon.css";

* {
    -webkit-box-sizing: border-box;
}

body {
    font: message-box;
    min-height: 391px;
    min-width: 668px;
    padding: 0;
    margin: 0;
    cursor: default;
    -webkit-user-select: none;
    overflow: hidden;
    background-color: white;
    color: black;
}

a:link, img {
    -webkit-user-drag: none;
}

input[type="checkbox"], input[type="radio"] {
    margin-left: 0;
    margin-right: 0.75ex;
}

button.flat {
    padding-left: 14px;
    padding-right: 14px;
    -webkit-appearance: none;
    -webkit-border-radius: 8px;
    border: 1px solid rgb(130, 130, 130);
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(251, 251, 251)), to(rgb(223, 223, 223)));
    -webkit-box-shadow: rgb(230, 230, 230) 0 1px 0;
    text-shadow: rgba(255, 255, 255, 0.5) 0 1px 0;
    font-size: 11px;
    line-height: 11px;
    height: 18px;
    outline-offset: -2px;
    white-space: nowrap;
}

button.flat:active:not(:disabled) {
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(186, 186, 186)), to(rgb(210, 210, 210)));
    -webkit-box-shadow: rgb(230, 230, 230) 0 1px 0, inset rgb(150, 150, 150) 0 1px 2px;
}

.hidden {
    display: none;
}

.container {
    position: absolute;
    overflow: hidden;
    outline: none;
    top: 0;
    bottom: 0;
}

.status-bar {
    position: absolute;
    overflow: hidden;
    height: 23px;
    bottom: 0;
    left: 0;
    right: 0;
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(212, 212, 212)), color-stop(0.04999, rgb(212, 212, 212)), color-stop(0.05, rgb(253, 253, 253)), color-stop(0.44999, rgb(245, 245, 245)), color-stop(0.45, rgb(235, 235, 235)), to(rgb(235, 235, 235)));
}

.status-bar button {
    vertical-align: top;
    -webkit-appearance: none;
    position: relative;
    top: 1px;
    height: 22px;
    width: 32px;
    background-color: transparent;
    border-top: none;
    border-bottom: none;
    margin: 0;
    padding: 0;
    outline: none;
    border-left: 1px solid rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    vertical-align: middle;
    -webkit-box-shadow: inset rgba(255, 255, 255, 0.5) 1px 0 0, inset rgba(255, 255, 255, 0.5) -1px 0 0, rgba(255, 255, 255, 0.5) 1px 0 0, rgba(255, 255, 255, 0.5) -1px 0 0;
}

.status-bar button > select {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    -webkit-appearance: none;
    border: none;
    -webkit-border-radius: 0;
    outline: none;
    background-color: transparent;
    padding: 0;
    margin: 0;
    opacity: 0;
}

.status-bar button + button {
    margin-left: -1px;
    border-left-color: transparent;
    -webkit-box-shadow: inset rgba(255, 255, 255, 0.5) -1px 0 0, rgba(255, 255, 255, 0.5) 1px 0 0;
}

.status-bar button:active {
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.4);
    border-left: 1px solid rgba(0, 0, 0, 0.25);
    border-right: 1px solid rgba(0, 0, 0, 0.25);
    -webkit-box-shadow: inset rgba(255, 255, 255, 0.08) 1px 0 0, inset rgba(255, 255, 255, 0.08) -1px 0 0, rgba(255, 255, 255, 0.5) 1px 0 0, rgba(255, 255, 255, 0.5) -1px 0 0, rgb(131, 131, 131) 0 -1px 0;
}

.status-bar button:first-child {
    border-left: none;
    width: 31px;
}

.status-bar .glyph {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.70);
    z-index: 1;
    -webkit-mask-position: 50% 50%;
}

.status-bar .glyph.shadow {
    top: 1px;
    background-color: rgba(255, 255, 255, 0.4);
    z-index: 0;
}

#add-extension .glyph {
    -webkit-mask-image: url(AddButtonGlyph.png);
    -webkit-mask-size: 32px 23px;
}

#sidebar {
    background-color: rgb(222, 228, 234);
    border-right: 1px solid rgb(180, 180, 180);
    position: absolute;
    overflow: hidden;
    outline: none;
    top: 0;
    bottom: 0;
    left: 0;
    width: 180px;
}

body.inactive #sidebar {
    background-color: rgb(232, 232, 232);
}

#extensions {
    overflow-y: auto;
    overflow-x: hidden;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 23px;
}

#content {
    position: absolute;
    overflow: hidden;
    outline: none;
    top: 0;
    bottom: 0;
    left: 180px;
    right: 0;
    background-color: white;
}

#content header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 87px;
    border-bottom: 1px solid rgb(214, 214, 214);
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(247, 247, 247)), to(rgb(252, 252, 252)));
}

.extension-editor {
    position: absolute;
    top: 87px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 15px;
}

.extension-info header .icon {
    width: 48px;
    height: 48px;
    position: absolute;
    left: 14px;
    top: 14px;
    -webkit-box-reflect: below -4px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(0.7, transparent), to(rgba(0, 0, 0, 0.3)));
}

.extension-info header .details {
    position: absolute;
    top: 14px;
    left: 74px;
    right: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
}

.extension-info header .details > * {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.extension-info header .details > * > button {
    float: right;
}

.extension-info header .details > * > button:last-of-type {
    margin-left: 8px;
}

.extension-info header .title {
    margin: 0 0 4px 0;
    color: rgb(64, 64, 64);
    font-size: 13px;
}

.extension-info header .bundle-path::before {
    display: inline-block;
    content: "";
    background-image: url(GenericFolderIcon.png);
    background-size: 16px 16px;
    width: 16px;
    height: 16px;
    vertical-align: -25%;
    margin-right: 3px;
}

.extension-info header .certificate::before {
    display: inline-block;
    content: "";
    background-image: url(Certificate.png);
    background-size: 16px 16px;
    width: 16px;
    height: 16px;
    vertical-align: -25%;
    margin-right: 3px;
}

.extension-info header .certificate.error {
    color: rgb(178, 16, 11);
}

.extension-info header .certificate.error::before {
    background-image: url(Error.png);
}

#extensions .item {
    display: block;
    position: relative;
    height: 36px;
    padding-left: 41px;
    padding-right: 8px;
    font-size: 11px;
    line-height: 36px;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#extensions .item button.close {
    display: none;
    -webkit-appearance: none;
    border: none;
    width: 14px;
    height: 14px;
    background-color: transparent;
    background-image: url(ExtensionClose.png);
    position: absolute;
    top: 11px;
    right: 8px;
}

#extensions .item button.close:hover, #extensions .item button.close:focus {
    outline: none;
    background-image: url(ExtensionCloseHovered.png);
}

#extensions .item button.close:active {
    background-image: url(ExtensionClosePressed.png);
}

#extensions .item.selected button.close, #extensions .item:hover button.close {
    display: block;
}

#extensions .item.selected, #extensions .item:hover {
    padding-right: 27px;
}

#extensions .item.selected {
    color: white;
    font-weight: bold;
    text-shadow: rgba(0, 0, 0, 0.33) 0 1px 0;
    -webkit-box-shadow: inset rgb(145, 160, 192) 0 1px 0;
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(162, 177, 207)), to(rgb(120, 138, 177)));
}

:focus #extensions .item.selected {
    -webkit-box-shadow: inset rgb(68, 128, 200) 0 1px 0;
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(92, 147, 213)), to(rgb(21, 83, 170)));
}

body.inactive #extensions .item.selected {
    -webkit-box-shadow: inset rgb(151, 151, 151) 0 1px 0;
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(180, 180, 180)), to(rgb(138, 138, 138)));
}

#extensions .item:first-child {
    -webkit-box-shadow: none !important;
}

#extensions .item .icon {
    position: absolute;
    width: 32px;
    height: 32px;
    left: 4px;
    top: 2px;
}

@media (-webkit-min-device-pixel-ratio:2) {
    #add-extension .glyph {
        -webkit-mask-image: url(AddButtonGlyph@2x.png);
    }

    .extension-info header .bundle-path::before {
        background-image: url(GenericFolderIcon@2x.png);
    }

    .extension-info header .certificate::before {
        background-image: url(Certificate@2x.png);
    }

    .extension-info header .certificate.error::before {
        background-image: url(Error@2x.png);
    }
}
