UNPKG

@chayns-components/core

Version:

A set of beautiful React components for developing your own applications with chayns.

47 lines (46 loc) 1.08 kB
import styled, { keyframes } from 'styled-components'; export const StyledWaitCursor = styled.div` position: relative; height: 26px; width: 26px; opacity: ${({ $shouldShowWaitCursor }) => $shouldShowWaitCursor ? 1 : 0}; `; export const StyledWaitCursorBackground = styled.div` background-color: white; border-radius: 50%; height: 100%; width: 100%; position: relative; z-index: 1; box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.2), 0 1px 1px rgba(0, 0, 0, 0.2); `; const spin = keyframes` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `; export const StyledWaitCursorWaitCursor = styled.div` position: absolute; top: 5px; left: 5px; z-index: 2; border-style: solid; border-width: 3px; border-color: ${({ $color }) => $color}; height: ${26 - 10}px; width: ${26 - 10}px; border-radius: 50%; display: inline-block; border-top: 3px solid transparent; animation: ${spin} 1s linear infinite; `; //# sourceMappingURL=WaitCursor.styles.js.map