_link_block.scss 1.3 KB
.block-link{
  text-decoration: none;
  .link-block{
    color: #000;
    height:350px;
    position: relative;
    background-size: cover;
    background-position:center;
    box-shadow: 0px 3px 6px #00000029;
    padding:40px 32px 0px 32px;
    transition:  0.5s;
    .link{
      padding-top: 18px;
      text-transform: uppercase;
      color: #fff;
      font-size: 16px;
      line-height: 20px;
      position: absolute;
      bottom: 0px;
      left: 0px;
      width: 100%;
      height: 50px;
      text-align: center;
      background-size: cover;
      background-position: top right;
      background-image: url("../images/bottom-md-border.png");
    }
  }
}

.block-link:hover{
  .link-block{
    color: #000;
    background-size: 105%;
    background-position:center;
  }
}

.link-block.image-text{
  overflow: hidden;
  padding:0px;
  height:auto;
  .text{
    padding:25px 47px 60px 47px;
  }
  .img{
    background-size: cover;
    background-position:center;
    min-height: 450px;
    @media only screen and (max-width: 800px) {
      min-height: 300px;
    }
  }
  .link{
    padding-top: 17px;
    height: 50px;
    background-size: cover;
    background-position:center;
    background-image: url("../images/bottom-lg-border.png");
  }
}

.link-block.image-text.no-link{
  box-shadow: 0px 3px 6px #00000029;
}