Skip to content

Commit

Permalink
Merge pull request #319 from takayukister/dev/5.4
Browse files Browse the repository at this point in the history
Add the blink animation for the prefers-reduced-motion media query
  • Loading branch information
takayukister authored Jan 28, 2021
2 parents b92cde6 + 92d4aba commit 8b50356
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions includes/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@
background-color: #fbfbfc; /* Light Gray 100 */
top: 4px;
left: 4px;
width: 8px;
height: 8px;
width: 6px;
height: 6px;
border: none;
border-radius: 100%;
transform-origin: 8px 8px;
Expand All @@ -107,6 +107,13 @@
animation-iteration-count: infinite;
}

@media (prefers-reduced-motion: reduce) {
.wpcf7 .ajax-loader::before {
animation-name: blink;
animation-duration: 2000ms;
}
}

@keyframes spin {
from {
transform: rotate(0deg);
Expand All @@ -117,6 +124,20 @@
}
}

@keyframes blink {
from {
opacity: 0;
}

50% {
opacity: 1;
}

to {
opacity: 0;
}
}

.wpcf7 input[type="file"] {
cursor: pointer;
}
Expand Down

0 comments on commit 8b50356

Please sign in to comment.