-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AUT-3407: Include spinner Sass in application.scss
This is so that the styles for the spinner will be included in the distributed CSS.
- Loading branch information
Showing
2 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
.spinner { | ||
width: 80px; | ||
height: 80px; | ||
border-radius: 50%; | ||
border-width: 12px; | ||
border-style: solid; | ||
border-color: #dee0e2; | ||
border-top-color: #005ea5; | ||
margin-bottom: govuk-spacing(3); | ||
|
||
@media (forced-colors: active) { | ||
forced-color-adjust: none; | ||
border-top-color: transparent !important; | ||
} | ||
|
||
@media not (prefers-reduced-motion) { | ||
-webkit-animation: spin 2s linear infinite; | ||
animation: spin 2s linear infinite; | ||
} | ||
|
||
@media (prefers-reduced-motion) { | ||
transform: rotate(0.125turn); | ||
} | ||
|
||
&__ready { | ||
border-color: #005ea5; | ||
-webkit-animation: none; | ||
animation: none; | ||
} | ||
} | ||
|
||
.spinner-container { | ||
&__error { | ||
.spinner, | ||
.spinner-state-text { | ||
display: none; | ||
} | ||
} | ||
} | ||
|
||
@-webkit-keyframes spin { | ||
0% { | ||
-webkit-transform: rotate(0deg); | ||
} | ||
100% { | ||
-webkit-transform: rotate(360deg); | ||
} | ||
} | ||
|
||
@keyframes spin { | ||
0% { | ||
transform: rotate(0deg); | ||
} | ||
100% { | ||
transform: rotate(360deg); | ||
} | ||
} | ||
|
||
.centre { | ||
margin-left: auto; | ||
margin-right: auto; | ||
text-align: center; | ||
display: block; | ||
} |