UNPKG

@buffetjs/styles

Version:

Buffetjs Styles - The styling solution of Buffetjs

19 lines (15 loc) 1.24 kB
var _templateObject, _templateObject2; function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); } /** * * LoadingBar * */ import styled, { keyframes } from 'styled-components'; import colors from '../../assets/styles/colors'; import sizes from '../../assets/styles/sizes'; /* stylelint-disable */ var loading = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\n from {left: -200px; width: 30%;}\n 50% {width: 30%;}\n 70% {width: 70%;}\n 80% { left: 50%;}\n 95% {left: 120%;}\n to {left: 100%;}\n"]))); /* stylelint-enable */ var LoadingBar = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n height: 6px;\n width: 20%;\n margin-top: 10px;\n position: relative;\n overflow: hidden;\n background-color: ", ";\n border-radius: ", ";\n &:before {\n display: block;\n position: absolute;\n content: '';\n left: -200px;\n width: 200px;\n height: 6px;\n background-color: rgb(227, 227, 231);\n animation: ", " 2s linear infinite;\n }\n"])), colors.greyHeader, sizes.borderRadius, loading); export default LoadingBar;