Parts

Parts

シンプルなボタン 2


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

.simpleButton a {
  display: inline-block;
  color: #FFF;
  background: rgba(0, 0, 0, 0.6);
  border-bottom:  rgba(0, 0, 0, 0.8) solid 2px ;
  line-height: 1.4;
  padding: 0.6em 2.8em 0.6em 1.5em;
  border-radius: 0.2em;
  position: relative;
  transition: all 0.3s 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;
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%);
  background-size: 100% auto;
  position: absolute;
  top: 50%;
  right: 1em;
  margin-top: -0.4em;
  transition: all 0.3s ease;
}
.simpleButton a:hover {
  color:#FFF;
  background: rgba(0, 0, 0, 0.8);
  margin-bottom:1px;
  transform: translateY(2px);
}
.simpleButton a:active {
  border-bottom:  rgba(0, 0, 0, 0.6) solid 0 ;
  margin-bottom:2px;
  transform: translateY(4px);
}
              

.simpleButton a {
  display: inline-block;
  color: #FFF;
  background: rgba(#000, 0.6);
  border-bottom:  rgba(#000, 0.6) solid 2px ;
  line-height: 1.4;
  padding: 0.6em 2.8em 0.6em 1.5em;
  border-radius: 0.2em;
  position: relative;
  transition: all 0.3s ease;
  &::after {
    content: "";
    width: 0.8em;
    height: 0.8em;
    display: block;
    background: url("/img/icon/chevron-circle-right.svg") no-repeat center center;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%);
    background-size: 100% auto;
    position: absolute;
    top: 50%;
    right: 1em;
    margin-top: -0.4em;
    transition: all 0.3s ease;
  }
  &:hover {
    color:#FFF;
    background: rgba(#000, 0.8);
    margin-bottom:1px;
    transform: translateY(2px);
  }
  &:active {
    border-bottom:  rgba(#000, 0.6) solid 0 ;
    margin-bottom:2px;
    transform: translateY(4px);
  }
}
                
ページ上部に戻るスプーン