Parts

Parts

シンプルなボタン 11


<div class="simpleButton">
  <a href="#">詳細はこちら</a>
</div>
                

.simpleButton a {
  color: #000;
  background-image: linear-gradient(-45deg, #f0f0f0, #ebebeb);
  border-top: #fff solid 1px;
  border-left: #ebebeb solid 1px;
  border-right: #ebebeb solid 1px;
  border-bottom: #ccc solid 1px;
  display: inline-block;
  line-height: 1.4em;
  padding: 0.6em 3em 0.6em 1.6em;
  border-radius: 0.25em;
  vertical-align: bottom;
  position: relative;
  box-shadow: 0 1.31em 0 0 rgba(255, 255, 255, 0.5) inset;
  transition: 0.3s all ease;
}
.simpleButton a::after {
  content: "";
  width: 0.8em;
  height: 0.8em;
  display: block;
  background: url("/img/icon/chevron-circle-right.svg") no-repeat center center;
  background-size: 100% auto;
  position: absolute;
  top: 50%;
  right: 1.4em;
  margin-top: -0.4em;
  transition: 0.3s all ease;
}
.simpleButton a:hover {
  color: #000;
  box-shadow: 0 1.31em 0 0 rgba(255, 255, 255, 0.2) inset;
}
.simpleButton a:hover::after {
  right: 1.2em;
}
              

.simpleButton{
  a {
    color: #000;
    background-image: linear-gradient(-45deg, #f0f0f0, #ebebeb);
    border-top: #fff solid 1px;
    border-left: #ebebeb solid 1px;
    border-right: #ebebeb solid 1px;
    border-bottom: #ccc solid 1px;
    display: inline-block;
    line-height: 1.4em;
    padding: 0.6em 3em 0.6em 1.6em;
    border-radius: 0.25em;
    vertical-align: bottom;
    position: relative;
    box-shadow: 0 1.31em 0 0 rgba(255, 255, 255, 0.5) inset;
    transition: 0.3s all ease;
  }
  &::after {
    content: "";
    width: 0.8em;
    height: 0.8em;
    display: block;
    background: url("/img/icon/chevron-circle-right.svg") no-repeat center center;
    background-size: 100% auto;
    position: absolute;
    top: 50%;
    right: 1.4em;
    margin-top: -0.4em;
    transition: 0.3s all ease;
  }
  &:hover {
    color: #000;
    box-shadow: 0 1.31em 0 0 rgba(255, 255, 255, 0.2) inset;
    &::after {
      right: 1.2em;
    }
  }
}
                
ページ上部に戻るスプーン