UNPKG

carbon-react

Version:

A library of reusable React components for easily building user interfaces.

2 lines (1 loc) 859 B
import t,{css as o}from"styled-components";import{space as i}from"styled-system";import e from"../../../style/themes/apply-base-theme.js";import s from"../../../style/utils/element-sizing.js";const r=t.div.attrs(e).withConfig({displayName:"tile-content.style__StyledTileContent",componentId:"sc-a8bdaa22-0"})(["",""],(({isHorizontal:t,width:e,height:r})=>o([""," box-sizing:border-box;position:relative;flex-grow:1;"," ",""],i,o(t?["display:inline;:last-of-type{padding-right:0;}:first-of-type{padding-left:0;}:not(:last-of-type){margin-top:0;border-right:solid 1px var(--colorsUtilityMajor050);}"]:["width:auto;:last-of-type{padding-bottom:0;}:first-of-type{padding-top:0;}:not(:last-of-type){margin-top:0;border-bottom:solid 1px var(--colorsUtilityMajor050);}"]),(e||r)&&o(["flex-grow:0;",""],s({width:e||void 0,height:r||void 0})))));export{r as default};