Skip to content

Commit

Permalink
add custom styles for contact-form7
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidHalkin committed Jun 26, 2024
1 parent 39207f7 commit a9ddd27
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
5 changes: 4 additions & 1 deletion assets/src/custom-form7.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
<div class="container-full">
<div class="row justify-content-center">
<div class="col-12 col-md-6">
[submit class:btn class:btn-primary class:mb-3 class:w-100 class:py-3 "Get a Quote"]
<button class="btn btn-primary mb-3 w-100 py-3" type="submit">
<span class="spinner-border spinner-border-sm" aria-hidden="true"></span>
<span>Get a Quote test</span>
</button>
</div>
</div>
</div>
15 changes: 14 additions & 1 deletion assets/src/styles/layout/_contact-forms-7.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,14 @@

max-width: 700px;
}

.btn[type="submit"] {
.spinner-border {
visibility: hidden;
// display: none;
@extend .me-2;
margin-left: calc((1rem + (.2em * 2)) * -1);
}
}
&.spam {
.wpcf7-response-output {
// border: 1px solid orange;
Expand Down Expand Up @@ -100,6 +107,12 @@
.wpcf7-spinner {
visibility: visible;
}
.btn[type="submit"] {
.spinner-border {
visibility: visible;
// display: inline-block;
}
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion assets/src/styles/layout/_single-doc-pages.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
border-top: 1px solid #ccc;
border-bottom: 1px solid #ccc;
top: 0;
z-index: 1;
z-index: 7;
}

&.admin-bar {
Expand Down
1 change: 1 addition & 0 deletions assets/src/styles/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
@import "~bootstrap/scss/card";
//add Forms
@import "~bootstrap/scss/forms";
@import "~bootstrap/scss/spinners";
//add alerts
@import "~bootstrap/scss/alert";
// Layout
Expand Down

0 comments on commit a9ddd27

Please sign in to comment.