rokumatsumoto/boyutluseyler

View on GitHub
app/assets/stylesheets/framework/files.scss

Summary

Maintainability
Test Coverage
.up-container {
  padding:.5rem 0 0 0;
  -webkit-user-select:none;
  -moz-user-select:none;
  -ms-user-select:none;
  user-select:none;
}

.up {
  display: flex;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  background: $gray-600;
  color: $white;
  line-height: normal;
}

.up--error{
    background-color: $danger;
}

.up-progress {
  position: absolute;
  width: 0;
  height: 100%;
  background: $primary;
  transition: width 1s ease-out;
}

.up-content {
  display: flex;
  flex: 2;
  z-index: 1;
}

.up--draggable .up-content{
  cursor: move;

  &:active {
    cursor: -webkit-grabbing;
    cursor: grabbing;
  }
}

.up-image {

}

%up-icon {
  margin: .5rem;
  padding-left: 32px;
  position: relative;
}

%up-icon-before {
  position: absolute;
  // https://fontawesome.com/how-to-use/on-the-web/advanced/css-pseudo-elements#define
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  left: 5px;
  top: 2px;
  font-size: 22px;
}

.up-icon--file {
  @extend %up-icon;

  &:before {
    @extend %up-icon-before;
    font-size: 26px;
    content: "\f1b2";
  }
}

.up-icon--loading {
  @extend %up-icon;

  &:before {
    @extend %up-icon-before;
    content: "\f382";
  }
}

.up-text {
  padding: .5rem;

  a {
    color: white;
    text-decoration:underline;

    &:active,
    &:focus {
      outline: 1px dotted;
    }
  }
}

.up-title {
  word-break: break-all;
}

.up-size {
  color: #dfe0df;
  word-break: break-all;
}

.up-actions {
  padding: .3rem;
  z-index: 1;
}