carbon-react
Version:
A library of reusable React components for easily building user interfaces.
2 lines (1 loc) • 1.71 kB
JavaScript
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("styled-components"),t=require("../../style/themes/apply-base-theme.js"),e=require("../button/button.style.js");function d(r){return r&&r.__esModule?r:{default:r}}const o="\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",i=d(r).default.ul.attrs(t.default).withConfig({displayName:"split-button-children.style__StyledSplitButtonChildrenContainer",componentId:"sc-b97d9599-0"})(["border-radius:var(--borderRadius100);",""],(({theme:t,align:d,minWidth:i})=>r.css(["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;}}"],i,t.zIndex.popover,o,e.default,d,d)));exports.borderRadiusStyling=o,exports.default=i;