Parts

Parts

シンプルなボタン 5


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

.simpleButton a {
  display: inline-block;
  color: #000;
  line-height: 1.4;
  position:relative;
  padding-right:2.5em;
}
.simpleButton a::before {
  content: "";
  width:2em;
  height:2em;
  text-align:center;
  padding:0.5em 0 0 0;
  display:inline-block;
  background:rgba(0,0,0,.3);
  position:absolute;
  top:50%;
  right:0;
  margin-top:-1em;
  transition: all 0.3s ease;
}
.simpleButton a::after {
  content: "";
  width: 0.8em;
  height: 1em;
  display:inline-block;
  background:url("/img/icon/chevron-right.svg") no-repeat center center;
  background-size: 100% auto;
  position:absolute;
  top:50%;
  right:0.6em;
  margin-top:-0.5em;
  transition: all 0.3s ease;
}
.simpleButton a:hover {
  color:#000;
  transform:translateX(0.5em);
}
.simpleButton a:hover::after {
  opacity:.7;
}
              

.simpleButton a {
  color: #000;
  display: inline-block;
  line-height: 1.4;
  position:relative;
  padding-right:2.5em;
  &::before {
    content: "";
    width:2em;
    height:2em;
    text-align:center;
    padding:0.5em 0 0 0;
    display:inline-block;
    background:rgba(#000,.3);
    position:absolute;
    top:50%;
    right:0;
    margin-top:-1em;
    transition: all 0.3s ease;
  }
  &::after {
    content: "";
    width: 0.8em;
    height: 1em;
    display:inline-block;
    background:url("/img/icon/chevron-right.svg") no-repeat center center;
    background-size: 100% auto;
    position:absolute;
    top:50%;
    right:0.6em;
    margin-top:-0.5em;
    transition: all 0.3s ease;
  }
  &:hover{
    color:#000;
    transform:translateX(0.5em);
    &::after{
      opacity:.7;        
    }
  }
}
                
ページ上部に戻るスプーン