@freshworks/crayons
Version:
Crayons Web Components library
58 lines (56 loc) • 1.3 kB
CSS
/* Need to check with designer */
/* Need to check with designer */
:host {
font-family: var(--fw-font-family, -apple-system, blinkmacsystemfont, "Segoe UI", roboto, oxygen, ubuntu, cantarell, "Open Sans", "Helvetica Neue", sans-serif);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
box-sizing: border-box;
}
/**
@prop --fw-spinner-color: Color of the spinner
*/
@media screen and (prefers-reduced-motion: reduce) {
.spinner {
animation: none;
}
}
@media screen and (prefers-reduced-motion: reduce) and (prefers-reduced-motion: reduce) {
.spinner .path {
animation: none;
}
}
.spinner {
animation: rotate 2s linear infinite;
z-index: 2;
}
@media screen and (prefers-reduced-motion: reduce) {
.spinner .path {
stroke: var(--fw-spinner-color, #2c5cc5);
stroke-linecap: round;
animation: none;
}
}
.spinner .path {
stroke: var(--fw-spinner-color, #2c5cc5);
stroke-linecap: round;
animation: dash 1s ease-in-out infinite;
}
@keyframes rotate {
100% {
transform: rotate(360deg);
}
}
@keyframes dash {
0% {
stroke-dasharray: 1, 150;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 90, 150;
stroke-dashoffset: -35;
}
100% {
stroke-dasharray: 90, 150;
stroke-dashoffset: -124;
}
}