Skip to content

Commit

Permalink
Delete terms.php
Browse files Browse the repository at this point in the history
  • Loading branch information
crftwrk committed Aug 30, 2023
1 parent 25d5d62 commit 49eaf4e
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 45 deletions.
39 changes: 37 additions & 2 deletions scss/bootscore_woocommerce/_wc_checkout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ WooCommerce Checkout
// Create account
p.create-account {
@extend .form-check;
margin-left: $form-check-input-width * 1.5 !important;
margin-left: $form-check-input-width * 1.5 !important;
}

#createaccount {
@extend .form-check-input;
@extend .form-check-input;
}

// Create account password icon
Expand Down Expand Up @@ -188,3 +188,38 @@ p.create-account {
cursor: pointer;
}
}


// Terms Checkbox
.woocommerce form .form-row {

label.checkbox {
@extend .form-check;
display: inline-block;
}

.input-checkbox {
@extend .form-check-input;
}

// Validation
&.woocommerce-invalid {
label {
color: var(--#{$prefix}form-invalid-color);
}

input {
@extend .is-invalid;
}
}

&.woocommerce-validated {
label {
color: var(--#{$prefix}form-valid-color);
}

input {
@extend .is-valid;
}
}
}
3 changes: 1 addition & 2 deletions scss/bootscore_woocommerce/_wc_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ ins {
color: var(--bscore-wc-price-sale, var(--#{$prefix}danger));
}

.woocommerce form .form-row .required,
.woocommerce form .form-row.woocommerce-invalid label {
.woocommerce form .form-row .required {
color: var(--bscore-wc-form-invalid, var(--#{$prefix}danger));
}

Expand Down
41 changes: 0 additions & 41 deletions woocommerce/checkout/terms.php

This file was deleted.

0 comments on commit 49eaf4e

Please sign in to comment.