1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

WordPress ContactForm7で チェックボックスなどにスタイルをあてる方法

Last updated at Posted at 2018-06-15

とりあえず忘れないうちにコピペ!

SASS↓

  input
    &[type=checkbox]
      display: none
  .wpcf7-list-item-label
    margin-top: 15px
    margin-right: 40px
    margin-bottom: 20px
    padding-left: 40px
    position: relative
    display: block
    height: 28px
    font-size: 18px
    font-family: $font_go
    line-height: 28px
    &::before
      content: ""
      display: block
      position: absolute
      top: 0
      left: 0
      width: 28px
      height: 28px
      background: #fff
      box-shadow: 0 0 5.34px 0.66px rgba(#000, .06)
  input[type=checkbox]:checked + .wpcf7-list-item-label
    &::after
      content: ""
      display: block
      position: absolute
      top: 0
      left: 0
      width: 28px
      height: 28px
      background: url("../img/icon_check.png") center center no-repeat
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?