/* MODULE SCSS => ./scss2/_upload.scss
*//*
 * LICENCE : CloudUnit is available under the Affero Gnu Public License GPL V3 : https://www.gnu.org/licenses/agpl-3.0.html
 *     but CloudUnit is licensed too under a standard commercial license.
 *     Please contact our sales team if you would like to discuss the specifics of our Enterprise license.
 *     If you are not sure whether the GPL is right for you,
 *     you can always test our software under the GPL and inspect the source code before you contact us
 *     about purchasing a commercial license.
 *
 *     LEGAL TERMS : "CloudUnit" is a registered trademark of Treeptik and can't be used to endorse
 *     or promote products derived from this project without prior written permission from Treeptik.
 *     Products or services derived from this software may not be called "CloudUnit"
 *     nor may "Treeptik" or similar confusing terms appear in their names without prior written permission.
 *     For any questions, contact us : contact@treeptik.fr
 */

.upload-form {
  padding: 8px 0;
  .hint {
    opacity: 0;
    transition: all 0.3s;
  }
  .upload:hover + .hint {
    opacity: 1;
  }
}

.upload-meta {
  padding: 8px 0;
}

.upload-actions {
  text-align: right;
}

.upload {
  position: relative;
  overflow: hidden;
  input[type='file'] {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding: 0;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    filter: alpha(opacity=0);
  }
}

.upload-progress {
  p {
    padding-bottom: 16px;
  }
  .progress {
    overflow: hidden;
    height: 4px;
    margin-bottom: 16px;
    background-color: #f9bdbb;
    box-shadow: none;
    border-radius: 0;
    .progress-bar {
      float: left;
      width: 0%;
      height: 100%;
      font-size: 12px;
      line-height: 20px;
      color: white;
      text-align: center;
      background-color: $brand-info;
      box-shadow: none;
      transition: width 0.6s ease;
      &.success {
        background-color: $alert-success-border;
      }
    }
  }
}