1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | @use '../../styles/theming' as *;
|
8 |
|
9 | @mixin nb-spinner-theme() {
|
10 | .nb-spinner-container {
|
11 | position: relative;
|
12 | }
|
13 |
|
14 | nb-spinner .message {
|
15 | color: nb-theme(spinner-text-color);
|
16 | font-family: nb-theme(spinner-text-font-family);
|
17 | font-size: nb-theme(spinner-text-font-size);
|
18 | font-weight: nb-theme(spinner-text-font-weight);
|
19 | line-height: nb-theme(spinner-text-line-height);
|
20 | }
|
21 |
|
22 | @each $status in nb-get-statuses() {
|
23 | nb-spinner.status-#{$status} {
|
24 | background-color: nb-theme(spinner-#{$status}-background-color);
|
25 |
|
26 | .spin-circle {
|
27 | border-top-color: nb-theme(spinner-#{$status}-circle-filled-color);
|
28 | border-right-color: nb-theme(spinner-#{$status}-circle-empty-color);
|
29 | border-bottom-color: nb-theme(spinner-#{$status}-circle-filled-color);
|
30 | border-left-color: nb-theme(spinner-#{$status}-circle-filled-color);
|
31 | }
|
32 | }
|
33 | }
|
34 |
|
35 | @each $size in nb-get-sizes() {
|
36 | nb-spinner.size-#{$size} {
|
37 | font-size: nb-theme(spinner-height-#{$size});
|
38 | }
|
39 | }
|
40 |
|
41 | @keyframes spin {
|
42 | 0% {
|
43 | transform: rotate(0deg);
|
44 | }
|
45 | 40% {
|
46 | transform: rotate(230deg);
|
47 | }
|
48 | 100% {
|
49 | transform: rotate(360deg);
|
50 | }
|
51 | }
|
52 | }
|