UNPKG

@activecollab/components

Version:

ActiveCollab Components

32 lines 1.51 kB
import styled, { css } from "styled-components"; import { FontStyle } from "../FontStyle"; export const StyledBadge = styled.div.withConfig({ displayName: "Styles__StyledBadge", componentId: "sc-6o8do5-0" })(["", " align-items:center;background-color:", ";border:", ";block-size:", ";border-radius:100%;color:var(--color-theme-100);display:flex;font-size:10px;font-weight:500;inline-size:", ";justify-content:center;padding:", ";pointer-events:none;position:absolute;z-index:1;", " ", " ", " ", " ", ""], FontStyle, props => !props.backgroundColor ? "var(--color-primary)" : props.backgroundColor, props => props.isStandalone ? "none" : "2px solid var(--page-paper-main)", props => props.dimension + "px", props => props.dimension + "px", props => props.value && (props.value > 99 ? "4px" : props.value < 100 && "2px"), _ref => { let { isStandalone } = _ref; return isStandalone && css(["position:static;z-index:0;"]); }, _ref2 => { let { position } = _ref2; return position === "top-left" && css(["inset-block-start:0;inset-inline-start:0;"]); }, _ref3 => { let { position } = _ref3; return position === "top-right" && css(["inset-block-start:0;inset-inline-end:0;"]); }, _ref4 => { let { position } = _ref4; return position === "bottom-right" && css(["inset-block-end:0;inset-inline-end:0;"]); }, _ref5 => { let { position } = _ref5; return position === "bottom-left" && css(["inset-block-end:0;inset-inline-start:0;"]); }); //# sourceMappingURL=Styles.js.map