Created
October 27, 2022 14:44
-
-
Save bepatrickdavid/fd5255ca74d4adcca6aaf417077733e8 to your computer and use it in GitHub Desktop.
WP: CF7 Acceptance Style
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: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); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment