@import "include/variables.less";
@import "include/mixins.less";
@import "../vendor/bootstrap/variables.less";
@import "../vendor/bootstrap/mixins.less";

table.ccm-search-results-table {

    thead {
        th {
            &.ccm-file-manager-search-results-star {
                i {
                    color: #fff;
                }
            }
        }
    }

    tbody {
        td {
            &.ccm-file-manager-search-results-star {
                a {
                    color: #ababab;
                    position: relative;
                    z-index: @index-level-search-results-stars;
                    text-decoration: none;

                    &:hover {
                        text-decoration: none;
                        color: #666;
                    }
                }
            }

            &.ccm-file-manager-search-results-thumbnail {
                img {
                    .border-radius(2px);
                    border: 1px solid #999;
                }
            }


            &.ccm-file-manager-search-results-star-active {
                a {
                    color: #222 !important;
                }
            }
        }
    }
}

/* has to come above dialogs */
#ccm-menu-click-proxy.ccm-file-manager-menu-item-hover {
    z-index: @index-level-dialog-content-click-proxy;
    background: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);
}

div#ccm-popover-menu-container {
    .ccm-popover-file-menu {
        z-index: @index-level-dialog-content-click-proxy;
    }
}

#ccm-file-manager-download-target {
    width: 0px;
    height: 0px;
    visibility: hidden;
}

.ccm-ui form.ccm-search-fields ul.ccm-search-form-advanced li.ccm-file-manager-show-dialog {
    display: none;
}

.ui-dialog-content form.ccm-search-fields ul.ccm-search-form-advanced li.ccm-file-manager-show-dialog {
    display: inline-block;
}

.ui-dialog-content form.ccm-search-fields ul.ccm-search-form-advanced li.ccm-file-manager-upload {
    position: relative;
    input[type=file] {
        position: absolute;
        .opacity(0);
        border: 1px solid black;
        top:  0px;
        left: 0px;
        width: 50px;
        height: 25px;
        cursor: pointer;
    }
}

div#ccm-file-manager-upload-prompt {
    top: 75px;
    right: 50px;
    border: 1px solid #e1e1e1;
    .border-radius(2px);
    text-align: center;
    padding: 18px;
    color: #acacac;
    font-size: @font-size-small;
    position: absolute;

    strong {
        color: #09f;
    }

    input[type=file] {
        position: absolute;
        .opacity(0);
        top:  0px;
        left: 0px;
        width: 320px;
        height: 55px;
        cursor: pointer;
    }

    a {
      position: relative;
      z-index: 100;
      color: #acacac;
      text-decoration: underline;
      display: inline-block;

      &:hover {
        color: #333;
      }
    }

}

/**
 * Select in page
 */
div.ccm-file-selector {
    .border-radius(4px);
    border: 1px solid #ccc;
    margin-bottom: 8px;
    color: #aaa;
    line-height: @line-height-base;
    .box-shadow(inset 0 1px 1px rgba(0,0,0,0.075));
    .transition(all ease-in-out .15s);

    &.ccm-parent-menu-item-hover, &.ccm-parent-menu-item-active, &:hover {
        cursor: pointer;
        outline: 0px;
        color: #555;
        border-color: #66afe9;
        .box-shadow(0 0 8px rgba(102,175,233,0.6));
    }

    div.ccm-file-selector-choose-new {
        padding: 8px;
    }

    div.ccm-file-selector-loading {
        padding: 8px;
    }

    div.ccm-file-selector-file-selected {

        padding: 8px;

        div.ccm-file-selector-file-selected-thumbnail {
            margin-right: 10px; float: left;
        }

        div.ccm-file-selector-file-selected-title {
            font-size: 11px; word-wrap: break-word;
            color: #333;
            font-weight: normal;
        }
    }
}

/**
 *Thumbnail listing
 */
.ccm-ui {
  .ccm-image-thumbnail-card {
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
  }
  .ccm-file-manager-image-thumbnail {
    margin-bottom: 0px;
    padding: 20px;
    text-align: center;
    background-color: #efefef;
    font-size: 18px;
    font-weight: 300;
    color: #999;
  }
  .ccm-image-thumbnail-display-name {
    min-height: 40px;
  }
  .ccm-image-thumbnail-display-name h4 {
    margin-top: 0px;
  }
  .ccm-image-thumbnail-dimensions {
    display: block;
    margin-bottom: 10px;
    color: #999;
    font-size: 13.5px;
  }
  .ccm-image-thumbnail-divider {
    margin-top: 15px;
    margin-bottom: 15px;
  }
}

@media (max-width: @screen-xs-max) {
  div#ccm-file-manager-upload-prompt {
    position: static;
  }
}
