carbon-react
Version:
A library of reusable React components for easily building user interfaces.
2 lines (1 loc) • 1.57 kB
JavaScript
import r,{css as o}from"styled-components";import t from"../../style/themes/apply-base-theme.js";import d from"../button/button.style.js";const i="\n > {\n &:first-child:last-child > * {\n border-radius: var(--borderRadius100);\n }\n\n &:first-child:not(:last-child) > * {\n border-top-left-radius: var(--borderRadius100);\n border-top-right-radius: var(--borderRadius100);\n border-bottom-right-radius: var(--borderRadius000);\n border-bottom-left-radius: var(--borderRadius000);\n }\n\n &:not(:first-child):not(:last-child) > * {\n border-radius: var(--borderRadius000);\n }\n\n &:last-child:not(:first-child) > * {\n border-top-right-radius: var(--borderRadius000);\n border-top-left-radius: var(--borderRadius000);\n border-bottom-left-radius: var(--borderRadius100);\n border-bottom-right-radius: var(--borderRadius100);\n }\n }\n",a=r.ul.attrs(t).withConfig({displayName:"split-button-children.style__StyledSplitButtonChildrenContainer",componentId:"sc-b97d9599-0"})(["border-radius:var(--borderRadius100);",""],(({theme:r,align:t,minWidth:a})=>o(["background-color:var(--colorsActionMajorYang100);min-width:","px;white-space:nowrap;z-index:",";box-shadow:var(--boxShadow100);list-style:none;padding:0;margin:0;"," ","{border:1px solid var(--colorsActionMajorTransparent);display:flex;justify-content:",";margin-left:0;min-width:100%;text-align:",";& + &{margin-top:3px;}&:focus{position:relative;z-index:1;}}"],a,r.zIndex.popover,i,d,t,t)));export{i as borderRadiusStyling,a as default};