rokumatsumoto/boyutluseyler

View on GitHub
app/assets/stylesheets/pages/design.scss

Summary

Maintainability
Test Coverage
img.thumb, a.thumb img{
    width: 100%;
    height: 100%;
    border: 1px solid #e6e6e6;
    border-radius: .5rem;
    background :#b4b4b4;
    color: #fff;
}

a.thumb{
    width: 100%;
    display: inline-block;

    img {
      display: inline-block;
      transition: border-color .25s;
    }
    &:hover {

      img {
        border-color: $primary;
      }
    }

    &:hover {
      outline: 0;
      box-shadow: none;
    }
}

.model canvas {
  border: 1px solid #e6e6e6;
  border-radius: .5rem;
  background :#b4b4b4;
  color: #fff;
  overflow: hidden;
}

.pic-main, .pic-main img {

  @media (min-width: 0) {
    width: 9rem;
    height: 9rem;
  }

  @media (min-width: 15rem) {
    width: 14rem;
    height: 14rem;
  }

  @media (min-width: 17rem) {
    width: 16rem;
    height: 16rem;
  }

  @media (min-width: 24rem) {
    width: 23rem;
    height: 23rem;
  }

  @media (min-width: 29rem) {
    width: 28rem;
    height: 28rem;
  }

  @media (min-width: 33rem) {
    width: 33rem;
    height: 33rem;
  }

  @media (min-width: 37rem) {
    width: 16rem;
    height: 16rem;
  }

  @media (min-width: 47rem) {
    width: 30rem;
    height: 30rem;
  }
}

@media (min-width: 37rem){
  .design {
    display: table;
  }
}

.design-photos {
    margin-top: inherit;

    @media (min-width: 37rem){
      display: table-cell;
      vertical-align: top;
    }

    .actionbar {
      display: flex;
      align-items: flex-end;
      margin-bottom: .5rem;
    }

    .actionbar-left {
      float: left;
      flex: 1;
    }
    .actionbar-right{
      float: right;
    }
}

.design-infos{
  margin-top: inherit;

    @media (min-width: 37rem){
      display: table-cell;
      vertical-align: top;
      width: 100%;
      padding-left: 1.5rem;
    }

  .page-counters {
    font-size: 14px;
    opacity: .8;
    line-height: 1.7;
  }
}

.counter-tooltip {
  font-size: 12px;
  font-weight: 600;
}

.pic {

  img {
    width: 100%;
    height: auto !important;
  }
}

.pic-main {
  min-width: 14rem;
  margin: 0 auto;
}

.pic-minis {
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 0.75rem;

  a {
    display: inline-block;
    margin-top: 0.75rem;
    margin-right: 0.75rem;
    width: calc((100% - 3rem) / 5);

    @media (min-width: 37rem) and (max-width: 46rem){
      margin-right: 0.75rem;
      width: calc((100% - 2.25rem) / 4);
    }

    &:nth-child(5n) {
      margin-right: 0;
    }

    &:nth-child(4n) {
      @media (min-width: 37rem) and (max-width: 46rem){
        margin-right: 0;
      }
    }
  }
}


.btn-grey {
  background-color: $gray-200;
  color: $gray-900;
}

.btn-drop {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  padding: 0 1rem;

  p {
    margin: .5rem 0;
    font-weight: normal;
  }

  &--input {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding-right: 100%;
    opacity: 0;
    font-size: 200px;
    cursor: pointer;
  }

  &--over, &:focus {
    box-shadow:0 0 1rem $primary;
  }
}

.license {

  a {
    color: $gray-600;

    &:hover {
      color: $gray-600;
    }
   }
}