Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion wp-content/plugins/bd4d/assets/css/main.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 44 additions & 0 deletions wp-content/plugins/bd4d/assets/css/main.src.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,51 @@ div.form-fields div.signup-input .signup:hover {
.newsletter-subscribe input[type=submit][disabled=disabled] {
opacity: 0.5;
}
.newsletter-subscribe input[type=submit].is-loading {
position: relative;
padding-left: 2.5em;
cursor: wait;
}
.newsletter-subscribe input[type=submit].is-loading::before {
content: "";
position: absolute;
left: 1em;
top: 50%;
width: 1em;
height: 1em;
margin-top: -0.5em;
border: 2px solid transparent;
border-top-color: currentcolor;
border-radius: 50%;
animation: bd4d-spin 0.8s linear infinite;
}
.newsletter-subscribe input[type=submit].is-error {
background-color: #dc3545;
color: white;
border-color: #dc3545;
}
.newsletter-subscribe .error-message.is-visible {
background-color: rgba(220, 53, 69, 0.15);
border: 1px solid #dc3545;
border-radius: 4px;
padding: 0.75em 1em;
margin-top: 1em;
animation: bd4d-pulse 0.5s ease-in-out;
}

@keyframes bd4d-spin {
to {
transform: rotate(360deg);
}
}
@keyframes bd4d-pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.6;
}
}
/* override divi styles */
html body.single .et_pb_post {
margin-bottom: 0;
Expand Down
2 changes: 1 addition & 1 deletion wp-content/plugins/bd4d/assets/css/main.src.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 47 additions & 0 deletions wp-content/plugins/bd4d/assets/css/src/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,54 @@ div.form-fields {
&[disabled="disabled"] {
opacity: 0.5;
}

// Loading state
&.is-loading {
position: relative;
padding-left: 2.5em;
cursor: wait;

&::before {
content: '';
position: absolute;
left: 1em;
top: 50%;
width: 1em;
height: 1em;
margin-top: -0.5em;
border: 2px solid transparent;
border-top-color: currentcolor;
border-radius: 50%;
animation: bd4d-spin 0.8s linear infinite;
}
}

// Error state
&.is-error {
background-color: #dc3545;
color: white;
border-color: #dc3545;
}
}

// Error message highlight
.error-message.is-visible {
background-color: rgb(220, 53, 69, 15%);
border: 1px solid #dc3545;
border-radius: 4px;
padding: 0.75em 1em;
margin-top: 1em;
animation: bd4d-pulse 0.5s ease-in-out;
}
}

@keyframes bd4d-spin {
to { transform: rotate(360deg); }
}

@keyframes bd4d-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.6; }
}

/* override divi styles */
Expand Down
2 changes: 1 addition & 1 deletion wp-content/plugins/bd4d/assets/js/main.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 35 additions & 8 deletions wp-content/plugins/bd4d/assets/js/main.src.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading