Skip to content

Instantly share code, notes, and snippets.

@bepatrickdavid
Created October 27, 2022 14:44
Show Gist options
  • Save bepatrickdavid/fd5255ca74d4adcca6aaf417077733e8 to your computer and use it in GitHub Desktop.
Save bepatrickdavid/fd5255ca74d4adcca6aaf417077733e8 to your computer and use it in GitHub Desktop.

Revisions

  1. bepatrickdavid created this gist Oct 27, 2022.
    88 changes: 88 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,88 @@
    :root {
    --brown: #5b534f;
    }

    .wpcf7-acceptance .wpcf7-list-item {
    margin-left: 0px;
    margin-top: 10px;
    margin-bottom: 10px;
    }

    .wpcf7-acceptance label {
    font-size: 1.1875rem;
    }
    @media screen and (max-width: 576px) {
    .wpcf7-acceptance label {
    font-size: 14px;
    }
    }

    .wpcf7-acceptance input[type=checkbox] {
    width: 20px;
    height: 20px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin: 0 10px 0 0;
    visibility: hidden;
    -moz-appearance: none;
    -webkit-appearance: none;
    -o-appearance: none;

    }
    .wpcf7-acceptance input[type=checkbox]:before {
    content: "";
    width: 20px;
    height: 20px;
    position: absolute;
    left: 0;
    top: 0;
    border: 1px solid var(--brown);
    background-color: white !important;
    visibility: visible;
    cursor: pointer;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    }
    .wpcf7-acceptance input[type=checkbox]:checked:before {
    content: "✔︎";
    font-size: 18px;
    text-align: center;
    /* background: transparent url(../img/check-line.svg);
    background-size: cover;
    background-repeat: no-repeat; */
    }

    .wpcf7-acceptance .wpcf7-list-item-label {
    float: left;
    padding-left: 35px;
    margin-top: -24px;
    line-height: 1.5;
    font-size: 14px;
    }
    @media screen and (max-width: 576px) {
    .wpcf7-acceptance .wpcf7-list-item-label {
    font-size: 14px;
    }
    }
    .wpcf7-acceptance .wpcf7-list-item-label a {
    text-decoration: underline;
    color: var(--brown);
    }

    .wpcf7-submit:disabled {
    opacity: 0.5;
    transition: .4s ease;
    }
    .wpcf7-submit:disabled:hover {
    opacity: 0.7;
    transition: .4s ease;
    }

    .wpcf7-not-valid-tip {
    margin-top: -10px;
    margin-bottom: 16px;
    }

    .wpcf7 form .wpcf7-response-output {
    color: var(--brown);
    }