@kiwicom/orbit-components
Version:
Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.
15 lines (14 loc) • 617 B
JavaScript
import styled, { css } from "styled-components";
import defaultTheme from "../../../defaultTheme";
var StyledRelative = styled.div.withConfig({
displayName: "StyledRelative",
componentId: "sfja47-0"
})(["position:relative;", ";"], function (_ref) {
var inner = _ref.inner,
theme = _ref.theme;
return inner && css(["width:calc(100% + ", "px);display:flex;align-items:center;"], parseInt(theme.orbit.spaceSmall, 10) * 2);
}); // $FlowFixMe: https://github.com/flow-typed/flow-typed/issues/3653#issuecomment-568539198
StyledRelative.defaultProps = {
theme: defaultTheme
};
export default StyledRelative;