@import "bourbon/bourbon";
@import "variables";



/**************************************
/* Aug21 Header
/**************************************/
.aug21Header {
  display: none;
}

.aug21Header a {
  color: rgb(0, 116, 223)
}

.aug21Header.aug21 {
  display: block;
  background-color: #e0f0fa;
  margin: 30px 30px 0;
  padding: 17px 23px;

  .aug21HeaderTextLarge {
    font-size: 18px;
    font-weight: 400;
    color: #333333;
    line-height: 24px;
  }

  .aug21HeaderTextSmall {
    font-size: 14px;
    font-weight: 400;
    color: #333333;
    line-height: 24px;
  }

  .aug21HeaderTextBlackBold {
    color: #000000;
    font-weight: 700;
  }
}

#psdInfoSection {
  .aug21Header {
    display: none;
  }

  .aug21Header.aug21 {
    display: block;
    line-height: 18px;
    margin: 10px 0 0;
  }

  .aug21HeaderTextLarge {
    font-size: 12px;
    font-weight: 400;
    color: #333333;
    line-height: 18px;
  }

  .aug21HeaderTextSmall {
    font-size: 12px;
    font-weight: 400;
    color: #333333;
    line-height: 18px;
  }

  .aug21HeaderTextBlackBold {
    color: #000000;
    font-weight: 700;
  }
}


/**************************************
/* CC Override
/**************************************/
.extract-plugin {
    .media-container h4 {
      margin-top: 24px;
      margin-bottom: 14px;
      padding-bottom: 6px;
      border-bottom: 1px solid #d5d5d5;
      color: $cc-text;
      font-size: 21px;
      font-size: 1.3125rem;
      font-weight: 300;
      line-height: 28px;
    }
}

a {
    font-weight: 400;
}

.extract-plugin {
    background-color: $cc-white;
    
    *, *:before, *:after {
        @include box-sizing(content-box);
    }

    input[type="button"], input[type="submit"], input[type="reset"], button {
        @include box-sizing(border-box);
    }

    button {
        height: auto;
    }
}


/**************************************
/* Selection Toolbar VIEW
/**************************************/

.selection-controlbar {
    position: absolute;
    right: 300px;
    top: 0 !important;
    width: auto;
    height: $psd-header-height;

    @include user-select(none);

    button {
        line-height: 0;
        color: $cc-text;
        border: 1px solid transparent;
        border-radius: $button-border-radius;
        background: transparent;
        padding: 6px 0 0 0;
        margin: 0 0 0 0;
        position: relative;
        float: right;
        bottom: -5px;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
        -webkit-touch-callout: none;
        -moz-box-sizing: border-box;
        min-width: 24px;
        min-height: 24px;
    }

    button.active {
        background-color: $cc-grey-light;
        border: 1px solid $cc-grey;
        box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.09);
        cursor: default;
    }

    i.icon-btn {
        width: 18px;
        height: 18px;
        display: inline-block;
        background-repeat: no-repeat;
        background-size: auto;
        
        &:hover {
            opacity: 1;
        }
    }
    
    .firstuser-shortcut-guide {
        display: none;
        height: 29px;
    }

    .direct-select .icon-btn {
        background-image: url('../images/select_direct.png');
        background-position: -3px -3px;
    }
        
    .show-measurements-on-hover > .icon-btn {
        background-image: url('../images/measurement-icon.png');
        background-position: -3px -1px;
    }

    .keyboard-shortcut-guide {
        margin-right: 3px;
        height: 29px;
    }

    .keyboard-shortcut-guide .icon-btn {
        background-image: url('../images/cc-extract-sprite.svg');
        background-position: 0 -180px;
        opacity: 0.5;
    }

    .help-selector {
        min-width: 150px;
        line-height: 32px;
        white-space: nowrap;
        padding: 0;
    }

    .help-selector a i.icon-btn {
        display: none;
    }

    .help-selector a {
        position: relative;
        height: 32px;
        font-size: .875rem;
        border-bottom: 1px #d5d5d5 solid;
    }

    .zoom-input,
    .zoom-fit-button,
    .zoom-100-button {
        cursor: pointer;
        display: inline-block;
        padding: 0 4px;

        &.disabled {
            pointer-events: none;
            opacity: .4;
       }
    }
    .zoom-fit-button {
      padding-right: 8px;
    }

    .zoom-100-button {
        margin-right: 6px;
    }

    .zoom-controls {
        position: relative;
        float: right;
        top: 7px;
        white-space: nowrap;
        font-size: 13px;
        font-weight: 400;
        color: $cc-black;
        margin-right: 8px;
    }

    .zoom-input {
        cursor: text;
        @include user-select(text);
        height: 21px;
        text-overflow: clip;
        width: 40px;
        vertical-align: baseline;
        margin: 0 6px 0 11px;
    }

    .file-dim {
        color: $cc-grey;
        text-align: left;
        display: inline-block;
        font-weight: 400;
        margin: 0 11px 0 9px;
    }
}

/**************************************
/* LAYER COMP SELECT
/**************************************/
.designed-at-label {
    position: relative;
    float: right;
    right: 75px;
    top: 3px;
    margin-right: -20px;
}

.designedAtDropdown.disabled,
.layer-comp-select.disabled {
    pointer-events: none;
    opacity: 0.4;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";
    filter: alpha(opacity=40);
}

.designed-at-controls,
.layer-comp-controls {
    position: relative;
    float: right;
    top: 10px;
    margin-right: 10px;
}

.designed-at-controls .header-separator,
.layer-comp-controls .header-separator {
    position: absolute;
    left: 221px;
    top: 2px;
}

.designed-at-select,
.layer-comp-select {
    /* Size and position */
    width: 145px;
    margin: 0 3px 0 0;
    padding: 0px 41px 0px 22px;
    margin-top: 2px;
    /* Styles */
    cursor: pointer;
    outline: none;
    border: 1px solid $input-border;
    background-color: $cc-white;
    background-image: url("../images/layer_comp_small_icon.svg");
    background-repeat: no-repeat;
    background-position: 5px 5px;
    font-size: 12px;
    line-height: 19px;
    height: 19px;
    color: $cc-black;
    font-weight: 400;
}

.designed-at-select {
    width: 20px;
    padding: 0px 20px 0px 5px;
    background-image: none;
}

.designed-at-select .label,
.layer-comp-select .label {
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    margin-right: 4px;
    line-height: 20px;
}

.designed-at-select .label {
    overflow: visible;
}

.designed-at-select:after,
.layer-comp-select:after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    right: 14px;
    top: 13px;
    margin-top: -2px;
    border-width: 4px 4px 0 4px;
    border-style: solid;
    border-color: #808080 transparent;
}

.layerCompIndexLabel {
    position: absolute;
    top: 4px;
    right: 27px;
    color: #888;
    font-size: 10px;
    text-align: right;
    white-space: nowrap;
}

.designed-at-select .designedAtDropdownItem,
.layer-comp-select .layerCompDropdownItem {
    /* Size & position */
    position: relative;
    top: 1px;
    left: -23px;
    right: 0px;
    margin: 0;
    padding: 0;
    width: 210px;
    /* Styles */
    background: $cc-white;
    @include transition-property(all);
    @include transition-duration(0.3s);
    @include transition-timing-function(ease-out);
    list-style: none;
    /* Hiding */
    opacity: 0;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: alpha(opacity=0);
    pointer-events: none;
}

.designed-at-select .designedAtDropdownItem {
    left: -6px;
    width: 47px;
}

.designed-at-select.active .designedAtDropdownItem,
.layer-comp-select.active .layerCompDropdownItem {
    -webkit-box-shadow: $menu-dropshadow;
    box-shadow: $menu-dropshadow;
//    border: 1px solid $cc-grey-light;
}

.designed-at-select.active .designedAtDropdownItem:last-child,
.layer-comp-select.active .layerCompDropdownItem:last-child {
    overflow: hidden;
}

.designed-at-select .designedAtDropdownItem li a,
.layer-comp-select .layerCompDropdownItem li a {
    display: block;
    text-decoration: none;
    color: $cc-text;
    padding: 7px 8px;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid $cc-grey-light;
    
}

.designed-at-select .designedAtDropdownItem li i,
.layer-comp-select .layerCompDropdownItem li i {
    margin-right: 5px;
    color: inherit;
    vertical-align: middle;
}

/* Hover state */
.designed-at-select .designedAtDropdownItem li:hover a,
.layer-comp-select .layerCompDropdownItem li:hover a {
    background: #227ECB;
    color: $cc-white;
}

/* Active state */
.designed-at-select.active,
.layer-comp-select.active {
    background-color: #e5e9e9;
}

.designed-at-select.active:after,
.layer-comp-select.active:after {
    border-width: 4px 4px 0 4px;
}

.designed-at-select.active .designedAtDropdownItem,
.layer-comp-select.active .layerCompDropdownItem {
    opacity: 1;
    -ms-filter: none;
    filter: none;
    pointer-events: auto;
}

/**************************************
/* ASSET DETAILS VIEW
/**************************************/

#detail-panel {
    padding: 24px 0 0 19px;
    position: absolute;
    float: right;
    right: 0px;
    width:  $assest-details-width;
    background-color: $cc-white;
    top: 0;
    bottom: 0px;
    @include backface-visibility(hidden);
    @include box-sizing(border-box);

    .upload-button {
        display: none;
    }
}

#detail-panel.tabs {
    @include user-select(none);

    > section {
        overflow-x: hidden;
        background-color: $cc-white;
        color: $cc-grey-dark;

        p,
        span,
        label {
            color: $cc-text;
        }
    }

    > nav {
        border-right: none;
    }

    > nav > a {
        background: $cc-white;
        font-weight: 400;
        color: $cc-grey-dark;
        text-decoration: none;
        
        &.active {
            border-bottom: 2px solid $cc-white;
            color: $cc-black;
        }
        
        &.disabled {
            display: none;
        }
    }
}


/**************************************
/* PSD HEADER VIEW
/**************************************/

.psd-header {
    height: $psd-header-height;
    background-color: $cc-white;
    font-size: 14px;
    color: $cc-text;

    .psd-header-nowrap {
        white-space: nowrap;
        width: auto;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    a,
    span {
        line-height: $psd-header-height;
    }

    .back-to-files {
        display: none;
        margin-left: 5px;
        padding: 0 10px 10px;
        cursor: pointer;
        color: $cc-black;
        font-weight: 400;

        &:hover {
            text-decoration: none;
            color: $cc-blue;
        }
    }
            
    .file-name {
        display: none;
        margin-left: 10px;
    }
}

.header-separator {
    width: 1px;
    height: 20px;
    background-color: $cc-grey-light;
    display: inline-block;
    position: relative;
    top: 6px;
}

.psd-header-nowrap .header-separator {
    display: none;
}

body.not-logged-in .psd-header {
    .back-to-files,
    .header-separator {
        display: none;
    }

    .file-name {
        font-weight: 400;
        margin-left: 20px;
    }
}

/**************************************
/* SIGN-IN/UP BUTTON STYLES
/**************************************/

body.not-logged-in #signin-button,
body.not-logged-in #signup-button,
.extract-plugin .upload-button {
    background: #50a3e2;
    background: -moz-linear-gradient(top,  #50a3e2 0%, #247fcc 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#50a3e2), color-stop(100%,#247fcc));
    background: -webkit-linear-gradient(top,  #50a3e2 0%,#247fcc 100%);
    background: -o-linear-gradient(top,  #50a3e2 0%,#247fcc 100%);
    background: -ms-linear-gradient(top,  #50a3e2 0%,#247fcc 100%);
    background: linear-gradient(to bottom,  #50a3e2 0%,#247fcc 100%);
    border: 1px solid #527593 !important;
    box-shadow: inset 0 1px rgba(255,255,255,0.24);
    text-shadow: 0 -1px rgba(0,0,0,0.36);
    color: $cc-white;
    margin-top: 38px;
    padding: 18px 25px;
    border-radius: 0;
    font-size: 17px;
    font-weight: 400;
    &:hover {
        background: #2b85cf;
        background: -moz-linear-gradient(top,  #2b85cf 0%, #2970aa 100%);
        background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#2b85cf), color-stop(100%,#2970aa));
        background: -webkit-linear-gradient(top,  #2b85cf 0%,#2970aa 100%);
        background: -o-linear-gradient(top,  #2b85cf 0%,#2970aa 100%);
        background: -ms-linear-gradient(top,  #2b85cf 0%,#2970aa 100%);
        background: linear-gradient(to bottom,  #2b85cf 0%,#2970aa 100%);
    }
}

/**************************************
/* FX
/**************************************/

.blur-background {
    -webkit-filter: blur(6px);
}

/**************************************
/* PUBLIC ONE-UP
/**************************************/

.extract-plugin.public {
    #detail-panel {
        .upload-button {
            display: block;
            position: relative;
            padding: 14px 25px;
            margin: -10px auto 0 auto;
            display: block;
        }
    }

    .tabs {
        > nav {
            position: absolute;
            top: 77px;
            left: 19px;
            right: 0px;
        }
    }
}



